Nim Source Magic

2020-10-15 Thread snej
One of my favorite metaphors :) But it's not really a ground floor, it's more like the turtles are standing on dinosaurs (C code), which are standing on trilobites (assembly code)...

Nim Source Magic

2020-10-14 Thread Araq
I don't see how that would help. But then I don't see why compiler builtins are confusing either. It's not turtles all the way down, there is a ground floor.

Nim Source Magic

2020-10-13 Thread timothee
magic symbols are implemented in the compiler, the `show source` is actually correctly pointing to the declaration in it's not 100% clear how to improve this further to make docgen more useful for people exploring compiler code. M

Nim Source Magic

2020-10-13 Thread sflennik
When reading the source by clicking the Source button I often find the source hidden by "magic". For example looking at setLen in the system module this is the source shown: proc setLen*(s: var string, newlen: Natural) {. magic: "SetLengthStr", noSideEffect.} Ru