Re:Lua 5.3: integers, bitwise operators, and a basic UTF-8 l...
by SloopJon on Monday January 12, 2015 @03:02PM
(#8876074)
I'd love to be proven wrong, but all Lua lets you do is typedef to another built-in type. Swapping in something like Python's long type would not be a simple matter.
[ Parent
| on HN ]
Re:Lua 5.3: integers, bitwise operators, and a basic UTF-8 l...
by dottrap on Monday January 12, 2015 @03:44PM
(#8876303)
I think you would probably want to do it as a userdata and not as a language mod.
Roberto addressed the idea of a infinite number type, but it has a lot of downsides which are very un-Lua like, i.e. complicated, slow (no real hardware), and interoperability problems with the C API (which is very important to Lua).
video: https://www.youtube.com/watch?v=bjqNK1jA77M slides: http://www.inf.puc-rio.br/~roberto/talks/ws2014.pdf
Re:Lua 5.3: integers, bitwise operators, and a basic UTF-8 l...
by justincormack on Monday January 12, 2015 @05:01PM
(#8876710)
Ah yes the C interface would be a problem.