3 ms·
Cool, I wanted to use Clojure on the Raspberry Pi, but the startup time is very slow, due more to loading the core Clojure libraries than the JVM. It makes wri
by BFay 11y ago
Cool, I wanted to use Clojure on the Raspberry Pi, but the startup time is very slow, due more to loading the core Clojure libraries than the JVM.
It makes writing a Clojure web server really impractical on the Pi. I considered using clojurescript for the server, but ended up just going back to node for my project.
- lgas 11y agoOut of curiosity, why did startup time matter for a webserver? Webservers seem to be the canonical example of long running processes where startup time doesn't matter. Also, why not clourescript on node? Seems like the best of both worlds.
- smrq 11y agoLet's say you have a widget that you want to control via a web interface. A Pi is an easy way to interface between the web and lower level hardware (via GPIO). Startup time is the time from when you plug in power for your widget until you can control your widget from the web.
- evilduck 11y agoI wouldn't get too excited just yet. Just built this on my RPi2 without JIT and ran the hello world file in the example folder: ./examples/hello-world.pxi 24.33s user 0.40s system 99% cpu 24.797 total
- _halgari 11y agoThere's something pretty wrong with that example. Times from my RPi2: time ./pixie-vm ./examples/hello-world.pxi Hello, World! real 0m1.167s user 0m1.160s sys 0m0.000s