Re: Is nimsuggest expected to work with latest devel?

2016-08-08 Thread Stefan_Salewski
Sorry Araq, IRC just banned my IP again, so I can not answer there... No, I don't used -d:release explicitely. But nimble install should have done that I guess? Will try now with -d:release without nimble.

Re: questions about nim capabilities

2016-08-08 Thread yglukhov
> How much hassle to target both OpenGL on desktop and WebGL? Can nim help > target both in any way or is going through WebGL going to negate all > advantages of being able to target both C and JS? That is exactly what [nimx](https://github.com/yglukhov/nimx) does. There's a tiny porting layer

Re: How to obtain parameters and their types of akProc?

2016-08-08 Thread IronHawk
Good, thank you! I'll try macros. But is it possible (in principle) to call the _testProc_ using its name and "parameter description"? I want to implement a procedure _callProc_ looking like: callProc("testProc", encodedParams)

Re: Is nimsuggest expected to work with latest devel?

2016-08-08 Thread Stefan_Salewski
I have just tried some of the pure modules shipped with Nim like strutils -- and for these all seems to work fine. So it must be wrapper related, maybe special for my GTK related modules. Will try to find more info...

Re: Cross-import error or am I doing it wrong?

2016-08-08 Thread jangko
currently Nim does not support circular import

Re: How to obtain parameters and their types of akProc?

2016-08-08 Thread jangko
try this: import macros ... # your code here macro test(n: typed): untyped = let x = getImpl(n.symbol) echo x.treeRepr ... # do whatever you like with the x test(testProc)

Re: Getting

2016-08-08 Thread sky_khan
wow i guess advertisers getting more sneaky day by day

Re: Getting

2016-08-08 Thread kinjo
found the fix [http://www.deskdecode.com/driver-power-state-failure](http://forum.nim-lang.org///www.deskdecode.com/driver-power-state-failure)/

Is nimsuggest expected to work with latest devel?

2016-08-08 Thread Stefan_Salewski
Just installed latest devel from git to check my editor [https://github.com/ngtk3/NEd/blob/master/nim.cfg](https://github.com/ngtk3/NEd/blob/master/nim.cfg) Added cat nim.cfg path:"$projectdir" to my project directory. Compiles fine, but launching the program consumes more

Re: BountySource Update #4: The Road to v1.0

2016-08-08 Thread bpr
I'm very much looking forward to a Nim 1.0. Whatever you think about the rationality of prospective users, 1.0 is a signal for many people that it is ready to try _for real_. I'm also very happy that **concepts** have been receiving a lot of love lately. I'm more optimistic that they won't

Re: questions about nim capabilities

2016-08-08 Thread Krux02
If you want to hear my personal thoughts on the JavaScript backend, I hope that [WebAssembly](https://webassembly.github.io) will make the need for a JavaScript backend completely irreleval at some point in time in the future, but I do not know when that will be the case. But that's more a hope

Re: questions about nim capabilities

2016-08-08 Thread Demos
I don't see a problem with compiling an OGL app to javascript. Games are soft real time, it's not like a GC hitch will kill someone. So that really depends on the complexity of your game. For the database thing I managed to cook up a primitive ORMish thing in a weekend (it works kinda like

Re: trying to find a language very like nim

2016-08-08 Thread LeuGim
Interesting, it has `slurp` with the same meaning, as in Nim.

Cross-import error or am I doing it wrong?

2016-08-08 Thread Vladar
**foo.nim** import bar type Foo* = ref FooObj FooObj* = object of RootObj b: Bar **bar.nim** import foo type Bar* = ref BarObj BarObj* = object of RootObj proc foo*(s: Bar, p: Foo) = discard

questions about nim capabilities

2016-08-08 Thread bkerin
I'm considering nim for a new project. I'm interested largely because of compile to C or JavaScript. It's an OpenGL app really. Some questions: * How much hassle to target both OpenGL on desktop and WebGL? Can nim help target both in any way or is going through WebGL going to negate all

Re: TaintedString.parseInt problem

2016-08-08 Thread OderWat
Here another `hexdump()`: import strutils proc hexDump*(s: string | cstring, cols: int = 16, offs: int = 2): string = result = newStringOfCap(s.len * 3 - 1 + (s.len div cols + 1) * (offs + 2)) var newLine = true for idx, c in s: if idx > 0: