3 ms·
That sort of stuff is easy to do with Truffle (which, ironically, lets you define a language using what they call the "truffle dsl"). The SimpleLanguage tutori
by mike_hearn 3y ago
That sort of stuff is easy to do with Truffle (which, ironically, lets you define a language using what they call the "truffle dsl").
The SimpleLanguage tutorial language has a bigint style number scheme with efficient optimization:
https://github.com/graalvm/simplelanguage/blob/master/language/src/main/java/com/oracle/truffle/sl/nodes/expression/SLAddNode.java#L64 https://github.com/graalvm/simplelanguage/blob/master/langua...