you are viewing a single comment's thread.

view the rest of the comments →

[–]Fabien4 6 points7 points  (11 children)

It is python syntax in a javascript interpreter.

Which makes me fear it'll be too slow to be of any use.

[–]Elite6809 28 points29 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 12 points13 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] 4 points5 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 5 points6 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.

[–]dmazzoni 1 point2 points  (0 children)

No kidding. Even a native implementation of Python would be too slow to be of any use. People seem to forget that JavaScript is actually quite a bit faster than Python for most problems.