Yeah preallocating + zero allocations is great for improving the performance of isolated methods, and the approach can be scaled up to a whole program, but it’s still very much a limitation. I was thinking more of Julia being used for smaller embedded programs when StaticCompiler.jl matures, not anything on the scale of video game programming where, from what I’ve read, people need allocators or an incremental GC (Unity, Unreal). There’s been discourse discussions about these things for soft real-time in general, but I don’t know of any ongoing effort to implement those. I have read about recent work on improving escape analysis, in part to reduce garbage (remember, mutable/immutable is not synonymous with heap/stack); EDIT: This comment does a better job summarizing than I ever could.
Benny
23
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Bring Julia code to embedded hardware (ARM) | 92 | 22634 | June 14, 2023 | |
| Successful Static Compilation of Julia Code for use in Production | 9 | 10423 | June 10, 2022 | |
| Now that Julia w/o LLVM is a thing, how long before I can run Julia on RPi Pico? | 11 | 2081 | September 28, 2022 | |
| Julia for real time, worried about the garbage collector | 48 | 9445 | March 21, 2021 | |
| Compiling and building binaries from your julia code | 49 | 24575 | February 16, 2018 |