Re: book delayed again (again)

2017-08-02 Thread Antic
Ordered the book ... delivery date 8.9 (Germany). BW, Antic

Re: thounghs about Nim language in godot

2017-08-02 Thread Tiberium
DTxplorer: don't worry, nothing bad

Re: Rewrite of string case statements in hash map jump table

2017-08-02 Thread cdome
Thanks Parashurama, Found genStringCase in ccgstmts.nim, but your hint was useful

Re: Rewrite of string case statements in hash map jump table

2017-08-02 Thread Parashurama
you can find the code in $NIM_SRC_DIR/compiler/ccgexprs.nim inside proc `genStringCase` I'm working on a similar problem. The performance for parsing/stringying enums with holes is abysmal (in C anyway, JS is mostly fine). The problem is getting acceptable performance without

Rewrite of string case statements in hash map jump table

2017-08-02 Thread cdome
Hi, I recall Araq mentioned Nim compiler rewrites string case statements into hash jump table for efficiency, Does anyone knows where is the code in compiler#s code base that does that. Thank you

Why cint 32 bits?

2017-08-02 Thread firosiro
Just a quick question that I couldn't find the answer to anywhere. According to the system module description, cint is supposed to be equivalent to using "int" in C. However, cint is explicitly defined as int32, whereas C does not require "int" to be 32 bits. Of course most C implementations do

Re: Nimgame 2

2017-08-02 Thread Bernd
That one is working! Thank you.

Re: Nimgame 2

2017-08-02 Thread Vladar
Dropped 64-bit one [here](http://dropcanvas.com/j9gc9).

Why do you want to use a single stage counterattack crusher?

2017-08-02 Thread xuanxuan
The origin of the single-stage counterattack crusher: the general crushing process is divided into multiple stages, and which must go through the first break in order to carry out two broken. Head break is generally used jaw crusher, and two broken is generally used counterattack crusher. The

Re: Nimgame 2

2017-08-02 Thread Bernd
@Vladar Do you have the SDL2_gfx.dll? I am not able to compile it myself. I've got a 32bit version of that dll, but your demos won't start with that. (I am using the 64bit dlls of SDL2) could not load: SDL2_gfx.dll Error: execution of an external program failed:

Re: Need example of awaitAny()

2017-08-02 Thread cdunn2001
I ended up doing this: proc foo() = var nsubs = len(settings.file_list) var responsesB = newSeq[FlowVarBase](nsubs) var responsesT = newSeq[FlowVar[string]](nsubs) for i in 0.. 0: let i = awaitAny(responsesB) let fv: FlowVar[string] =