Re: [Jprogramming] J iOS and iOS 8.4

2015-07-10 Thread J. Patrick Harrington
I've no idea how I would do that. It's been years since I've done anything but run verbs that I developed on my laptop and then copied over to the iPhone. On Sat, 11 Jul 2015, bill lam wrote: Can the new iPhone run pacman? --

Re: [Jprogramming] Here we go again... another Project Euler Question

2015-07-10 Thread Raul Miller
I don't do project euler, I've never really gotten into it. But my impression is that the problems are chosen to make brute force solutions impractical. Here, I think I see a pattern in the relationship between >./@(_&q:) and func (for your definition of func) and I expect that the mechanism behin

[Jprogramming] Here we go again... another Project Euler Question

2015-07-10 Thread Jon Hough
Project Euler #484 https://projecteuler.net/problem=484 is particularly troublesome. My solution is: f =: monad define T =: 5 * 10^15 ctr=:1 sum =: 0 func=:+.(+/@:(1&(*/\.))@:q:) while. ctr < T + 1 do. sum =: sum + func ctr ctr =: ctr+1 end. sum ) But on my Mac this causes a crash. (Do

Re: [Jprogramming] J iOS and iOS 8.4

2015-07-10 Thread bill lam
Can the new iPhone run pacman? On Jul 11, 2015 4:23 AM, "J. Patrick Harrington" wrote: > I've just upgraded my old iPhone 4S to a new 6 Plus. > It's still small enough to fit in my pocket, and the > extra screen real estate makes running J nicer. > Of course the new phone comes with the current

Re: [Jprogramming] J iOS and iOS 8.4

2015-07-10 Thread Roger Hui
> So it looks like this is not meaningful for such a small matrix with current machines. Reminds me of the following story from Chinese history. A king from a minor kingdom was visiting a rich man, reputed to be very rich indeed. So the king wore a special coat made with the finest fabric (the e

Re: [Jprogramming] J iOS and iOS 8.4

2015-07-10 Thread J. Patrick Harrington
One last one: The JKT benchmark Roger pointed to gives: 6!:2 '%. ?50 50$1000' 0.013092 So it looks like this is not meaningful for such a small matrix with current machines. On Fri, 10 Jul 2015, J. Patrick Harrington wrote: But 1000 ts '%. a" 0.00203444 239040 Hmmm... On Fri,

Re: [Jprogramming] J iOS and iOS 8.4

2015-07-10 Thread J. Patrick Harrington
But 1000 ts '%. a" 0.00203444 239040 Hmmm... On Fri, 10 Jul 2015, J. Patrick Harrington wrote: a=. 50 50$ rand 2500 10 ts '%. a' 0.0049867 239040 (ts=: 6!:2 , 7!:2@]) -- For information about J forums see

Re: [Jprogramming] J iOS and iOS 8.4

2015-07-10 Thread J. Patrick Harrington
a=. 50 50$ rand 2500 10 ts '%. a' 0.0049867 239040 (ts=: 6!:2 , 7!:2@]) On Fri, 10 Jul 2015, Roger Hui wrote: PS. Time on the iPhone 6 to invert a 500x500 matrix is only 0.55 sec! If you can do one for a 50x50 matrix the result can be added to http://www.jsoftware.com/jwiki/Essays/JKT_B

Re: [Jprogramming] J iOS and iOS 8.4

2015-07-10 Thread Roger Hui
> PS. Time on the iPhone 6 to invert a 500x500 matrix is only 0.55 sec! If you can do one for a 50x50 matrix the result can be added to http://www.jsoftware.com/jwiki/Essays/JKT_Benchmark On Fri, Jul 10, 2015 at 1:22 PM, J. Patrick Harrington wrote: > I've just upgraded my old iPhone 4S to a n

[Jprogramming] J iOS and iOS 8.4

2015-07-10 Thread J. Patrick Harrington
I've just upgraded my old iPhone 4S to a new 6 Plus. It's still small enough to fit in my pocket, and the extra screen real estate makes running J nicer. Of course the new phone comes with the current version of iOS: 8.4. Thinking it would be the easiest way to move files in and out of J, I purc

[Jprogramming] Looking inside the color cube

2015-07-10 Thread Linda Alvord
Here's a way to look inside a 5x5x5 color cube. There are 125 colors. Any ideas to do it more simply or in a better image? load 'viewmat' A=:#:i.8 N=:<.63.75*i.5 B=:((4#0),N),.N,4#255 BIGBOX=:<"2(|."2)1 0 2{"1(|:"2)8 3 9$,|:(,A){"1 B 'BLACK BLUE RED MAGENTA GREEN CYAN YELLOW WHITE'=:>BIGB

Re: [Jprogramming] Accessing Input Log

2015-07-10 Thread chris burke
> wd 'sminputlog' Thanks. This is not yet implemented for J8. We can add it to J804, but for now you can read the log file, i.e. freads '~config/inputlog.dat' On 10 July 2015 at 05:57, June Kim (김창준) wrote: > Hi > > There used to be > > wd 'sminputlog' > > to get the contents of the input

[Jprogramming] Accessing Input Log

2015-07-10 Thread 김창준
Hi There used to be wd 'sminputlog' to get the contents of the input log. What needs to be done in J804? -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] An Implementation of J AND Joe's MicroJ

2015-07-10 Thread Roger Stokes
Thanks, Joe Regards On 09/07/2015 21:19, Joe Bogner wrote: Roger - thanks for sharing. The 300KB statically linked windows binary is impressive. I wish I knew this existed back in the 90s. It only took me ~20 years to find out On Thu, Jul 9, 2015 at 10:09 AM, Roger Stokes wrote: Let me try a