Pascal has some really cool inline assembly support. You can just write an assembly block with normal assembly code, but you can e.g. mov directly into pascal variables.
Learning to write inline assembly in a graphic routines to get a *huge* performance increase was one of the most exciting moments in my life as a programmer!
I loved that, coming from the Amiga, which had a language called "Amiga E", it was like a mix of c, assembler, and other languages. but it supported inline assembler also. edit: and I remember many demos in the demoscene was written in pascal.
No. Wait really? If that os true, I will try to access planal memory with mode x 10h. This will likely fail. And then you made me excited for nothing. * glare *
What C programming language can do so can Pascal. I have a smile web content stripping program developed in Free Pascal for linux x86_64, and I have it compiled in my Raspberry Pi4 , without changing a single line of code. Thanks to The Free Pascal Team for their wonderful job keeping Pascal Language alive!
Object Pascal is my favourite language. It's used in most of the areas I work in: embedded, desktop and mobile. I wouldn't say it's lost the market, it's very active in other countries like Russia, Ukraine and China. When I went to Shenzhen I seen it used a lot. In the West, a lot of money is spent on advertising certain languages. I used to ride trends too. But since sticking with Object Pascal I am far more productive. It's fast. Small. Cross platform. Cross architecture. Lazarus and Delphi (if you want to pay), are the only solutions that allow you to create beautiful UI's that work everywhere. That's very important when developing products that interface with embedded devices. Thank you for posting this and showing the beauty of the language.
It's a great comment. Could you tell me more about embedded in pascal? I am finding some document about it but not many resources. Thank you!! (Sorry for my bad English)
I started programming in Pascal back in the early 90s with that blue borland editor. I still map my compile&run hotkeys to Strg+F9 no matter which enviroment im messing around up on til today. Thanks for all the effort.
Pascal is a proper language. It has security that doesn't rely on compilation checks, and it's designed to make it difficult to introduce bugs, and to finish code and separate concerns with modules and interfaces. My years with Turbo Pascal, Delphi, and FreePascal have been Zen. I've written only maybe 2-400000 lines of code in these, but I can count on the fingers of one hand it has let unstable code through. It's much less crashy than other high- and low-level languages. Plenty of text editors support Pascal syntax, but maybe they haven't bothered to update as the language has evolved? I haven't written much code in or for terminal/DOS since 1992. I much prefer to code for and in a GUI. Delphi and Lazarus have offered IDEs with great debuggers for decades, and the Lazarus forums are an active community for the Pascal dialects and cross-platform components and frameworks in 2022.
It starts with program because there are also unit and library types of sources. And you don't have to have any external build system to specify what you actually want to build from your source. Also, program is the default one, you don't have to specify it.
Idiomatically whenever you need to implement an empty loop you go with a repeat loop: repeat until ; Also you can (at least in turbo pascal) use the "return" keyword to return a value from a function, you don't have to assign a result to a pseudo variable named after the function's name
Borland Pascal was the language I was taught to program in at college (showing my age a bit here). It was a great language for the purpose - the verbosity literally spells everything out and really helps cement the concepts in the mind of the novice. I have a lot of nostalgia for the language so I'm definitely biased, but one thing I'll defend to the death is colon-equals for assignment (read as "becomes equal to") and single-equals for equality testing. No double-equals anywhere, because double-equals is insane. I also like the explicit distinction between functions and procedures, (and the ability to nest them). The unit system is pretty cool too. If I was to design my "dream language", it would be *heavily* influenced by Pascal, despite the fact that C++ has been my bread and butter for aeons.
This takes me back to my high school days when I learned Pascal to do UIL competitions. I never really tried hard and thus didn't go far, but it was kind of fun traveling several hundred miles to do regionals. I often wonder what could have been had I applied myself.
love those streams using unpopular languages. they really make you appreciate everything that's taken for granted in modern languages. And at the same time, they make me feel like I could eventually learn those languages as well. In the end it's all variables, pointers, loops, ifs and arrays, right?
@unidentified666 So like I said its still used and more in various forms. Rarely used? So that would be a yes. lol YOu just validated my point. You analogy is really bad and completely not true. Since A. its only valid if you know where the heck you are going.
I'm being taught pascal at university and we've never even talked about dynamic arrays, we always use array[1..n] of variable, this is a paradigm change
the relatively new programming language Odin draws a lot on a spiritual heritage from Pascal - yeah, it traded out begin/end for curly brackets but otherwise retains a fair amount of Pascal inspiration
Thank you for showing free Pascal. I didn't notice it has support for JVM compilation. I was interested in that topic and now I have sth to check out! 👍
bad tools and OS support. It's been a bastard trying to keep Pascal alive in 2022 on the Mac. I even had to make my own language server for use with Sublime Text. It's a mess.
Turbo Pascal and Borland Pascal where mainstream under DOS. And it was very affordable. Then they made Delphi extremely expensive and killed their user base.
My first programming teacher taught us C++ on a super old version of Visual Studio with C string libraries and C++ IO and he still used the function/procedure terminology from Pascal to describe functions. conio.h header, string.h, and using namespace std, what a God forsaken combo lol but I never would have heard of Pascal if he didn't mention it, good times.
Thanks for the bringing up very old memories. I learned programming in the 80s using Turbo Pascal 4.0 on an XT compatible. I still wonder how this was possible w/o any Internet.
Rascal is very Pascalish and is aimed at retro programming on the famous vintage 8-bit computers of the 80s, it is currently supporting a fair amount of such platforms. Given there are excellent retro computer emulators for Windows/Linux/MacOS, Rascal might be a very fun option to try (vs FreePascal) - i.e., take a shot at developing a game that can run on one of the famous vintage 8-bit computers
The IEC 61131-3 standard for Structured Text is used for programming various kinds of machinery and PLCs. The language itself is basically Pascal ported over and a few keywords changed, but the syntax is more or less the same. Intresting to see original pascal
You missed these IDE's: Open Source "Lazarus" and Embarcadero's (finally) Community Edition of "Delphi". While Delphi is 'Windows Only' install, I have used Lazarus on Linux, Windows, and a Raspberry Pi 4. Forget a text editor as both have built-in RAD GUI builders that can target most desktop and mobile OS's with their still growing component libraries (VCL, LCL, FMX, etc). What really sold me recently on FPC/Delphi was the high DPI support components. Nothing against XAML (or the vast Qt libraries) but RAD really does apply like WinForms use to do when I wasn't supporting 4k+ panels.
Yes, there is no end condition to this recursion. Therefore it always creates new recursion step and since printing is behind creation, it never prints
1:35 чел, когда говоришь It’s nothing but dead . это означает “он конечно же мертвый” (он только мертвый) чтобы сказать “он совсем не мертвый” можно сказать it’s not dead at all... а лучше через утверждение It’s alive !
Very nice. The infinite loop issue is resolved by deciding if you want a first move or not. I the field is 100% bombs then there is no valid first move, if there is a valid first move, then you can't have 100% bombs. Also, if you open an empty tile, and the adjacent tiles are empty, they should also be opened. But that can be left for others to implement.
I like that Tsoding adapts his style to the language. This looks like idiomatic Pascal code not like how someone who knows C would force feed his style into any language. Or, "You can program FORTRAN 66 in any language"
Cool video. Pascal looks very similar to many modern languages, which I found interesting. Just wanted to chime in with an additional trick to place the mines: You can place K mines uniformly at random in an array of N elements by initializing any K mines and doing a Fisher-Yates shuffle on the array. This can even be done in a simple little loop by adjusting the probabilities with each iteration. It gets slightly trickier when you add constraints on where you're allowed to place mines, of course, but it can be overcome by shuffling until you find a satisfying mine field.
Pascal is my favorite language 😂 (seriously, but still a little funny to me) Modern ObjectPascal is way nicer to work with too, and you don't need to use all of the OOP features it adds. Would you consider making another project using modern pascal by adding {$mode objfpc} to source file? Thanks for the entertainment and sharing your knowledge, it is appreciated.
freepascal supports generics, which is very cool. in general, this language is like a much better C, with some nice features of C++, but without the complexity :)
That's awesome! I actually just wrote my test runner for my text editor in Pascal! I wanted to get away from Python since everybody uses it for tests, as well as try something new. I found that Pascal is actually a great language! Very easy to use
funfact : pascal is the only direct descendant of the mammoth language ALGOL. and pascal is still thriving in today's programming world. a side note though RIP to the legend who created this masterpiece Niklaus Wirth who recently died this year january 2024..
Does Pascal have generics yes? It was my first language. But it didn't have generics and it was an absolute pain because of that. So much so I ended up writing a set of macros just to create something that would emulate them. EDIT seems like it does now. Very cool.
I tried using this code in a new console application in Delphi XE5. The only thing I didn't find that didn't really work was the Terminal. The code went without any problems, however some improvements were needed. For instance: function FieldCountNbors(Field: Field; Row, Col: Integer): Integer; var DRow, DCol, FieldCountNborsX: Integer; C: Cell; begin FieldCountNborsX := 0; for DRow := -1 to 1 do for DCol := -1 to 1 do if (DRow 0) or (DCol 0) then if FieldCheckedGet(Field, Row + DRow, Col + DCol, C) then if C = Bomb then inc(FieldCountNborsX); Result:=FieldCountNborsX; end;
Thank you! However, I think, what you presented, most of this could be done 40 years ago. As the title says: "modern age", this is somewhat misleading. You did not show object orientation, units, various forms of the for loop, sets, ranges, properties, anonymous procedures and so on. This is the stuff that keeps pascal alive today. I have always loved the local procedures in pascal, which existed 40 years ago. C has no equivalent until today, where we can abuse lambdas (or macros) for this purpose in C++.
i was under the assumption that by "the modern age" he meant using this old language in the year this video was uploaded, not the usage of modern pascal features
So, I ran a dialup bbs in the 90s and qbasic and turbo pascal were the first languages that I learned. I have since moved to a lot of c style syntax languages.
Looking at you I understand you're so good at programming bc you know fondamentals appliable to any langs, any suggestion on what to learn and sources?
What's your opinion on Pascal's Wager? Should one aim for the purity of something like FreePascal's wager? Maybe something like Delphi's Wager would be more objective?
Have you ever used it? I remember back in the day when I downloaded it, it was BlueBottle and they said it used to be called AOS. Seemed like a bad idea to keep renaming the OS, probably it's not widely used.
Yes, the non-standardization is an issue. I use Peter De Wachter's emulator (github.com/pdewacht/oberon-risc-emu) with some customizations for bigger fonts etc.
Bump. Oberon is fascinating. Acme (text editor from Plan 9) borrowed much ideas from it. It is very usable on Linux. Can be though of a minimalistic Emacs, which perfectly integrates UNIX utilities within itself.
I rediscovered Pascal after a 25 years break from it. I downloaded Free Pascal IDE (FPC) and I am not very happy with it. It often crashes just when typing code (f.e. same letter in same line of code). I have started typing the code in regular Notepad and only use FPC for compiling. Another thing that bothers me is that I can't resize the IDE window properly. My computer screen is quite big, and the IDE starts almost at the top and the bottom is still cut off. If I shrink the window from the top and drag it upwards, the bottom menue is not visible, but if I scroll, the top menue is not visible. I have no idea how to fix this. Also, I want to keep the window size in text mode at traditional 80x25, but somehow I can't resize the output window. Text seems to overlap the 80 pixel mark in the X-axis. Just not a good experience with the IDE. Are there other IDEs that are better? Is Lazarus working with 80x25 text mode?
@@michaelcobb1024 Definitely a stable release distro, look at the timestamp on the Pascal compiler - 2019. 3 years old. FreePascal is a very active project (believe it or not).
Perhaps because it is _weird_? I just tried it on Ubuntu 22.04. After some weirdness regarding a broken default config that was fixed by pressing a button to create a new config, it started correctly, but with a project that included a "Form1" that was part of some GUI builder that looked very much like the 1990s and fixed sizes for everything. (Also lots of little, independent windows for everything.) At that point I lost interest. I guess throwing you into this GUI builder and making you work until you find out how to just write code is supposed to be welcoming, but to me it just signals that I am not in the target audience. It's about as off-putting as Clippy the Microsoft Office Assistant was, and roughly from the same era. I had forgotten why I never used it when I tried it out about 20 years ago. Now I remember.
Why didn't you use lazarus? It's the IDE of choice usually for free pascal. It includes current released/RC versions of pascal out of the box or you can install them after. It's a "feels like bourland" IDE. The FP debugger (even a year ago now) was quite good at the time or you could use GDB. FPDebug is even better now. Also the built in FP IDE is also like turbo pascal/Bourland pascal and has built in debugging etc. It's a text mode console app.
I have tried to use pascal. But i have never figured out how to turn off all of the 40075 different kinds of type and obviously 40 odd year old 'feature accumulations' to get a straight forward picture of what the core o f the language is.
Pascal has some really cool inline assembly support. You can just write an assembly block with normal assembly code, but you can e.g. mov directly into pascal variables.
Learning to write inline assembly in a graphic routines to get a *huge* performance increase was one of the most exciting moments in my life as a programmer!
I loved that, coming from the Amiga, which had a language called "Amiga E", it was like a mix of c, assembler, and other languages. but it supported inline assembler also. edit: and I remember many demos in the demoscene was written in pascal.
No. Wait really? If that os true, I will try to access planal memory with mode x 10h. This will likely fail. And then you made me excited for nothing. * glare *
PS: does anyone remember how to do mode X? Interrupt with registers set to 16 hex ... er...
Pascal can do what C can do. It's just as low level.
What C programming language can do so can Pascal.
I have a smile web content stripping program developed in Free Pascal for linux x86_64,
and I have it compiled in my Raspberry Pi4 , without changing a single line of code.
Thanks to The Free Pascal Team for their wonderful job keeping Pascal Language alive!
Object Pascal is my favourite language. It's used in most of the areas I work in: embedded, desktop and mobile. I wouldn't say it's lost the market, it's very active in other countries like Russia, Ukraine and China. When I went to Shenzhen I seen it used a lot. In the West, a lot of money is spent on advertising certain languages. I used to ride trends too. But since sticking with Object Pascal I am far more productive. It's fast. Small. Cross platform. Cross architecture. Lazarus and Delphi (if you want to pay), are the only solutions that allow you to create beautiful UI's that work everywhere. That's very important when developing products that interface with embedded devices. Thank you for posting this and showing the beauty of the language.
It's a great comment. Could you tell me more about embedded in pascal? I am finding some document about it but not many resources. Thank you!! (Sorry for my bad English)
he IS Russian
It's my understanding that PascalABC is the 3rd most popular language in Russian Universities behind C++ and Python.
@@GaryChike FreePascal. I confirm this
delphi is kinda popular in brazil too
I started programming in Pascal back in the early 90s with that blue borland editor. I still map my compile&run hotkeys to Strg+F9 no matter which enviroment im messing around up on til today. Thanks for all the effort.
For anyone who's not German: strg = ctrl
@@Dr-Zed appreciate it 🙏
@@Dr-Zed lol. yes. i was totally unaware of that "little difference" and how it might reveal my origin. nice one.
Ah, good old Turbo Pascal? :) I remember it from the 90s as well!
Pascal is a proper language. It has security that doesn't rely on compilation checks, and it's designed to make it difficult to introduce bugs, and to finish code and separate concerns with modules and interfaces. My years with Turbo Pascal, Delphi, and FreePascal have been Zen. I've written only maybe 2-400000 lines of code in these, but I can count on the fingers of one hand it has let unstable code through. It's much less crashy than other high- and low-level languages.
Plenty of text editors support Pascal syntax, but maybe they haven't bothered to update as the language has evolved? I haven't written much code in or for terminal/DOS since 1992. I much prefer to code for and in a GUI. Delphi and Lazarus have offered IDEs with great debuggers for decades, and the Lazarus forums are an active community for the Pascal dialects and cross-platform components and frameworks in 2022.
I also think Pascal is a *comfy* language
Lazarus IDE: *exists*
"there's no editor for Pascal"
Iirc it doesn't have vim keybindings, but I may be wrong
@@Eldarlll thus, it does not exist. Q.E.D.
@@Eldarlll doesn't he use emacs?
It starts with program because there are also unit and library types of sources. And you don't have to have any external build system to specify what you actually want to build from your source. Also, program is the default one, you don't have to specify it.
Idiomatically whenever you need to implement an empty loop you go with a repeat loop:
repeat until ;
Also you can (at least in turbo pascal) use the "return" keyword to return a value from a function, you don't have to assign a result to a pseudo variable named after the function's name
Is such thing as return ?
return can be replaced by Exit but i am not sure that it work in such way also in Turbo Pascal
Borland Pascal was the language I was taught to program in at college (showing my age a bit here). It was a great language for the purpose - the verbosity literally spells everything out and really helps cement the concepts in the mind of the novice.
I have a lot of nostalgia for the language so I'm definitely biased, but one thing I'll defend to the death is colon-equals for assignment (read as "becomes equal to") and single-equals for equality testing. No double-equals anywhere, because double-equals is insane.
I also like the explicit distinction between functions and procedures, (and the ability to nest them). The unit system is pretty cool too.
If I was to design my "dream language", it would be *heavily* influenced by Pascal, despite the fact that C++ has been my bread and butter for aeons.
I agree on := which is why I use that in my language.
Ah, yes, a := enjoyer. I'm glad to find one of them 👍 .
This takes me back to my high school days when I learned Pascal to do UIL competitions. I never really tried hard and thus didn't go far, but it was kind of fun traveling several hundred miles to do regionals. I often wonder what could have been had I applied myself.
love those streams using unpopular languages. they really make you appreciate everything that's taken for granted in modern languages. And at the same time, they make me feel like I could eventually learn those languages as well. In the end it's all variables, pointers, loops, ifs and arrays, right?
At the end everything is based on logic :)
@@esiarpze7908 Do you mean NPN and PNP ? ^^
@unidentified666 Pascal is still used today. Just because they are not popular does not mean its still not an active language.
@unidentified666 So like I said its still used and more in various forms. Rarely used? So that would be a yes. lol
YOu just validated my point. You analogy is really bad and completely not true. Since A. its only valid if you know where the heck you are going.
I'm being taught pascal at university and we've never even talked about dynamic arrays, we always use array[1..n] of variable, this is a paradigm change
the relatively new programming language Odin draws a lot on a spiritual heritage from Pascal - yeah, it traded out begin/end for curly brackets but otherwise retains a fair amount of Pascal inspiration
Yep, so does Jai.
Thank you for showing free Pascal. I didn't notice it has support for JVM compilation. I was interested in that topic and now I have sth to check out! 👍
I laughed so hard when you said: "This is what programming is all about: Doing some work that nobody understands, with a useless outcome".
Pascal and Delphi are amazing languages, dunno why they aren't used enough
It is a good language but unfortunately the accompanying standard/supporting library is pretty archaic.
bad tools and OS support. It's been a bastard trying to keep Pascal alive in 2022 on the Mac. I even had to make my own language server for use with Sublime Text. It's a mess.
Turbo Pascal and Borland Pascal where mainstream under DOS. And it was very affordable. Then they made Delphi extremely expensive and killed their user base.
Delphi isn’t a language it’s an IDE, maybe a dialect at best but object pascal is the language and free pascal is the compiler
This was my second language i learned after basic. Spend a couple of years programming in pascal before i moved to C++.
My first programming teacher taught us C++ on a super old version of Visual Studio with C string libraries and C++ IO and he still used the function/procedure terminology from Pascal to describe functions. conio.h header, string.h, and using namespace std, what a God forsaken combo lol but I never would have heard of Pascal if he didn't mention it, good times.
Thanks for the bringing up very old memories. I learned programming in the 80s using Turbo Pascal 4.0 on an XT compatible. I still wonder how this was possible w/o any Internet.
Rascal is very Pascalish and is aimed at retro programming on the famous vintage 8-bit computers of the 80s, it is currently supporting a fair amount of such platforms.
Given there are excellent retro computer emulators for Windows/Linux/MacOS, Rascal might be a very fun option to try (vs FreePascal) - i.e., take a shot at developing a game that can run on one of the famous vintage 8-bit computers
The IEC 61131-3 standard for Structured Text is used for programming various kinds of machinery and PLCs. The language itself is basically Pascal ported over and a few keywords changed, but the syntax is more or less the same. Intresting to see original pascal
You missed these IDE's: Open Source "Lazarus" and Embarcadero's (finally) Community Edition of "Delphi". While Delphi is 'Windows Only' install, I have used Lazarus on Linux, Windows, and a Raspberry Pi 4. Forget a text editor as both have built-in RAD GUI builders that can target most desktop and mobile OS's with their still growing component libraries (VCL, LCL, FMX, etc).
What really sold me recently on FPC/Delphi was the high DPI support components. Nothing against XAML (or the vast Qt libraries) but RAD really does apply like WinForms use to do when I wasn't supporting 4k+ panels.
I think with some effort you can run lazarus on an overclocked tamagotchi.
I've been programming Pascal since the 90s and I didn't know about the end. trick until now! Thanks for sharing I'll be using this for sure.
34:30 I believe it never print anything because it never gets to the body of if clause, unable to evaluate its condition.
Yes, there is no end condition to this recursion. Therefore it always creates new recursion step and since printing is behind creation, it never prints
I work with the ERP system "Business Central" where we use the language called AL, which is a variant of Pascal :)
FPC accept OOP (class etc)
for IDE take a look to lazarus
power of FPC :
property, RTTI, pointer
but manage urself memory
1:35 чел, когда говоришь It’s nothing but dead . это означает “он конечно же мертвый” (он только мертвый) чтобы сказать “он совсем не мертвый” можно сказать it’s not dead at all... а лучше через утверждение It’s alive !
Very nice. The infinite loop issue is resolved by deciding if you want a first move or not. I the field is 100% bombs then there is no valid first move, if there is a valid first move, then you can't have 100% bombs. Also, if you open an empty tile, and the adjacent tiles are empty, they should also be opened. But that can be left for others to implement.
I like that Tsoding adapts his style to the language. This looks like idiomatic Pascal code not like how someone who knows C would force feed his style into any language. Or, "You can program FORTRAN 66 in any language"
Jokes on you. We people in industrial control have to deal with Pascal syntax every day due to IEC 61131-3 ;-)
Cool video. Pascal looks very similar to many modern languages, which I found interesting.
Just wanted to chime in with an additional trick to place the mines: You can place K mines uniformly at random in an array of N elements by initializing any K mines and doing a Fisher-Yates shuffle on the array. This can even be done in a simple little loop by adjusting the probabilities with each iteration. It gets slightly trickier when you add constraints on where you're allowed to place mines, of course, but it can be overcome by shuffling until you find a satisfying mine field.
Pascal is my favorite language 😂 (seriously, but still a little funny to me) Modern ObjectPascal is way nicer to work with too, and you don't need to use all of the OOP features it adds. Would you consider making another project using modern pascal by adding {$mode objfpc} to source file? Thanks for the entertainment and sharing your knowledge, it is appreciated.
Nice to see a program once more i used in school back in the days
freepascal supports generics, which is very cool. in general, this language is like a much better C, with some nice features of C++, but without the complexity :)
I wrote Pascal on a VAX 11/780... and I miss it. Good times. Not to mention VMS/VAX was WAY ahead of its time. It could'a been a CONTENDER!
I also learned writing Pascal on a vax machine back in early 80s.
the field is generated before the click, but if the first click is a bomb it is moved to an empty cell
Pascal, what? It is much needed; especially in 2022.
That's awesome! I actually just wrote my test runner for my text editor in Pascal! I wanted to get away from Python since everybody uses it for tests, as well as try something new.
I found that Pascal is actually a great language! Very easy to use
Oracle's embedded database procedural programming language, PL/SQL, very much draws on a Pascal heritage
funfact : pascal is the only direct descendant of the mammoth language ALGOL. and pascal is still thriving in today's programming world. a side note though RIP to the legend who created this masterpiece Niklaus Wirth who recently died this year january 2024..
Does Pascal have generics yes? It was my first language. But it didn't have generics and it was an absolute pain because of that. So much so I ended up writing a set of macros just to create something that would emulate them.
EDIT seems like it does now. Very cool.
The segfault at the start made my day
Visual Studio Code supports pascal through extensions, but it is better if you use Lazarus IDE for a more features and better experience.
Im going to be honest, I kinda like pascal now.
its like C and Lua had a baby
I kinda like it
I tried using this code in a new console application in Delphi XE5. The only thing I didn't find that didn't really work was the Terminal.
The code went without any problems, however some improvements were needed. For instance:
function FieldCountNbors(Field: Field; Row, Col: Integer): Integer;
var
DRow, DCol, FieldCountNborsX: Integer;
C: Cell;
begin
FieldCountNborsX := 0;
for DRow := -1 to 1 do
for DCol := -1 to 1 do
if (DRow 0) or (DCol 0) then
if FieldCheckedGet(Field, Row + DRow, Col + DCol, C) then
if C = Bomb then
inc(FieldCountNborsX);
Result:=FieldCountNborsX;
end;
Мені дуже подобається дивитися відео на цьому каналі! Щоправда після них я почуваюся ще тупішим, ніж раніше...
I love Pascal!
Thank you! However, I think, what you presented, most of this could be done 40 years ago. As the title says: "modern age", this is somewhat misleading. You did not show object orientation, units, various forms of the for loop, sets, ranges, properties, anonymous procedures and so on. This is the stuff that keeps pascal alive today.
I have always loved the local procedures in pascal, which existed 40 years ago. C has no equivalent until today, where we can abuse lambdas (or macros) for this purpose in C++.
i was under the assumption that by "the modern age" he meant using this old language in the year this video was uploaded, not the usage of modern pascal features
if you install Freepascal whole package, you get "fp" which is the Text IDE. Like the old Turbo4 and later text IDE.
7:25 Even Vim doesn't crash that hard XDDD
So, I ran a dialup bbs in the 90s and qbasic and turbo pascal were the first languages that I learned. I have since moved to a lot of c style syntax languages.
My first book was pascal in 90’s but not first language obviously but at the time it was awesome
It's still awesome
it is interest to watch your logic flowing nice as you code...
Ancap
@@hydradragonantivirus me ? yes
I really like free Pascal language and Lazarus 👌🏻👍🏻
Rebyaty s nashego dvora, good old Free Pascal
Looking at you I understand you're so good at programming bc you know fondamentals appliable to any langs, any suggestion on what to learn and sources?
Just practice, practice and practice
I will have to code in pascal quite soon, soooo...
I vaguely remember there was something cursed in Pascal as 1-based string indexing?
You can have custom index range. If you want 1-based indexing you defined array as `xs: array[1..N] of Integer`
My first programming language was Pascal on a mainframe.
You can do classes in Pascal if you insert {$mode objfpc} in the file, or add the -MObjFPC compiler flag.
It was my first programming language and like it
We can use if we need multidimensional array array of array
What's your opinion on Pascal's Wager? Should one aim for the purity of something like FreePascal's wager? Maybe something like Delphi's Wager would be more objective?
Nice! I 'd be interested in also seeing you hack on the Oberon language and/or OS.
Have you ever used it? I remember back in the day when I downloaded it, it was BlueBottle and they said it used to be called AOS. Seemed like a bad idea to keep renaming the OS, probably it's not widely used.
Yes, the non-standardization is an issue. I use Peter De Wachter's emulator (github.com/pdewacht/oberon-risc-emu) with some customizations for bigger fonts etc.
@@duamba Neat.
Bump. Oberon is fascinating. Acme (text editor from Plan 9) borrowed much ideas from it. It is very usable on Linux. Can be though of a minimalistic Emacs, which perfectly integrates UNIX utilities within itself.
And how about coding in Qbasic 1.1 ?
QB 4.5 would be better, could generate binaries.
@@anon_y_mousse or use qb64
Смотрю на паскаль и плачу. Теперь я всё-таки люблю c++
паскаль лучше. чекни Object Pascal. синтаксис может казаться карявым, но это отличный язык, который бьет плюсы во всех аспектах
Is there a specific reason for starting each function name with field or is it just a convention?
What's the name of the music playing in the background??
Does anyone know why sometimes have var before Field, sometimes not?
var is "pass by reference" in a parameter list.
What is your opinion on Oxygene?
I rediscovered Pascal after a 25 years break from it. I downloaded Free Pascal IDE (FPC) and I am not very happy with it. It often crashes just when typing code (f.e. same letter in same line of code). I have started typing the code in regular Notepad and only use FPC for compiling. Another thing that bothers me is that I can't resize the IDE window properly. My computer screen is quite big, and the IDE starts almost at the top and the bottom is still cut off. If I shrink the window from the top and drag it upwards, the bottom menue is not visible, but if I scroll, the top menue is not visible. I have no idea how to fix this. Also, I want to keep the window size in text mode at traditional 80x25, but somehow I can't resize the output window. Text seems to overlap the 80 pixel mark in the X-axis. Just not a good experience with the IDE.
Are there other IDEs that are better? Is Lazarus working with 80x25 text mode?
You might like Geany. The editor is smart enough to find FPC and configure itself to compile and run.
Instead of pushing rust, they should of pushed pascal. I guess they want to be popular instead
the reason people dump Pascal is cause they have delusions of grandeur. :D
do you still have access to jai after the last vid ?
No, all his Jai things are redirected to pascal
BEst MOMeNT: 59:04 "This is what programming is all about, doing some work that no one understands, with a useless outcome" XD XD XD XD XD
For this and for this _alone_ you get like +1243 kudos from me.
What kind of operating system do you have, is it a Debian with some theme?
Спасибо Google переводчику
I believe it is Debian with i3 window manager
Thank you!
@@michaelcobb1024 Definitely a stable release distro, look at the timestamp on the Pascal compiler - 2019. 3 years old. FreePascal is a very active project (believe it or not).
why don't you use Lazarus?
Perhaps because it is _weird_? I just tried it on Ubuntu 22.04. After some weirdness regarding a broken default config that was fixed by pressing a button to create a new config, it started correctly, but with a project that included a "Form1" that was part of some GUI builder that looked very much like the 1990s and fixed sizes for everything. (Also lots of little, independent windows for everything.) At that point I lost interest. I guess throwing you into this GUI builder and making you work until you find out how to just write code is supposed to be welcoming, but to me it just signals that I am not in the target audience. It's about as off-putting as Clippy the Microsoft Office Assistant was, and roughly from the same era.
I had forgotten why I never used it when I tried it out about 20 years ago. Now I remember.
Do you think I should learn pascal before Java?
If you are a beginner, yes it's a nice choice for getting to know coding concepts.
@@hamedrezayi5949 do you know anything about PHP?
@@igwanwan_dagoat1523 no sorry, But I know freepascal is not good at web.
Not that noone programs in Pascal, but noone programs in Vim.
Anyone knows the name of this font?
what is going on looks likesource code, what is it . please shed a halogen bulb on it.
And now I wanna code some pascal too xd
You should be more respectful to Pascal.
Delphi flashbacks
What linux distro is this :>
debian i think
Yup its Debian
Debian with i3 or dwm window manager and emacs
Delphi was pretty good I don't know why people let it die, maybe because borland was greedy
Why didn't you use lazarus? It's the IDE of choice usually for free pascal. It includes current released/RC versions of pascal out of the box or you can install them after. It's a "feels like bourland" IDE. The FP debugger (even a year ago now) was quite good at the time or you could use GDB. FPDebug is even better now.
Also the built in FP IDE is also like turbo pascal/Bourland pascal and has built in debugging etc. It's a text mode console app.
finally! ❤️❤️❤️
You should have used Delphi rather
Look into Delphi 🙂
French names have the stress on the last syllable. For example, Victor [vik'tor]. So, it's [pas'kal] and not ['paskal].
what's up with the Elisabeth Holmes impression?
Why you don't use objects? FPC supports it.
what os is he using is it entirely a terminal ..bruh
Now code in VBS
23:40 exit(69)
I have tried to use pascal. But i have never figured out how to turn off all of the 40075 different kinds of type and obviously 40 odd year old 'feature accumulations' to get a straight forward picture of what the core o f the language is.
Why chose this instead of visual studio code??????
Try Odin
And Nim
Porn folder: 9.2 GB WTF mate?
i ve seen that too
Hahahah.... Only 9.2 GB??!!!!!
Use Lazarus