V8 REPL
I would love to see someone take V8 and the Shell.cc sample, build it for all platforms and make it available as a binary download.
Perhaps someone has already done it, but I can’t seem to find it. I am sure that this cannot be a new idea. I would do it, but I am somewhat “encumbered“.
The next thing I would love to see is a “JSRT” (Javascript Runtime). Think of this is a x-platform library for important native functions like I/O, etc.
We (Microsoft) already have this with IDispatch and our IActiveScript ECMAScript implementation (FileSystemObject is your friend), but since I spend all my time on Macs at home, I really want something I can use from Terminal.
Net-net, I want a real Javascript REPL and library ecosystem without the browser as the runtime.
It is very bizarre to me that the most used imperative language on the planet (a conjecture) doesn’t have a footprint outside of the browser on any other platform than Windows. I could be wrong and this already exists someplace and is in use — if so, let me know.
Clearly, this is not the real end state that I would like to see. I could see the browser using the JSRT too (security model questions clear, but I think about existing security models that I have used including LiveConnect, etc.). You could see this as an “escape value” for browser implementations that wanted to support “richer” apps. In my happy little head, you could even go some far as to implement a browser itself in Javascript (shades of Smalltalk, of course).
BTW: The V8 Embedder’s Guide is quite a good read. I clearly haven’t coded against the different mechanisms yet (which is the real test), but it seems like a clean design, although I don’t see anything about explicit marshaling or calls from “native” to “managed”, but I imagine that code would make that clear.
Wonderful. What I would like to see is what Desktlets (http://tirania.org/blog/archive/2008/Apr-17.html) aim to provide.
Width CoreCLR and DLR, ported to major platforms (DLR and CoreCLR are already on Mac (that’s why Silverlight runs on a Mac, right?), Linux shouldn’t be far away), we could have a language of choice (C#, VB, Javascript, Python, Ruby,…) to develop applications and run them. We could use XAML and develop silverlight and if that’s possible, I don’t think console apps should be problematic.
It seems so obvious, but the tooling isn’t here to help us. I wrote a proof of concept “host” for silverlight in winforms, but it does not have access to the full API as MONO Desklets do (see Miguel’s post for that).
Wouldn’t it be cool to be able to use your language of choice to develop for all of the platforms? Think of java with a choice of language and potentially all of the .NET BCL available…
Miha
Miha
29 Dec 08 at 12:55
What about Mozilla Rhino? That’s a JavaScript implementation which comes with a shell, in prebuilt JARs, with a large library (the Java class libraries and so on.)
Dominic Cooney
1 Jan 09 at 08:23
@Dominic Cooney: I didn’t realize that Rhino had a shell. I’ll be frank that I biased toward a “native” solution. That said, I’ll check it out.
metadouglasp
2 Jan 09 at 09:56