News for hackers. Stuff that matters.
Re:Why I use Object Pascal by oneweekwonder on Tuesday October 17, 2017 @10:23AM (#15491092)
> Not to say these are not valid reasons, or expectations one may have from a language, but - what exactly is Pascal being compared to? I mean, it's 2017.

I have been searching for it for 15 min now, but last month or so on hn there was a article comparing programming languages and compilers. fpc performance was comparable to c.

Also a mvp production exe will be 2.5 MB, no stdlib/.net/qt needed.

Re:Why I use Object Pascal by vram22 on Tuesday October 17, 2017 @03:55PM (#15494315)
>Also a mvp production exe will be 2.5 MB, no stdlib/.net/qt needed.

And a hello world Free Pascal EXE can be as small as 57KB:

$ dir fpc_hello.exe

07/26/2016 09:43 PM 57,402 fpc_hello.exe

Source and output:

$ type fpc_hello.pas

program hello_1;

{ uses ; }

    var i: integer;
BEGIN

        for i := 1 to 10 do

        begin

            writeln(i:4, ' Hello from Free Pascal');

        end;
END.

$ fpc_hello

   1 Hello from Free Pascal
   2 Hello from Free Pascal
   3 Hello from Free Pascal
   4 Hello from Free Pascal
   5 Hello from Free Pascal
   6 Hello from Free Pascal
   7 Hello from Free Pascal
   8 Hello from Free Pascal
   9 Hello from Free Pascal
  10 Hello from Free Pascal
I also checked the size of similar programs in C and D. C was about 22KB, IIRC. D was something more, don't exactly remember, but not a lot more, probably.
Re:Why I use Object Pascal by cies on Tuesday October 17, 2017 @11:05AM (#15491506)
> 2.5 MB, no stdlib/.net/qt needed.

This is a pro of Pascal then :)

I was also looking for the pros of Pascal in contrast to what we've come to expect of languages while skimming the article.

Re:Why I use Object Pascal by oneweekwonder on Tuesday October 17, 2017 @12:26PM (#15492271)
Lazarus on ubuntu and windows is usable, i'm still struggling with macOS and there is legends and lore of ios/android support. It even seems to support qt, but I have not went there yet.

Something else to mention about lazarus is you can hot compile the ide too add in components, fix issues; While using lazarus. It takes a couple of minutes to recompile and there a fail safe cli method to restore. But rather amazing if you wonder how long it takes to compile visual studio professional or qt.

http://wiki.freepascal.org/IDE_Window:_Configure_Build_Lazar...

Re:Why I use Object Pascal by cies on Tuesday October 17, 2017 @02:01PM (#15493132)
That's some interesting pros! Thanks man.