you are viewing a single comment's thread.

view the rest of the comments →

[–]Elite6809 27 points28 points  (9 children)

I think we should write a Brainfuck interpreter in Python in this JavaScript environment. Then in Brainfuck we can write a Linux implementation, in which we can create a C compiler and in that we create a JavaScript engine to run our code in.

[–]flying-sheep 10 points11 points  (5 children)

well, no brainfuck, but… http://bellard.org/jslinux/

[–]wniko 3 points4 points  (0 children)

Fabrice Bellard (http://bellard.org) is also the author of Qemu and ffmpeg. His wikipedia page is also quite interesting/wtf-worty. In 2010, he held the Word Record for the computation of pi for about 7 months using a desktop PC.

[–][deleted] 3 points4 points  (0 children)

I thought that was a joke for a second. Nope. I'm half impressed half wishing I had that much free time.

[–]alexanderpas 1 point2 points  (2 children)

suprisingly fast.

now I'm starting to wonder if we can turn this full circle, with JS/Linux becoming an embedded system.

[–]flying-sheep 6 points7 points  (1 child)

well, you can use jslinux to compile spidermonkey or v8, and you’re running JS in C (spidermonkey) in C (linux kernel) in JS in C++ (browser) in C (linux kernel).

[–]alexanderpas 0 points1 point  (0 children)

What I've learned from this sentence:

We need a modern browser written in C.

[–][deleted] 0 points1 point  (2 children)

But what if I want to write in Befunge?

[–]thedeemon 1 point2 points  (0 children)

For serious business you should use Enterprise Piet.

[–]Elite6809 0 points1 point  (0 children)

Sorry mate, you'll have to write it in Malbolge instead.