A little notification in advance that the next Prog8 version will contain a breaking change in the IRQ handling routines.
sys.set_irq() and sys.set_rasterirq() no longer have useKernal parameter! The irq handler routine must return a boolean instead in the A register.
This change is for all target platforms and makes it easier to determine when the system IRQ handler routine should run or not.
(In addition, only for the X16, there will be a new specialized IRQ handler that makes dealing with multiple IRQ sources a lot easier. If you chose to not use this one and want to stick to the old one instead, you still have to change your code a little to conform to the new semantics.)
Prog8 language and compiler topic
- desertfish
- Posts: 1098
- Joined: Tue Aug 25, 2020 8:27 pm
- Location: Netherlands
Re: Prog8 language and compiler topic
We (I) need structs/records.... . To make my current project a little easier. Oh, and recursion!
- desertfish
- Posts: 1098
- Joined: Tue Aug 25, 2020 8:27 pm
- Location: Netherlands
Version 9.7 released
Prog8 version 9.7 has been released. https://github.com/irmen/prog8/releases/tag/v9.7
It's a substantial release that brings many new features and bugfixes.
Also as already mentioned there are a few incompatible changes so please read the release notes on Github thorougly
(reminder: the documentation is here https://prog8.readthedocs.io/en/latest/ )
It's a substantial release that brings many new features and bugfixes.
Also as already mentioned there are a few incompatible changes so please read the release notes on Github thorougly
(reminder: the documentation is here https://prog8.readthedocs.io/en/latest/ )
Re: Prog8 language and compiler topic
Recursion not happening, likely. For structs look here: https://github.com/mgkaiser/P8Test
I'm working a number of useful thing. structs are among them...
Re: Prog8 language and compiler topic
Recursion of a subroutine with no parameters isn't a problem, if you manage the push/pop to an independent area of memory yourself.mgkaiser wrote: ↑Sun Dec 10, 2023 5:04 pmRecursion not happening, likely. For structs look here: https://github.com/mgkaiser/P8Test
I'm working a number of useful thing. structs are among them...
I also have a workaround, a structs-like construct, using arrays inside a block. Access syntax is very similar. They're not dynamic, but I don't need them to be.
Re: Prog8 language and compiler topic
Thank you for this language, it is awesome for me. I know you say it was heavily influenced by Python, but I like it because it tickles the part of my brain that loves Perl.desertfish wrote: ↑Mon Aug 31, 2020 8:52 pm /index.php?/profile/860-geek504/&do=hovercard" data-mentionid="860" href="/index.php?/profile/860-geek504/" rel="">@geek504 Hi glad you asked, lets answer this here ?
Prog8 the language itself is essentially a C like langue but with heavy Python influences because I really like Python.
- desertfish
- Posts: 1098
- Joined: Tue Aug 25, 2020 8:27 pm
- Location: Netherlands
upcoming release
Prog8's next release is nearing completion. It will be a MASSIVE update with lots of stuff. A warning: there are going to be a few incompatible changes once again, for instance in the way prog8 symbols are named in the generated assembly code. I always try to keep stuff compatible as much as possible but sometimes breaking changes are required.
The release will likely be done somewhere this week. It is advised to upgrade as soon as possible then
The release will likely be done somewhere this week. It is advised to upgrade as soon as possible then
Last edited by desertfish on Wed Jan 17, 2024 10:05 pm, edited 2 times in total.
Re: Prog8 language and compiler topic
You can easily simulate recursion with an explicit stack that you write your own Push and Pop methods. I do this all the time in various language environments where I don't have recursion available.
-Bill
-Bill
- desertfish
- Posts: 1098
- Joined: Tue Aug 25, 2020 8:27 pm
- Location: Netherlands
Version 10.0 released
Prog8 version 10 has been released!
Release and detailed release notes are at: https://github.com/irmen/prog8/releases/tag/v10.0
The documentation as always is at: https://prog8.readthedocs.io/
As mentioned before, this is a BIG release and there are a few breaking changes.
Please study the release notes to learn about them (and the other new things ofcourse).
- desertfish
- Posts: 1098
- Joined: Tue Aug 25, 2020 8:27 pm
- Location: Netherlands
donation possibility
By the way, if you'd like to buy me a coffee or a pizza to keep me going on working on Prog8, you can do so here https://ko-fi.com/irmen
Thanks
Thanks