Recent

Author Topic: Can /my/ AI help me with pascal coding?  (Read 5417 times)

Graeme

  • Hero Member
  • *****
  • Posts: 1526
    • Graeme on the web
Re: Can /my/ AI help me with pascal coding?
« Reply #30 on: May 03, 2026, 02:18:38 am »
Port QBE (Quick Back End) and PCL (Portable Code Language) to FPC. 
what do you mean by porting QBE to FPC? As a new FPC code generation backend? QBE is already very easy to use. I'm using is as my Blaise compiler backend. Way, way easier to implement than LLVM, but with the downside that Windows is not supported. I'll eventually implement a LLVM backend in Blaise too.

Quote
among other things it would also open the door to using FPC as a compiler development tool.

Again not sure what you mean here. FPC was my bootstrap compiler when I started the Blaise Compiler project. But since I managed self-hosting state, I don't need FPC any more.
 
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

440bx

  • Hero Member
  • *****
  • Posts: 6488
Re: Can /my/ AI help me with pascal coding?
« Reply #31 on: May 03, 2026, 02:24:57 am »
* PCL?
Good question! one I didn't expect to have to answer.  The author has been making changes and it looks like the PCL backend (PCL8) has become part of his C compiler (I could be wrong about that, actually, I really hope I am wrong about that), bottom line: I have to figure out what's going on before I can give you a solid answer. 
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

440bx

  • Hero Member
  • *****
  • Posts: 6488
Re: Can /my/ AI help me with pascal coding?
« Reply #32 on: May 06, 2026, 01:00:06 am »
@440bx,
Quote
Port QBE (Quick Back End) and PCL (Portable Code Language) to FPC.
I will give consideration to it.

Wondering what are the URLs?
* https://c9x.me/compile/
* PCL?
Consider my request to be for QBE only because getting a PCL that is portable to Pascal will take more time than I anticipated.

Having an FPC version of QBE would be extremely useful.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

schuler

  • Sr. Member
  • ****
  • Posts: 337
Re: Can /my/ AI help me with pascal coding?
« Reply #33 on: May 06, 2026, 08:45:47 pm »
While the AI coding continues, I would like to share this link:
https://github.com/joaopauloschuler/pas-sqlite3/blob/main/src/tests/DiagSampleProg.pas

:) wish every AI happy pascal coding :)

440bx

  • Hero Member
  • *****
  • Posts: 6488
Re: Can /my/ AI help me with pascal coding?
« Reply #34 on: May 06, 2026, 08:55:07 pm »
@schuler,

very nice and very useful.  thank you! :)
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

schuler

  • Sr. Member
  • ****
  • Posts: 337
Re: Can /my/ AI help me with pascal coding?
« Reply #35 on: May 07, 2026, 10:58:04 am »
Some commands are already working in the CLI interface (see readme):
https://github.com/joaopauloschuler/pas-sqlite3

cdbc

  • Hero Member
  • *****
  • Posts: 2786
    • http://www.cdbc.dk
Re: Can /my/ AI help me with pascal coding?
« Reply #36 on: May 07, 2026, 12:46:54 pm »
Hi
Cool, I've just returned from holiday in sunny Glücksburg-Germany and I'll have to get back in the race... Will test - Thanks mate.
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

schuler

  • Sr. Member
  • ****
  • Posts: 337
Re: Can /my/ AI help me with pascal coding?
« Reply #37 on: May 08, 2026, 01:43:03 am »
@cdbc,
It is still a work in progress. It is still buggy. It is probably too early for real testing. But you can compile and try if you are curious.

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1285
Re: Can /my/ AI help me with pascal coding?
« Reply #38 on: May 08, 2026, 09:12:37 am »
Port QBE (Quick Back End) and PCL (Portable Code Language) to FPC. 
what do you mean by porting QBE to FPC? As a new FPC code generation backend? QBE is already very easy to use. I'm using is as my Blaise compiler backend. Way, way easier to implement than LLVM, but with the downside that Windows is not supported. I'll eventually implement a LLVM backend in Blaise too.

Quote
among other things it would also open the door to using FPC as a compiler development tool.
Again not sure what you mean here. FPC was my bootstrap compiler when I started the Blaise Compiler project. But since I managed self-hosting state, I don't need FPC any more.

I am curious about your Blaise Compiler Project. Could you talk about it a bit more?

440bx

  • Hero Member
  • *****
  • Posts: 6488
Re: Can /my/ AI help me with pascal coding?
« Reply #39 on: May 08, 2026, 09:30:18 am »
Port QBE (Quick Back End) and PCL (Portable Code Language) to FPC. 
what do you mean by porting QBE to FPC?
I mean porting it from C to FPC.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

schuler

  • Sr. Member
  • ****
  • Posts: 337
Re: Can /my/ AI help me with pascal coding?
« Reply #40 on: May 08, 2026, 02:35:28 pm »
Just a bit of food for thought, once I stabilize pas-sqlite3.53, comes the question: What should I do next? These are some ideas:

Anyway, my capacity to invest in open source projects has limits. This is to share thoughts only.

ALLIGATOR

  • Sr. Member
  • ****
  • Posts: 416
  • I use FPC [main] 💪🐯💪
Re: Can /my/ AI help me with pascal coding?
« Reply #41 on: May 09, 2026, 06:47:23 am »
I would vote for fixing bugs in FPC's code generation. Fixing bugs related to generics, absolutes, and other language-related issues, and adding tests

Next, improving optimizations and adding tests
I may seem rude - please don't take it personally

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1285
Re: Can /my/ AI help me with pascal coding?
« Reply #42 on: May 09, 2026, 08:34:18 am »
Just a bit of food for thought, once I stabilize pas-sqlite3.53, comes the question: What should I do next? These are some ideas:

Anyway, my capacity to invest in open source projects has limits. This is to share thoughts only.

I would vote for fixing bugs in FPC.

schuler

  • Sr. Member
  • ****
  • Posts: 337
Re: Can /my/ AI help me with pascal coding?
« Reply #43 on: May 13, 2026, 07:08:00 pm »
Fixing FPC bugs: 2 votes so far. Thank you for the votes.

I attached an image with pas-sqlite3 progress.


cdbc

  • Hero Member
  • *****
  • Posts: 2786
    • http://www.cdbc.dk
Re: Can /my/ AI help me with pascal coding?
« Reply #44 on: May 13, 2026, 07:13:53 pm »
Cool, quite a job right? Nice to see progress =^
I'll vote for fixing FPC-bugs, so that we can move forward with compiler-team  :)
Thanks mate & regards
Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

 

TinyPortal © 2005-2018