Hi Brian, This thread helped push me to finish up a proof of concept of a J emscripten IDE. You can try out beginning of canvas integration. This can certainly be extended to handle what you're looking for.
At some point we need to get turtles running on here! Joe On Mon, Nov 24, 2014 at 9:24 PM, robert therriault <[email protected]> wrote: > No worries Brian, > > I had to do a search on the forums to find the exact time when I had > worked on that implementation! I think that iOS 8 extensions may make the > interconnection between the html and J easier, as long as J extends that > privilege to Safari. I can't claim to be an Apple developer and I haven't > chatted with Eric about this since the new iOS has been released, so I am > really basing this on on what I have heard developers describe. > > I am assuing that you would like me to test the code on an iPad and > unfortunately I don't have access to one for the next couple of days. > Perhaps someone else can take a run at it. > > Hope you get some traction on this as I still think that J on an iPad is a > bit of a secret with a lot of potential, especially with the new higher > powered tablets that Apple has released. Still wondering what it would be > like if iBooks had the capability of running J code within their pages. > > Cheers, bob > > On Nov 24, 2014, at 2:37 PM, Brian Schott <[email protected]> wrote: > > > Bob, > > > > I had forgotten completely about that conversation. Thanks, so much, for > it > > and for reminding me of it. The "remaining challenge" would be quite > > dysfunctional. I wonder if the new iOS 8 "connectivity" feature of iOS > > might be a step in the direction of removing the "challenge", but even > that > > probably requires some developer recoding. > > > > I certainly would not be apologizing for my coding if I were you. Your > code > > looks very effective. I would love to be able to piggyback on your > > examples, but it seem premature to try, given the "challenge" (an MY lack > > of coding skill). > > > > I was disappointed that the following code I posted initially in this > > thread throws an error when GRB is the x argument of either viewmat or of > > jv ; no failure occurs if the x argument is not provided. I have tried to > > do some debugging and found that the left argument, which has shape 8 3, > > is mangled somewhere in getvm_jviewmat_ or in getvm1_jviewmat_ to be of > > shape 8 1. I have not figured out where and am currently stumped because > > the debug is not working. I have been unable to restart J because `exit > ''` > > only produces a message about how to really exit and that message seems > > outdated, because I can no longer press and hold on the J avatar and > induce > > a little '-' sign like I could in earlier iOS versions. At present I am > > waiting to restart the iPad after powering it down, in the hopes that J > > will restart, also. > > > > Btw, are you able to reproduce an error from the following code snippet? > > > > GRB=:1 0 2{"1 (#:i.8){0 255 > > > > ]A=:>:i.8 > > GRB viewmat A > > > > Thanks, again, > > > > > > On Mon, Nov 24, 2014 at 2:05 PM, robert therriault < > [email protected]> > > wrote: > > > >> Hi Brian, > >> > >> I had played around with it a little about two years ago when it first > >> came out and had posted this message on the programming forum including > >> code to provide clickable buttons in the html window to access labs. The > >> challenge to making this functional was and I think remains that there > is > >> not a way for the html to send information back to the the J engine. In > any > >> case, hope this link to the post helps. > >> > >> > http://www.jsoftware.com/pipermail/programming/2012-December/030604.html > >> > >> Cheers, bob > >> > >> ps. apologies to anyone who is actually a javascript programmer/webpage > >> designer as my style is definitely hack as you go. bt > >> > >> > > -- > > (B=) > > ---------------------------------------------------------------------- > > 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
