Re: [Jprogramming] Currency calculations

2014-01-07 Thread Ric Sherlock
Thanks. The j formatting for ": was what I was missing. Using 0j2 gives me auto-width which makes life easier. On Tue, Jan 7, 2014 at 5:44 PM, Raul Miller wrote: > J's rational and extended numbers are adequate for this task. You can > specify the dollars and cents directly and then use x: to c

Re: [Jprogramming] jmf on osx

2014-01-07 Thread Eric Iverson
Bill, I didn't realize your question included iOS (iPhone etc). The test suite runs clean for OSX intel/ppc 32/64. The cd tests were never run for iOS as there was no intention of supporting cd for iOS as there was no use for it in that initial J iOS release. iOS and OSX are related, but different

[Jprogramming] Getting rid of busy form of waiting

2014-01-07 Thread Jan Jacobs
ls, I have a busy form of waiting for standard input and use the function stdin=:1!:1&3 for this purpose. In a Linux environment (using jconsole) this consumes a lot of CPU cycles. Is there a better way? Thanks in advance, Jan. -- Jan Jacobs Esdoornstraat 33 5995AN Kessel W: www.sommaps.com T: +3

Re: [Jprogramming] Getting rid of busy form of waiting

2014-01-07 Thread bill lam
May be make it sleep awhile in the tight loop, eg usleep 1000 Вт, 07 янв 2014, Jan Jacobs писал(а): > ls, > I have a busy form of waiting for standard input and use the > function stdin=:1!:1&3 for this purpose. > In a Linux environment (using jconsole) this consumes a lot of CPU cycles. > Is the

Re: [Jprogramming] Getting rid of busy form of waiting

2014-01-07 Thread Devon McCormick
Is there a way to do event-driven input using JHS? On Tue, Jan 7, 2014 at 11:15 AM, bill lam wrote: > May be make it sleep awhile in the tight loop, eg > > usleep 1000 > > Вт, 07 янв 2014, Jan Jacobs писал(а): > > ls, > > I have a busy form of waiting for standard input and use the > > function

[Jprogramming] blunt verbs (tacit x and y)

2014-01-07 Thread Michal Wallace
Hey all, I made an adverb ('xy') that lets trains refer to their arguments explicitly. Example: f =: (Y * X + Y)xy 1 2 f 3 4 12 24 X and Y behave like [ and ], but reference the arguments of the whole train: 0 1 (2: X 3:)xy 4 5 0 1 0 1 (2: Y 3:)xy 4 5 4 5 I have no use for it yet,

Re: [Jprogramming] Getting rid of busy form of waiting

2014-01-07 Thread Raul Miller
What kind of events do you want to be dealing with? Javascript document events? Http request events? Some other kind of events? Thanks, -- Raul On Tue, Jan 7, 2014 at 12:58 PM, Devon McCormick wrote: > Is there a way to do event-driven input using JHS? > > > On Tue, Jan 7, 2014 at 11:15 AM,

Re: [Jprogramming] blunt verbs (tacit x and y)

2014-01-07 Thread Raul Miller
Cute! -- Raul On Tue, Jan 7, 2014 at 2:14 PM, Michal Wallace wrote: > Hey all, > > I made an adverb ('xy') that lets trains refer to their arguments > explicitly. > > Example: > >f =: (Y * X + Y)xy >1 2 f 3 4 > 12 24 > > X and Y behave like [ and ], but reference the arguments of the w

Re: [Jprogramming] Getting rid of busy form of waiting

2014-01-07 Thread Jan Jacobs
Thank you for the help. We thought also about "sleeping", we give it a try. Devon, could you pls give a pointer; I do not have experience with JHS. Jan. On Tue, Jan 7, 2014 at 6:58 PM, Devon McCormick wrote: > Is there a way to do event-driven input using JHS? > > > On Tue, Jan 7, 2014 at 11:15

Re: [Jprogramming] Getting rid of busy form of waiting

2014-01-07 Thread Devon McCormick
I'd like to be able to solve the "prompt" issue - http://www.jsoftware.com/jwiki/RicSherlock/Temp/InteractivePrompt - by seeing some good examples of an HTML front-end for J programs. On Tue, Jan 7, 2014 at 2:29 PM, Raul Miller wrote: > What kind of events do you want to be dealing with? > > Ja

Re: [Jprogramming] Getting rid of busy form of waiting

2014-01-07 Thread Devon McCormick
Maybe this: http://www.jsoftware.com/jwiki/Trash/System/Beta/HelloWorld ? On Tue, Jan 7, 2014 at 2:39 PM, Jan Jacobs wrote: > Thank you for the help. We thought also about "sleeping", we give it a try. > Devon, could you pls give a pointer; I do not have experience with JHS. > Jan. > > > On Tu

Re: [Jprogramming] Getting rid of busy form of waiting

2014-01-07 Thread robert therriault
The demo's provided under the Studio Menu in JHS are really the thing to study for this. Start with demo1 and be ready to use some web skills, as that is the basis for the JHS front end. I still think that Gosi's page from the NYCJUG is a really good starting resource. http://www.jsoftware.com

Re: [Jprogramming] Getting rid of busy form of waiting

2014-01-07 Thread Jan Jacobs
Thank you all for your help. I will dive into this. Jan. On Tue, Jan 7, 2014 at 9:52 PM, robert therriault wrote: > The demo's provided under the Studio Menu in JHS are really the thing to > study for this. Start with demo1 and be ready to use some web skills, as > that is the basis for the JHS

[Jprogramming] Labeling points in a plot?

2014-01-07 Thread Devon McCormick
Hi - I thought there was a way to do it but cannot find the reference: is there a way to label points on a plot, like this: http://www.jsoftware.com/jwiki/DevonMcCormick/LanguageAffinities ? -- Devon McCormick, CFA -- For informa