[Jchat] web programming examples

2013-08-23 Thread Joe Bogner
I'm having trouble locating recent examples of web programming in J. I have looked through the wiki examples of scgi, cgi and even the JWebServer. My ideal solution would run directly from J without apache/iis/nginx installed as that's not always possible. I'd like to consider J as an alternative

Re: [Jchat] web programming examples

2013-08-24 Thread Joe Bogner
rom scratch with > sockets), I'd suggest JHS as a good starting point. I am very > interested in this area and would be happy to work with you through > any questions. We can continue in chat or move it to direct email as > you prefer. > > On Fri, Aug 23, 2013 at 1:00 PM, Joe Bog

Re: [Jchat] web programming examples

2013-08-26 Thread Joe Bogner
On Mon, Aug 26, 2013 at 5:03 AM, Eric Iverson wrote: > > Not sure why you working with duplicate socket. I would think the > normal J socket library would give you enough to get things done. > I'm duplicating the socket so that I can mimic a threaded server. I have a proof of concept here: https:

[Jchat] programming without loops

2013-08-26 Thread Joe Bogner
I solved this problem today at work in R using a loop and an intermediate data.table. I generalized it and then tried to solve it in J. I wasn't even sure where to start. Let's say you have 100 students and 26 movies that need to be shared by 3 groups of students. Each student has picked their fav

Re: [Jchat] programming without loops

2013-08-27 Thread Joe Bogner
)\:~@{~1&{"1@]i./ [)s NB. remove duplicates > t =: |.({:"1@] 3&{. each tNB. first 3 > > The above may be a solution, but is not well tested. Instead of movie > names, there are movie numbers. > > > > > > > On Mon, Aug 26, 2013

Re: [Jchat] programming without loops

2013-08-28 Thread Joe Bogner
;1) VotesTbl NB. sort by votes across groups > > VotesTbl=: (#~ [: ~: 1&{"1) VotesTbl NB. deduplicate movie entries > MovieProgram=: ({."1 (3&{.)/. ]) VotesTbl NB. take top 3 choices for each > group > > > > > On Wed, Aug 28, 2013 at 7:58

Re: [Jchat] my programm looks terrible

2013-10-03 Thread Joe Bogner
Dan, thank you very much for posting your solution. I'll continue to study it. I'm impressed with how compact and how much more clear the solution is than the original requirements. I took a crack at translating it to another language that I experiment with for it's conciseness - PicoLisp https:/

Re: [Jchat] my programm looks terrible

2013-10-04 Thread Joe Bogner
ave so many boxes/unboxes and { in k. I > > could write it from the same simple algorithm like I used in perl, I > think > > it will be quite simple, I will do it when I have time. > > > > Regards, > > > > > > On Thu, Oct 3, 2013 at 12:58 PM, Joe Bogner

Re: [Jchat] my programm looks terrible

2013-10-06 Thread Joe Bogner
I created a partial solution that also uses jdb using help from Dan's solution and others in my question yesterday. I didn't re-implement the import logic. https://gist.github.com/joebo/6857220 I enjoyed exploring the data with jdb. I don't think it really helped with the solution, but made it ea

[Jchat] inline help

2013-10-15 Thread Joe Bogner
Is there a utility to query the dictionary in the J session without causing a web browser to open? It'd be similar to context sensitive help but brings the result text right into the session. It might need some logic to reformat the HTML into a readable plain text representation Along those sames

Re: [Jchat] inline help

2013-10-15 Thread Joe Bogner
jhs makes rendering it a snap html=:gethttp_wgethttp_ 'http://www.jsoftware.com/help/',page,'.htm' jhtml html that could work for now On Tue, Oct 15, 2013 at 6:54 AM, Joe Bogner wrote: > Is there a utility to query the dictionary in the J session without > cau

Re: [Jchat] inline help

2013-10-15 Thread Joe Bogner
I wrote up a script to do this and posted it to the wiki in case anyone else finds it useful http://www.jsoftware.com/jwiki/JoeBogner/InlineDictionary On Tue, Oct 15, 2013 at 7:04 AM, Joe Bogner wrote: > jhs makes rendering it a snap > > html=:gethttp_wgethttp_ 'http://www

[Jchat] finding add, subtract, ignore combinations to reach a target number

2013-10-16 Thread Joe Bogner
I'm working on a question that I was hoping J could help answer. I have a overall sum on a report and I'm trying to figure out what line items went into it. The line items can be ignored, added or subtracted. In other words, given a value let's say 15, what combinations of add, subtracting or ign

Re: [Jchat] finding add, subtract, ignore combinations to reach a target number

2013-10-16 Thread Joe Bogner
Well that's embarrassing, I just need to add all the negative numbers to the existing solution (]#~15=+/@>)(]<@#~[:#:@i.2^#) 10 2.5 12 3.5 _1 30 1 ┌─┐ │10 2.5 3.5 _1│ └─┘ On Wed, Oct 16, 2013 at 6:33 PM, Joe Bogner wrote: > I'm working on a

Re: [Jchat] finding add, subtract, ignore combinations to reach a target number

2013-10-16 Thread Joe Bogner
d +/ .*x > 15 15 15 15 > > See also http://www.jsoftware.com/jwiki/Essays/Odometer< > http://www.jsoftware.com/jwiki/Essays/Odometer?highlight=%28xkcd%29> > > > On Wed, Oct 16, 2013 at 3:33 PM, Joe Bogner wrote: > > > I'm working on a question that I was

Re: [Jchat] finding add, subtract, ignore combinations to reach a target number

2013-10-16 Thread Joe Bogner
^#x > >] d=: (15 = c+/ .*x)#c > > _1 _1 _1 1 1 0 > > _1 1 1 1 0 0 > > 1 _1 _1 _1 0 1 > > 1 1 1 _1 _1 1 > > > >d +/ .*x > > 15 15 15 15 > > > > See also http://www.jsoftware.com/jwiki/Essays/Odometer< > http://www.jsof

Re: [Jchat] free programming books

2013-10-17 Thread Joe Bogner
Good idea. I see it there already though: https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md#j J - Learning J by Roger Stokes- online || pdf - J for C Pro

Re: [Jchat] Newspaper columns are easier to read than books

2013-11-01 Thread Joe Bogner
For fun I wrote a little javascript function that will find the first container for the selected text and will resize it. (function shrink() { var sel = window.getSelection().baseNode; containers = ['DIV','ARTICLE', 'TABLE']; function getTopNode(node) { if (node != undefined && container

Re: [Jchat] [Jprogramming] making a 'first' adverb tacit

2013-11-05 Thread Joe Bogner
ions (a.r.s), and aside from the >> overview at [1] (referenced earlier), I believe >> they're supposed to be "self-explanatory". > > Joe Bogner responded: >> The NuVoc entry on ` also covers it well: >> http://www.jsoftware.com/jwiki/Vocabulary/back

[Jchat] org-babel language support for J

2013-11-07 Thread Joe Bogner
I've created a J language support file for org-babel https://github.com/joebo/org-babel-j/ I use org-babel for R and other languages as a way to organize snippets and enable literate programming. I wanted that same experience for J so I created a basic support file for it. I recorded a rough scr

Re: [Jchat] J Used in any Online Courses ?

2013-11-08 Thread Joe Bogner
Hi Jack - I don't know of any courses or certificate programs. I've been working through this paper which is fairly complete as far as I've gathered: http://webdocs.cs.ualberta.ca/~smillie/Jpage/jcomp.pdf If you have any specific questions please post them. I'm also interested in the subject. J

[Jchat] visualizing a 3+ parameter function

2013-11-11 Thread Joe Bogner
I have a long table that calculates a column from 3 other columns. It's not exactly a J problem, but I'm interested in J solutions or any other ideas and advice. I'd like to gain some intuition about how the 3 variables interact to compute the outcome and identify any other patterns. I have anot

Re: [Jchat] visualizing a 3+ parameter function

2013-11-12 Thread Joe Bogner
Brian - thank you for the link. I checked out the video and ended up using viewmat. It was my first time using viewmat and I was impressed by how easy it was to use and how quickly I could get useful insight. I posted my solution to the wiki: http://www.jsoftware.com/jwiki/JoeBogner/VisualizeFunct

Re: [Jchat] visualizing a 3+ parameter function

2013-11-12 Thread Joe Bogner
tterplot like this: > http://mbostock.github.io/d3/talk/2016/iris-splom.html ? > > Also, I've done crude, 3D interactive scatterplots from J using three.js: > > http://www.jsoftware.com/jwiki/NYCJUG/2013-06-11#Primitive_3D_Interactive_Scatterplot_Using_d3.js > . > > >

Re: [Jchat] eli

2013-12-30 Thread Joe Bogner
Thanks for sharing the link to ELI. I read through the Primer last night. It was a good read and was interesting to see things explained from a different angle. There are some interesting additions like array indexing X{1], dictionaries and tables. It feels more approachable to a beginner since it

[Jchat] feedback on parsing file approach

2014-01-11 Thread Joe Bogner
I have about 300 code files (javascript and embedded code) that I want to collect some metrics on. I've written the algorithm using an imperative style. I actually wrote it first in C# and translated to J Here is the code (posted a link for brevity): J version: https://gist.github.com/joebo/936c

Re: [Jchat] feedback on parsing file approach

2014-01-11 Thread Joe Bogner
nking about why you want to do this. The answer to that kind > of question can be really interesting and can help identify which > warts are unnecessary or possibly even detrimental. > > So, before I think any more about code, what are your thoughts on what > you want to accomplish? >

Re: [Jchat] feedback on parsing file approach

2014-01-12 Thread Joe Bogner
nt the end state, I use 0 _1 0 0 for ijrd > instead of the default 0 _1 0 _1. This leaves me with my final state > being the "character position" after the last character in text (and > it's reported in the trace rather than being an error condition). > > Thanks, > >

Re: [Jchat] feedback on parsing file approach

2014-01-12 Thread Joe Bogner
se ranges and greater than/less than S_BRACE_L_1, S_BRACE_L_2 and S_BRACE_R_1 and SBRACE_R_2 but that doesn't seem practical Or let the state transition logic use globals and let the state transition function assign globals This is where I got stuck. On Sun, Jan 12, 2014 at 6:50 AM, Joe Bogner

Re: [Jchat] feedback on parsing file approach

2014-01-12 Thread Joe Bogner
an understanding of your requirements that > an explanation of how the code is structured will make more sense. > > Thanks, > > -- > Raul > > > On Sun, Jan 12, 2014 at 6:50 AM, Joe Bogner wrote: >> Thanks for the sequential machine implementation. I tested with >> dif

Re: [Jchat] feedback on parsing file approach

2014-01-12 Thread Joe Bogner
mentation. > > Being able to move from implementation to specification is not easy - > I love focusing on the computer and I sometimes find human > interactions painful (I do not like bothering people and while I might > occasionally enjoy getting yelled at I find I need to do something to &g

Re: [Jchat] feedback on parsing file approach

2014-01-12 Thread Joe Bogner
I think I have the state table figured out. I created a little image to help explain it. http://imgur.com/JT7MAhj I may post this to the wiki as an example. Thanks again On Sun, Jan 12, 2014 at 1:49 PM, Joe Bogner wrote: > Great! Yes, that change counts the blocks the way I need it

Re: [Jchat] feedback on parsing file approach

2014-01-12 Thread Joe Bogner
eparate tokens. But this state factoring issue was not my only > reason. It's just easier to distinguish ending @{ } and { } pairs > using subtraction after things are classified than through creating > some special purpose state logic. > > I see a new message from you arriving and I th

Re: [Jchat] feedback on parsing file approach

2014-01-15 Thread Joe Bogner
I looked at Devon's answer and had a response very similar to the paper (before reading the paper). It'd be like if I was riding a horse and carriage in 1910 and an automobile raced by. J has a pleasant way of humbling in 10 characters or less. It still took me about 15 minutes to figure it out,

[Jchat] vocabulary flash card app

2014-01-21 Thread Joe Bogner
I wrote a little JHS app that can be used to practice learning the vocabulary I'm hosting it here on linux: http://csilo.com/vocflash Here is the code: https://github.com/joebo/vocflash, specifically flash.ijs I have nginx forwarding it to jhs I intentionally wanted to start very simple. I may

Re: [Jchat] vocabulary flash card app

2014-01-21 Thread Joe Bogner
Devon, Brian - Thanks for the feedback. I made this partially for me and hoped that others would find it interesting, so thank you for commenting. I will write up a lengthier post on the wiki or my blog to describe the thought process too. I think one reason for the repetition is because I have a

[Jchat] one page APL ported to coffeescript

2014-01-22 Thread Joe Bogner
I ported Arthur Whitney's one page APL interpreter fragment[1] to coffeescript (which enables it to run in javascript) as learning exercise. http://csilo.com/dev/apljs.html code is here: https://github.com/joebo/apl-js/blob/master/apl.coffee This could be extended to create in-browser games/lear

Re: [Jchat] one page APL ported to coffeescript

2014-01-23 Thread Joe Bogner
but it's not hard to figure out >> what's going on here. >> >> >> On Wed, Jan 22, 2014 at 9:22 PM, Joe Bogner wrote: >> >>> I ported Arthur Whitney's one page APL interpreter fragment[1] to >>> coffeescript (which enables it t

Re: [Jchat] one page APL ported to coffeescript

2014-01-23 Thread Joe Bogner
th > concepts of what I should be doing that's worthwhile for other people, > and if nothing else, this is a sometimes relaxing effort. > > Thanks, > > -- > Raul > > > On Thu, Jan 23, 2014 at 11:56 AM, Joe Bogner wrote: >> Thanks for the feedback. I just added

Re: [Jchat] one page APL ported to coffeescript

2014-01-23 Thread Joe Bogner
because he comes from an APL background, so > he understands where we're coming from. > > > On Thu, Jan 23, 2014 at 12:50 PM, Joe Bogner wrote: > >> Raul, your library sounds interesting. Please share more if you can later. >> >> Coffeescript is a fun language.

Re: [Jchat] one page APL ported to coffeescript

2014-01-23 Thread Joe Bogner
).match(A([2,4,6]))}); > // maintain(function(){return v123.take(2).match(A([1,2]))}); > maintain(function(){return > m1to9.dot('plus','times')(m1to9).match(A([3,3],[15,18,21,42,54,66,69,90,111]))}); > maintain(function(){return > m1to9.dot('plus','ti

Re: [Jchat] [Jprogramming] more fork examples

2014-01-24 Thread Joe Bogner
My experience with python is that it's difficult to set up an scipy environment on windows. There are packaged solutions, like Anaconda[1] that simplify it greatly, but it's still a 340MB download. I've installed all the packages manually before and dealt with the dependencies. It probably took abo

Re: [Jchat] [Jprogramming] more fork examples

2014-01-24 Thread Joe Bogner
julia> 2147483647+1 2147483648 jconsole 2147483647+1 2147483648 Was something different expected? On Fri, Jan 24, 2014 at 12:31 PM, Devon McCormick wrote: > What's 2147483647+1 in Julia? > > > On Fri, Jan 24, 2014 at 10:07 AM, Joe Bogner wrote: > >> My experi

Re: [Jchat] [Jprogramming] more fork examples

2014-01-24 Thread Joe Bogner
ng] more fork examples >From: Devon McCormick >Date: Fri, 24 Jan 2014 12:31:53 -0500 > To: Chat forum > > What's 2147483647+1 in Julia? > > > On Fri, Jan 24, 2014 at 10:07 AM, Joe Bogner wrote: > >> My experience with python is that it's di

Re: [Jchat] [Jprogramming] more fork examples

2014-01-24 Thread Joe Bogner
julia> typemax(Int64) 9223372036854775807 On Fri, Jan 24, 2014 at 1:08 PM, Joe Bogner wrote: > Neat... > > julia> 9223372036854775807 > 9223372036854775807 > > julia> 9223372036854775807+1 > -9223372036854775808 > > Need to use BigInt >

Re: [Jchat] [Jprogramming] more fork examples

2014-01-24 Thread Joe Bogner
> Subject: Re: [Jchat] [Jprogramming] more fork examples >From: Joe Bogner >Date: Fri, 24 Jan 2014 13:09:51 -0500 > To: c...@jsoftware.com > > julia> typemax(Int64) > 9223372036854775807 > > > > On Fri, Jan 24, 2014 at 1:08 PM, Joe Bogner w

Re: [Jchat] FSM enhancement proposal

2014-01-29 Thread Joe Bogner
I'm a heavy user of emacs. I switched about 2 years ago after using vim for a few years. Prior to that, I was using the IDE of whatever language I'm in. Emacs has a steep learning curve, but it's become the perfect environment for me. I use the various modules for each of the languages I program i

Re: [Jchat] [Jprogramming] jhs with html canvas (and d3)

2014-02-04 Thread Joe Bogner
On Tue, Feb 4, 2014 at 5:03 PM, Brian Schott wrote: > I think the problem is the following. > > `jhbs_jhs_ HBS` calls `jhbs_jhs_''`, which uses `formtmpl_jhs_`, which I > have listed below. > > As HBS is the recommended noun for J sentences that produce html body, I am > not sure how to circumven

Re: [Jchat] [Jprogramming] jhs with html canvas (and d3)

2014-02-05 Thread Joe Bogner
Glad to hear. I was just writing up that I tried it on a fresh windows machine with j7 and it was fine for me. I have all packages installed though. Let me know if the vocflash example helps or if a smaller example would be better. On Wed, Feb 5, 2014 at 9:28 AM, Brian Schott wrote: > Joe, > >

Re: [Jchat] PLEASE HELP!

2014-02-05 Thread Joe Bogner
Python 3 likely changed the PATH environment variable which may have changed how dependencies are getting resolved. If you had a command prompt open, it may have had the old PATH values and then reopening it may have pulled in the new ones. Some ideas to try: 1. Temporarily disable smartscreen (

Re: [Jchat] [Jprogramming] jhs with html canvas (and d3)

2014-02-05 Thread Joe Bogner
On Wed, Feb 5, 2014 at 10:48 AM, Brian Schott wrote: > Could you give me the > format of your csv file? For example, does it contain pairs of a primitive > Hi Brian - The CSV file is here: https://github.com/joebo/vocflash/blob/master/vocab.csv I also created a JHS version of the ch02 sample:

Re: [Jchat] Julia

2014-02-05 Thread Joe Bogner
On Tue, Feb 4, 2014 at 2:48 PM, Raul Miller wrote: > > Mostly what I want for J is a compiler for a limited subset of the > language. This would let us address a variety of performance issues, > and would also introduce some new problems. Problems, though, that we > should welcome. > > I have als

Re: [Jchat] [Jprogramming] jhs with html canvas (and d3)

2014-02-05 Thread Joe Bogner
On Wed, Feb 5, 2014 at 12:53 PM, Brian Schott wrote: > Joe, > > vocflash works great for me now in J7 JHS. I had to remove `project/` from > the links and had to load 'tables/csv' , but that was all. > > Good to hear! Thanks for letting me know > I am sorry for needing help to find the csv file.

Re: [Jchat] [Jprogramming] jhs with html canvas (and d3)

2014-02-05 Thread Joe Bogner
On Wed, Feb 5, 2014 at 2:41 PM, Brian Schott wrote: > But then I got errors and my jijx window looks like this. > > J Http Server > > |domain error: addMimeTypes > | ((1{"1 mimetypes_jfilesrc_)i.(<'ttf'))=(#mimetypes_jfilesrc_) > Thanks - fixed. I should have tried it on a fresh session.

[Jchat] J demo video 5-10 mins in length

2014-02-17 Thread Joe Bogner
This is a continuation of this thread: http://jsoftware.com/pipermail/programming/2014-February/035222.html but moved to chat. I posted a video http://www.youtube.com/watch?v=qXFpgYvbogw with the intent of showing some of J's capabilities. I would be happy to hear any feedback on the video. Look

Re: [Jchat] J demo video 5-10 mins in length

2014-02-17 Thread Joe Bogner
'&, each Tickers) Quotes=.quote each Tickers AllPrices=. ". each > }. each 4{"1 each Quotes plotPrices"1 AllPrices pd 'show' ) plotTickers 'UAL';'DAL';'JBLU' Years=. 4 {. each 0{"1 DALd groupBy=: 4 : '(((~.y) i. y)) ,/. x' Y

Re: [Jchat] J demo video 5-10 mins in length

2014-02-17 Thread Joe Bogner
27;s probably a more concise way to express this too: plot > 20%~ each +/"1 each _20 <\ Prices I thought I could get atop or something to work but I gave up after about 10 minutes. On Mon, Feb 17, 2014 at 12:59 PM, Joe Bogner wrote: > Here is the code: > > NB. retrieve stoc

Re: [Jchat] J demo video 5-10 mins in length

2014-02-17 Thread Joe Bogner
to each; you > can give the verb to the adverb, the way verbs and adverbs are meant to > work together. > > > > > > On Mon, Feb 17, 2014 at 6:36 PM, Joe Bogner wrote: > > > I thought it might be fun to post a J vs R side-by-side comparison. The > > charact

Re: [Jchat] new wiki essay

2014-02-20 Thread Joe Bogner
On Thu, Feb 20, 2014 at 10:13 AM, Michal Wallace wrote: > > If there really is a demand, maybe as a community we could find a better > way to let people know. I for one would love to do some J contract work. :) > > Michal, I agree with your perspective about lack of full time / contract work relat

Re: [Jchat] [Jprogramming] J in 5 minutes

2014-02-22 Thread Joe Bogner
> > On Sat, Feb 22, 2014 at 12:04 PM, Brian Schott > wrote: > > Maybe, I am completely wrong. I am thinking about Joe's screencast on > > database retrievals. He can type really fast and can talk easily (which I > > cannot do) and is able to fly through many examples in no time. > Hi Brian, we ne

Re: [Jchat] [Jprogramming] J in 5 minutes

2014-02-22 Thread Joe Bogner
By the way - a few other tricks: 1. Use multi-monitors so you can read off one while recording the other... 2. Use a stopwatch / timer to watch your time On Sat, Feb 22, 2014 at 2:16 PM, Joe Bogner wrote: > On Sat, Feb 22, 2014 at 12:04 PM, Brian Schott >> wrote: >> > Mayb

[Jchat] JHS spreadsheet starting point

2014-02-23 Thread Joe Bogner
Based on interest from the J in 5 minutes thread, I threw together a small example of a JHS based spreadsheet. It's crude but works. I wanted to just get the concept out there. I will likely enhance it further. I can also make it so there is only one grid and the J expression is edited by once the

Re: [Jchat] JHS spreadsheet starting point

2014-02-23 Thread Joe Bogner
Hi Brian - Thank you for the feedback. I'm not sure why the video would be fuzzy for you. I tried on several different computers and it looked clear to me. Perhaps it needed to buffer or it's set up on a lower quality setting on your side? I run youtube at HD Quality (720p) I also uploaded the cod

Re: [Jchat] JHS spreadsheet starting point

2014-02-23 Thread Joe Bogner
On Sun, Feb 23, 2014 at 5:53 PM, Brian Schott wrote: > Joe, > > I have webspread in a state where I always get the error message, > "ev_calc_click failed: Error: NETWORK_ERR: XMLHttpRequest Exception 101", I > think I fried webspread by entering (<1 2){r, or just r into the rightmost > cell of th

[Jchat] Wolfram Language demo video

2014-02-25 Thread Joe Bogner
This demo video of the Wolfram Language was posted yesterday it looks like: http://blog.stephenwolfram.com/2014/02/starting-to-demo-the-wolfram-language/ It's an impressive video and might be a good model for what we have been talking about on the J in 5 minutes thread. ---

Re: [Jchat] jhs turtle graphics draws to webgl

2014-02-25 Thread Joe Bogner
Hi Brian, On Tue, Feb 25, 2014 at 11:22 AM, Brian Schott wrote: > I cannot think of ways to > supply such arrays of varying number of rows to a draw() type function. > That is my first question, how to supply multiple move or turns, preferably > without loops, but not necessarily. > > If I unders

Re: [Jchat] JHS spreadsheet starting point

2014-02-25 Thread Joe Bogner
Hi Brian, I'm happy to see you playing around with webspread. I'm not sure I understand what you're looking for. Given: r_webspread_ ┌─┬──┬──┐ │1│13│14│ ├─┼──┼──┤ │2│2 │4 │ └─┴──┴──┘ I usually have column totals or row totals as the last row/column. So an easy trick is to just curtail the array

Re: [Jchat] JHS spreadsheet starting point

2014-02-25 Thread Joe Bogner
t in the weeds trying to think about that and lost the beauty of > your concoction in being able to maintain the formula in a cell while show > the formula result in the output area. That is quite an accomplishment. > > > > On Tue, Feb 25, 2014 at 4:01 PM, Joe Bogner wrote: > > &g

Re: [Jchat] APL character support (moved to Chat)

2014-02-27 Thread Joe Bogner
On Thu, Feb 27, 2014 at 4:56 PM, Skip Cave wrote: > Just my two cents worth... > > As an old APL (occasional) programmer, I always wanted a way to flip a > switch in the J editor and turn J's 2-character primitives into APL > characters (where appropriate), and either leave J's unique verbs alone,

[Jchat] J subset compilation

2014-02-27 Thread Joe Bogner
I started to toy with the idea of working on a subset of J that can be compiled. The idea has been brought up before in the past. Yes, I realize it's a path fraught with peril and a likely premature demise. Still, as a toy, I figure it would be fun. Options for intermediate language: 1. GCC RTL -

Re: [Jchat] J subset compilation

2014-02-28 Thread Joe Bogner
uccessfully - > for a J subset you'd identify the fraction of the tests that your subset > could handle) but you would use them to help you find things which can be > done (relatively) easily which fit what you already have. > > Basically to manage a large body of code, you win

Re: [Jchat] J subset compilation

2014-02-28 Thread Joe Bogner
On Fri, Feb 28, 2014 at 5:27 PM, Devon McCormick wrote: > As far as I'm concerned, the first rule of code optimization is: find the > bottleneck. I agree. I'm not sure that I know what the bottleneck is yet (if there is one). > In theory, you could translate any piece of J code into the set of C

Re: [Jchat] Fwd: Re: J subset compilation

2014-03-03 Thread Joe Bogner
On Sun, Mar 2, 2014 at 8:13 PM, Raul Miller wrote: > But I am somewhat worried about portability and deployment > of SAC (RTL is a bit bulky but it has a compatible copyright and that's a > good thing, and it allows support for many kinds of computing devices). I also looked into SAC based on its

Re: [Jchat] [Jprogramming] Mac j801

2014-03-12 Thread Joe Bogner
Moved from programming... On Tue, Mar 11, 2014 at 5:55 PM, Devon McCormick wrote: > Good to know. I've been using the emacs shell a little bit lately but it > looks like I have to re-do some of my common utilities to get them to work > with it. For instance, I have this defined > (define-key gl

Re: [Jchat] [Jprogramming] Mac j801

2014-03-12 Thread Joe Bogner
nning under "eshell" was that it properly handles an interactive "mysql" > session from the command line: it turns out I was mistaken. The key is to > invoke mysql with the "-n" option; the "-f" option is also handy to prevent > exiting upon error. Thi

Re: [Jchat] [Jprogramming] Mac j801

2014-03-12 Thread Joe Bogner
On Wed, Mar 12, 2014 at 6:14 PM, Devon McCormick wrote: > OK - great! I got it to work though I invoke J through a batch file so I > can supply the arguments to run it with my usual defaults loaded. Excellent > > Are you familiar with Zach Elliott's "j-mode.el" at > http://github.com/zellio/j-m

Re: [Jchat] [Jprogramming] Mac j801

2014-03-13 Thread Joe Bogner
On Thu, Mar 13, 2014 at 1:40 PM, Devon McCormick wrote: > Unless I disable substitutions, when I attempt to recall something like > "13!:0]0", emacs gives me something like "13J7]0" (where the "J7" part may > come from an earlier command I entered). > Odd - it's not a problem for me with emacs 24

Re: [Jchat] [Jprogramming] Mac j801

2014-03-14 Thread Joe Bogner
On Thu, Mar 13, 2014 at 6:44 PM, Devon McCormick wrote: > Funny you should say that as I just noticed I have 24.3 on my machine but > wasn't using it, so I can confirm it's still an issue there. It probably > has to do with something I'm loading in my .emacs that you aren't. > I did more researc

Re: [Jchat] Teaching J - publicly-available JHS?

2014-03-24 Thread Joe Bogner
One potential problem with JHS is that the state is shared across all users (as far as I know). So you'd need to have them work in their own locale or something. Perhaps you can just bring a laptop and open up JHS for the students to use? If you were concerned about security, you might want to run

[Jchat] Analyzing differences between periods with multiple variables changing

2014-03-30 Thread Joe Bogner
I am analyzing some data and would like ideas on how to explain differences between periods. The suggestions can either be in J or completely outside of J. For example, perhaps I need to do some sort of weighted poisson regression. Or maybe the answer is that there's not enough information to dra

Re: [Jchat] Analyzing differences between periods with multiple variables changing

2014-03-30 Thread Joe Bogner
Thanks for the feedback. Confirming your replies below: On Sun, Mar 30, 2014 at 4:59 PM, Raul Miller wrote: > > Sure you didn't mean for one of those to be distance driven? > > Yes, sorry, the columns are: Period, Car, Hours, Miles, Total Cost In this example, the car is logging trip start & e

Re: [Jchat] Analyzing differences between periods with multiple variables changing

2014-03-30 Thread Joe Bogner
t; Vijay. > > > On Sun, Mar 30, 2014 at 5:12 PM, Joe Bogner wrote: > > > Thanks for the feedback. Confirming your replies below: > > > > On Sun, Mar 30, 2014 at 4:59 PM, Raul Miller > > wrote: > > > > > > > > Sure you didn't mean for

Re: [Jchat] Analyzing differences between periods with multiple variables changing

2014-03-31 Thread Joe Bogner
Thank you as always for the thoughtful and detailed reply. I'm still working through the examples On Sun, Mar 30, 2014 at 8:21 PM, Raul Miller wrote: > > You've a 9% reduction in cost and a 25% reduction in cars, that means > you've a 21% increase in cost per car, which implies a significant inc

[Jchat] benchmark for various devices

2014-04-01 Thread Joe Bogner
For fun, I've successfully installed J on every computer / device laying around the house and the two virtual private servers I run. That's 14 different instances of J. I ran a modified version of the Joey Tuttle benchmark. Mine was 10 (6!:2) '%. ?500 500$1' to slow it down some on the faster

Re: [Jchat] benchmark for various devices

2014-04-01 Thread Joe Bogner
d know that some of the special code described in > http://www.jsoftware.com/help/dictionary/special.htm are "JKT specials". > > > > On Tue, Apr 1, 2014 at 3:21 PM, Joe Bogner wrote: > > > For fun, I've successfully installed J on every computer / device layin

[Jchat] noun naming tips

2014-04-18 Thread Joe Bogner
I am copying some formulas from a research paper and would like to keep the names as close as possible to the original. I realize this is a very basic question but was wondering if anyone has any conventions or tips that work for them when dealing with subscripts and superscripts. For example, th

Re: [Jchat] noun naming tips

2014-04-18 Thread Joe Bogner
ted it correctly. Thanks Joe On Fri, Apr 18, 2014 at 6:17 PM, Dan Bron wrote: > Joe Bogner wrote: > > I realize this is a very basic question but was wondering if anyone has > > any conventions or tips that work for them when dealing with subscripts > > and superscripts.

Re: [Jchat] On the importance of pacing oneself

2014-04-26 Thread Joe Bogner
On Sat, Apr 26, 2014 at 2:28 PM, Raul Miller wrote: > When learning J, or any other programming language (and this also > applies in various non-programming contexts), it's important to pace > yourself. > Yes, for me this means fighting the urge to understand the relevancy of Pepe's functional e

Re: [Jchat] On the importance of pacing oneself

2014-04-26 Thread Joe Bogner
On Sat, Apr 26, 2014 at 6:43 PM, Joe Bogner wrote: > > I know we all have plenty of priorities and creating something like this > would be just one more thing for the community to consider. > If anyone has the skills and interest, creating a kickstarter or equivalent would be a

Re: [Jchat] On the importance of pacing oneself

2014-04-26 Thread Joe Bogner
x27;d be interested in helping out, but would also understand if you > didn't want to put up with the all the learning theory. :-) > > [1] Much better explanation by Siemens G. 2003 > http://www.elearnspace.org/Articles/learning_communities.htm > [2] Therriault, R. 2011 "Video Annotatio

Re: [Jchat] On the importance of pacing oneself

2014-04-26 Thread Joe Bogner
On Sat, Apr 26, 2014 at 9:04 PM, Joe Bogner wrote: > 1. Want to respect the copyright of the dictionary. Perhaps it could be > shown in an iframe? > > Sorry, on second thought I don't think an iframe is a good approach. Perhaps just direct links and of course would try to seek

[Jchat] sorting a matrix by columns and rows

2014-04-29 Thread Joe Bogner
I had a fun moment with J earlier tonight. I was contemplating how to sort a matrix by it's columns and rows while doing the dishes. I sat down and tried it and it was remarkably easy /:~ /:~"1 (10 10 $ ?. 100#50) http://pasteboard.co/2vm2rWOu.png or a bigger matrix: viewmat /:~ /:~"1 (500 500

Re: [Jchat] sorting a matrix by columns and rows

2014-04-30 Thread Joe Bogner
the same from ?. ? > > Ben > > From: chat-boun...@forums.jsoftware.com [chat-boun...@forums.jsoftware.com] > on behalf of Joe Bogner [joebog...@gmail.com] > Sent: Wednesday, April 30, 2014 04:20 > To: c...@jsoftware.com > Subject: [

Re: [Jchat] google code jam

2014-05-03 Thread Joe Bogner
I haven't tried it but sharing the link for others https://code.google.com/codejam/contest/2994486/dashboard Sounds similar to http://en.m.wikipedia.org/wiki/Levenshtein_distance but with different rules and with a list of strings On May 3, 2014 3:27 PM, "Raul Miller" wrote: > Is anyone partici

Re: [Jchat] google code jam

2014-05-04 Thread Joe Bogner
Googling turned up, http://www.go-hero.net/jam/14/problems/2/1 , which looks like all solutions I don't know how how valid they are but assuming they are correct you could run one and see how the results differ. I would be interested in the outcome and may do it myself later -

Re: [Jchat] google code jam

2014-05-04 Thread Joe Bogner
it now. >> >> I mis-spelled Fegla. >> >> -- >> Raul >> >> >> On Sun, May 4, 2014 at 8:17 PM, Joe Bogner wrote: >>> Googling turned up, http://www.go-hero.net/jam/14/problems/2/1 , which >>> looks like all solutions >>> >

[Jchat] recognizing patterns of evaluation

2014-05-18 Thread Joe Bogner
I had a small "ah hah" moment this morning while working through the problem of ^: and boxes that Pascal posted[1] I recognized a fork pattern as a natural solution to the problem - before writing it. Take a list of data, execute two functions against it and then execute a function against those r

Re: [Jchat] Tutorial documentation

2014-05-27 Thread Joe Bogner
To throw out other ideas, I've really enjoyed using ipython notebook Here is an example notebook from someone else http://nbviewer.ipython.org/github/agconti/kaggle-titanic/blob/master/Titanic.ipynb And a random youtube video I found https://www.youtube.com/watch?v=H6dLGQw9yFQ Here's a similar

Re: [Jchat] "Common Core"

2014-05-27 Thread Joe Bogner
Somewhat related, I've started reading The Princeton Companion to Mathematics, an 1100 page reference that seems to cover the full spectrum of mathematics at a significant depth. I was fascinated after 8 pages it introduces the grammar of mathematics. When I first started with J, I thought it was

Re: [Jchat] Tutorial documentation

2014-05-28 Thread Joe Bogner
I did something along these lines here: http://www.jsoftware.com/pipermail/chat/2013-October/005401.html Not faq, but pulling in dictionary entries for symbols. It would be useful to update it for NuVoc and let a person search by name (e.g. 'dict floor') too On Wed, May 28, 2014 at 12:20 PM, Bjö

  1   2   3   >