This repository contains a collection of documents about how to change/refactor the Nim compiler in order to make it faster, easier to maintain and have fewer bugs by a superior architecture and design. However, no every idea here will work out.
this was discussed in forum recently (EDIT: not sure how to find it D20200425T182934; EDIT: https://irclogs.nim-lang.org/02-04-2020.html#12:45:32); the idea is to make the parser emit litterals (eg 123, 123'u8, 23.4, -34 etc) as strings instead of doing the parsing there; and the parsing would be deferred to semcheck phase
repr (and runnableExamples rendering etc) would preserve original source code formatting (refs https://github.com/nim-lang/Nim/issues/8871); it'd also make it easier for nimpretty and nim doc
literals-as-strings
this was discussed in forum recently (EDIT: not sure how to find it D20200425T182934; EDIT: https://irclogs.nim-lang.org/02-04-2020.html#12:45:32); the idea is to make the parser emit litterals (eg 123, 123'u8, 23.4, -34 etc) as strings instead of doing the parsing there; and the parsing would be deferred to semcheck phase
benefits
repr
(and runnableExamples rendering etc) would preserve original source code formatting (refs https://github.com/nim-lang/Nim/issues/8871); it'd also make it easier fornimpretty
andnim doc
alternatives considered
tkBigNum
proposed here https://irclogs.nim-lang.org/02-04-2020.html#12:45:32 is less useful, doesn't help with other things, eg keeping source code representation, or floating point litteralslinks
D20200425T180920
info
more discussion
(around https://irclogs.nim-lang.org/02-04-2020.html#12:31:25)
open questions