jank-lang / jank

The native Clojure dialect hosted on LLVM
https://jank-lang.org
Mozilla Public License 2.0
1.7k stars 50 forks source link

REPL on WSL takes a solid minute to startup #104

Closed ValorZard closed 1 month ago

ValorZard commented 1 month ago

these are my specs, for context image

jeaye commented 1 month ago

Hey! More importantly, jank's REPL does start on WSL. That's cool. I think you're the first to get it running there.

On my Linux machine, that it takes 12 seconds to start. It's taking a long time because it's JIT compiling around 80k lines of C++ code, for clojure.core. If you're working on #85 and want a faster startup time, you can comment out this line: https://github.com/jank-lang/jank/blob/main/compiler%2Bruntime/src/cpp/main.cpp#L117

I'm working on this general problem right now, as part of #100, so I'll close this ticket as a dupe of that. Once we're generating LLVM IR and loading that up, startup performance will be significantly better. Turns out JIT compiling 80k lines of C++ is very slow. :joy: