Re: [Jprogramming] Sequential Machine

2012-03-08 Thread Linda Alvord
Here's a little puzzle. What is the third example doing? state=: 3 2 2$ 1 1 2 1 1 1 2 2 (0;state;mailto:programming-boun...@jsoftware.com] On Behalf Of Linda Alvord Sent: Thursday, March 08, 2012 9:30 PM To: 'Programming forum' Subject: Re: [Jprogramming] Sequential Machine Roger, I'm not sur

Re: [Jprogramming] Sequential Machine

2012-03-08 Thread Roger Hui
x was defined in my msg; it was: x=: 1e6$' the quick brown fox jumps over the lazy dog' It is hard to draw any conclusions on arguments as small as those used in your msg. However, anything in J coming within a factor of 2 of handcoded C, as in the timings in your example, is an accomplishment

Re: [Jprogramming] Sequential Machine

2012-03-08 Thread Linda Alvord
When I tried your example I got a result for the variable x when it was not defined. That's a neat trick! You probably timed a variable that differed from the "fox" sentence as our results are quite different. Also, my results are also not as close as you indicated. state=: 3 2 2$ 1 1 2 1 2

Re: [Jprogramming] Sequential Machine

2012-03-08 Thread Roger Hui
Yes it is. The example looks strange because the first character of a is "a", not normally used as a separator. If the first character is a blank (say), then it looks more normal. e.g. state=: 3 2 2$ 1 1 2 1 2 0 2 2 1 0 2 2 a=: ' a good way to start the day' (0;state; > Roger, I'm n

Re: [Jprogramming] Sequential Machine

2012-03-08 Thread Linda Alvord
Just an aside using cut. In the early days of APL we had initials when sending messages. I was "lla" >;.0 'lla saw dog' god was all Linda -Original Message- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Linda Alvord Sent: Thursday, Mar

Re: [Jprogramming] Sequential Machine

2012-03-08 Thread Linda Alvord
Roger, I'm not sure that this is what you had in mind. a=:'a good way to start the day' <;.1 a -TT-T--┐ │a good w│ay to st│art the d│ay│ L++-+--- state=: 3 2 2$ 1 1 2 1 2 0 2 2 1 0 2 2 (0;state;mailto:programming-boun...@jsoftware

[Jprogramming] NYCJUG meeting moved to Wednesday, 3/14 - ThomasNet - at 18:30

2012-03-08 Thread Devon McCormick
Hi all - We'll have our regular monthly NYCJUG meeting a day later than usual - 3/14 - and not just because it's "pi day". We'll meet at the offices of ThomasNet - 5 Penn Plaza (between 33rd and 34th) - at 18:30. There will be video-conference capabilities - more details on the Meetup site: http

Re: [Jprogramming] Programming competition

2012-03-08 Thread Devon McCormick
One of the attractions of this WSJ competition is that it looks like part of the idea is to assemble a team on the spot. I'm just not confident that I could bring J to the effort and add much value in a short time (about a day and a half) because of my uncertainty about how I would be able to inte

Re: [Jprogramming] Programming competition

2012-03-08 Thread Raul Miller
First you need to define your scope. What volume of traffic does your front end need to deal with (ideally, you should have this right within a factor of 10, but for small projects the estimate is probably not very important)? What kind of information are you showing? (It's good to have a pencil