[fpc-pascal] Any command line interpreters for Free Pascal?
andrew.pennebaker at gmail.com
Sat Oct 15 18:30:51 CEST 2011
Indeed, compiled programs will always run faster than interpreted programs.
The value in scripting is that an interpreted environment allows coders to
rapidly go through write code / test code loops. Interpreters let you
explore your own codebase, like gdb but far more powerful.
Adding shebangs to fpc wouldn't kill Pascal or compiled programming. It
would welcome scripting programmers into the Pascal community, and let
Pascal programmers write and test code more quickly. The same programs that
use instantfpc work in fpc; it turns out instantfpc runs fpc in the
background. The main difference is that fpc currently borks on shebangs--but
it doesn't have to.
Again, there's no need to fret about interpreted vs compiled. Even for
compiled languages, there are interpreted options.
Haskell -> GHCi
Java -> Beanshell
Erlang -> erl
Finally, adding scripting capability to a programming language allows coders
to use a language to be used for shell scripts. If you love Pascal, you
might want to write sysadmin tools in Pascal to automate your workflow.
On Sat, Oct 15, 2011 at 12:13 PM, Jürgen Hestermann <
juergen.hestermann at gmx.de> wrote:
> Andrew Pennebaker schrieb:
> > It's simply a convenience to write scripts, whether the language you're
> using is mostly interpreted or mostly compiled.
> Whether scripting language or compiled language, you have to write the same
> code in both cases. Where is the difference?
> The only advantage for scripts is that the source code is directly visible
> and cannot be hidden. But that can also be a disadvantage.
> Nevertheless, I don't see any use in InstantFPC. The program starts much
> faster if it has already been compiled and there is no need to compile the
> source in the background before startup.
> fpc-pascal maillist - fpc-pascal at lists.freepascal.**org<fpc-pascal at lists.freepascal.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal