Re: Wannabe-Official Nim Images for Docker

2016-08-01 Thread guitmz
@moigagoo sure thing, sounds like a plan to me :)

Re: Nim in Action is now available!

2016-08-01 Thread jlindsay
Hi @dom96, I just purchased (pre-ordered) Nim in Action from my local Chapters bookstore and am pretty excited about getting the book. Do you know if it is possible for me to access the MEAP pdf's of the existing chapters on the Manning site with an in-store purchase? I don't know if I would

Re: Nim in Action is now available!

2016-08-01 Thread jlindsay
I think I've answered my own question. I saw on the Manning webpage: > Q: Can I buy a MEAP anywhere else? > > No. Currently, MEAPs are available exclusively at manning.com. So looks like I'll have to wait until January. Oh well, it'll be a nice New Year surprise.

Re: Wannabe-Official Nim Images for Docker

2016-08-01 Thread moigagoo
@guitmz I'd be happy if instead of abandoning the task completely you'd join this new repo :) If you're game, I'll be happy to add you to the repos on GitHub and Docker Hub.

Re: Go-lang like interface

2016-08-01 Thread Krux02
@OderWat I was looking for examples online, because I remember that one of the c++ talks mentioned that they completely forbid the usage of templates. But I can't find that specific talk anymore. I saw too many, and did made a protocol about talks I watched. But what I did find is first of all,

Re: Wannabe-Official Nim Images for Docker

2016-08-01 Thread OderWat
Good work! I just tried it some minutes ago with the new Docker client on Mac and it works pretty well and easy. BTW: For beginners which just try it out you may add how to access devel or other versions in your compilation example. I just saw that you have this info on the Nim website but not

Re: Best 2D game engine for nim?

2016-08-01 Thread Vladar
**UnnoTed**, because that way it's more interesting?

Re: Best 2D game engine for nim?

2016-08-01 Thread UnnoTed
**Vladar**, why not just make bindings for a already existing one like [http://www.raylib.com](http://forum.nim-lang.org///www.raylib.com)/ ?

Re: Best 2D game engine for nim?

2016-08-01 Thread Vladar
**rational**, since there seems to be a demand for it, I'll try to carve out some time to start it sooner. Watch out for announcements.

Re: Best 2D game engine for nim?

2016-08-01 Thread Vladar
**hcorion** nimgame is deprecated since sdl2 came out. I just updated it to support Nim v0.14.2 and you could use it as a kind of reference though, but I plan to create sdl2-based engine in the future, when I'll get time for this.

Re: Go-lang like interface

2016-08-01 Thread _tulayang
Another solution: import future type MyInterface = ref object of RootRef foo: proc(this: MyInterface): int bar: proc(this: MyInterface): int proc foobar(this: MyInterface): int = return this.foo(this) + this.bar(this) type

Re: Go-lang like interface

2016-08-01 Thread _tulayang
@Krux02 OK. If you're worried about code bloated, the best way is not to use interface, try functional programming (object-oriented programming is inflexible): import future type MyImplementationA = object MyImplementationB = object m_foo,m_bar: