Prog8 language and compiler topic

All aspects of programming on the Commander X16.
User avatar
desertfish
Posts: 1098
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Heads up for breaking change in next version

Post by desertfish »

:!: 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.)
yock1960
Posts: 136
Joined: Tue Nov 16, 2021 8:42 pm

Re: Prog8 language and compiler topic

Post by yock1960 »

We (I) need structs/records.... :D . To make my current project a little easier. Oh, and recursion! :lol:
User avatar
desertfish
Posts: 1098
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Important Version 9.7 released

Post by desertfish »

:!: 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 :mrgreen:

(reminder: the documentation is here https://prog8.readthedocs.io/en/latest/ )
mgkaiser
Posts: 60
Joined: Sat Dec 02, 2023 6:49 pm

Re: Prog8 language and compiler topic

Post by mgkaiser »

yock1960 wrote: Tue Nov 28, 2023 10:36 pm We (I) need structs/records.... :D . To make my current project a little easier. Oh, and recursion! :lol:
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...
yock1960
Posts: 136
Joined: Tue Nov 16, 2021 8:42 pm

Re: Prog8 language and compiler topic

Post by yock1960 »

mgkaiser wrote: Sun Dec 10, 2023 5:04 pm
yock1960 wrote: Tue Nov 28, 2023 10:36 pm We (I) need structs/records.... :D . To make my current project a little easier. Oh, and recursion! :lol:
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...
Recursion of a subroutine with no parameters isn't a problem, if you manage the push/pop to an independent area of memory yourself.

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.
oodler
Posts: 21
Joined: Mon Dec 18, 2023 4:37 pm

Re: Prog8 language and compiler topic

Post by oodler »

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.
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.
User avatar
desertfish
Posts: 1098
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Important upcoming release

Post by desertfish »

:!: 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
Last edited by desertfish on Wed Jan 17, 2024 10:05 pm, edited 2 times in total.
Bill Leue
Posts: 20
Joined: Thu Sep 08, 2022 5:52 pm

Re: Prog8 language and compiler topic

Post by Bill Leue »

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
User avatar
desertfish
Posts: 1098
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

Important Version 10.0 released

Post by desertfish »

Image

:!: 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).
User avatar
desertfish
Posts: 1098
Joined: Tue Aug 25, 2020 8:27 pm
Location: Netherlands

donation possibility

Post by desertfish »

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 :P
Post Reply