3 ms·
Sometimes I wonder if the failure of languages like these - along with Ada is purely aesthetic one. Who knows, maybe Rust and something like Ada++ http://www.a
by Schectmar246 6y ago
Sometimes I wonder if the failure of languages like these - along with Ada is purely aesthetic one.
Who knows, maybe Rust and something like Ada++ http://www.adapplang.com/ http://www.adapplang.com/ will be able to dethrone C++, or Java some day.
- pjmlp 6y agoThey need to provide tooling at the same level, otherwise they will only succeed in niche areas where security is the top level concern, and good enough static analysers aren't acceptable. Think of Qt, WinUI, CUDA, Unreal, Visual Studio debugger, C++ Builder kind of tooling.
- Schectmar246 6y agoHmm, but aren't these languages easily compatible with C and C++. I know in Ada++ you just have to link the library at build time and generate a pkg based on a header file. func Foo (X : C.int) return C.bool with Import, External_Name => "Foo"; I suppose though that you are right. A majority of modern programmers probably view sophisticated tools and pre-built packages (a la NPM) as necessities and hardly care about performance or code quality.
- Jtsummers 6y agoIt's now 3 April, Ada++ was announced on 1 April. If you're the author, congrats on the commitment, but it literally just changes begin and end to { and }, is to :, and a few keywords, like procedure to proc. I mean, it's more obvious when you look at the case example: case Variable: when 0 => Put_Line ("Zero"); when 1 .. 9 => Put_Line ("Positive Digit"); when 10 | 12 | 14 | 16 | 18 => Put_Line ("Even Number between 10 and 18"); when others => Put_Line ("Something else"); } Where's the { to go with that }? Oh, that's right, the : is replacing is: case Variable is -- was : above .. end case; -- replaced by } above and there is no {. It may have made more sense to go Python-style and use significant whitespace. And regarding package management, Alire does exist and is starting to become interesting for Ada users. The list of crates is still small, but it's functional and (somewhat) easier than managing it manually. https://alire.ada.dev/ https://alire.ada.dev/ EDIT: Fixed some things like "it's" to "its" and "process" to "procedure". It's Saturday morning and my coffee was still brewing.
- Schectmar246 6y agoDon't forget that the ++ operator has been added ; )
- lordgroff 6y agoPascal to this day remains one of the most readable languages around. It's not fancy, it's verbose, and very clear. I think the only reason it fell from grace is the simple fact that it came from an era when best implementations of it were commercial, and that's not something that is acceptable in this day and age.
- mycall 6y agoJava simply stole the show. It had GC, namespaces, huge ecosystem and free.
- mikewarot 6y agoLazarus doesn't have GC, but strings are handled by automatic reference counts, and everything complex is an object with create/delete, so manual memory management isn't really a chore. There is a hierarchical namespace based on units, and also there is lexical scope.
- unnouinceput 6y agoWhen I first tried Java, 25 years ago, after learning Pascal/C/C++ at Uni first, my first pet-peeve with it was the fact that I could not declare global variables. Coming from Pascal and C/C++ that was a bummer. I had to declare a class then inside that class go declare my global variables. Imagine my frustration that instead of just typing "globalHandle = 25" I had to write instead "mumuClass.globalHandle = 25". Real productivity bump right there!
- lelanthran 6y ago> I think the only reason it fell from grace is the simple fact that it came from an era when best implementations of it were commercial, and that's not something that is acceptable in this day and age. I love Lazarus, and Delphi before it, and Pascal before that ... but I gotta say, the language, readable though it is, is a pain in the rear to write. An instance of a class is not the same thing as an object. By default, the file open/read/write/close routines don't return error values so the caller has to do extra work to check statuses after each use of these functions (IIRC, those error codes from Assign(), Reset(), etc weren't thread-safe either!) Some conditional expressions cannot have parenthesis (compilation error) while other conditional expressions must have parenthesis (also a compilation error). Some builtin functions can't be easily 'wrapped' because while the function may take variadic arguments, the language doesn't allow the programmer to write variadic argument functions. It's death by a thousand cuts; each little problem, surmountable on its own, adds to the overall friction when developing. What I really like in Pascal: 1. Programmer-defined range types: enums are not a replacement for those. 2. Bounds checking on arrays; I'd rather crash with an exception than silently overrun the array. 3. Nested functions (although, now with almost all languages supporting anonymous functions nested functions probably aren't really needed).
- marcodiego 6y agoWhat killed delphi were its proprietary closed roots. With a single vendor with erratic market history behind it, it was risky to use it for anything that was needed to be updated frequently and last long.
- brokenkebab 6y agoPartly. But let's not forget Microsoft actively kicked Borland in the guts by withholding API information, and hiring away Borland's key figures. Everybody saw it and accounting for Msft weight (especially at that time) it was safer to bet on Borland's demise. I think it played bigger role then any erratic behavior.
- marcodiego 6y agoBetting on a single OS which they didn't control, soon abandoning kylix, would not help either. Combine this with license prices and delphi lasting so much is both a miracle and testament to their quality. But definitely not something recommend today.
- Galanwe 6y ago> Sometimes I wonder if the failure of languages like these - along with Ada is purely aesthetic one. Delphi was not a failure by _any_ stretch of imagination. In terms of RAD, it was only second to VB. Also keep in mind that a lot of people at the time knew Pascal, in that regard Delphi was completely esthetically pleasant.
- vintagedave 6y agoThese days the best comparison would be Python, perhaps. Not in terms of things like indentation, but conceptually: that is, elegant non-C-style.
- hsitz 6y agoYes. And that "only second to VB" must be in reference to sales. Delphi was way more advanced and usable than VB, from a technical point of view.
- open-source-ux 6y ago"Sometimes I wonder if the failure of languages like these - along with Ada is purely aesthetic one." Possibly part of the reason. Pascal has a very readable syntax, but for some (most?) programmers it is too "verbose" and that is enough for them to never consider it. This is probably true of any language labelled "verbose". Python and Ruby advocates probably feel these languages have found the right level of conciseness and readability. But everyone has a different opinion. Of new languages, Nim and Julia seem aiming for the same balance: not too terse, but still easy to read. Have they succeeded? I find it fascinating that C's influence on language syntax continues today with new languages (e.g. Rust, Zig) in a way that Pascal does not.