I found out a few weeks ago that someone had ported J to emscripten[1]

I couldn't find any contact information for the author, so I just went
ahead and scraped the site to get the source.

I've posted it to github with a demo ide

http://joebo.github.io/j-emscripten/

I think there's a tremendous amount of potential here. It runs on my ipad,
android and desktop. It can integrate in with javascript canvas -- see my
interop example:

'drawRect' (15!:0) (10,10,10,10)

I can envision making the labs interactive and also allowing people to save
and share their code. All of this running safely in the browser without an
install required.

We can also play with different IDE concepts. For example, I added quick
picklists to Devon's Minimal Beginning J.

I went through the painful effort of trying to cut down the javascript
required to run the environment. I've been able to get j-called.min.js down
to 446KB minified and compressed.  The full version is also available at
http://joebo.github.io/j-emscripten/full.html and weighs in at 2MB of
javascript. If you get an error about something missing, try the full
version.

My IDE code is still messy but posted here:
https://github.com/joebo/j-emscripten/blob/master/index.html. One of the
most challenging parts was figuring out how to interop with emscripten, but
I was able to implement a function that lets the script get loaded and also
a fake 15!:0 for interop calls.

Try it out and provide any feedback and I can update it. Alternatively,
fork it and make your own version and post it here. Javascript makes J
incredibly hackable and shareable.


[1] - found originally at http://tryj.tk/
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to