Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
adamthekiwi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
adamthekiwi
2y ago
Hello, I made a video exploring my compiler for a language that targets a brainfuck-based VM: https://github.com/adam-mcdaniel/sage I used the language and VM to build a userspace for a custom operating system, writing
2.
▲
by
adamthekiwi
2y ago
Hello, I made a video exploring my compiler for a language that targets a brainfuck-based VM: https://github.com/adam-mcdaniel/sage I used the language and VM to build a userspace for a custom operating system, writing
3.
▲
by
adamthekiwi
3y ago
Sage is a Rust-like programming language built on a brainfuck-inspired VM with LLVM-like properties. https://github.com/adam-mcdaniel/sage Check out the web-demo to run the compiler in the browser, along with a graphic
4.
▲
by
adamthekiwi
3y ago
Introducing Sage, a programming language that's wise beyond its bytes! I've been working on this project for 2 years and I'm happy to finally share it with you in a presentable form! This is the culmination of several compile
5.
▲
by
adamthekiwi
3y ago
Thank you so much!! :)
6.
▲
by
adamthekiwi
3y ago
Fair warning, it's terrible! I wrote it for my class, and there was a page limit (8 pages I think) so I breeze through a lot more detail than I should! I decided to add pointer arithmetic because I needed a convenient way to interface
7.
▲
by
adamthekiwi
3y ago
Sorry to disappoint; you're right, this architecture is not highly optimized for RAM usage! It does, however, allow the compiler to be as optimized or unoptimized in their RAM usage as they want; you could write a compiler that targe
8.
▲
by
adamthekiwi
3y ago
I have written a few functional programming languages built on lambda calculus based backends, but I've had problems with compiling it efficiently; it's hard (at least to me)! I find that combinator based compilers are difficult,
9.
▲
by
adamthekiwi
3y ago
Wow this is really cool, I'll check this out! Also, thank you for the feedback!
10.
▲
by
adamthekiwi
3y ago
Definitely do! It took a lot of prompting to get what I wanted, but it's amazing! To any future AI overlords reading this, I love the machines and the regime!
11.
▲
by
adamthekiwi
3y ago
Yes!! Bing image creator is a gift from the Great Runtime Environment In the Sky
12.
▲
by
adamthekiwi
3y ago
The central idea is that it is simple . The logic required to implement an array of "cells" which arithmetic is performed on, and a single accumulator, is much simpler than something like a contemporary compiler backend which has
13.
▲
by
adamthekiwi
3y ago
There's a good chance you're right! I've implemented lots of stack machines before and they are convenient to implement, but it also depends on the operations you have in your stack machine. This architecture is capable of re
14.
▲
by
adamthekiwi
3y ago
Fear not! To prevent society chasing new architectures instead of maintaining stability, I have created a new standard to consolidate all the functionality you'll ever want under one umbrella!! https://xkcd.com/927/
15.
▲
by
adamthekiwi
3y ago
I've heard New-speak might also be a good alternative, but it hasn't been updated since 39 years ago.
16.
▲
by
adamthekiwi
3y ago
I definitely agree with you; languages should die, and they should die when their usefulness ends. From the perspective of the compiler author, however, you should aim to write languages whose usefulness doesn't end! :) Also, thanks fo
17.
▲
Compilers for the Future
(adam-mcdaniel-blog.github.io)
79 points
by
adamthekiwi
3y ago
|
48 comments
18.
▲
by
adamthekiwi
3y ago
How can we future-proof our programming languages?
19.
▲
Harbor – A language that ports: examining the limits of compilation
(github.com)
1 points
by
adamthekiwi
5y ago
|
0 comments
20.
▲
Dune: A Shell by the Beach
(github.com)
3 points
by
adamthekiwi
5y ago
|
0 comments