Re: [Jprogramming] Amending big array

2009-12-15 Thread miridian
Devon McCormick wrote: There is frequently performance degradation on a straight port of an algorithm from a compiled language to J. However, two advantages that J brings are 1) a different outlook on the problem, sometimes allowng a new and different algorithm, and 2) a quick way to try

Re: [Jprogramming] Amending big array

2009-12-15 Thread Dan Bron
meridian wrote: Maybe someone can suggest how to re-implement in J. (if possible without using a totally new algorithm) #!/usr/bin/env python Would you mind posting the problem spec? -Dan -- For information about J

Re: [Jprogramming] Amending big array

2009-12-15 Thread Björn Helgason
As you may know then it is faster to create an array first and amend into it rather than add to the array. I am also pretty sure that boxing operations take longer. 2009/12/14 miridian mirid...@mailshack.com: Hallo, I implemented a solution in J for Euler problem 161. It is very slow. :-(

Re: [Jprogramming] Amending big array

2009-12-15 Thread R.E. Boss
http://projecteuler.net/index.php?section=problemsid=161 R.E. Boss -Oorspronkelijk bericht- Van: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] Namens Dan Bron Verzonden: dinsdag 15 december 2009 14:58 Aan: 'Programming forum' Onderwerp: Re: [Jprogramming]

Re: [Jprogramming] Amending big array

2009-12-15 Thread bill lam
mar, 15 Dec 2009, miridian skribis: Maybe someone can suggest how to re-implement in J. What is your J solution? -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3

[Jprogramming] Graphics for holyday

2009-12-15 Thread M.Shimura
Holyday greeting ! This is a OpenGL for Happy Holyday Dance of Sugar Plum faily? , Tchaikovsky 's Nutz cracker suite Dodecahedron and Icosahedron are Dancing according to key x y x This Script is written by Nishikawa Toshio for JAPLA 2009 05/DEC/2009

Re: [Jprogramming] C# .NET COM JDLLServer

2009-12-15 Thread Matthew Brand
I have done some investigations (outside of NinjaTrader, just using Visual Studio c#). I do not know for sure, but it might be that the JDLLServerClass does not work on 64 bit Windows 7? I am in way over my head here, I have no idea what is going on - so apologies in advance if I am wrong. I read

Re: [Jprogramming] Amending big array

2009-12-15 Thread Devon McCormick
It's at http://projecteuler.net/index.php?section=problemsid=161 . Basically, given triominos like this: ]trioms=. ~.,(|:@:|. ; |: ; ] ; |.1) ('X';'XX');,:'XXX' +--+--+--+--+-+---+ |XX|XX|X | X|X|XXX| |X | X|XX|XX|X| | | | | | |X| | +--+--+--+--+-+---+ there are 41 ways to tile (no

Re: [Jprogramming] Graphics for holyday

2009-12-15 Thread PackRat
Holyday greeting ! ... Dodecahedron and Icosahedron are Dancing according to key x y x This Script is written by Nishikawa Toshio for JAPLA 2009 05/DEC/2009 ... m.shimura /Japan APL Association Nice example for us newbies of how to use various graphics commands in J--thanks! Harvey P.S.

Re: [Jprogramming] Graphics for holyday

2009-12-15 Thread Björn Helgason
There is a lab/demo in J doing these kind of interactive rotations I saw rubics cube rotated in graphic using APL2 and GDDM something like 30 years ago. 2009/12/15 PackRat pack...@anet.com: Holyday greeting ! ...  Dodecahedron and Icosahedron are Dancing according to key x y x This Script

Re: [Jprogramming] Amending big array

2009-12-15 Thread Viktor Cerovski
miridian-2 wrote: bill lam wrote: mar, 15 Dec 2009, miridian skribis: Maybe someone can suggest how to re-implement in J. What is your J solution? Here the J code. To have the real solution of the problem W must be 9. I have check Python and J with W = 2 answer =

Re: [Jprogramming] Graphics for holyday

2009-12-15 Thread Björn Helgason
http://www.nyx.net/~anon84c2/ 2009/12/15 Björn Helgason gos...@gmail.com: There is a lab/demo  in J doing these kind of interactive rotations I saw rubics cube rotated in graphic using APL2 and GDDM something like 30 years ago. 2009/12/15 PackRat pack...@anet.com: Holyday greeting ! ...  

Re: [Jprogramming] Amending big array

2009-12-15 Thread Devon McCormick
One important point from the original problem statement, which may be a way to reduce the amount of work, is that any NxM rectangle can be tiled by triominos as long as 0=3|N*M. On Tue, Dec 15, 2009 at 11:38 AM, Devon McCormick devon...@gmail.comwrote: It's at

Re: [Jprogramming] Newbie JDB problem: inserting chars in a 1 column char table gives 'assertion failure'

2009-12-15 Thread christopher collins
Thanks for the help, Mr. Tirrell. Does JDB have a way to declare the length of the char column? I've gone through the JDB doc and sample code carefully and can't find any indication of how to declare the length of the char column. I've run a few experiments and can't get a JDB database table

Re: [Jprogramming] Newbie JDB problem: inserting chars in a 1 column char table gives 'assertion failure'

2009-12-15 Thread Sherlock, Ric
I've not used JDB before but it's not clear from your post what exactly you are trying to do. You have declared a table consisting of one field that is a single character in length. Then you try to insert a record into the table that is multiple characters in length. Are you expecting a) the

Re: [Jprogramming] Newbie JDB problem: inserting chars in a 1 column char table gives 'assertion failure'

2009-12-15 Thread Sherlock, Ric
Sorry ignore my previous post. Having read your post more carefully I see that you probably want to know how to do specify the max length of the field. (As I said, I haven't used JDB before assumed that c1 was more than just the field name). Perhaps you checking out the demo databases that

Re: [Jprogramming] C# .NET COM JDLLServer

2009-12-15 Thread Alex Rufon
Hi Matthew, Just saw this thread (and the previous ones) ... unfortunately I'm at home right now and the machine here is configured for gaming so theres no development tools whatsoever installed. I'll be back in the office tomorrow though and will give your problem a run through. The only

Re: [Jprogramming] Newbie JDB problem: inserting chars in a 1 column char table gives 'assertion failure'

2009-12-15 Thread Alex Rufon
Hi Christopher, I actually had to rewrite this response a couple of times. From what I understand from the implementation, all arbitrary sized strings should be using the VARCHAR datatype. The concept was implementation of a MAX or field lenth value for VARCHAR is not part of JDB but instead

[Jprogramming] Newbie JDB problem: inserting chars in a 1 column char table gives 'assertion failure'

2009-12-15 Thread christopher collins
Thank you Ric, for your suggestions. I've reviewed the JDB doc carefully as well as all the example code and haven't found the solution to my trivial problem. Perhaps its there, but it is invisible to my J disabled cognition. In my original post on this issue (Sent: Sunday, December 13, 2009

Re: [Jprogramming] Newbie JDB problem: inserting chars in a 1 column char table gives 'assertion failure'

2009-12-15 Thread bill lam
I don't use JDB either, however I guess you cannot declare a maximum length for the literal string in char column. you might have to reshape rank-1 vector before inserting. eg. ht=: Create__db 'tblChar2';'c1 char' Insert__db 'tblChar2';'a' Insert__db 'tblChar2';,'b' Insert__db