This is the most spectacular waste of time I have ever seen. I absolutely love it!
Not to mention printing resources. I already had to pause to refill the black toner cartridge twice and reloaded the paper tray countless times, and the end is nowhere near. I was deceived by a glimmer of false hope: a page full of ). Alas, I then glanced at the page number---far short of the 18000+ goal.
Show HN: Lambda-8cc – An x86 C compiler written in untyped lambda calculus
11–20 of 35 posts
Re: Show HN: Lambda-8cc – An x86 C compiler written in untyped lambda calculus
#12Re: Show HN: Lambda-8cc – An x86 C compiler written in untyped lambda calculus
#13Re: Show HN: Lambda-8cc – An x86 C compiler written in untyped lambda calculus
#14Absolutely impressive project !
Re: Show HN: Lambda-8cc – An x86 C compiler written in untyped lambda calculus
#15This is the most spectacular waste of time I have ever seen. I absolutely love it!
Re: Show HN: Lambda-8cc – An x86 C compiler written in untyped lambda calculus
#16Re: Show HN: Lambda-8cc – An x86 C compiler written in untyped lambda calculus
#17Re: Show HN: Lambda-8cc – An x86 C compiler written in untyped lambda calculus
#18This is the most spectacular waste of time I have ever seen. I absolutely love it!
Not necessarily, this actually sounds like a great bootstrapping tool. All you need to write on a new platform is a BLC interpreter, which should be easier to implement. Using the C->BCL translation, you might be able to build something like TinyCC and work up from there.
Re: Show HN: Lambda-8cc – An x86 C compiler written in untyped lambda calculus
#19Is the 18506 pages long lambda term the normal form? I wonder how much that can be minimized by not beta reducing everything.
λ 1 ((λ 1 1) (λ λ λ λ 2 (4 4) (λ 1 4 2))) (λ λ 1)
which similarly has no normal form.Re: Show HN: Lambda-8cc – An x86 C compiler written in untyped lambda calculus
#20All the lambda terms on that page were manually optimized for minimum blc size. This C compiler term on the other hand was produced by several layers of translation, making it rather large. I suspect that a handwritten version could be written in a thousand pages of lambdas...
Btw, while it makes a nice stress test for LaTeX, I find it a bit odd that "pages of PDF" is the preferred way to express the size of the lambda binary:-)
Looking forward to seeing the binary lambda calculus back-end added to ELVM.