Thanks John I somewhat arbitrarily chose 150!: by adding a 0 to cd (15!:0) since the same dll interface dll may be added in the future and I didn't want to break backward compatibility (although compatibility is very iffy at this point until it gets more stable)
A trick I use is to add longer csharp scripts to an ijs with 0:0 and then reload with 0!:1 after a change. The nice thing about 150!:0 is that it caches the compiled code for a definition so it doesn't get the compilation hit on every invocation. plot.ijs and grid.ijs are examples of somewhat advanced scripts Thanks On Jul 30, 2015 5:42 PM, "John Baker" <[email protected]> wrote: > I spent more time playing around with microj today. > > One of the more interesting things in microj is the 150!:0 foreign. I > didn't recognize this foreign as it is not in standard J. For those that > haven't taken a look it provides a way to compile and run short C# programs > from inside the microj system. > > This is a sleeping giant feature. > > The C# coding style is also interesting. While browsing and compiling your > code I realized --- hmm --- it would be easy to integrate standard C# > statistics libraries and give many statistic functions the ranks they have > been silently crying in vain for. > > Thanks for a great toy. > > > On Fri, Jul 24, 2015 at 2:02 PM, Joe Bogner <[email protected]> wrote: > > > John - good suggestion on adding some indication when an expression > > fails. I've added that - but it's only picking up if it's an exception > > (like 0 / 'abc').. There's more work to do here but it's a start > > > > Vijay - Thanks - FF support will be down the road. > > > > Some updates: > > > > 1. Add the ability to load/save scripts (nothing is persisted on the > > server -- only in the URL) > > 2. Added OFFSET function to allow referencing other cells - > > http://bit.ly/1CVghx5 > > 3. Added some basic error handling - http://bit.ly/1MpSl6U > > > > The example is updated http://csilo.com:8080/examples/grid/index.html > > > > The order of operations is important.. I'm on the fence on whether to > > keep an explicit order or to recalculate until it stops changing. For > > now, I'll just keep an explicit order. Cells can be reordered manually > > in the script window. > > > > > > On Fri, Jul 24, 2015 at 11:11 AM, Vijay Lulla <[email protected]> > > wrote: > > > I tried to run this on Firefox (FF) but it didn't work. Do you intend > > > to support it? > > > > > > On Fri, Jul 24, 2015 at 10:58 AM, John Baker <[email protected]> > > wrote: > > >> I fired up your demo. Very interesting. > > >> > > >> I didn't push things very hard but I noticed that once you go beyond > > rank 3 > > >> things stop working. Enter i. 2 2 2 2 > > >> into any cell. > > >> > > >> Some indication that the expression will not execute in microJ would > > >> greatly increase the utility of this already fascinating experiment. > > >> > > >> > > >> On Fri, Jul 24, 2015 at 8:47 AM, Joe Bogner <[email protected]> > > wrote: > > >> > > >>> MicroJ was first announced about 2 weeks ago. It's had over 100 > > >>> commits since then, with some help from Adrian Wielgosik and Jon > > >>> Hough. > > >>> > > >>> Some notable additions: > > >>> 1. basic .NET integration > > >>> (https://github.com/joebo/microj/blob/master/stdlib.ijs#L1) > > >>> 2. boxed values ( > > >>> https://github.com/joebo/microj/blob/master/tests.ijs#L143) > > >>> 3. basic forks ( > > https://github.com/joebo/microj/blob/master/tests.ijs#L309 > > >>> ) > > >>> 4. key operator (https://gist.github.com/joebo/fc108b8b0ddf3f683fa3) > > >>> > > >>> The motivation for all of this was to create a hackable, more c# > > >>> pluggable J. One of the expected use cases was to create a web-based > > >>> spreadsheet platform for data analysis. > > >>> > > >>> I have an example of the MicroJ spreadsheet running online > > >>> (linux/mono) -- the same also runs on windows. Only tested on chrome > > >>> as the browser. > > >>> > > >>> http://csilo.com:8080/examples/grid/index.html > > >>> > > >>> Please don't intentionally try to break it ( I realize that may > happen > > >>> though )... but feel free to play. Each spreadsheet should run in its > > >>> own parser environment. > > >>> > > >>> > > >>> I expect to do a binary release over the next few weeks and will > > >>> include some documentation. > > >>> > ---------------------------------------------------------------------- > > >>> For information about J forums see > http://www.jsoftware.com/forums.htm > > >>> > > >> > > >> > > >> > > >> -- > > >> John D. Baker > > >> [email protected] > > >> ---------------------------------------------------------------------- > > >> 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 > > > > > > -- > John D. Baker > [email protected] > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
