Re: [Jprogramming] How best to Port MatLab structure to J

2013-02-02 Thread Bo Jacoby
David, the disadvantage of the SAF format is intolerable. The file format exemplified in http://www.jsoftware.com/jwiki/IanClark/credo dosn't have this disadvantage. Everything is kept in one file. The information you need is easily extracted from the file. - Bo >___

Re: [Jprogramming] How best to Port MatLab structure to J

2013-02-02 Thread David Porter
The problem I faced in MatLab was to provide temperature data from an infra-red camera. The data from the camera was in the Air Force's Standard Archive Format(SAF) that allows all the raw data, calibration constants, and much ancillary data (such as data units, classification, and data type)

Re: [Jprogramming] Burrows-Wheeler Transform

2013-02-02 Thread Henry Rich
I don't know jack about the BWT, but from the Wikipedia entry this looks like an implementation: ({~ <:@/:) 'aBANANAz' BNNaAAzA That works for their testcase, but it doesn't match yours. I think the difference is that you sort on all characters rather than just the first. Is this simpler

Re: [Jprogramming] Burrows-Wheeler Transform

2013-02-02 Thread William Tanksley, Jr
The BWT by definition HAS to pass extra data to track the beginning of the string. Here's a similar transform that doesn't: http://arxiv.org/abs/1201.3077 No, I don't understand it at all, sorry. -Wm On Sat, Feb 2, 2013 at 7:08 PM, Raul Miller wrote: > Here's a slightly flawed implementation

Re: [Jprogramming] inverse oblique

2013-02-02 Thread km
Thanks, Roger. Kip Sent from my iPad On Feb 2, 2013, at 10:14 AM, Roger Hui wrote: > See *Programming Style in APL , > *by Ken Iverson in 1978. > > > On Sat, Feb 2, 2013 at 6:15 AM, km wrote: > >> Consider comparing the writing of J to the wr

Re: [Jprogramming] inverse oblique

2013-02-02 Thread Raul Miller
For that I think you would be better off using the original implementation posted at wikipedia. The approach I posted seems to have a problem with it and I'm not certain if the issue is efficiency or a logical failure, but efficiency seems plausible. -- Raul On Sat, Feb 2, 2013 at 2:57 PM, R.E.

Re: [Jprogramming] How best to Port MatLab structure to J

2013-02-02 Thread David Mitchell
An example of using packages: load'pack' r1=:'res text' r2=:2 3 4 r3=: i. 5 6 test1=: pack'r1 r2 r3' r1=:'scraps' r2=:_1 r3=: 'fizzy' test2=: pack'r1 r2 r3' r1=:_10+ i. 5 r2=:'pils' r3=: 600 1$'o' test3=: pack'r1 r2 r3' q1_tests=:pack'test1 test2 test3'

Re: [Jprogramming] inverse oblique

2013-02-02 Thread R.E. Boss
What about 'thisisatestthisisatest' lcs 'testing123testingtesting123testing' ? R.E Boss > -Oorspronkelijk bericht- > Van: programming-boun...@forums.jsoftware.com > [mailto:programming-boun...@forums.jsoftware.com] Namens Raul Miller > Verzonden: vrijdag 1 februari 2013 21:40 > Aan

Re: [Jprogramming] inverse oblique

2013-02-02 Thread Roger Hui
See *Programming Style in APL , *by Ken Iverson in 1978. On Sat, Feb 2, 2013 at 6:15 AM, km wrote: > Consider comparing the writing of J to the writing of English. What would > be in your "Strunk and White" for the writing of J? > > (The Elements

Re: [Jprogramming] inverse oblique

2013-02-02 Thread Linda Alvord
My proposal of t1 and t2 is an effort to acknowledge that there are different styles of J and both have their place. -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of William Tanksley, Jr Sent: Saturday, F

Re: [Jprogramming] inverse oblique

2013-02-02 Thread bob therriault
If it were written it might be written as a series of guidelines rather than specific rules. As an example, I would suggest that a guideline from the original Elements of Style by Strunk, fits J even closer than English. Vigorous writing is concise. A sentence should contain no unnecessary wor

Re: [Jprogramming] inverse oblique

2013-02-02 Thread Raul Miller
I'm not sure if that has been written yet, in the context of J. Also... http://en.wikipedia.org/wiki/The_Elements_of_Style#Criticism I am not sure it should be. -- Raul On Sat, Feb 2, 2013 at 9:15 AM, km wrote: > Consider comparing the writing of J to the writing of English. What would be

Re: [Jprogramming] inverse oblique

2013-02-02 Thread km
Consider comparing the writing of J to the writing of English. What would be in your "Strunk and White" for the writing of J? (The Elements of Style by William Strunk, Jr and E B White is a "writing" book. Famously brief, it discusses rules for writing correctly and well.) Kip Sent from my i

Re: [Jprogramming] How best to Port MatLab structure to J

2013-02-02 Thread David Mitchell
Hmm, searching my old IPSharp memories, I recalled that J does implement a named, potentially hierarchical data structure known as packages. Packages can be used to organize data as lists of name:value pairs, where the values could be deeper levels of packages. It is a tad clumsier than a a t

Re: [Jprogramming] inverse oblique

2013-02-02 Thread Raul Miller
While I am comparing the learning of J to the learning of english: Do we have grammar school students learn english by asking them to only use [insert grammatical structure here]? Why or why not? If so, how well does that work? If not, what do we do instead? Thanks, -- Raul On Sat, Feb 2, 2

Re: [Jprogramming] How best to Port MatLab structure to J

2013-02-02 Thread Don Guinn
Every programming language created solved some problems more easily than existing languages. That was the reason the new language was created. People love to "prove" that one language is better than another is by insisting that the solution be done a certain way. On Sat, Feb 2, 2013 at 6:28 AM, Ra

Re: [Jprogramming] inverse oblique

2013-02-02 Thread Raul Miller
Time to "master" dictionary reading depends on how many different words one must understand, but this includes how many related definitions and concepts one must comprehend in order to understand the definition. That said, I would never ever expect a student to learn solely from the dictionary. D

Re: [Jprogramming] How best to Port MatLab structure to J

2013-02-02 Thread Raul Miller
As has been pointed out, J's locales are not hierarchical. J's boxed structures are hierarchical but are not implicitly named. A question is: why do you need both a hierarchy and a way of making copies of a part of that hierarchy? Why not use a single copy? What problem does the hierarchy solve

Re: [Jprogramming] inverse oblique

2013-02-02 Thread Don Guinn
In a first algebra class the teacher gave us some expressions to "simplify". Most were pretty obvious. But a few had more than one expression that was the "simplest". They really bothered me because if I didn't choose the one the teacher thought was the "simplest" she would mark it wrong. On Sat,