Live data from Hacker News

Try Python, Ruby, Lua, Scheme, QBasic, Forth ...

repl.it

51–60 of 81 posts

Re: Try Python, Ruby, Lua, Scheme, QBasic, Forth ...

#51
post #47

Oops: > import subprocess Traceback (most recent call last): File " ", line 1, in File "/lib/python2.7/subprocess.py", line 429, in import select ImportError: No module named select Also: > os.name => 'posix' > os.uname() => ('Emscripten', 'emscripten', '1.0', '#1', 'x86-JS') > os.environ => {'LANG': 'en_US.UTF-8', 'PYTHONHOME': '/:/', 'PWD': '/', 'USER': 'root', 'HOME': '/', 'PATH': '/', '_': './this.program'} > os.…

Thanks for trying it out.

* The ^W is fixable, but I'm not sure how I personally feel about hijacking fundamental browser shortcuts. We'll look into it though.

* Regarding the environment, in general, multi-threading and multi-processing (and anything that depends on them) are not supported, since Emscripten translates the code to JS rather than emulating a machine.

* The Emscripten virtual filesystem has a simple single-user permission model and the libc functions for accessing/modifying the permissions are supported. So technically you could get the permissions through os.access. Not as convenient as ls, of course, but doable.

Re: Try Python, Ruby, Lua, Scheme, QBasic, Forth ...

#52
post #49

What is Javascript.next?

Traceur ( http://code.google.com/p/traceur-compiler/ ): Its basically JavaScript with proposed language features for ECMAScript Harmony ( http://wiki.ecmascript.org/doku.php?id=harmony:proposals ).

To add to this, each language has an about link and an engine link (shown at the bottom when you select a language). These will take you to a page describing the language and the interpreter we're using, respectively.

Re: Try Python, Ruby, Lua, Scheme, QBasic, Forth ...

#53
post #48

I wonder whether Haskell is on their todo list. GHC's LLVM backend [1] might be helpful. [1] http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler...

I've spoken a little about the reason we couldn't use GHC among other things, at https://github.com/replit/repl.it/issues/43 . In short, we need an interpreter rather than a compiler or a JIT, and we need the interpreter itself to run in the browser.

Thanks for a quick reply. So having GHCi - the GHC's REPL - successfully emscripted could make adding Haskell support possible, right?

Re: Try Python, Ruby, Lua, Scheme, QBasic, Forth ...

#55
post #48

Earlier quoted context omitted.

I've spoken a little about the reason we couldn't use GHC among other things, at https://github.com/replit/repl.it/issues/43 . In short, we need an interpreter rather than a compiler or a JIT, and we need the interpreter itself to run in the browser.

Thanks for a quick reply. So having GHCi - the GHC's REPL - successfully emscripted could make adding Haskell support possible, right?

If it uses a JIT internally, it will produce x86 machine code, which is meaningless to us since we aren't emulating the whole machine. If it doesn't, then emscripting it should work.

Re: Try Python, Ruby, Lua, Scheme, QBasic, Forth ...

#56
post #3
post #2

amasad: After a 5 minute play my first impressions are 'awesome!'. Some feedback: I selected QBasic then changed my mind but couldn't immediately figure out how to get back to the list of the languages. Clicking the logo of a website usually takes you back to the 'home page', which in this case I consider to be the list of languages. You have buttons at the top right, with the lambda taking me back to the language ch…

We thought the lambda button would be obvious! Will add labels/tooltips soon, thanks.

agreed with op. Lambda is not at all obvious.

Re: Try Python, Ruby, Lua, Scheme, QBasic, Forth ...

#57
post #25

I'm getting a 330 ERR_CONTENT_DECODING_FAILED when I try to load up the site. If no one else is getting this then chances are it's my company's firewall interfering. If its rule set detects either "fun" and/or "potentially useful" the site is immediately banned.

same error here as well, also behind a corporate firewall, it's usually fairly well behaved but if it doesn't understand something it's sometimes prone to petulance.

Re: Try Python, Ruby, Lua, Scheme, QBasic, Forth ...

#58
post #50

Earlier quoted context omitted.

I liked the fact that it is much faster than ideone[1], even though it has way less languages. [1] http://ideone.com/

I think the difference is that ideone is actually running those languages on the backend, whereas this is running JS-based interpreters in the browser.

I guess this is right.

Re: Try Python, Ruby, Lua, Scheme, QBasic, Forth ...

#59
post #26
post #22

Nice stuff... What about some SCALA ? mixed paradigm functional + object oriented with a lot of mojo !

Scala is great and we would love to have it. But the core philosophy behind repl.it is that everything has to be client-side. We're not very experienced with the JVM languages, but we are planning to experiment in loading them inside a Java Applet. Not sure how doable is this, would appreciate some feedback.

ClojureScript?

Re: Try Python, Ruby, Lua, Scheme, QBasic, Forth ...

#60
post #2

amasad: After a 5 minute play my first impressions are 'awesome!'. Some feedback: I selected QBasic then changed my mind but couldn't immediately figure out how to get back to the list of the languages. Clicking the logo of a website usually takes you back to the 'home page', which in this case I consider to be the list of languages. You have buttons at the top right, with the lambda taking me back to the language ch…

A quick fix has been deployed. Clicking on the logo would open up the language selector page, and added tooltips to the buttons.
Post reply on HN