3 ms·
LLVM supports arbitrarily sized integer types, but sadly it's not exposed in Rust. The only language I've seen where this is possible is Julia (which uses LLVM
by the_duke 10y ago
LLVM supports arbitrarily sized integer types, but sadly it's not exposed in Rust.
The only language I've seen where this is possible is Julia (which uses LLVM too).
- youjiuzhifeng 10y agoHowever, Julia is a dynamic language and Rust is a static one.
- SolarNet 10y agoI find your usage of the word static ambiguous. Also Julia is more static than you might expect, and besides it's still a compiled language, it just has a `dynamic` type (ala C# for example) as it's default type. It seems dynamic - like most lisps do - because it supports recompiling a function in a running session (however it doesn't change already compiled code, so not that dynamic).
- m0th87 10y agoYeah, Julia and lisps demand more nuance than static or dynamic labels. This goes into the details for Julia: http://stackoverflow.com/a/28096079 http://stackoverflow.com/a/28096079 Compilation strategy and code hotswapping are independent of static vs dynamic types. Java is statically typed, however its implementations support interpreted execution and code hotswapping.
- StreamBright 10y agoAs of? Would you mind elaborating?
- isoos 10y agoDart (the VM version, not the dart2js output) has arbitrarily sized integer types (`int`), as well as fixed-length ones if you need better maths support (SIMD with vector and matrix calculations).
- Gankro 10y agoSwift uses them in the standard library to do cute things like a space efficient `Int63?`, but doesn't currently expose them as a general user facility.
- shshhdhs 10y agoIs there an upper maximum threshold?