Live data from Hacker News

Interactive SICP

xuanji.appspot.com

21–30 of 34 posts

Re: Interactive SICP

#23
I created an implementation of R5RS in Javascript[1] that perhaps you'd be interested in. I know you already have one, but you might have opinions and needs that could influence my implementation. I got stalled trying to get (real) macros to work, but I already had a Scheme->JS FFI and asynchronous evaluation without the use of web workers.

[1] https://github.com/erjiang/foxscheme

Re: Interactive SICP

#25
post #10

Thanks a bunch! SICP is my current course literature at Linköping University.

Consider yourself lucky! We had some boring and entirely too basic OOP-y course (with Java, of course). I'm reading SICP now (this beautiful PDF version: https://github.com/sarabander/sicp-pdf/blob/master/sicp.pdf ). I would've loved to have had it when I was in college. Alternate HTML5 version here: http://sarabander.github.io/sicp/html/index.xhtml

> this beautiful PDF version: https://github.com/sarabander/sicp-pdf/blob/master/sicp.pdf

This is the direct link to the pdf file: https://github.com/sarabander/sicp-pdf/raw/master/sicp.pdf

Re: Interactive SICP

#26
post #8

Hello everyone, author here. Sorry for forgetting to enable billing on appengine - the page should be displaying now. I shared Interactive SICP with HN last year ( https://news.ycombinator.com/item?id=4860370 ), and thought it was time to share it again. Since that time, I've - added more sections of the book - replaced the javascript scheme engine - added mathjax - made the evaluation asynchronous (to avoid freezing…

i would definitely keep running with this. would def support. iconic text, and this makes it easy to dive in and play with. perhaps the examples appear in a mini-IDE on the right, where you click the example, it shows up in the IDE. click compile button, and it will execute the sample.

Re: Interactive SICP

#27
post #23

I created an implementation of R5RS in Javascript[1] that perhaps you'd be interested in. I know you already have one, but you might have opinions and needs that could influence my implementation. I got stalled trying to get (real) macros to work, but I already had a Scheme->JS FFI and asynchronous evaluation without the use of web workers. [1] https://github.com/erjiang/foxscheme

How do you get asynchronous evaluation without the use of web workers? My understanding is that, without web workers, javascript and the browser share a single thread, and executing javascript freezes the UI.

Re: Interactive SICP

#28
It's not obvious how to run examples after editing — it's explained in readme.md, but I didn't see it the book itself.

[It's Ctrl-Enter. Actuallghy just pressing Ctrl is enough.]

Ideas to make it more discoverable: - re-run an expresion when the editor is unfocused. - add a "▶" button in the corner of each editor. - add a tooltip with the kbd shortcut on the "▶" button

Re: Interactive SICP

#29
Very cool! I have also been making an (iPad) app to help people get through SICP and I somehow didn't run into this.

If anyone is interested in reading SICP now, you should try out my app. We find you someone and you have a good conversation about the material each week through video chat and a whiteboard. We aren't launched yet, but you can check out our simple demo (https://www.youtube.com/watch?v=DlUTKzrqECE) and send me an email if you want to try the beta. bridger@understudyapp.com

Re: Interactive SICP

#30
post #8

Hello everyone, author here. Sorry for forgetting to enable billing on appengine - the page should be displaying now. I shared Interactive SICP with HN last year ( https://news.ycombinator.com/item?id=4860370 ), and thought it was time to share it again. Since that time, I've - added more sections of the book - replaced the javascript scheme engine - added mathjax - made the evaluation asynchronous (to avoid freezing…

Very very cool. One thing that I would like would be if 'tab' jumped to the next example/input area?
Post reply on HN