lean4-raytracer
lean4-mode
lean4-raytracer | lean4-mode | |
---|---|---|
2 | 2 | |
113 | 54 | |
- | - | |
3.5 | 6.1 | |
6 months ago | 5 days ago | |
Lean | Emacs Lisp | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
lean4-raytracer
-
Functional Programming in Lean – a book on using Lean 4 to write programs
Lean is currently moving to the 4th iteration which is the first intended to be a general-purpose programming language. It "is currently being released as milestone releases towards a first stable release". For now the main goal is to port mathlib to the new version, and then they will concentrate on the compiler. So it is not production ready. But that doesn't mean it is not suitable for building any programs now. There is a simple raytracer written in Lean [1]. I have built a chip8 interpreter with it and the only problem was the lack of an ecosystem, meaning I had to build the necessary libraries myself.
Now it has a RC GC and boxes everything >= 64 bits, and as the compiler isn't polished it is probably significantly slower. In the referenced raytracer repo you can find rendering time compared to the C implementation (Lean is 25x slower, but that was a year ago).
[1] https://github.com/kmill/lean4-raytracer
- A simple ray tracer in Lean 4
lean4-mode
- Lean 4.0.0, first official lean4 release
-
Replacing strings with Unicode symbols.
There is also an input method for lean4-mode. It is based on a table for VSCode extension, so I think it offers a decent set of symbols.
What are some alternatives?
tinyraytracer - A brief computer graphics / rendering course
lean4-metaprogramming-book
mathlib4 - The math library of Lean 4
cape - 🦸cape.el - Completion At Point Extensions
lean-mode - Emacs mode for Lean
lean4 - Lean 4 programming language and theorem prover
logical_verification_2023 - Hitchhiker's Guide to Logical Verification (2023 Edition)
WickedEngine - 3D engine with modern graphics
mathlib - Lean 3's obsolete mathematical components library: please use mathlib4
prettify-utils.el - Helper functions for emacs' prettify-symbols-mode