Recent

Author Topic: instantFPC vs running fpc through TProcess  (Read 329 times)

Weiss

  • Full Member
  • ***
  • Posts: 249
instantFPC vs running fpc through TProcess
« on: May 22, 2026, 05:12:35 pm »
Not a question, just want to share my thoughts. It turned out really easy to set up compilation of text via TProcess and run such compiled "scripts", again with TProcess. All there is really needed is to setup I/O between host application and running executable of your script. And voila, you practically have a functional REPL. You can play with "wrapper" for your texts and make it feel like an interpreter. Like single-line scripts, more like commands. Amazing. With full support of a true programming language, with endless libraries etc.

I think this is unrecognized value of FPC as ultra-fast compiler.

lebao3105

  • New Member
  • *
  • Posts: 26
Re: instantFPC vs running fpc through TProcess
« Reply #1 on: May 23, 2026, 05:44:06 am »
My GitHub+GitLab username: lebao3105.

Weiss

  • Full Member
  • ***
  • Posts: 249
Re: instantFPC vs running fpc through TProcess
« Reply #2 on: May 24, 2026, 11:14:11 pm »
I think my first post came out as I was trying to bash InstantFPC, sorry. the  header is wrong, it is no one vs another.

I know instantFPC is running instance of FPC on a background, using TProcess. It is also mentioned somewhere in a few places. InstantFPC was fun to get started and run a few scripts. But then it is always a time when you want to try custom implementation, which is only few lines of code away. And get benefits of learning.



 

TinyPortal © 2005-2018