Is there a way to install nimegame2 locally?

2022-03-25 Thread Dabod
`git clone` the packages you want, go into the directory, and then execute `nimble develop`, it will create a link to the package directory, this way, no `--path:` parameter needed

Excuse me, how to hide the console window of the program?

2022-03-25 Thread luyimoon
My game program is built using nim-raylib. After running, there will be a console window, How can I hide this console window? My compile command is "nim c -r textures_sprite_button.nim"

CSV file parsing

2022-03-25 Thread treeform
I don't know if this will work but some ideas to speed this up: * I don't know if threading is good match for single file CSV parsing. For me rather then have one 1 TB CSV file, I would rather generate a number of GB sized CSV files and do a file per thread. * Most of the time is probably be

Excuse me, how to hide the console window of the program?

2022-03-25 Thread DavideGalilei
Have you tried with `--app:gui` yet?

Is there a way to install nimegame2 locally?

2022-03-25 Thread luyimoon
Thanks, I've done it with a local install.

Is there a way to install nimegame2 locally?

2022-03-25 Thread planetis
If it's really a problem with nimble, use another package manager, [nimph](https://github.com/disruptek/nimph), atlas (bundled with Nim, in the directory tools/atlas), etc or just do `git clone` for every dep manually and add them to the path while compiling with `--path:../path/to/dep/src/`

datsaset in javascript DOM

2022-03-25 Thread planetis
You need to wrap DOMStringMap as well. And also use cstring instead of string

CSV file parsing

2022-03-25 Thread Stefan_Salewski
Yesterday I wrote the section about CSV file parsing, with regex, pegs, split() and parseutils. Not really that interesting, I think I read similar stuff already years ago in various blog posts, and it was sketched also in the Manning book. But well, took only a few hours to write, and maybe it

how to make a enum with wrapped ordinals

2022-03-25 Thread exelotl
I think it _probably_ shouldn't be the default? Say there's a case where I don't want an enum to wrap, and I write some code that accidentally increments it beyond its maximum value. If it wraps by default, then I've just introduced silently buggy behaviour into my program, while a fatal error w

how to make a enum with wrapped ordinals

2022-03-25 Thread Araq
And I have never wanted it to wrap in my entire life. In fact, saturated arithmetic is often more useful and equally unsupported. You can also use `type T = distinct uint8` and .borrow the inc operator so that you get a new type that wraps.

There is no finish.exe in the NIM installation zip file

2022-03-25 Thread PMunch
I think the DLLs are shipped with Nim, or is downloaded in a zip supplied by Nim. But I'm on Linux so I really don't know, these issues don't happen on Linux, and we don't ship random DLLs around, we install them system wide via a package manager.

how to make a enum with wrapped ordinals

2022-03-25 Thread doofenstein
I don't think there's a function in the standard library for this, how about this: proc incWithWrap[T: enum](v: var T) = if v == high(T): v = low(T) else: inc v Run

how to make a enum with wrapped ordinals

2022-03-25 Thread solomonthewise
thanks, I still haven't figured out generics yet so this is very helpful. I'm wondering why this isn't the standard behavior for enums though. Every single time I've created a enum I've wanted it it wrap

how to make a enum with wrapped ordinals

2022-03-25 Thread solomonthewise
I was working on a connect 4 app and I created a enum called player. with two different values. I want the ability to easy swap the value of player using inc(p) but when I do that I get a overflow error. This makes enums a lot less useful for me. Is there a way to have a enum type that wraps bac

There is no finish.exe in the NIM installation zip file

2022-03-25 Thread tcheran
A viable alternative (at least for me) was to use choosenim. You have to go to: and download latest choosnim (I didn't have any problem with choosenim, but I used 0.7.4 when I performed this procedure) choosenim is a package manager, so it's useful

There is no finish.exe in the NIM installation zip file

2022-03-25 Thread SingeQuestion3
Thank you for your explanation. It's very frustrating when things just don't work, or you experience something different from what is expected. I used 7-Zip, and finish.exe, as well as other files which were deleted, extracted successfully. But when I tried to run the finish.exe, it just disapp

There is no finish.exe in the NIM installation zip file

2022-03-25 Thread PMunch
It's a matter of antivirus programs deleting the file. Basically Nim has gotten pretty popular in the malware community, which means that antivirus programs try to fingerprint them. However they haven't added enough "good" Nim applications into the fingerprinting system, so the fingerprint it en

There is no finish.exe in the NIM installation zip file

2022-03-25 Thread Araq
AntiVir deleted the file?

The WASM Revolution

2022-03-25 Thread arnetheduck
`nlvm` has a wasm target you can use, which compiles nim natively straight to wasm:

There is no finish.exe in the NIM installation zip file

2022-03-25 Thread SingeQuestion3
I downloaded the nim-1.6.4_x64 zip from the install_windows page, and I can't find finish.exe among the extracted directories either. I also downloaded the nim-1.6.4_x86 zip, and I also can't find it their.

The WASM Revolution

2022-03-25 Thread Hlaaftana
You think Typescript is different than Nim because Nim doesn't compile to WASM? There is a JS target. If you really want to compile to WASM [there are ways](https://github.com/treeform/nim_emscripten_tutorial) (google for more). But just the ability to compile to WASM doesn't really accomplish

The WASM Revolution

2022-03-25 Thread jorjun_arch
Thanks for this. I've signed up and give it consideration. I've just left 10 years of Python and dearly miss the semantic whitespace.. and I know I can't stick with Typescript forever..

The WASM Revolution

2022-03-25 Thread Araq
> I am still looking for the perfect language and not fully engaged with Nim > yet, coz it strikes me chiefly as "leverage over C" and I never got into C in > a big way. [...] Ah, the old "it compiles to X so it cannot really be any better than X" 'argument'. It's wrong. And Wasm as a target,

The WASM Revolution

2022-03-25 Thread jorjun_arch
Wasn't so much thinking that the language wasn't/couldn't be better than the C but that the community might be similarly over-nerdy.

The WASM Revolution

2022-03-25 Thread jasonfi
I think that WASM is too low-level for most purposes unless you're building an engine on top of it. For publishing to the web I think Flutter is awesome. Unfortunately there is some startup cost, but it's low. I found a way to overcome this by lazy loading the libraries on the landing page of a

Is there a way to install nimegame2 locally?

2022-03-25 Thread luyimoon
Is there a way to install nimegame2 locally? When I install with nimble install nimgame2, it's always timeout.

The WASM Revolution

2022-03-25 Thread jorjun_arch
Who else believes WASM makes sense as a first class Nim target? I am still looking for the prefect language and not yet fully engaged with Nim yet, coz it strikes me chiefly as "leverage over C" and I never got into C in a big way. And agree with this sentiment completely: (C is not a programmin

xml-rpc client lib?

2022-03-25 Thread stedi
Thanks. Might be old-fashioned, but it's still used (I'm looking at you, BZSt). I wanted to avoid rolling my own bug ridden client, but it might be some fun project.

xml-rpc client lib?

2022-03-25 Thread Araq
It has "xml" in its name and so it's old-fashioned and Nim might really lack library support for it. However, Nim has good support for XML and HTTP and so rolling some support for xml-rpc on top of that might be feasible, depending on your needs.

xml-rpc client lib?

2022-03-25 Thread stedi
Hello, I'm looking for an xml-rpc client library. Does something like this exist? I couldn't locate any (which probably means I didn't look hard enough). Thanks.

Ruby's parallel-like functionality in Nim

2022-03-25 Thread kobi
Not exactly the same, but perhaps this is useful to you: experimental parallel: and set the max threads: it takes care of synchroni

my TUI designer.

2022-03-25 Thread kobi
cool project. looks practical