DM42 decoder/encoder error

This is where developers can exchange ideas and ask questions relevant to the DM42 firmware.

Please note that Swiss Micros staff are unable to provide answers here as a general rule. This is intended as a community-driven forum.
User avatar
Walter
Posts: 3070
Joined: Tue May 02, 2017 11:13 am
Location: On a mission close to DRS, Germany

Re: DM42 decoder/encoder error

Post by Walter »

rudi wrote:
Sun Feb 06, 2022 9:02 am
Btw - the program runs fine on Free42 for Windows and instantaneusly finds out, that 99999999977 is a prime number ;-)
Even my 43S of last March , running stand-alone on battery on a flashed DM42, returns this instantaneously.
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
User avatar
rudi
Posts: 415
Joined: Wed Nov 03, 2021 9:03 am
Location: Denmark
Contact:

Re: DM42 decoder/encoder error

Post by rudi »

Wau Walter. Thanks for the feedback. I was a little sad, that it didn’t fit the DM42 RAM ;-)
Really looking forward to when a physical WP/DM43S is available Walter. I don’t really like it on my DM42, key mismatch is confusing - at least for me ;-)
/Rudi

DM-42 (s/n 06999), HP-42S, HP-35s, HP-11c, HP-32SII (ex HP-41CV, ex HP-75C, ex HP-48G + a lot, really lot of a accessories)
Denmark
dlachieze
Posts: 613
Joined: Thu May 04, 2017 12:20 pm
Location: France

Re: DM42 decoder/encoder error

Post by dlachieze »

Walter wrote:
Sun Feb 06, 2022 1:13 pm
rudi wrote:
Sun Feb 06, 2022 9:02 am
Btw - the program runs fine on Free42 for Windows and instantaneusly finds out, that 99999999977 is a prime number ;-)
Even my 43S of last March , running stand-alone on battery on a flashed DM42, returns this instantaneously.
It’s also instantaneous on my DM42 running the WP-34S firmware, and you don’t need an overlay (swapping from the DM42 to the WP34S firmware and back is as easy as loading a program in the DMCP menu).
DM42: 00425 - DM41X: β00066 - WP43: 00042
rprosperi
Posts: 1703
Joined: Mon Apr 24, 2017 7:48 pm
Location: New York

Re: DM42 decoder/encoder error

Post by rprosperi »

I kept looking at the calendar... No, it's not April 1st..., no... still not April 1st... and then it hit me that this was a serious post. Well, somewhat serious...

I can say with high confidence that the DM42 will never have enough RAM to handle a program with > 150K source lines. The rationale is left as an exercise for the reader.

That said, I agree that such a failure should be detectable and some useful (even vaguely close) error message should be shown, without losing memory. In the future, when some new Free42 build catches and handles such conditions, this should be doable.

And please stop writing C programs that write 42 FOCAL code... it's incestuous...
--bob p

DM42: β00071 & 00282, DM41X: β00071 & 00656, DM10L: 071/100
User avatar
rudi
Posts: 415
Joined: Wed Nov 03, 2021 9:03 am
Location: Denmark
Contact:

Re: DM42 decoder/encoder error

Post by rudi »

:lol:
Sorry Bob - I get crazy ideas sometimes.
/Rudi

DM-42 (s/n 06999), HP-42S, HP-35s, HP-11c, HP-32SII (ex HP-41CV, ex HP-75C, ex HP-48G + a lot, really lot of a accessories)
Denmark
rprosperi
Posts: 1703
Joined: Mon Apr 24, 2017 7:48 pm
Location: New York

Re: DM42 decoder/encoder error

Post by rprosperi »

Never apologize for being creative and pushing limits, that's what makes these products better. :!:

While possibly extreme in this case, your approach did reveal circumstances that can lead to loss of memory, something that should never happen, so it's a good thing overall.

Keep pushing... :)
--bob p

DM42: β00071 & 00282, DM41X: β00071 & 00656, DM10L: 071/100
Post Reply