Live data from Hacker News

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

repl.it

31–40 of 81 posts

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

#31
post #29
post #3

Earlier quoted context omitted.

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

Same comment as the GP. I felt like you're breaking a convention by not having the logo go back to the chooser page, and by not returning to the chooser on refresh/revisit.

Website conventions? We think of repl.it as a webapp, not a website. Once you load a language the app remembers your language and loads it for you on next page load, and if you want to change your language you click the language selector button (which I agree is not that clear at the moment).

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

#32
post #30

Scheme runs nicely on an iPhone 3GS. The Emscripten-compiled stuff crashes before you get to a prompt. Still, good stuff! EDIT: I take that back. Lua runs, Python and Ruby do not.

Yeah we are working on that. We didn't have a physical iOS device and the simulator cheated us into thinking that it actually works!

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

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

Getting the same error here. Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.

Is this chrome? Did you try it on other browsers?

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

#34
post #33

Earlier quoted context omitted.

Getting the same error here. Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error.

Is this chrome? Did you try it on other browsers?

Chrome 14.0.835.186 m Windows 7, I get the above error.

Firefox 6.02 I get:

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

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

#35
post #17

This is awesome! I see this replacing my normal pastebin/ideone workflows ... One comment: in python, technically tabs are equivalent to 8 spaces, but in your REPL it is equivalent to 4 spaces. Is that a modification to the version of python you are using, or did you make a decision to match 4 spaces (BTW: I really like this, but it breaks some older code)

In python you can use tabs or spaces (however many) as long as it is consistent. Don't mix tabs and spaces. 4 spaces recommended. Style Guide: http://www.python.org/dev/peps/pep-0008/ Indentation Myths: http://www.secnetix.de/olli/Python/block_indentation.hawk

It's not really discussed in the PEP but in fact python treats the tab at the same indentation level as 8 spaces. You can mix tabs and 8 spaces without impunity

Check http://ideone.com/VIwf4 for an example. Basically, it shows that python treats 8 spaces at the same indent level as a tab

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

#36
post #35

Earlier quoted context omitted.

In python you can use tabs or spaces (however many) as long as it is consistent. Don't mix tabs and spaces. 4 spaces recommended. Style Guide: http://www.python.org/dev/peps/pep-0008/ Indentation Myths: http://www.secnetix.de/olli/Python/block_indentation.hawk

It's not really discussed in the PEP but in fact python treats the tab at the same indentation level as 8 spaces. You can mix tabs and 8 spaces without impunity Check http://ideone.com/VIwf4 for an example. Basically, it shows that python treats 8 spaces at the same indent level as a tab

I think ideone and/or your editor converts tabs to 8 spaces. Trying a tab indent followed by an 8-space one raises an error in native IPython for me. In any case, we're using normal CPython compiled to JavaScript, so it's unlikely to change finer points of the behaviour like this.

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

#37
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…

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

[1] http://ideone.com/

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

#38
Love it. This site is hella-fast and responsive compared to the other "Try [x]" web apps I've used before. Love the addition of LOLCODE. Personally, it took me a second to figure out the lambda and eg buttons, but I didn't find it frustrating or difficult. Pretty smart if you ask me.
Post reply on HN