正在加载视频...

视频加载失败

Around the time will depue started working on their Figma computer, I also embarked on a journey to create mine... although now I can't claim to be the first. ~3kb program memory, ~1kb ram, 18 instructions, and a Figma plugin to help compile small C programs using ELVM.

217,654 次观看 • 3 年前 •via X (Twitter)

10 条评论

Willy Wu 的头像
Willy Wu3 年前

Yes, you read that right; it runs C! That said, with compiled code it's slower than a snail - prohibitively so - that a simple "Hello World" takes about 30 minutes to run and fills up almost the entire program memory. It's also not optimized at all, but hey, proof of concept.

Willy Wu 的头像
Willy Wu3 年前

It also features a console for output with a 10 line history, as well as a keyboard input that feeds in one character at a time. Maybe I'll make some more examples to show these features, but written directly in machine code, which should be significantly faster.

Willy Wu 的头像
Willy Wu3 年前

OK! I hand-rolled some assembly to enter your name, store it as an array, and print it back out. It's real-time, but still slow... Here's a link to the file:

Willy Wu 的头像
Willy Wu3 年前

Also, for the more technically inclined, I'm also releasing the code behind the compiler plugin with extensive docs about the architecture and instruction set, if you're interested. Take a look!

will depue 的头像
will depue3 年前

@figma yoooooo this insane

Rasmus Andersson 的头像
Rasmus Andersson3 年前

@willdepue @figma Amazing!

Andrew Zheng 的头像
Andrew Zheng3 年前

@willdepue @figma Quality over speed

Sujānt 的头像
Sujānt3 年前

@willdepue @figma i'm feeling dumb; i take it as positively productive, reminder to learn more & more....

Даниил @grawl@mastodon.social 的头像
Даниил @[email protected]3 年前

@willdepue @figma Its like redstone coding.

Oskar 的头像
Oskar3 年前

@willdepue @figma This is so silly and great at the same time.

相关视频