Re: [Jprogramming] Questions on day 13 of Advent of Code 2022

2022-12-13 Thread Jaume
Thank you, this was the tip I needed. Last night I managed to get the correct answer on the phone with this. If you want to examine what I have it's on the same place. solution.ijs has the latest I did on the computer, 1.ijs is what I had on the phone. Because somewhere in there something broke

Re: [Jprogramming] Nub with extra column

2022-12-13 Thread Ben Gorte
On Sat, 26 Nov 2022 at 14:27, Henry Rich wrote: > This problem, which Elijah has found can be attributed to my insouciance > about the robustness of CRC-32 as a hash function, afflicts the entire > i.-family and has no good workaround. > > However, I think it will be easy to fix, and I hope we

Re: [Jprogramming] missing Qt5Core.dll

2022-12-13 Thread bill lam
try install'gmp' (fine both on jqt and jconsole) and then restart. On Wed, Dec 14, 2022 at 11:55 AM Thomas Arneson wrote: > Thanks Bill, that worked. > > When I tried the test for gimp it failed on Windows, but worked on my > android. > > > 2022-12-13 21:50 > Machine:

Re: [Jprogramming] missing Qt5Core.dll

2022-12-13 Thread Thomas Arneson
Thanks Bill, that worked. When I tried the test for gimp it failed on Windows, but worked on my android. 2022-12-13 21:50 Machine: HPdesktop2012 Engine: j904/j64avx/windows Beta-i: commercial/2022-12-13T15:19:30 Library: 9.04.06 Qt IDE: 2.0.3s/6.2.4(6.2.4) Platform: Win

Re: [Jprogramming] missing Qt5Core.dll

2022-12-13 Thread bill lam
have you tried install'qtide' ? On Wed, Dec 14, 2022 at 11:28 AM Thomas Arneson wrote: > > > When I try to run J904 using Qt. I get a message saying "The code > execution cannot proceed because Qt5Core.dll was not found" > > I was able to upgrade to Beta-i by running from console, but I want

[Jprogramming] missing Qt5Core.dll

2022-12-13 Thread Thomas Arneson
When I try to run J904 using Qt. I get a message saying "The code execution cannot proceed because Qt5Core.dll was not found" I was able to upgrade to Beta-i by running from console, but I want to use jqt. -- For information

Re: [Jprogramming] j904-beta-i available

2022-12-13 Thread bill lam
J904-beta-i is available for android. verify gmp is working by executing a simple sentence eg 2x * 2 eformat error message working by 1+'a' On Wed, Dec 14, 2022 at 1:00 AM Eric Iverson wrote: > J904-beta-i is available for windows/linux/mac/pi. > > Please install/upgrade and use it so that

Re: [Jprogramming] j904-beta-i available

2022-12-13 Thread bill lam
The new error message can break J code that relying on checking error messages. To revert to old error messages, add this line somewhere before running your applications 4!:55 <'eformat_j_' On Wed, 14 Dec 2022 at 1:09 AM Henry Rich wrote: > The two new features that Eric mentioned are well

Re: [Jprogramming] Questions on day 13 of Advent of Code 2022

2022-12-13 Thread Raul Miller
Oh, one other thing... For aoc 13 part 2, you do not actually need to sort anything. You can compare the '[[2]]' representation against each value and count how many precede it. Then you can do the same with the other value (adding 1, because it would come after the '[[2]]' value. FYI, --

Re: [Jprogramming] Questions on day 13 of Advent of Code 2022

2022-12-13 Thread Raul Miller
I was not able to decipher the value of pp which you posted here, after the email system mangled it. Also, it looks like your current github code -- https://github.com/JaumeGreen/adventofcode/blob/master/2022/day13/explanation.ijs -- doesn't work for me when I try it on my input.txt from the aoc

Re: [Jprogramming] Questions on day 13 of Advent of Code 2022

2022-12-13 Thread Jaume
Thank you I think it's going better, or at least I'm understanding a bit more. The problem I had was another, quicksort was sending the whole list to compare inside comp2. I fixed it with these: quickp=: 3 : 0 if. 1 >: #y do. y else. (quickp y lesser sel e),(y equal sel e),quickp y greater sel

Re: [Jprogramming] Questions on day 13 of Advent of Code 2022

2022-12-13 Thread Raul Miller
p.s. for the tacit stack issue, you did not include your definition of comp2, but if it's from aoc day 13, a plausible issue is that comp2 would be returning _1 or 1 instead of 0 or 1 (which is what that quicksort implementation expects). That said, when debugging stack errors on recursive

Re: [Jprogramming] Questions on day 13 of Advent of Code 2022

2022-12-13 Thread Raul Miller
It used to be that x was more ambiguous. To make quicksort work, use sel=: 1 : 'u # [' I will update the wiki. Thanks, -- Raul On Tue, Dec 13, 2022 at 1:43 PM Jaume wrote: > > Hello all > > Still here and I've done all the days in J except for day 7, But that's not > why I'm here. > > So

[Jprogramming] Questions on day 13 of Advent of Code 2022

2022-12-13 Thread Jaume
Hello all Still here and I've done all the days in J except for day 7, But that's not why I'm here. So now I've done the first part, and I have a function that is too long to copy that does comparisons in an iterative way (I had some stack problems). Now I'm wanting to sort the elements using

Re: [Jprogramming] j904-beta-i available

2022-12-13 Thread Henry Rich
The two new features that Eric mentioned are well worth waiting for IMO. The conversion to GMP was a big job.  Raul Miller did it.  It brings J up to modern standards of speed and space for extended-precision arithmetic. The new error messages started as an idea of Elijah Stone's and

[Jprogramming] j904-beta-i available

2022-12-13 Thread Eric Iverson
J904-beta-i is available for windows/linux/mac/pi. Please install/upgrade and use it so that the release after the beta cycle is as stable as can be. Usually we would end the beta cycle near year end and have a stable release. Multi-threading was ready, but there were a few things we wanted to