# SubsetJuliaVM: A Julia Subset Execution Environment for iOS and Web

**URL:** <https://discourse.julialang.org/t/subsetjuliavm-a-julia-subset-execution-environment-for-ios-and-web/134814>\
**Category:** Tooling\
**Tags:** developer-tools, rust\
**Created:** [December 31, 2025, 6:18am UTC](https://discourse.julialang.org/t/subsetjuliavm-a-julia-subset-execution-environment-for-ios-and-web/134814 "2025-12-31T06:18:49Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![ConnectedSystems](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/connectedsystems/32/16815_2.png) [@ConnectedSystems](https://discourse.julialang.org/u/ConnectedSystems)\
**Post date:** [March 14, 2026, 4:42am UTC](https://discourse.julialang.org/t/subsetjuliavm-a-julia-subset-execution-environment-for-ios-and-web/134814/21 "2026-03-14T04:42:46Z")

</div>

@terasakisatoshi  
Is it possible to wrap and release `sjulia` and `juliar` as Julia [apps](https://pkgdocs.julialang.org/v1/apps/)?

---

<div class="post-metadata">

**Author:** ![terasakisatoshi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/terasakisatoshi/32/9187_2.png) [@terasakisatoshi](https://discourse.julialang.org/u/terasakisatoshi)\
**Post date:** [March 14, 2026, 5:40am UTC](https://discourse.julialang.org/t/subsetjuliavm-a-julia-subset-execution-environment-for-ios-and-web/134814/22 "2026-03-14T05:40:58Z")

</div>

You mean `cargo install --path subset_julia_vm --features repl` ?

 ![image](https://global.discourse-cdn.com/julialang/original/3X/9/4/943a087fabe9a44a1624d86c0370cb55861d5efe.png)

---

<div class="post-metadata">

**Author:** ![ConnectedSystems](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/connectedsystems/32/16815_2.png) [@ConnectedSystems](https://discourse.julialang.org/u/ConnectedSystems)\
**Post date:** [March 14, 2026, 5:49am UTC](https://discourse.julialang.org/t/subsetjuliavm-a-julia-subset-execution-environment-for-ios-and-web/134814/23 "2026-03-14T05:49:42Z")

</div>

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:

```julia-repl
pkg> app add sjulia

```

---

<div class="post-metadata">

**Author:** ![ConnectedSystems](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/connectedsystems/32/16815_2.png) [@ConnectedSystems](https://discourse.julialang.org/u/ConnectedSystems)\
**Post date:** [March 14, 2026, 2:01pm UTC](https://discourse.julialang.org/t/subsetjuliavm-a-julia-subset-execution-environment-for-ios-and-web/134814/24 "2026-03-14T14:01:29Z")

</div>

Trying out the AOT compiler:

```julia-auto
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 to `test()`

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.

---

<div class="post-metadata">

**Author:** ![terasakisatoshi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/terasakisatoshi/32/9187_2.png) [@terasakisatoshi](https://discourse.julialang.org/u/terasakisatoshi)\
**Post date:** [June 30, 2026, 4:08pm UTC](https://discourse.julialang.org/t/subsetjuliavm-a-julia-subset-execution-environment-for-ios-and-web/134814/25 "2026-06-30T16:08:20Z")

</div>

I’ve released v0.9.5 [GitHub - AtelierArith/julia-vm-oss: Let's run Julia everywhere from mobile to web. · GitHub](https://github.com/AtelierArith/julia-vm-oss)

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.

---

<div class="post-metadata">

**Author:** ![ConnectedSystems](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/connectedsystems/32/16815_2.png) [@ConnectedSystems](https://discourse.julialang.org/u/ConnectedSystems)\
**Post date:** [July 17, 2026, 12:10pm UTC](https://discourse.julialang.org/t/subsetjuliavm-a-julia-subset-execution-environment-for-ios-and-web/134814/26 "2026-07-17T12:10:43Z")

</div>

It’s been a while so I forgot how to use it.

But I don’t think it expects Windows:

```julia-auto
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
```

---

<div class="post-metadata">

**Author:** ![ConnectedSystems](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/connectedsystems/32/16815_2.png) [@ConnectedSystems](https://discourse.julialang.org/u/ConnectedSystems)\
**Post date:** [July 17, 2026, 12:57pm UTC](https://discourse.julialang.org/t/subsetjuliavm-a-julia-subset-execution-environment-for-ios-and-web/134814/27 "2026-07-17T12:57:37Z")

</div>

`sjulia` has this issue - not sure if it’s a configuration issue on my end:

```julia
julia> 1 + 1                                                                      
ERROR: Load error: module 'InteractiveUtils' not found in LOAD_PATH

```

---

<div class="post-metadata">

**Author:** ![terasakisatoshi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/terasakisatoshi/32/9187_2.png) [@terasakisatoshi](https://discourse.julialang.org/u/terasakisatoshi)\
**Post date:** [July 19, 2026, 11:59pm UTC](https://discourse.julialang.org/t/subsetjuliavm-a-julia-subset-execution-environment-for-ios-and-web/134814/28 "2026-07-19T23:59:59Z")

</div>

That’s wired let me investigate the issue including Windows one.

---

<div class="post-metadata">

**Author:** ![terasakisatoshi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/terasakisatoshi/32/9187_2.png) [@terasakisatoshi](https://discourse.julialang.org/u/terasakisatoshi)\
**Post date:** [July 20, 2026, 8:20am UTC](https://discourse.julialang.org/t/subsetjuliavm-a-julia-subset-execution-environment-for-ios-and-web/134814/29 "2026-07-20T08:20:39Z")

</div>

I could reproduce the error you reported. Thank you. This is going to take a long time.

---

<div class="post-metadata">

**Author:** ![terasakisatoshi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/terasakisatoshi/32/9187_2.png) [@terasakisatoshi](https://discourse.julialang.org/u/terasakisatoshi)\
**Post date:** [July 20, 2026, 1:50pm UTC](https://discourse.julialang.org/t/subsetjuliavm-a-julia-subset-execution-environment-for-ios-and-web/134814/30 "2026-07-20T13:50:18Z")

</div>

Maybe solved.

[Previous page](https://discourse.julialang.org/t/subsetjuliavm-a-julia-subset-execution-environment-for-ios-and-web/134814.md?page=1)
