@terasakisatoshi
Is it possible to wrap and release sjulia and juliar as Julia apps?
Kind of.
I think it is possible to register it as a Julia package/app so we don’t need to install and compile it via Rust.
EDIT:
Like:
pkg> app add sjulia
Trying out the AOT compiler:
Started
Seconds: 0.0113956
Seconds: 0.0104676
Seconds: 0.0107305
Seconds: 0.0108547
Seconds: 0.0104194
Seconds: 0.011186
Finished
This is a tad faster than vectorized Python and R but still slower than Julia.
@terasakisatoshi note that my example script did not transpile to Rust correctly so I had to manually edit the emitted output.rs file.
Main issues with the code:
- It ignored the time macro (perhaps this on purpose?) so I added equivalent code manually
- It emitted an empty
pub fn main()so I had to manually add loops and calls totest()
Also, should rand be added to cargo.toml? I added --extern rand to the build command as a workaround to get random numbers working.
But aside from these issues, pretty amazing to see things working.
