3 ms·
This is an especially interesting question given how much smaller and faster Pascal implementations were for DOS than C compilers. What did Ada add that was so
by wtallis 12y ago
This is an especially interesting question given how much smaller and faster Pascal implementations were for DOS than C compilers. What did Ada add that was so complex (and how's it compare to the complexity that C++ added to C)?
- RogerL 12y agoAda has packages, generics, exceptions, concurrency, default values, operator overloading, user defined types, fixed point, subtypes (so you can, for example, limit an integer to the range 0..100, and then the compiler has to check to see that it is used correctly everywhere), pooled memory, built in run type checking, pragmas, etc., etc.
- lobster_johnson 12y agoPascal also had subtypes, or at least Borland's did.
- TheCondor 12y agoThe standard library is robust... The language itself isnt terribly big, it does support threads though. NYU made a free Ada compiler in the 90s, it's part of gcc now. Ada's problem wasn't only compilers, it was the culture. Hackers hate COBOL, it's still routinely used to cutdown a language ("Java is the new COBOL") yet very few have ever used it but it has that rap. Ada is a DoD specified language that was designed with real software engineering problems and science in mind, it has a bad rap because of that. It's a different world now, the tooling alone changes the equation (at the time both Ada and pascal were seen as too verbose, begin and end were a lot more letters than braces, now our editors do that stuff for us..) being a DoD specified cousin of pascal is what hurt Ada, then there was the compiler selection... It always seems like Ada is ready to be attractive, there is a community around rust and go though.