Re: [Jprogramming] j701 Speed Test

2012-09-07 Thread Joey K Tuttle
iPhone 4 - 18.2 seconds iPad 2 - 4.6 seconds On 2012/09/07 19:48 , bill lam wrote: I am curious to know what are the timings for iphone and ipad. It is around 6 to 11 seconds on android depending on CPU. Срд, 05 Сен 2012, Paul Jackson писал(а): Some time ago, you and Roger were talki

Re: [Jprogramming] j701 Speed Test

2012-09-07 Thread bill lam
I am curious to know what are the timings for iphone and ipad. It is around 6 to 11 seconds on android depending on CPU. Срд, 05 Сен 2012, Paul Jackson писал(а): > Some time ago, you and Roger were talking about timings on > %. 500 500 ?@$ 1000 > > I believe Roger said he had timings from th

Re: [Jprogramming] deoptim and lbfgs minimization

2012-09-07 Thread Ric Sherlock
On Sep 7, 2012 10:28 PM, "Piet de Jong" wrote: > > Thanks for all the help. This has got me going just fine (at least for now) Good to hear. > lgbfgs used to work find for me under J6. So I miss it under J7. > Advantage was that it had derivatives and Hessians which are > important for likeli

Re: [Jprogramming] Flattening a list containing boxed elements

2012-09-07 Thread Linda Alvord
Thanks, After I sent the message it rankled me that it might be a problem of rank. Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Dan Bron Sent: Friday, September 07, 2012 12:35 PM To: programm...@js

Re: [Jprogramming] Flattening a list containing boxed elements

2012-09-07 Thread Dan Bron
Rank. All definitions in the DoJ are subject to considerations of rank, though this often -forgive the pun- tacit. NB.vi (v x) u (v y) glue =: dyad def '< (> x) , (> y)' NB. Rank zero here is key ; z glue"0 ' ' alpha bravo chuck -

[Jprogramming] NYCJUG Tuesday, 9/11, 18:30 at ThomasNet (5 Penn Plaza - 8th Ave. between 33rd and 34th)

2012-09-07 Thread Devon McCormick
NYCJUG will meet at ThomasNet this coming Tuesday, so we should have audio and video available over the web. Get more information on our Meetup site at http://www.meetup.com/J-Dynamic-Functional-Programming/ . Hope to see you there! -- Devon -

Re: [Jprogramming] Flattening a list containing boxed elements

2012-09-07 Thread Raul Miller
I don't know? From your question, I am imagining you were expecting one of these results to be different. But without knowing which sentence you were expecting to be different, and what you were expecting, it's hard to know for sure. That said, if you expected your second sentence's result to ma

Re: [Jprogramming] Flattening a list containing boxed elements

2012-09-07 Thread Linda Alvord
Now what am I missing? ; z ,&.> ' ' alpha bravo chuck NB. x u&.v y ↔ vi (v x) u (v y) ;<(>z),>' ' alpha bravo chuck Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming- boun...@forums.jsoftware.com] On Behalf Of Linda Al

Re: [Jprogramming] Flattening a list containing boxed elements

2012-09-07 Thread Linda Alvord
Chuck caused grief! -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Dan Bron Sent: Friday, September 07, 2012 9:24 AM To: programm...@jsoftware.com Cc: Subject: Re: [Jprogramming] Flattening a list containing

Re: [Jprogramming] duplicate row of matrix

2012-09-07 Thread Roger Hui
Atom, list, table (http://www.jsoftware.com/help/dictionary/dicta.htm), ..., and then I remember Ken using file, filing cabinet or shelf (?), ..., but I can not where it's written. On Fri, Sep 7, 2012 at 7:32 AM, km wrote: > Somewhere I have seen Ken suggest line and page (and even book and >

Re: [Jprogramming] duplicate row of matrix

2012-09-07 Thread km
Somewhere I have seen Ken suggest line and page (and even book and library), but I can't find where. The Primer (click on Pri at the top of the Vocabulary page) has sections Atom, List, Table, Array (just after Checkpoint D). Sent from my iPad On Sep 7, 2012, at 3:03 AM, "Linda Alvord" wrote

Re: [Jprogramming] flattening boxed strings

2012-09-07 Thread Ian Clark
...Anyway I can well believe that there's a factor of 1.5 on the PC (if that's what you're using). The iMac has tricks the PC can only dream of. On Fri, Sep 7, 2012 at 3:07 PM, Ian Clark wrote: > I'm grateful you did. Had you not done so, I'd have persisted in my > unconscious acceptance of }. be

Re: [Jprogramming] flattening boxed strings

2012-09-07 Thread Ian Clark
I'm grateful you did. Had you not done so, I'd have persisted in my unconscious acceptance of }. being no better or worse than }: . On Fri, Sep 7, 2012 at 3:02 PM, Roger Hui wrote: >> But there is a difference, and it's reproducible. > > The difference is so small that I wouldn't worry about it.

Re: [Jprogramming] flattening boxed strings

2012-09-07 Thread Ian Clark
Yes, I deliberately whittled away at joinstring for one of my examples, throwing out the code to handle variable-length x. For longer $z, the timings draw closer together. For shorter z, the differences are more significant. On Fri, Sep 7, 2012 at 8:17 AM, Ric Sherlock wrote: > None of these vers

Re: [Jprogramming] flattening boxed strings

2012-09-07 Thread Roger Hui
> But there is a difference, and it's reproducible. The difference is so small that I wouldn't worry about it. I would not have posted my msg if I knew that the timings were not reproducible. I thought there was a factor of 1.5. On Fri, Sep 7, 2012 at 6:37 AM, Ian Clark wrote: > The point i

Re: [Jprogramming] flattening boxed strings

2012-09-07 Thread Ian Clark
The point is well-made, Roger. SP=: ' ' b2o=: }.@(( 'x' $ b2o x 10497510 timer 'b2o x' 0.189877 timer 'b2q x' 0.189789 Counter-intuitive, when I first saw it. But only to be expected, when I thought it through. s=: 1e7 $ 'x' timer '}. s' 0.0148418 timer '}: s' 0.014695 Dropp

Re: [Jprogramming] Flattening a list containing boxed elements

2012-09-07 Thread Dan Bron
There are more issues than that. For example, try it with "chuck" instead of "charlie". Also, since > is a scalar verb, the "0 is superfluous. Also, the ,' ' appends spaces not to the individual words, but to the entire array, so that they all end up trailing, instead of interspersed as desi

Re: [Jprogramming] Flattening a list containing boxed elements

2012-09-07 Thread R.E. Boss
z=: 'alpha' ; 'bravo' ; 'charlie' ' '=,(>"0 z),' ' 0 0 0 0 0 1 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 ' '=;:^:_1 z 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 R.E. Boss > -Oorspronkelijk bericht- > Van: programming-boun...@forums.jsoftware.com > [mailto:programming-bou

Re: [Jprogramming] Flattening a list containing boxed elements

2012-09-07 Thread Linda Alvord
Did I miss this somewhere? An alternative without inv. ,(>"0 z),' ' alpha bravo charlie Linda -Original Message- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Ric Sherlock Sent: Monday, August 22, 2011 8:09 PM To: Programming fo

Re: [Jprogramming] Journal of J

2012-09-07 Thread R.E. Boss
https://sites.google.com/site/jforscience/april-2012/ R.E. Boss > -Oorspronkelijk bericht- > Van: programming-boun...@forums.jsoftware.com > [mailto:programming-boun...@forums.jsoftware.com] Namens david alis > Verzonden: vrijdag 7 september 2012 12:21 > Aan: Programming forum > Onderw

Re: [Jprogramming] deoptim and lbfgs minimization

2012-09-07 Thread Piet de Jong
Thanks for all the help. This has got me going just fine (at least for now) Yes I understand my typo:+/@*: should have been +/@:*: Will try things - have an intensive minimization problem and want to see how things compare to "amoeba" which is (for my problem) slow and gets stuck in local a

[Jprogramming] Journal of J

2012-09-07 Thread david alis
is there a link to the Journal of J? [Jprogramming] Journal of J mikel paternain mikelpater at hotmail.es Mon Sep 3 18:41:32 UTC 2012 Dears friends. Journal of J began as a non professional project to expand J in spain. JoJ is a collaborative proj

Re: [Jprogramming] flattening boxed strings

2012-09-07 Thread Ric Sherlock
I did some forum archeology on joinstring. It was developed over a couple of years and a couple of threads. Here: http://www.jsoftware.com/pipermail/programming/2007-June/007040.html Then: http://www.jsoftware.com/pipermail/programming/2007-June/007077.html A year's fermentation: http://www.jsoftwa

Re: [Jprogramming] emulating e. with +/ and =/

2012-09-07 Thread Linda Alvord
Also: 'b'([:+/=/&,) 'abcd' 0 1 0 0 'b' = 'abcd' 0 1 0 0 'bc' ([: +/=/&,) 'abcd' 0 1 1 0 +./"2 'bc' =/ 'abcd' 0 1 1 0 Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of bob therriault Sent: Fr

Re: [Jprogramming] load/require in different modes?

2012-09-07 Thread Ric Sherlock
Yes packages are fixed at the 2nd level, but my understanding is that the ability to load scripts from those packages located at levels below that is intended behaviour. eg: load 'math/deoptim/demo/eg_deoptim' If it turns out that is not intended, then I second Ian's request! On Fri, Sep 7, 20

Re: [Jprogramming] load/require in different modes?

2012-09-07 Thread Ian Clark
Oh dear. Can I request its promotion to a feature? On Fri, Sep 7, 2012 at 3:41 AM, bill lam wrote: > As I understand it, the short hand load'foo/bar' is intended to load > an addon package, and a package is fixed at the 2nd level of the > folder tree under ~addons. If it can work with other var

Re: [Jprogramming] deoptim and lbfgs minimization

2012-09-07 Thread Ric Sherlock
By the way, if you use getDEoptim instead of deoptim the output is as a table with labels in the first column and maybe easier to interpret i.e. getDEoptim 'ssq_base_'; _3 3 On Fri, Sep 7, 2012 at 8:43 PM, Ric Sherlock wrote: > Yes Mike has got you going. If you haven't already I'd recommend >

Re: [Jprogramming] flattening boxed strings

2012-09-07 Thread R.E. Boss
Since ;: b._1 }:@;@(,&' '&.>"1) :.;: and (' '&joinstring) compared to (;:^:_1) is not only 20% faster but is also 4 times as lean, (;:b._1) better can be redefined. R.E. Boss > -Oorspronkelijk bericht- > Van: programming-boun...@forums.jsoftware.com > [mailto:programmin

Re: [Jprogramming] deoptim and lbfgs minimization

2012-09-07 Thread Ric Sherlock
Yes Mike has got you going. If you haven't already I'd recommend looking through the test script which I've fixed the link to on the wiki page for the addon. It has some simple examples there. http://www.jsoftware.com/jwiki/Addons/math/deoptim Glad to see that someone else has use for this. I su

Re: [Jprogramming] deoptim and lbfgs minimization

2012-09-07 Thread Mike Day
New to me but I've just had a look, in J602. As you said, there seem to be a number of issues: 1) your provided function needs to return a scalar result. (+/@*:) 2 3 4 9 (+/@:*:) 2 3 13 So ssq should be +/@:*: 2) The locale for deoptim starts as pdeoptim One way round appears to be to d

Re: [Jprogramming] flattening boxed strings

2012-09-07 Thread Roger Hui
You are right. My numbers were copied and pasted from my J session, but I guess events outside of J influenced them and made them meaningless. On Fri, Sep 7, 2012 at 12:17 AM, Ric Sherlock wrote: > None of these versions seem to provide much (any?) benefit over and > above the joinstring verb

Re: [Jprogramming] duplicate row of matrix

2012-09-07 Thread Linda Alvord
Did you happen to notice David's use of the word "pages" at the end of his message? It makes a great visual image to explain the array. I was wondering if it has been used in this context before, or does it have a long and checkered APL or J history? Linda -Original Message- From: prog

Re: [Jprogramming] flattening boxed strings

2012-09-07 Thread Ric Sherlock
None of these versions seem to provide much (any?) benefit over and above the joinstring verb from strings. timespacex 'b2o x' 0.145468 4.1748e7 timespacex 'b2q x' 0.145305 4.1748e7 timespacex 'SP joinstring x' 0.143562 4.17485e7 When we inspect joinstring the reason becomes clear ... th