4 ms·
Wow, Pascal! Haven't seen a project in Pascal in a while. https://github.com/PackOrganization/Pack https://github.com/PackOrganization/Pack
by kevmo314 3y ago
Wow, Pascal! Haven't seen a project in Pascal in a while. https://github.com/PackOrganization/Pack https://github.com/PackOrganization/Pack
- nkozyra 3y agoYeah, I'll wait for the ALGOL 68 port.
- jksmith 3y agohttps://en.wikipedia.org/wiki/Argumentum_ad_populum https://en.wikipedia.org/wiki/Argumentum_ad_populum can be a mistake of the youth. Just sayin.
- nkozyra 3y agoPascal was my first programming language, but I appreciate the link ;)
- OttoCoddo 3y agoThat is the best joke I've heard all day. Thank you for the laugh :)
- p0w3n3d 3y agoLast time is did some Pascal was 2006/7. I think I never saw production-grade code myself. I wonder if this line is an array in-situ? Split(APath, [sfodpoWithoutPathDelimiter, sfodpoWithoutExtension], P, N)
- mananaysiempre 3y agoNo, it’s a set (bitmask) constant[1]. [1] https://www.freepascal.org/docs-html/current/ref/refse83.html https://www.freepascal.org/docs-html/current/ref/refse83.htm...
- jksmith 3y agoBut yeah FPC supports ref counted dynamic arrays with "+" operator.
- mikepurvis 3y agoIndeed, this is the kind of thing I would have expected to see written in Go or Rust. I wonder what the motivation for this implementation choice was.
- benignslime 3y agoIn the "Source" section of the site: > It is written in the Pascal language, a well-stabilized standard language with compatibility promises for decades. Using the FreePascal compiler and the Lazarus IDE for free and easy development. The code is written to be seen as pseudocode. In place of need, comments are written to help.
- jksmith 3y agoLet's say the tyranny of the C children has diverted our attention. I'll make a wild ass statement: If Modula-2 (Wirth family with Pascal) had caught on, you would have had whatever you wanted from Rust 20 years ago. But the C noise dominated the narrative. Use the language that makes you money and encourages you to write code that addresses domains requiring more than just bolting together framework pieces. AI can do a measurable chunk of that work.
- theamk 3y ago20 years ago was 2004, and Borland Delphi 7 was out. It was Pascal-based, but it didn't had that much difference from C programs. It had a nice unit system with separate interface & implementation sections. This was very nice. The unit files were not compatible with anything else, including previous versions of Delphi - this was not nice, especially since a lot of libraries were distributed in compiled form. The compilation speed was amazingly fast. This is one thing that was unequivocally better than C at this time. There were range types (type TExample = 1..1000), but they more of a gimmick - turns out there are very few use cases for build-time limits. There were some uses back in DOS days when you'd have hardcoded resolution of 640x480, but in the windows time most variables were just Integer. Arrays had optional range checks on access, that was also nice. We'd turn them off if we felt programs were too slow. Otherwise, it was basically same as C with a bit of classes - custom memory allocation/deallocation, dangling pointers, NULLs, threads you start and stop, mutexes and critical sections. When I finally switched from Pascal to C, I didn't see that much difference (except compilation got much slower) Maybe you'd say that Borland did something wrong, and Wirth's Modula-2 would be much better than Borland's Pascal, but I doubt this.
- OttoCoddo 3y agoYes, and I hope that is a good surprise. As you can see, you can create fast and readable codes with it.