Nim is a compiled, garbage-collected systems programming language which has an excellent productivity/performance ratio. Nim's design focuses on efficiency, expressiveness, elegance (in the order of priority).
[GC] occupied memory: 704745664
isnt that cleaned before increasing size?
dumpAstGen
is great, but i still have trouble connecting everything into a coherent macro
quote do
here and there, but haven't used/understood it yet
a
is IntLit
- don't know how to pass that to a proc which creates an instance of Shape
, there is no IntLit
type!?
quote do
, something like what you did there and a lot of hardcoded things (:P), you can do something like this: http://ix.io/1mps/nim
quote do
is something i really need to start using :)
dumpAstGen
, i now have a new best friend!
NimNode
. e.g. refactoring the above to: http://ix.io/1mpu/nim