Live data from Hacker News

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

repl.it

71–80 of 81 posts

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

#72
post #71

Ouch! Awesome apps like this are totally humbling. Congratulations, guys. If you're still following this thread, amasad and max99x, I have a simple question: how many hours did you two put into this?

Really hard to say. We started experimenting with the idea back in March, but didn't start putting fulltime nights into it until August. I'd say a little over a thousand man-hours over the span of 6 months, but I may be well off the mark.

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

#73

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...

Haskell won't run in a repl, will it? GHCi and Hugs demand that functions be specified in a script file and not at the prompt. Without functions, you really don't have very much of the Haskell language available. It's a partial repl with a fraction of the language at best.

Not necessarily. You can define functions in GHCi using let.

  $ ghci
  Prelude> let fact x = if x == 0 then 1 else x * fact (x - 1)
  Prelude> fact 6
  720

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

#75
Every time I try Python or Ruby, the interpreter loads almost fully and then freezes.

Lua and Scheme work fine. Also, good job on allowing me to close the tab after I managed to get QBasic locked in an infinite loop. :-) (Dual-core likely helped.)

Firefox 7.0, x86 (32-bit), running on Ubuntu 11.04, x86-64.

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

#76
post #75

Every time I try Python or Ruby, the interpreter loads almost fully and then freezes. Lua and Scheme work fine. Also, good job on allowing me to close the tab after I managed to get QBasic locked in an infinite loop. :-) (Dual-core likely helped.) Firefox 7.0, x86 (32-bit), running on Ubuntu 11.04, x86-64.

Yes this is a regression with firefox 7+ browsers, the creator of emscripten (@kripken) has already opened a bug in it https://bugzilla.mozilla.org/show_bug.cgi?id=687951 .

And ya, we try to sandbox most of our languages inside a Web Worker, which leaves the main thread intact incase of infinite loops and such.

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

#77
post #72
post #71

Ouch! Awesome apps like this are totally humbling. Congratulations, guys. If you're still following this thread, amasad and max99x, I have a simple question: how many hours did you two put into this?

Really hard to say. We started experimenting with the idea back in March, but didn't start putting fulltime nights into it until August. I'd say a little over a thousand man-hours over the span of 6 months, but I may be well off the mark.

It was a fruitful experience and if we want to count in the hours of reading and studying that this project has spawned, it would be much more than that.

Anyways, the real question is "how much did it cost?": $1600+ in sushi dinners! :)

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

#80

the QBasic support actually makes me want to try to add Canvas support to it so that SCREEN 13 CIRCLE (4, 3), 4, 4 and all the other stuff I used to have fun with years ago will actually work.

Actually Steve Hanov's implementation which we're using does have canvas support. You can find it at http://stevehanov.ca/blog/index.php?id=92. We stripped the graphical parts since they make little sense in our UI. At some point we may add graphics support, but if we do it will be to all (or at least the majority of) the languages.
Post reply on HN