Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-16 Thread Mattias Gaertner
Andrew Pennebaker hat am 16. Oktober 2011 um 19:53 geschrieben: > There are plenty who do believe it's convenient to hide compilation in the > background--the users of instantfpc. Syntax for shebangs in fpc would bridge > instantfpc and traditional Pascal code. You would no longer have to tr

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-16 Thread Andrew Pennebaker
There are plenty who do believe it's convenient to hide compilation in the background--the users of instantfpc. Syntax for shebangs in fpc would bridge instantfpc and traditional Pascal code. You would no longer have to treat instantfpc code as a special case, because fpc wouldn't mind the shebangs

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-16 Thread Michael Van Canneyt
On Sun, 16 Oct 2011, Jonas Maebe wrote: On 16 Oct 2011, at 11:42, Jürgen Hestermann wrote: But hiding away the compilation step from the user does not turn a compiler language into an interpreter language. There is no benefit in doing so. You can simply compile your programs and then use

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-16 Thread Jonas Maebe
On 16 Oct 2011, at 11:42, Jürgen Hestermann wrote: > But hiding away the compilation step from the user does not turn a compiler > language into an interpreter language. There is no benefit in doing so. You > can simply compile your programs and then use the executable in your scripts. > Where

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-16 Thread Jürgen Hestermann
Andrew Pennebaker schrieb: Yes, there is a distinction to be made between an interpreted environment, say, GHCi, and instantfpc, which is simply a compiler wrapper just advanced enough to let you ./ your Pascal programs. But hiding away the compilation step from the user does not turn a comp

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Alex Shishkin
15.10.2011 2:25, Andrew Pennebaker пишет: E.g., if fpi existed, I would add a shebang like this to my code: #!/usr/bin/env fpi Cheers, Andrew Pennebaker www.yellosoft.us ___ fpc-pascal maillist - fpc-pascal@lists.freepas

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Andrew Pennebaker
Barth: Yes, there is a distinction to be made between an interpreted environment, say, GHCi, and instantfpc, which is simply a compiler wrapper just advanced enough to let you ./ your Pascal programs. With a little more work, instantfpc could become an interpreted environment. I'll see if I can p

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Tomas Hajny
On Sat, October 15, 2011 19:56, Andrew Pennebaker wrote: . . > No debugger at hand? An interpreter *is* a debugger. No, not with InstantFPC (even if I should consider InstantFPC an interpreter which it isn't). Interpreters don't provide real debugging support (stepping through the code line by l

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Sven Barth
On 15.10.2011 19:56, Andrew Pennebaker wrote: Yes, software bloat is to be avoided. In the simplest terms, I'm asking for fpc to consider shebangs as comments. That little syntactical addition wouldn't bloat fpc by much at all, but it would allow the same code to be compiled by fans of fpc, and i

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Andrew Pennebaker
How do you write scripts? With a text editor? Then you don't have a debugger at hand, no syntax highlighting, etc. And this lets you write code quick? Not for me. There may be a language barrier here. When I say "text editor", I mean something like vi, Emacs, TextMate, Eclipse. Syntax highlightin

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Mattias Gaertner
"Ralf A. Quint" hat am 15. Oktober 2011 um 19:15 geschrieben: > At 10:00 AM 10/15/2011, Mattias Gaertner wrote: > > >"Ralf A. Quint" hat am 15. Oktober 2011 um 05:03 > >geschrieben: > At 03:56 PM 10/14/2011, Andrew Pennebaker > >wrote: > >Yeah, I know to chmod my scripts before dot-slashing

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Florian Klämpfl
Am 15.10.2011 19:21, schrieb Ralf A. Quint: > At 09:30 AM 10/15/2011, Andrew Pennebaker wrote: >> 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 lo

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Ralf A. Quint
At 09:30 AM 10/15/2011, Andrew Pennebaker wrote: 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

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Ralf A. Quint
At 10:00 AM 10/15/2011, Mattias Gaertner wrote: "Ralf A. Quint" hat am 15. Oktober 2011 um 05:03 geschrieben: > At 03:56 PM 10/14/2011, Andrew Pennebaker wrote: > >Yeah, I know to chmod my scripts before dot-slashing them. It's just > >that fpc can't handle shebangs, and I don't want to have

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Mattias Gaertner
Tomas Hajny hat am 15. Oktober 2011 um 10:19 geschrieben: > On Sat, October 15, 2011 00:43, Andrew Pennebaker wrote: > > Thanks ik. Merf, it appears fpc can't compile when a shebang is added. In > > future versions, can fpc treat shebangs as comments so that instantfpc > > code > > could be c

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Mattias Gaertner
"Ralf A. Quint" hat am 15. Oktober 2011 um 05:03 geschrieben: > At 03:56 PM 10/14/2011, Andrew Pennebaker wrote: > >Yeah, I know to chmod my scripts before dot-slashing them. It's just > >that fpc can't handle shebangs, and I don't want to have to choose > >either scripting or compiled. I lik

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Jürgen Hestermann
Andrew Pennebaker schrieb: > Adding shebangs to fpc wouldn't kill Pascal or compiled programming. Of course not. It just binds man power to something useless (IMO). > It would welcome scripting programmers into the Pascal community, and let Pascal programmers write and test code more quickly.

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Andrew Pennebaker
Hestermann: 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. Addin

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Jürgen Hestermann
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 f

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Marco van de Voort
In our previous episode, Andrew Pennebaker said: > Good idea, van de Voort. Can someone confirm that fpc plays nicely with > shebangs in a version after 2.4.4? I just tried, and it doesn't. I assume that it was talked about and got stuck in my mind, but it never really was implemented. > And Sch

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Jonas Maebe
On 15 Oct 2011, at 17:24, Andrew Pennebaker wrote: > Good idea, van de Voort. Can someone confirm that fpc plays nicely with > shebangs in a version after 2.4.4? It doesn't. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lis

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Andrew Pennebaker
Good idea, van de Voort. Can someone confirm that fpc plays nicely with shebangs in a version after 2.4.4? And Schäfer, I respect Pascal for being a compiled language. I myself and fond of Haskell. But Haskell has a scripted mode, and instantfpc, like all good interpreters, compiles code in the ba

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Florian Klämpfl
Am 15.10.2011 12:10, schrieb Marco van de Voort: > In our previous episode, Michael Van Canneyt said: >>> Yeah, I know to chmod my scripts before dot-slashing them. It's just that >>> fpc can't handle shebangs, and I don't >>> want to have to choose either scripting or compiled. I like my Pascal c

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread MihaiR
On Sat, 15 Oct 2011 00:29:28 +0200 ik wrote: > InstantFPC Now, you realy made my day :)) I am using FPC and Lazarus for very nice things almost every day and I love it. I missed something like InstantFPC. Congratulations!!! Please keep up the good work guys

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Marco van de Voort
In our previous episode, Michael Van Canneyt said: > > Yeah, I know to chmod my scripts before dot-slashing them. It's just that > > fpc can't handle shebangs, and I don't > > want to have to choose either scripting or compiled. I like my Pascal code > > to be work in either mode. > > It's alway

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Michael Van Canneyt
On Fri, 14 Oct 2011, Andrew Pennebaker wrote: Yeah, I know to chmod my scripts before dot-slashing them. It's just that fpc can't handle shebangs, and I don't want to have to choose either scripting or compiled. I like my Pascal code to be work in either mode. It's always compiled. instan

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Marco van de Voort
In our previous episode, Andrew Pennebaker said: > Thanks ik. Merf, it appears fpc can't compile when a shebang is added. In > future versions, can fpc treat shebangs as comments so that instantfpc code > could be compiled like normal Free Pascal code? I'm not sure that went into 2.4.4 at the same

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Tomas Hajny
On Sat, October 15, 2011 00:43, Andrew Pennebaker wrote: > Thanks ik. Merf, it appears fpc can't compile when a shebang is added. In > future versions, can fpc treat shebangs as comments so that instantfpc > code > could be compiled like normal Free Pascal code? . . While I agree with others sug

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Roland Schäfer
On 10/15/2011 9:10 AM, Roland Schäfer wrote: > Good look, I meant "luck", of course. > Roland > > On 10/15/2011 12:56 AM, Andrew Pennebaker wrote: >> Yeah, I know to chmod my scripts before dot-slashing them. It's just that >> fpc can't handle shebangs, and I don't want to have to choose either

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Roland Schäfer
I get the impression that you want to use Pascal for something it wasn't designed for. Even if you can find some kind of solution, it will probably be a bad hack. But that question is probably for fpc-other. So anyway, the only solution I can think of is to automatically comment out the shebang by

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-14 Thread Ralf A. Quint
At 03:56 PM 10/14/2011, Andrew Pennebaker wrote: Yeah, I know to chmod my scripts before dot-slashing them. It's just that fpc can't handle shebangs, and I don't want to have to choose either scripting or compiled. I like my Pascal code to be work in either mode. Gosh, (Free)Pascal is a compil

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-14 Thread Andrew Pennebaker
Yeah, I know to chmod my scripts before dot-slashing them. It's just that fpc can't handle shebangs, and I don't want to have to choose either scripting or compiled. I like my Pascal code to be work in either mode. Cheers, Andrew Pennebaker www.yellosoft.us On Fri, Oct 14, 2011 at 6:49 PM, ik w

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-14 Thread ik
On Sat, Oct 15, 2011 at 00:48, ik wrote: > On Sat, Oct 15, 2011 at 00:43, Andrew Pennebaker < > andrew.penneba...@gmail.com> wrote: > >> Thanks ik. Merf, it appears fpc can't compile when a shebang is added. In >> future versions, can fpc treat shebangs as comments so that instantfpc code >> coul

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-14 Thread ik
On Sat, Oct 15, 2011 at 00:43, Andrew Pennebaker < andrew.penneba...@gmail.com> wrote: > Thanks ik. Merf, it appears fpc can't compile when a shebang is added. In > future versions, can fpc treat shebangs as comments so that instantfpc code > could be compiled like normal Free Pascal code? > > $

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-14 Thread Andrew Pennebaker
Thanks ik. Merf, it appears fpc can't compile when a shebang is added. In future versions, can fpc treat shebangs as comments so that instantfpc code could be compiled like normal Free Pascal code? $ cat hello.pas #!/usr/bin/env instantfpc program Hello; begin writeln('Hello World!') end. $ fpc h

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-14 Thread ik
On Sat, Oct 15, 2011 at 00:25, Andrew Pennebaker < andrew.penneba...@gmail.com> wrote: > E.g., if fpi existed, I would add a shebang like this to my code: > > #!/usr/bin/env fpi > > InstantFPC > Cheers, > > > Andrew Pennebaker > www.yellosoft.us > > __

[fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-14 Thread Andrew Pennebaker
E.g., if fpi existed, I would add a shebang like this to my code: #!/usr/bin/env fpi Cheers, Andrew Pennebaker www.yellosoft.us ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal