elvm
AIT
Our great sponsors
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.
elvm
-
Compilers for the Future
ELVM lacks a lot of features, but serve the purpose of simplifying the creation of new frontends.
-
Show HN: Lambda-8cc – An x86 C compiler written in untyped lambda calculus
How does it work? Is it translating the C source code of the 8cc C compiler to lambda calculus?
So like C -> ELVM IR -> lambda calculus?
https://github.com/shinh/elvm
If so, it seems like 8cc is doing most of the heavy lifting
- Portable TUI programs
-
awkcc: awk-to-C transcompiler (1988, 2011)
Interested parties should also check out awka (https://github.com/noyesno/awka) and ELVM (which can compile C into awk or sed, among various other things) (https://github.com/shinh/elvm)
-
Big list of ASCII games you can play in the terminal
Oh yeah, there's a compiler that can compile C to sed.
-
Design and Implementation of a 256-Core BrainFuck Computer [pdf]
Would be interesting to have some small C program such as info-zip compiled to bf via ELVM [1] and do a speed comparison.
https://github.com/shinh/elvm
- A Simulator of a Universal Turing Machine
-
Lisp in an “impossible” language, the most complex malbolge program to date
A C compiler that can output Malbolge (among many other esolangs) can be found at https://github.com/shinh/elvm - dunno if it has any relation to this work.
Note that the Malbolge (or rather LMAO/HeLL) backend was added back in July 2019, so I'm not so sure about their claim that "It's as of 2020 and 2021, the most advanced, usable Malbolge program ever created."
- ELVM – Similar to LLVM but Dedicated to Esoteric Languages
-
The International Obfuscated C Code Contest 2020 winners
You are looking for ELVM: https://github.com/shinh/elvm/
AIT
-
Ray Tracer in a Boot Sector
It is described in https://github.com/tromp/AIT/blob/master/fast_growing_and_co...
-
Does quantum theory imply the entire Universe is preordained?
A = λxλyλz. x z (y (λ_.z)), which is encoded as bit 0 (left branch), while bit 1 (right branch) encodes prefix application.
[1] https://github.com/tromp/AIT/blob/master/ait/allA.lam
-
Show HN: Lambda-8cc – An x86 C compiler written in untyped lambda calculus
I expect so, as the author is familiar with my tools [1] for doing these optimizations.
[1] https://github.com/tromp/AIT
-
Minimalism in Programming Language Design
Haskell is not far from being a layer of syntactic sugar on top of the lambda calculus.
For an example of a non-trivial program, see this binary lambda calculus self-interpreter: https://github.com/tromp/AIT/blob/master/uni.lam
- Lambda Calculus in 400 Bytes
- Show HN: Lisp with GC in 436 Bytes
-
A Busy Beaver champion derived from scratch
While Goodstein sequences do get really long quite fast, they're not that easy to code. This [1] binary lambda calculus program may be the shortest possible, but still takes 351 bits. Meanwhile, in a mere 215 bits, we can encode a Laver table [2] program that potentially grows so much faster than Goodstein, that it's not even provable in ZFC [3].
[1] https://github.com/tromp/AIT/blob/master/goodstein.lam
[2] https://github.com/tromp/AIT/blob/master/laver.lam
[3] https://codegolf.stackexchange.com/questions/79620/laver-tab...
What are some alternatives?
malbolge-lisp - A lightweight (350MB) Lisp interpreter in Malbolge Unshackled, often dubbed the hardest turing complete programming language.
cosmopolitan - build-once run-anywhere c library
xenocryst - A brainfuck interpreter written for memcpy(). Read the paper (or source) for more details.
lambda-calculus-devkit - A collection of lambda calculus interpreters and development tools
printbf - Brainfuck interpreter inside printf
OBNC - A Oberon-07 to C translator. Forked from http://miasap.se/obnc/
awka - Revive awka - Awk to C Compiler
LjTools - LuaJIT 2.0 bytecode parser, viewer, assembler and test VM. Lua 5.1 parser, IDE and debugger.
asmbf - The only true brainfuck-targetting assembler.
nokolisp - Lisp interpreter and compiler from 1977-1988 for MSDOS.
gocket - 💼 CLI / TUI for Pocket
blamscript - game scripting documentation for halo speedruns