Recent

Author Topic: PascalABC  (Read 6741 times)

lazjump

  • Jr. Member
  • **
  • Posts: 61
PascalABC
« on: October 30, 2015, 02:08:20 pm »
I just happen to come across this: http://pascalabc.net

The cousin of FPC?
I thought Delphi was expensive until I learned the price of ExtJS

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12601
  • FPC developer.
Re: PascalABC
« Reply #1 on: October 30, 2015, 02:14:09 pm »
More a cousin of C#. See e.g. the way variables are declared inside procedural blocks, and the need to repeat "var" and "foreach" instead of for .. in.

IOW it looks more a curly braces (C,Java,C#) language with tokens substituted than a real Pascal parser, or at the very least a C#-Pascal hybrid
« Last Edit: October 30, 2015, 02:32:13 pm by marcov »

mai

  • Full Member
  • ***
  • Posts: 133
  • truther
PascalABC
« Reply #2 on: October 30, 2015, 02:14:28 pm »

Pascal ...


still alive and kicking !!  8-)

lazjump

  • Jr. Member
  • **
  • Posts: 61
Re: PascalABC
« Reply #3 on: October 30, 2015, 02:22:03 pm »
More a cousin of C#. See e.g. the way variables are declared inside procedural blocks...

I glanced at the first screenshot on the website and I feel something is wrong with the code in the screenshot but silly me, I don't know what... until I read your post :D
I thought Delphi was expensive until I learned the price of ExtJS

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: PascalABC
« Reply #4 on: October 30, 2015, 04:58:48 pm »
Somebody brings back the dead GPC to live! :o
I remember GPC was the only Pascal implementation that offers declarations as statements and inline loop variable declaration. Also the only one being written in C, until its death 4-5 years ago.

moskalenco_a

  • New Member
  • *
  • Posts: 19
Re: PascalABC
« Reply #5 on: November 22, 2015, 10:40:22 pm »
It's not Pascal. It's something strange. Pascal+C#.NET

ykot

  • Full Member
  • ***
  • Posts: 141
Re: PascalABC
« Reply #6 on: November 23, 2015, 03:16:46 am »
Looks like a free alternative to Oxygene, which is good. :)

rnfpc

  • Full Member
  • ***
  • Posts: 118
Re: PascalABC
« Reply #7 on: October 31, 2025, 09:06:35 am »
I know this is an old post but the website https://pascalabc.net/en/ is still active and things could have changed over the years. Could there be any situation where this version of Pascal has any advantage over Fpc/Lazarus ?

d2010

  • Full Member
  • ***
  • Posts: 247
Re: PascalABC
« Reply #8 on: October 31, 2025, 09:21:27 am »
I just happen to come across this: http://pascalabc.net

The cousin of FPC?
Please, Please C:Q1=How to build {x86} as DLL ?
The runtime of Pascal contain very good,  based-function,
 (eg.PosEx, calc-math with complex-algebric , )
Code: Pascal  [Select][+][-]
  1. // Dll-библиотека
  2. library MyDll;
  3.  
  4. const n = 10;
  5.  
  6. function add(a,b: integer): integer;
  7. begin
  8.   Result := a + b;
  9. end;
  10.  
  11. procedure PrintPascalABCNET;
  12. begin
  13.   writeln('PascalABC.NET');
  14. end;
  15. end.
  16.  
This .demo is only C#dot,net. How to execute this demo?
I need learning Lambdas, and  compare Lambdas, because Lambdas inside BC++
or VC++2023 is worst undestanding.
type int = integer;
begin
  var f: int -> int -> int := i -> j -> i*j;
  MatrGen(10,10,(i,j)->f(i)(j)).Println; 
end. :-X


marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12601
  • FPC developer.
Re: PascalABC
« Reply #9 on: October 31, 2025, 09:48:26 am »
I know this is an old post but the website https://pascalabc.net/en/ is still active and things could have changed over the years. Could there be any situation where this version of Pascal has any advantage over Fpc/Lazarus ?

Why don't you ask on a forum where the ABC users live? Here it is rarely mentioned, so there is unlikely to be deep knowledge.

Anyway, I haven't seen much news or updates from that corner in the last years. It seemed to be primarily used in the Russian educational sector, and (former) Russian students often mentioned it on the board. Maybe school use of ABC in Russia has diminished in recent years.

And as with most C#-with-other-syntax. If you are into that, cut out the middleman and go directly to C#. No point in being a second tier citizen on the .NET platform.
« Last Edit: October 31, 2025, 09:56:58 am by marcov »

Thaddy

  • Hero Member
  • *****
  • Posts: 18712
  • To Europe: simply sell USA bonds: dollar collapses
Re: PascalABC
« Reply #10 on: October 31, 2025, 01:13:25 pm »
Does it compile itself? (No). No language.
Strictly speaking a language dialect that can not compile itself is in contradiction with Turings law.
I like C# but I don't need another Pascal dialect created on top of it.
And certainly not a dialect that supports the hidious inline var curse.
Code that does not separate declaration from use is not Pascal.(That goes for modern delphi too)
« Last Edit: October 31, 2025, 01:20:12 pm by Thaddy »
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

LeP

  • Full Member
  • ***
  • Posts: 105
Re: PascalABC
« Reply #11 on: October 31, 2025, 03:43:46 pm »
And certainly not a dialect that supports the hidious inline var curse.
Code that does not separate declaration from use is not Pascal.(That goes for modern delphi too)

Code: Pascal  [Select][+][-]
  1. begin
  2. var a := 'I like myself';
  3. ShowMessage(a);
  4. end;

 :-*  :D  O:-)

Handoko

  • Hero Member
  • *****
  • Posts: 5513
  • My goal: build my own game engine using Lazarus
Re: PascalABC
« Reply #12 on: October 31, 2025, 04:03:47 pm »
Could there be any situation where this version of Pascal has any advantage over Fpc/Lazarus ?

I visited the official website of PascalABC and made this feature list. Anyone please help complete this list:

rnfpc

  • Full Member
  • ***
  • Posts: 118
Re: PascalABC
« Reply #13 on: October 31, 2025, 06:00:39 pm »
As commented by @Marcov, if one likes C#, he/she should use it directly.
Is there any benefit of PascalABC.NET over C#?

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12601
  • FPC developer.
Re: PascalABC
« Reply #14 on: October 31, 2025, 08:13:02 pm »
Could there be any situation where this version of Pascal has any advantage over Fpc/Lazarus ?

I visited the official website of PascalABC and made this feature list. Anyone please help complete this list:

Mostly are just .NET features. Logically FPC doesn't, though some (like GC) might be achievable via ppcjvm or pas2js.

Let's turn it the other way around, where is the gallery? What can you really do with PascalABC.NET ? The site doesn't seem to have much except the most basic 10 line examples demonstrating some feature.

Where are the 100000+ or even million+ line codebases?

Where is documentation? Can you actually get support if you don't speak Russian?
« Last Edit: October 31, 2025, 08:23:50 pm by marcov »

 

TinyPortal © 2005-2018