Re: [Jprogramming] graphics/pplatimg readimg crashes JQt in Mac Monterey

2022-01-18 Thread Thomas McGuire
After further investigation I am not getting a valid image. My confusion was due to the fact that I was also experimenting with ‘graphics/jpeg’ that does seem to work. The mac monterey pplatimg readimg does not work at all giving back _1’s though it provides the correct width and height for the

Re: [Jprogramming] Advent of Code Day 16

2022-01-18 Thread Henry Rich
Not a bad habit if you put the globals into a locale, I say. Henry Rich On 1/18/2022 6:46 PM, Raul Miller wrote: I definitely see the appeal of a recursive solution which avoids globals. That said, I've been parsing enough really large files that I've gotten into the habit of using globals for

Re: [Jprogramming] Advent of Code Day 16

2022-01-18 Thread Raul Miller
I definitely see the appeal of a recursive solution which avoids globals. That said, I've been parsing enough really large files that I've gotten into the habit of using globals for managing parsing state. Plausibly a *bad* habit... Here, I could have made the data dependencies explicit by passin

Re: [Jprogramming] Advent of Code Day 16

2022-01-18 Thread Jan-Pieter Jacobs
Hi, very interesting to read different takes on the problem! I made it recursive, passing around whatever remains of the bit string, with no use of global state (just some auxiliary verbs and the list of operations). A trick I was particularly happy with is combining the stopping condition on pack

Re: [Jprogramming] graphics/pplatimg readimg crashes JQt in Mac Monterey

2022-01-18 Thread Raul Miller
I have had some crashes in jqt when working with viewmat and code generating image data for viewmat. I have not yet noticed a reproducible pattern which would help me isolate those problems. But I am also running Mojave rather than Monterey, FYI, -- Raul On Tue, Jan 18, 2022 at 4:11 AM Thomas

Re: [Jprogramming] Programming question

2022-01-18 Thread Raul Miller
I should have removed from 'seno' the line that says: assert. hi<1000 The purpose of that line was to save me from having to use jbrk if I hit an infinite loop from getting my conditions backwards. It's not a useful mechanism, and should have been removed before I posted the implementation.

[Jprogramming] graphics/pplatimg readimg crashes JQt in Mac Monterey

2022-01-18 Thread Thomas McGuire
reading a jpeg image with readimg The first time in a fresh JQt session no problems. I am able to read a jpeg file an display it in viewmat On rereading the same file or a different file JQt crashes. The crash is occuring on a MacBook Pro with Monterey installed. I haven’t had a chance to try