Re: Announcing Nimgame 3D!

2017-04-01 Thread hcorion
Yeah! April Fools!

Re: How to create, destroy, and recreate threads

2017-04-01 Thread bpr
@cdunn2001, I downloaded that directory to an Ubuntu 14.04 machine, and after following your instructions I first get an error on 'make' complaining of a missing 'git-sym'. Googling that and finding it on your github, I downloaded it where the error said it expected it (alongside nim-debug in

Announcing Nimgame 3D!

2017-04-01 Thread Vladar
As 2D games slowly but surelly fade into the mist of the past, I've decided to cease development of Nimgame 2 and concentrate on the next-gen game engine — Nimgame 3D. Soon it will outperform other inferior game engines (Unreal Engine, Unity, etc.) and fully step into the age of VR (planned

Re: How to create, destroy, and recreate threads

2017-04-01 Thread cdunn2001
@Araq, Try this. Let me know if you have a problem getting data or running the tests. * [https://github.com/pb-cdunn/nim-debug](https://github.com/pb-cdunn/nim-debug) Requirements: * 1GB (downloaded into a sub-dir of '.git/') * Maybe 2GB memory I have not tried it on a Mac yet. It

Re: Help in compiling nim on android termux

2017-04-01 Thread cheatfate
Made this for you guys, but i dont have android to test it properly. [https://github.com/nim-lang/Nim/pull/5646](https://github.com/nim-lang/Nim/pull/5646).

Re: Help in compiling nim on android termux

2017-04-01 Thread NastyRigger
@stisa Ah, ok! Thought you couldn't decide between **-d:termux** and **-d:android** as the name of this custom configuration

Re: Help in compiling nim on android termux

2017-04-01 Thread stisa
@NastyRigger: that's what `-d:android` does: [https://github.com/nim-lang/Nim/blob/c480505797f9d82b9b19a72b5a5abde9c0cb0fd4/lib/posix/posix.nim#L2426](https://github.com/nim-lang/Nim/blob/c480505797f9d82b9b19a72b5a5abde9c0cb0fd4/lib/posix/posix.nim#L2426) @cheatfate : thanks for the pointer,

Re: Help in compiling nim on android termux

2017-04-01 Thread cheatfate
If you really want to fix it, you need to find way how to properly pass arguments to **__NR_rt_sigtimedwait** syscall, which is available since **Android SDK Level 3**.

Re: Help in compiling nim on android termux

2017-04-01 Thread NastyRigger
@stisa I believe we need to patch the nim's transpiler to always output __rt_sigtimedwait instead of sigtimedwait.

Re: Help in compiling nim on android termux

2017-04-01 Thread stisa
@amedeo : try compiling koch with `nim c -d:android koch` , if it works you can add `define:android` to `config/nim.cfg` so you won't need to define it every time you compile something.

Re: Help in compiling nim on android termux

2017-04-01 Thread amedeo
**@NastyRigger** it compiles fine now but when trying to compile koch.nim you get the same error /data/data/com.termux/files/home/Nim/nimcache/stdlib_osproc.o: In function `nospwaitForExit': /data/data/com.termux/files/home/Nim/nimcache/stdlib_osproc.c:(.text+0x45f8):

Re: Extract a substring

2017-04-01 Thread stbalbach
There is also system.substr()

Re: Help in compiling nim on android termux

2017-04-01 Thread NastyRigger
Well guessed, @stisa! The nim compiler bootstraps successfully on 32-bit now. I've updated the sed command two posts back.