Re: [racket-dev] Fwd: ace?
6 hours ago, Matthias Felleisen wrote: Here is a site that comes with demos/shots that are simple and yet interactive and thus impressive. I am wondering whether we could turn our little code snippets into stuff that people can run and possibly even modify and run. We may have to 'cheat' and use WhaleSong in the background to power some of our graphical animated stuff but hey WhaleSong is close enough to our world. Isn't this just a JS-based editor? As for interactive examples, that would be easy with a sandbox. The usual caveats are that it won't be able to show off functionality related to FS operations, FFI, GUI, and probably a few more. (And BTW, the wiki will have such sandboxed evaluation -- my design is that every wiki page is actually a module that gets evaluated to produce the rendered text.) -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Fwd: ace?
Eli Barzilay wrote at 08/16/2011 02:20 PM: Isn't this just a JS-based editor? CodeMirror a rather nice JS-based text editor for programming languages, as JS-based text editors for programming languages go, and includes a Scheme language mode. Danny Yoo has used CodeMirror in the implementation of WeScheme. As for interactive examples, that would be easy with a sandbox. The usual caveats are that it won't be able to show off functionality related to FS operations, FFI, GUI, and probably a few more. Well, if you wanted to support FS operations and FFI, and you have a spare server with the virtualization helper CPU instructions, setting up a KVM VM per session is doable for moderate traffic. (New Linux VM per user session; COW disks; pipe each session to a Racket process in the respective VM; have a fresh VM loaded in the chamber for the next new session) I'd be willing to bang out a couple Racket libraries to control the virtualization, if someone really wanted this. -- http://www.neilvandyke.org/ _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Fwd: ace?
Eli Barzilay wrote at 08/16/2011 02:52 PM: 7 minutes ago, Neil Van Dyke wrote: Well, if you wanted to support FS operations and FFI, and you have a spare server with the virtualization helper CPU instructions, This sounds way too expensive for something public. If you wanted to do it, I think it's doable. It won't hold up to a Reddit main page, or anything close to that, but it's going to be idle almost all the time, and it might well handle a mention on LtU. I bet your biggest worry is putting the URL on a slide at a conference, and a couple of the people who load it up while you're trying to talk decide to try to stress-test your server for you, but that's probably manageable, too. I think the questions are whether you want to do it and you have a server to dedicate to it. Just mentioning that it's doable. -- http://www.neilvandyke.org/ _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Fwd: ace?
On Aug 16, 2011, at 2:52 PM, Eli Barzilay wrote: 7 minutes ago, Neil Van Dyke wrote: Eli Barzilay wrote at 08/16/2011 02:20 PM: Isn't this just a JS-based editor? CodeMirror a rather nice JS-based text editor for programming languages, as JS-based text editors for programming languages go, and includes a Scheme language mode. I didn't mean to dismiss it as a product (and Danny did tell me about it when I said that I'll look for an editor for the wiki but defaulted on a plain textarea for now). Just didn't see any interactive examples there. Go look at all the examples at the CodeMirror site. All allow you to edit. Some evaluate. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev
Re: [racket-dev] Fwd: ace?
15 minutes ago, Matthias Felleisen wrote: Go look at all the examples at the CodeMirror site. All allow you to edit. Some evaluate. Which ones? (The only thing I see is the HTML editor, but that evaluation is done locally by your browser, so that evaluation is basically just injecting text into the page and leaving your browser to deal with it.) -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/dev