@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.
I’ve released v0.9.5 GitHub - AtelierArith/julia-vm-oss: Let's run Julia everywhere from mobile to web. · GitHub
Compared to the old sjulia, it can probably do a lot more now, and I think it runs much faster too. If you get a chance, I’d love for you to give it a try.
It’s been a while so I forgot how to use it.
But I don’t think it expects Windows:
PS C:\projects\julia-vm-oss> ./target/release/juliars.exe --minimal-prelude examples/dummy_timing.jl --emit-binary target/dummy
error: missing escaped value, expected `b`, `e`, `f`, `n`, `r`, `\`, `"`, `x`, `u`, `U`
--> ..\..\Users\...\AppData\Local\Temp\sjulia-aot-link-8204-1784290168305\Cargo.toml:7:40
|
7 | subset_julia_vm_runtime = { path = "C:\projects\julia-vm-oss\subset_julia_...
| ^
Error building binary 'target/dummy': cargo build failed with status exit code: 101
sjulia has this issue - not sure if it’s a configuration issue on my end:
julia> 1 + 1
ERROR: Load error: module 'InteractiveUtils' not found in LOAD_PATH
That’s wired let me investigate the issue including Windows one.
I could reproduce the error you reported. Thank you. This is going to take a long time.
Maybe solved.
