Re: [Jprogramming] High Speed Train Challenge

2014-07-20 Thread Erling Hellenäs
3(***(***)(***))4 35831808 3((***))4 144 3(***(***)144"_)4 35831808 3(*)4 12 3(**12"_(***)144"_)4 35831808 12(***)144 2985984 3(**2985984"_)4 35831808 3(12"_*2985984"_)4 35831808 3((***)(***)***)4 429981696 3(144"_(***)144"_)4 429981696 /Erling On 2014-07-20 02:49, Linda Alvord wrote:

Re: [Jprogramming] High Speed Train Challenge

2014-07-20 Thread Linda Alvord
Brian, I meant JHS (I went to Vineland High School or VHS and I guess my fingers remembered) I had a chance to experiment with: 9!:3]4 Once you set this in a terminal, any function that you name will give a tree as it's default display until you change it or close the terminal. Also load a new

Re: [Jprogramming] High Speed Train Challenge

2014-07-20 Thread Linda Alvord
3(f=:144"_(***)144"_)4 429981696 3 f 4 429981696 9!:3]4 f ┌─ 144 ┌─ " ─┴─ _ │ │ ┌─ * ├─┼─ * ──┤ └─ * │ │ ┌─ 144 └─ " ─┴─ _ Linda -Original Message- From: [email protected] [m

Re: [Jprogramming] High Speed Train Challenge

2014-07-20 Thread Raul Miller
Linda is using a verizon.net email address, so is probably not using gmail, and probably not using a browser-based email address. A quick web search suggests that verizon provides a simplified version of microsoft exchange. FYI, -- Raul On Sun, Jul 20, 2014 at 12:34 AM, Brian Schott wrote: >

Re: [Jprogramming] High Speed Train Challenge

2014-07-20 Thread Joe Bogner
I would explain it by quoting a few sentences from the dictionary Execution proceeds from right to left, except that when a right parenthesis is encountered... in an unparenthesized expression the right argument of any verb is the result of the entire phrase to its right... The executions in the s

Re: [Jprogramming] High Speed Train Challenge

2014-07-20 Thread Joe Bogner
This may also help show the evaluation more clearly: nb =: (;:^:_1) @: (":&.>) m=: 4 : 'x*y[smoutput nb y;''*'';x' 3 (m m m (m m m) m m m) 4 4 * 3 4 * 3 12 * 12 4 * 3 144 * 12 144 * 12 1728 * 1728 4 * 3 2985984 * 12 35831808 3 ((m m m) (m m m) m m m) 4 4 * 3 4 * 3 12 * 12 4 * 3 4 * 3 12 * 12 14

Re: [Jprogramming] High Speed Train Challenge

2014-07-20 Thread Erling Hellenäs
Yes, well, the trace: trace'3(***(***)(***))4' --- 5 Trident * * * * * * --- 8 Paren -- ( * * * ) * * * --- 5 Trident * * * * * * --- 8 Paren -- ( * * * ) * * * --- 5 Trident * * * * * *

Re: [Jprogramming] High Speed Train Challenge

2014-07-20 Thread Raul Miller
That shows pretty clearly, in my opinion, which parenthesis are redundant, and why. You'd need to compare it with the trace of the other expression to see the difference, of course. That said, Joe Bogner's post on how to see the intermediate results during an execution of that train gives another

Re: [Jprogramming] High Speed Train Challenge

2014-07-20 Thread Jose Mario Quintana
The dictionary is famous (or infamous, depending on one's point of view) for its terseness: " A train of two or three verbs produces a verb and (by repeated resolution), a verb train of any length also produces a verb. For example, the trains +-*% and +-*%^ are equivalent to +(-*%) and +-(*%^). "

Re: [Jprogramming] High Speed Train Challenge

2014-07-20 Thread Brian Schott
This trace adds some clarity, too. trace'3(+*-(*+-)(+-*))4' --- 5 Trident + - * + - * --- 8 Paren -- ( + - * ) + - * --- 5 Trident * + - * + - --- 8 Paren -- ( * + - ) * + - --- 5 Trident -

[Jprogramming] Building standalone app

2014-07-20 Thread Don Guinn
Trying to figure out how to prevent the ijx window from appearing for making standalone applications. I found an example in Wiki Guides/ J8 Standalone. But the zip file of the project build for the application missing -(http://www.mcardle.wisc.edu/mprime/download/viewer-1.zip). I downloaded the in

Re: [Jprogramming] Tacit J and indexed replacement

2014-07-20 Thread Jose Mario Quintana
"It's déjà vu all over again." :) ( http://www.jsoftware.com/pipermail/programming/2009-December/017478.html http://www.jsoftware.com/pipermail/programming/2009-December/017480.html http://www.jsoftware.com/pipermail/programming/2009-December/017482.html ) On Tue, Jul 8, 2014 at 7:05 PM, Erling

Re: [Jprogramming] Building standalone app

2014-07-20 Thread 'Pascal Jasmin' via Programming
I assume you've already found the qt demo that describes show/hide behaviour. "I could put "exit 0" in a close event for the form, but that doesn't seem like a good way to solve the problem. " Its a good way if you have a main form that launches all others, and so can quit all other forms. If

Re: [Jprogramming] Tacit J and indexed replacement

2014-07-20 Thread Erling Hellenäs
Didn't we finish this thread? How about a new thread, possibly with summaries from earlier discussions? This thread was only about indexed replacement and Amend? /Erling On 2014-07-20 21:17, Jose Mario Quintana wrote: "It's déjà vu all over again." :) ( http://www.jsoftware.com/pipermail/pr

Re: [Jprogramming] Building standalone app

2014-07-20 Thread Norman Drinkwater
Sorry, I'm working on updating that guide and will have the files uploaded within a few days. Jqt has changed significantly since that guide was written. > On Jul 20, 2014, at 1:51 PM, Don Guinn wrote: > > Trying to figure out how to prevent the ijx window from appearing for > making standalone

Re: [Jprogramming] Building standalone app

2014-07-20 Thread Don Guinn
Yes, I could run my apps from the IDE window, but many times it is nice to just have the app be a link on the screen. And distributed apps could be run from the IDE as well, but it is nice that the IDE doesn't pop up showing that the app is written in J. Make an app written in J look no different t

Re: [Jprogramming] Building standalone app

2014-07-20 Thread Don Guinn
Yes, I noticed that a lot had changed when I compared the library scripts in your viewer.ijs and the ones in the current J library. On Sun, Jul 20, 2014 at 2:11 PM, Norman Drinkwater wrote: > Sorry, I'm working on updating that guide and will have the files uploaded > within a few days. Jqt has

Re: [Jprogramming] Why does u^:_2 execute u?

2014-07-20 Thread Jose Mario Quintana
I cannot imagine either what that business might be. Neither I can find any warning in the dictionary justifying this behavior. On the contrary: "If n is negative, the *obverse* u^:_1 (see below) is applied |n times." ( http://jsoftware.com/help/dictionary/d202n.htm ) There are potential adverse

Re: [Jprogramming] Tacit J and indexed replacement

2014-07-20 Thread Jose Mario Quintana
I was on vacation eating and drinking at street side stands in Mexico City and sun bathing on the Mayan Riviera. I am sorry. Nah, I am not. On Sun, Jul 20, 2014 at 3:59 PM, Erling Hellenäs wrote: > Didn't we finish this thread? How about a new thread, possibly with > summaries from earlier di

Re: [Jprogramming] Building standalone app

2014-07-20 Thread chris burke
> ...pops up when the form is closed. I could put "exit 0" in a close event for the form, but that doesn't seem like a good way to solve the problem. J6 had an option that when the last window closed J closed. That doesn't seem to be J8 works. Right now you have to use "exit 0" at the end. This wa

Re: [Jprogramming] Building standalone app

2014-07-20 Thread Don Guinn
OK. Thanks. What about "fixed" as in: cc editname edit;set editname fixed 60; Is it supposed to be gone or did it get accidently dropped? What does (wd 'smact') do? On Sun, Jul 20, 2014 at 3:26 PM, chris burke wrote: > > ...pops up when the form is closed. I could put "exit 0" in a close ev

Re: [Jprogramming] Building standalone app

2014-07-20 Thread bill lam
smact is used inside labs to transfer focus back to term after creating a new form. This is just for convenience and not mandatory so that the cmd may be dropped. On Jul 21, 2014 5:32 AM, "Don Guinn" wrote: > OK. Thanks. > > What about "fixed" as in: > cc editname edit;set editname fixed 60; >

Re: [Jprogramming] Building standalone app

2014-07-20 Thread Don Guinn
Yes, I see how it can be quite useful. I tried it with a form. There is a similar situation where doing a Find, say in the edit window, that one has to select back to the edit window very carefully to get the found string to be highlighted. The edit form needs a similar tool. On Sun, Jul 20, 2014