Post Reply 
New official firmware
09-05-2024, 08:08 PM
Post: #33
RE: New official firmware
(09-05-2024 05:11 PM)jfelten Wrote:  I just installed the firmware, and I quite like the new bug fixes, but there are still a few issues which I would like to be addressed, as well as several feature requests, particularly regarding Python:

1. The hpprime drawing commands won't accept anything larger than 0x7fffffff as a color parameter, which makes is impossible to draw anything above half transparency (technically hpprime.eval() is possible but it's really slow). Anything above that threshold for example `hpprime.pixon(0, 0, 0, 0xff000000)`, outputs "OverflowError: overflow converting long int to machine word".

2. The garbage collector doesn't seem to work on `hpprime.eval("ROTATE(...)")`, which can result in a crash due to memory overflow after repeated calls.

3. It would be really nice to have an equivalent to GETPIX in Python, as `hpprime.eval("GETPIX_P(...)")` is very slow.

4. Some other PPL commands I've love to see in Python are TRIANGLE (especially the 3D renderer) and TEXTSIZE, since again, calling them through eval() yields poor performance.

5. There are issues with semi-transparent pixels being coped with full opacity with the blit commands.

6. Would it be possible to add texture mapping to TRIANGLE()?
[...]

When it comes to graphic commands, we still lack INVERT, optionally FILLPOLY (although it would be good to have some sort of flood fill) and definitely need to add font size to TEXTOUT.

Currently, executing the PPL command using hpprime.eval() operates slower than direct execution in PPL because each call to hpprime.eval() involves parsing and compilation (tokenization) before the PPL engine executes the code. It seems to me that, similar to the compile method in Python which allows saving a compiled piece of code to a variable for execution, a similar method could be implemented for PPL in the hpprime module. This way, the compilation could be performed once at the program’s start, allowing this compiled code to be executed multiple times without the need for reparsing and recompiling each time. This should significantly speed up the operation of any PPL functions called from Python.

Piotr Kowalewski
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
New official firmware - jpride@1956 - 09-03-2024, 04:00 AM
RE: New official firmware - albud44 - 09-03-2024, 05:51 AM
RE: New official firmware - jpride@1956 - 09-03-2024, 07:31 AM
RE: New official firmware - chromos - 09-03-2024, 07:47 AM
RE: New official firmware - albud44 - 09-03-2024, 10:03 AM
RE: New official firmware - Slasher006 - 09-03-2024, 10:58 AM
RE: New official firmware - albud44 - 09-03-2024, 12:46 PM
RE: New official firmware - swagner53 - 09-03-2024, 01:04 PM
RE: New official firmware - Eddie W. Shore - 09-03-2024, 01:24 PM
RE: New official firmware - CheshireChris - 09-03-2024, 06:09 PM
RE: New official firmware - Lucas Yew - 09-03-2024, 11:33 PM
RE: New official firmware - ftneek - 09-04-2024, 02:24 AM
RE: New official firmware - jte - 09-04-2024, 02:31 AM
RE: New official firmware - granitepenguin - 09-04-2024, 06:13 AM
RE: New official firmware - KF6GPE - 09-04-2024, 04:28 AM
RE: New official firmware - Voldemar - 09-04-2024, 09:04 AM
RE: New official firmware - KlaasKuperus - 09-04-2024, 11:10 AM
RE: New official firmware - ftneek - 09-05-2024, 12:20 AM
RE: New official firmware - toml_12953 - 09-05-2024, 12:56 AM
RE: New official firmware - nickapos - 09-05-2024, 06:25 AM
RE: New official firmware - RobbiOne - 09-04-2024, 11:11 AM
RE: New official firmware - nbenm - 09-04-2024, 11:24 AM
RE: New official firmware - RobbiOne - 09-04-2024, 05:14 PM
RE: New official firmware - nbenm - 09-04-2024, 05:33 PM
RE: New official firmware - Thomas_Sch - 09-04-2024, 11:47 AM
RE: New official firmware - tgallo - 09-04-2024, 02:35 PM
RE: New official firmware - CheshireChris - 09-04-2024, 04:11 PM
RE: New official firmware - cdmackay - 09-04-2024, 08:26 PM
RE: New official firmware - nbenm - 09-04-2024, 08:34 PM
RE: New official firmware - cdmackay - 09-05-2024, 07:20 PM
RE: New official firmware - nickapos - 09-04-2024, 02:37 PM
RE: New official firmware - jfelten - 09-05-2024, 05:11 PM
RE: New official firmware - komame - 09-05-2024 08:08 PM
RE: New official firmware - Thomas_Sch - 09-07-2024, 02:31 PM
RE: New official firmware - Eddie W. Shore - 09-07-2024, 03:11 PM
RE: New official firmware - cheesy - 09-09-2024, 02:54 PM



User(s) browsing this thread: 6 Guest(s)