3 ms·
I expect that jank will be migrating from C++ to Rust, at some point. https://github.com/jank-lang/jank https://github.com/jank-lang/jank
by Jeaye 2y ago
I expect that jank will be migrating from C++ to Rust, at some point. https://github.com/jank-lang/jank https://github.com/jank-lang/jank
- pjmlp 2y agoThey would hardly gain anything and lose access to 40 years of libraries.
- remexre 2y agoAren't they calling C++ functions via LLVM? Their implementation language shouldn't affect their ability to _generate_ code that uses the C++ ABI.
- pjmlp 2y agoIf it is a Clojure dialect, implementated on top of a compiler construction kit written in C++, generating C++, and calling into C++ libraries, what is the benefit of rewriting part of it in Rust, complicating the whole toolchain, only to write some blog post about the rewrite? If it is about additional safety, in any regard, self hosting would be the answer, not Rust.
- deleted 2y ago[deleted]
- zamalek 2y agoOne of the main goals of the project is to bring REPL workflows to C++: https://youtu.be/ncYlHfK25i0?si=rmzp5In3sv3IFlvA&t=965 https://youtu.be/ncYlHfK25i0?si=rmzp5In3sv3IFlvA&t=965
- jwhitlark 2y agoThat’s really interesting, as a long time clojurist and recent rust user. Can you expand on that, or is it too early days?
- Jeaye 2y agojank is the native Clojure dialect on LLVM, with seamless C++ interop. You get full interactive dev, REPL support, etc while having native binaries, ability to JIT compile C++ code along with your Clojure sources, ability to load arbitrary .o and .so files, etc. It'll have its first alpha release this year. It's currently written in C++, but will be migrated to Rust piece by piece, either once we find a champion to lead it or once we reach Clojure parity and I can focus on it. C++ interop will remain, but we'll benefit from Rust's memory safety and improved dev tooling. https://jank-lang.org/blog/2025-01-10-i-quit-my-job/ https://jank-lang.org/blog/2025-01-10-i-quit-my-job/