Jun 2025 (v0.8.6)
Mochi v0.8.6 brings the first five LeetCode examples to every experimental compiler. New language features and runners make these programs compile and run across the entire project.
Compilers
- Added string slicing and concatenation in C, C++, Fortran, F#, Lua and more
- Float and cast support for Scheme, Clojure, F#, Fortran and others
- New runners for Kotlin, Swift, Dart, Racket and Erlang
- Pascal, OCaml, Ruby, Java, Scala and Zig outputs for LeetCode 1–5
- Updated C#, PHP and Smalltalk solutions
Tooling
leetcode-runnerverifies toolchain availability before execution- SWI-Prolog path can be configured when running examples
Tests
- Generated and updated golden outputs for LeetCode problems 1–5 across all languages
Fixes
- Corrected F# string indexing, Java underscore handling and COBOL generation
- Resolved Clojure string concatenation, Erlang branch formatting and other compiler issues