Re: [Jprogramming] J and APL

2014-07-30 Thread Raul Miller
This is probably the wrong forum for this conversation, so I'll just recommend you spend a few minutes over at http://dyalog.com/ Thanks, -- Raul On Thu, Jul 31, 2014 at 1:53 AM, Jon Hough wrote: > Although I no zero APL, I understand that J was born from APL with an > ASCII character set a

[Jprogramming] J and APL

2014-07-30 Thread Jon Hough
Although I no zero APL, I understand that J was born from APL with an ASCII character set and some ideas from Backus' languages. And I am aware many J programmers are also APL programmers. So do modern APL dialects provide any functionality not included in J? For example, or counterexample, I do

Re: [Jprogramming] J Conference 2014 paper

2014-07-30 Thread Roger Hui
With CRC32 you can only ever have 2^32 different values, which is not different enough when x has more than 2^32 items. Reducing the chance of collision is the main point of hashing. On Wed, Jul 30, 2014 at 9:30 PM, bill lam wrote: > Sorry Roger. I forgot pointer arithmatic. > > BTW I think h

Re: [Jprogramming] J Conference 2014 paper

2014-07-30 Thread bill lam
Sorry Roger. I forgot pointer arithmatic. BTW I think hardware crc32 can also be used in J64. What will be its downside apart from higer chance of getting collison when compared to crc64? Ср, 30 июл 2014, Roger Hui написал(а): > Actually, no. z would be declared to be a pointer of the appropri

[Jprogramming] neat way to pass verbs to m or n parameters in modifiers (trains too)

2014-07-30 Thread 'Pascal Jasmin' via Programming
eval =: 1 : ' a: 1 :  m' u2m =: 1 : (':';'x m eval y') v2n =: 2 : (':';'x  (u v eval) y') v2nS =: 2 : (':';'x  (v eval u) y') u2m is limited to monadic result verbs, but because you can build the parameters, you can also create bound verbs:    '+' (] (' eval' u2m)~ '3&' ,[) 2 5 the parameter

Re: [Jprogramming] J Conference 2014 paper

2014-07-30 Thread Roger Hui
Actually, no. z would be declared to be a pointer of the appropriate type and z=z+1; would make z point to the next item. z=z+sizeof(*z); would in fact be wrong. For example, if z points to a 4-byte integer, sizeof(*z) would be 4 and z=z+sizeof(*z); would make z point to 4 items further. You ca

Re: [Jprogramming] J Conference 2014 paper

2014-07-30 Thread bill lam
Sorry for being meticulous, the last step probably better be expressed as z=z+sizeof(*z) On Jul 31, 2014 12:37 AM, "Roger Hui" wrote: > Thanks for your comments and questions. > > 0. The C code presented is only for a primitive datatype (in C). The paper > (script) says this. The basic hashing

[Jprogramming] Problems with Rserve addon

2014-07-30 Thread rlvaughan
Thanks for all your help both with the original problem and with the debugger. I may still use the GUI debugger in J602 for a while (when I need a debugger) as I find it convenient; otherwise I am happy with 8.02. As for removing all of R before installing a new version, I meant before install

Re: [Jprogramming] recursive agenda with named components

2014-07-30 Thread David Lambert
Like others, I'm learning to use j effectively on tiny smart phone display. I had considered preprocessing source with m4 to produce long j sentences. Considering m4 helped me finally understand eval. Eval directly converts literals into j code. Now I have another option to compose j. Thank

Re: [Jprogramming] J Conference 2014 paper

2014-07-30 Thread Roger Hui
Thanks for your comments and questions. 0. The C code presented is only for a primitive datatype (in C). The paper (script) says this. The basic hashing logic still works for other datatypes, but instead of using == and != (the C equals and not-equal) you'd need something more elaborate. Still

Re: [Jprogramming] J Conference 2014 paper

2014-07-30 Thread Brian Schott
Roger, Because my C is so weak I could use some explanation in words of what the C is doing, not in general, but to discuss the questions below. Would you say that the basic approach that is being taken in DO's is more like the APL\360 definition or more like the Extended definition. I guess I am

Re: [Jprogramming] Analyze an alternating series

2014-07-30 Thread bill lam
at2 should be arctan from ratio of 2 numbers so that the domain of at2 is an array with the last dimension being 2, ie, $y = ... 2 or at2=: (12&o.)@(j./) or at2=: (12&o.)@(j./)"1 at2 working on a longer list of number is not its original intention. J is sometimes difficult to read because its co

Re: [Jprogramming] Analyze an alternating series

2014-07-30 Thread Raul Miller
Ok, https://en.wikipedia.org/wiki/Atan2 makes sense. In this case, though, it probably makes sense to constrain the last dimension so that it only contains two values. Perhaps? atan2=: 3 :'{:"1 *. j./"1 y assert. 2={:$y' Not that code can ever be perfect, or anything... Thanks, -- Raul

Re: [Jprogramming] (no subject)

2014-07-30 Thread Raul Miller
I think you are referring to http://rosettacode.org/wiki/Multiline_shebang#J Thanks, -- Raul On Tue, Jul 29, 2014 at 11:58 PM, bill lam wrote: > IIRC about 2 decades ago, the file extension for j scripts was "js" but > later java became popular and they used the same file extension. J had t

Re: [Jprogramming] Analyze an alternating series

2014-07-30 Thread Linda Alvord
At2 is a function Cliff Reiter developed. The at is arctan. I'm not sure what the 2 means. Your version at3 simply incorporates the i: of this example. However y in his version allows different domains: at2=: 13 :'([:{:"1 *.) j./"1 y' at2 4 0 at2 i.4 _2.35619 at

Re: [Jprogramming] (no subject)

2014-07-30 Thread bill lam
I guess there is no need to change "-" if symlink is also used. Ср, 30 июл 2014, Björn Helgason написал(а): > Could change the - to / > > ~$ ln -s /home/chris/j64/802/bin/jconsole jc > > I guess the 32 bit will be around for quite some time. > > Or /J802/64/bin > > __---_ > htt

Re: [Jprogramming] (no subject)

2014-07-30 Thread Björn Helgason
Could change the - to / ~$ ln -s /home/chris/j64/802/bin/jconsole jc I guess the 32 bit will be around for quite some time. Or /J802/64/bin __---_ https://groups.google.com/forum/m/#!forum/havaogskulamal On 30 Jul 2014 00:47, "chris burke" wrote: > It should work as described,