From adriaan at adriaan.biz Wed Jun 11 08:44:49 2025 From: adriaan at adriaan.biz (Adriaan van Os) Date: Wed, 11 Jun 2025 06:44:49 +0000 (UTC) Subject: [fpc-pascal] Running testsuite Message-ID: <684925E0.8020706@adriaan.biz> Trying to run the fpc test suite on an M2 with MacOS 14, I get all kinds of errors, e.g. permission errora and link errors without any indication of what the link error is. Setting TEST_VERBOSE doesn't help. Isn't there a way to run the tests (or a selection of tests) without doing a "clean compile of the rtl" and without building certain packages (like a "chm" package). The purpose of the testsuite is to test the compiler-as-is. Regards, Adriaan van Os From nc-gaertnma at netcologne.de Tue Jun 17 12:34:17 2025 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 17 Jun 2025 12:34:17 +0200 Subject: [fpc-pascal] Checksum changed bug 15218 Message-ID: <3981faa2-5742-4578-879e-96ec227be051@netcologne.de> Hi, What is the state of the bug 15128, that is the infamous checksum changed bug: https://gitlab.com/freepascal.org/lazarus/ccr/-/issues/15218 In the issue Jonas wrote that the only case is a forward function that implements as "external". But I have never found such a function. Is there maybe some other case that can trigger this bug? Usually the bug can be remedied by reducing the implementation uses sections. Mattias From michael at freepascal.org Tue Jun 17 13:54:17 2025 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 17 Jun 2025 13:54:17 +0200 (CEST) Subject: [fpc-pascal] Checksum changed bug 15218 In-Reply-To: <3981faa2-5742-4578-879e-96ec227be051@netcologne.de> References: <3981faa2-5742-4578-879e-96ec227be051@netcologne.de> Message-ID: On Tue, 17 Jun 2025, Mattias Gaertner via fpc-pascal wrote: > Hi, > > What is the state of the bug 15128, that is the infamous checksum changed > bug: > > https://gitlab.com/freepascal.org/lazarus/ccr/-/issues/15218 > > In the issue Jonas wrote that the only case is a forward function that > implements as "external". But I have never found such a function. > > Is there maybe some other case that can trigger this bug? >From the reports: inline & generics with implementation uses circular references. > > Usually the bug can be remedied by reducing the implementation uses sections. This is on my todo list, but I first to finish a release for work. Unfortunately, the release is delayed (again) :/ After that I'll have time to work on it. There are some issues in the issue tracker that simplify the issue to only a couple of units, they should help in tracking down the exact issue. Michael. From kevin at lyda.ie Wed Jun 18 22:20:20 2025 From: kevin at lyda.ie (Kevin Lyda) Date: Wed, 18 Jun 2025 21:20:20 +0100 Subject: [fpc-pascal] Importing units Message-ID: tl;dr How do I package reusable units for others? Back in 1988/89, I took a computer science class in high school. Yes, we lacked fire back then, but we had a compiler so that was fine. Specifically a Turbo Pascal 3.0 compiler. I had a bunch of fun writing code in it and even though pascal never appeared again in my software engineering career, I always thought it would be fun to work in again. And I have some time now and I came up with a project to work on in Object Pascal. You folks have made a great compiler and an amazing std library. In the process of my project, I'm likely going to make some units that will be useful for others. I'd like to do them in a way that makes that easy. I've been doing a bunch of Go the past several years. It's pretty fun and one useful thing is that you can do "go get some.site/some/path/go-units" and then you can use modules from there. You could do something like that for free pascal with git submodules. Not exactly the same thing, but close. Is that what people do? Or is there a better way to provide units for others to use? Thanks for any guidance, Kevin From matthew at matthewphillips.info Wed Jun 18 22:23:38 2025 From: matthew at matthewphillips.info (Matthew Phillips) Date: Wed, 18 Jun 2025 16:23:38 -0400 Subject: [fpc-pascal] Importing units In-Reply-To: References: Message-ID: <110ED80D-5AA4-42E2-B172-3B7E380DE098@matthewphillips.info> > On Jun 18, 2025, at 4:20?PM, Kevin Lyda via fpc-pascal wrote: > > tl;dr How do I package reusable units for others? > > Back in 1988/89, I took a computer science class in high school. Yes, > we lacked fire back then, but we had a compiler so that was fine. > Specifically a Turbo Pascal 3.0 compiler. > > I had a bunch of fun writing code in it and even though pascal never > appeared again in my software engineering career, I always thought it > would be fun to work in again. And I have some time now and I came up > with a project to work on in Object Pascal. > > You folks have made a great compiler and an amazing std library. In > the process of my project, I'm likely going to make some units that > will be useful for others. I'd like to do them in a way that makes > that easy. > > I've been doing a bunch of Go the past several years. It's pretty fun > and one useful thing is that you can do "go get > some.site/some/path/go-units" and then you can use modules from there. > You could do something like that for free pascal with git submodules. > Not exactly the same thing, but close. Is that what people do? Or is > there a better way to provide units for others to use? > > Thanks for any guidance, Hey Kevin, I?m new here as well, so take this with a grain of salt, but I think the answer is fppkg. https://wiki.freepascal.org/fppkg From ingemar at ragnemalm.se Thu Jun 19 14:43:16 2025 From: ingemar at ragnemalm.se (Ingemar Ragnemalm) Date: Thu, 19 Jun 2025 14:43:16 +0200 Subject: [fpc-pascal] Importing units In-Reply-To: References: Message-ID: <928716fb-e894-4c07-9a0b-2015cc1d071c@ragnemalm.se> > From: Kevin Lyda > To: FPC-Pascal users discussions > Subject: [fpc-pascal] Importing units > Message-ID: > > Content-Type: text/plain; charset="UTF-8" > > tl;dr How do I package reusable units for others? > > Back in 1988/89, I took a computer science class in high school. Yes, > we lacked fire back then, but we had a compiler so that was fine. > Specifically a Turbo Pascal 3.0 compiler. > > I had a bunch of fun writing code in it and even though pascal never > appeared again in my software engineering career, I always thought it > would be fun to work in again. And I have some time now and I came up > with a project to work on in Object Pascal. > > You folks have made a great compiler and an amazing std library. In > the process of my project, I'm likely going to make some units that > will be useful for others. I'd like to do them in a way that makes > that easy. > > I've been doing a bunch of Go the past several years. It's pretty fun > and one useful thing is that you can do "go get > some.site/some/path/go-units" and then you can use modules from there. > You could do something like that for free pascal with git submodules. > Not exactly the same thing, but close. Is that what people do? Or is > there a better way to provide units for others to use? > > Thanks for any guidance, > > Kevin > I have written tens of thousands of lines of reusable FPC code that I don't mind sharing. I have just uploaded it to my own archives. Few find it and I don't upload often. That is a double-edged problem; If interest seems low I don't upload so much and since I don't upload so often... Of course we can put everything on GitHub but that doesn't make it much more visible. What would be the best solution? A common "contributed code" archive somewhere? /Ingemar -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonas at freepascal.org Tue Jun 24 22:33:35 2025 From: jonas at freepascal.org (Jonas Maebe) Date: Tue, 24 Jun 2025 22:33:35 +0200 Subject: [fpc-pascal] New edition of FreePascal From Square One Message-ID: <73eba4c4-b9e2-4f52-a2f8-c4a3c6932295@freepascal.org> Hi, There's a new edition of Jeff Duntemann's free book "FreePascal From Square One" available: https://www.contrapositivediary.com/?p=5399 Jonas From sysrpl at gmail.com Mon Jun 30 16:14:58 2025 From: sysrpl at gmail.com (Anthony Walter) Date: Mon, 30 Jun 2025 10:14:58 -0400 Subject: [fpc-pascal] My Pascal 3D Pool Table Simulation Message-ID: If anyone is interested, here is the source code to my 3D pool simulation program written using Free Pascal. It is contained in the examples section of my Pascal bindings for Raylib repository on Linux and makes use of simple physics and 3D shaders to render and simulate interactive games of pool. If anyone has any questions I would be happy to answer them here. -------------- next part -------------- An HTML attachment was scrubbed... URL: