Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
max99x
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
max99x
15y ago
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 a
2.
▲
by
max99x
15y ago
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.
3.
▲
by
max99x
15y ago
The prompt label is an image, hence it's not copyable. We experimented a bit with various copy-friendly approaches, but couldn't find anything that was cross-browser and did not damage the look/layout we were going for. To share a session,
4.
▲
by
max99x
15y ago
Currently you can save a replayable session and get a unique link, but this is public. We do have plans to remember history locally (either just as command history or a full-blown session) in the future. The initial relevant issue is at ht
5.
▲
by
max99x
15y ago
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.
6.
▲
by
max99x
15y ago
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.
7.
▲
by
max99x
15y ago
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 (a
8.
▲
by
max99x
15y ago
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 t
9.
▲
by
max99x
15y ago
Thanks for the report. We're handling input as raw keystrokes for flexibility, so the more advanced features are sometimes not supported. I've opened an issue for it ( https://github.com/replit/jq-console/issues/19 ) in the appropriate repo
10.
▲
by
max99x
15y ago
You might be hitting the fact that QBasic actually requires keywords to be in capitals. The original IDE did the conversion for you, but repl.it doesn't. We should really be more lenient about those. For now, check the existing examples and
11.
▲
by
max99x
15y ago
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
12.
▲
by
max99x
15y ago
repl.it is an online REPL that supports 15+ languages, from Python to QBasic, using language interpreters written in JavaScript or compiled to JavaScript using Emscripten ( http://emscripten.org/ ). This project grew from @amasad and me wan
13.
▲
Show HN: repl.it — A client-side web REPL for 15+ languages
(repl.it)
27 points
by
max99x
15y ago
|
2 comments
14.
▲
by
max99x
15y ago
Most pieces are positioned in the middle of a square. A simple way to recognize the color of the piece and its square is to do a flood fill with a bit of tolerance (say 32/256) from the center pixel. The area covered by the flood fill will