Re: Option type optimizations

2017-07-31 Thread LeuGim
Seems you can shorten `T is seq or T is string or T is ptr or T is ref` to `T is PointerType` everywhere.

Option type optimizations

2017-07-31 Thread Krux02
I implemented two optimizations for the `Option` type. The idea was to do the same as the Rust compiler, use the nil/nullptr for the none option without occupying extra memory. Then I had a similar idea for `Option[Natural]`, where I could use `-1` internally to store none. That type could be

Re: Gdb pretty printers for nim

2017-07-31 Thread Krux02
well, I once did an approach to this, feel free to use it. This macro embeds the gdb python script into the executable, when it is build on Linux. Alternatively you can also load the script from gdb, but once this works there is no hassle involved anymore.

Re: Gdb pretty printers for nim

2017-07-31 Thread def
There seems to be a bug, but I'm not sure about the intended usage: [https://github.com/nim-lang/Nim/issues/1592](https://github.com/nim-lang/Nim/issues/1592)

Re: Gdb pretty printers for nim

2017-07-31 Thread cdome
I noticed nim compiler has --genMapping option that generates ndi files with useful mapping. Unfortunately, compilation itself fails when --genMapping is enabled.

Re: thounghs about Nim language in godot

2017-07-31 Thread Tiberium
You can now use Godot-Nim with master branch of Godot (so newest version)