Re: AsyncSocket delimeter

2016-08-03 Thread dom96
Unfortunately not, but others have suggested this so perhaps it is a good idea to make a more generalised `recvLine`. Could you create an issue for this please?

Re: Best 2D game engine for nim?

2016-08-03 Thread hcorion
**Libman**, I was actually looking for some mostly straight (SDL2, SFML etc. is OK) nim game engine, not using a pre-built engine. **Vladar**, I can't wait! I'll be checking the forums!

Re: python program call NimMain@.so different position leads to different result ?

2016-08-03 Thread DL
@alexsad disable GC, it's ok,but physics memory limited

Re: How do I pass an operator as proc parameter?

2016-08-03 Thread OderWat
I think you need to use a Template or an anonymous function to do what you want: template testA[T](a: T, action: untyped, b: T): T = action(a,b) echo testA(1, `xor`, 2) proc testB[T](a: T, action: proc(a,b: T):T , b: T): T = action(a,b) echo testB(1, proc(a, b: int):

Re: How do I pass an operator as proc parameter?

2016-08-03 Thread flyx
Usually, you would define `action` as `proc(l,r: T): T`. But this does not work for `xor` because of this paragraph in the manual ([see also](https://github.com/nim-lang/Nim/issues/2172)): > Assigning/passing a procedure to a procedural variable is only allowed if one > of the following

How do I pass an operator as proc parameter?

2016-08-03 Thread lucian
I could not find any example but this is the sort of thing I want to get working: proc bitWise*[T](buff: openArray[T], action: expr, mask: openArray[T]): seq[T] = var c = items #or some custom iterator result = buff.mapMe(it action c(mask)) # mapMe is an openArray

attractive wpc floor

2016-08-03 Thread qizhen0809
so the strength of the fiber decreases, because the coating on the fiber surface coated with a layer of PP simple molecules, but PP does not react with the cellulose does not affect the molecular structure of the

Re: Go-lang like interface

2016-08-03 Thread _tulayang
@bpr > That sounds like an anti-feature to me, kind of like the anti-feature of > Python (discussed on another thread here) that allows one to add object > attributes at any time. In Scala, Rust and more modern language, you can change external variable in funcational programming. And, this

Re: Go-lang like interface

2016-08-03 Thread _tulayang
@Krux02 > Yes, and you are ignorant to learn about them. HAHA. I don't learn about Golang because Golang is a lousy language. There are so many good languages better than Golang: C, Nim, Rust, Erlang, Scala, Java, Scheme. > Yes, live with it. "Pure function" are not realistic. Did you know

Re: Best 2D game engine for nim?

2016-08-03 Thread Libman
I haven't dabbled in game programming since the 90s, but a quick look at [the list of available engines](https://en.wikipedia.org/wiki/List_of_game_engines) shows many choices. I hope the Nim game dev ecosystem picks a good

Re: Go-lang like interface

2016-08-03 Thread cdunn2001
GoLang compilation recently took a big hit (2x to 10x slower for various apps) when the compiler was re-written from C to bootstrapped Go. Rob Pike was concerned, which I think is a good sign. With Go-1.7, it is almost as fast as 1.5 again. D2 on the other hand, though still fast, is quite a

Re: Basic jupyter notebook kernel

2016-08-03 Thread OderWat
I also asked @Araq to make verbosity:0 really quiet. There is also still output "CC module" which can't be silenced by hint switching. Maybe some solution comes to devel soon!

Re: Basic jupyter notebook kernel

2016-08-03 Thread OderWat
Great. I love such stuff. I made a little PR which disables a hint and fixes bad module names because at least for me there where tempnames with "-" in it which nim does not like.