Raul,

That works on the 'full' version:
http://joebo.github.io/j-emscripten/full.html

To generate the 'light' version, I profiled all the calls that were made
when executing the minimal J calls.

The light version saves about 1.5MB of javascript from being downloaded.
That may not be important to many people, but I was curious how slim I
could get it

NOTE: You can also type into the console window and not just the cmd:
textbox



On Tue, Nov 25, 2014 at 5:57 PM, Raul Miller <[email protected]> wrote:

> I tried it, and got this:
>    -/ .**:i.3 3
> [USER]: missing _jtdet at  172
>
> My guess is that they used an experimental c compiler which emits
> javascript instead of machine language.
>
> I also suspect that they dealt with any compiler failures by removing
> the failing code.
>
> Thanks,
>
> --
> Raul
>
>
> On Tue, Nov 25, 2014 at 5:53 PM, Eric Iverson <[email protected]>
> wrote:
> > This does look very interesting. I'd love to have the time to dig into
> > this a bit. But alas. Could you perhaps describe what has been done
> > (the overall architecture). I'm a bit confused by the compiled claim.
> >
> > On Tue, Nov 25, 2014 at 4:53 PM, Joe Bogner <[email protected]> wrote:
> >> 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
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to