I've been using Fortran 90/95 extensively over the last few years, for numerical simulation of quantum systems. I think there's a lot of misconceptions about Fortran (which is partly due to Fortran 77, with its punchcard format and spaghetti code). Fortran 90 is basically a different language, and is actually reasonably modern. I see it as significantly more suitable for numerical programming than C/C++. Fortran is c…
Ask HN: Do you use an old or 'unfashionable' programming language?
241–250 of 338 posts
Re: Ask HN: Do you use an old or 'unfashionable' programming language?
#242Earlier quoted context omitted.
It has a dependency on the bash runtime. And coreutils. And often moreutils, or various others.
Often with better performance than Python or Perl
The actual bash processing bits seem much slower than Perl or Python.
Re: Ask HN: Do you use an old or 'unfashionable' programming language?
#243On a daily basis I work with C and a handful of modern languages. I do reach for Common Lisp and Prolog sometimes, so I'll count those. Common Lisp : many, many great things about lisp have been incorporated into modern languages, but CL still has a few unique things, and the whole is greater than the sum of the parts. It's less compelling than it was 10 years ago but some problems are expressed more wonderfully in C…
Re: Ask HN: Do you use an old or 'unfashionable' programming language?
#244It has all the benefits of a modern language -- strong typing, generics, operator overloading, objects, metaclasses, dynamic arrays, interfaces, RTTI, dynamic dispatch, method pointers, type helpers, true modules, fast compile times, preprocessor directives, pretty large set of libraries from the community, etc -- and all the benefits of a compiled language -- compiles to pretty small binaries, small memory footprint at runtime, tight control over memory allocation and layout, trivial ability to shell out to assembler when necessary, etc. It builds to pretty much every platform under the sun -- Mac, Windows, Linux, Android, iOS, MSDOS, OS/2, BeOS, Netware, you name it.
Some of its features are features I've rarely seen in 'fashionable' languages. For example the way classes and metaclasses work in FreePascal is great. You can pass classes around by value, constructors can be virtual, even static methods can be virtual.
In many ways it's really a better C++. For example, what I just said about metaclasses. It has native support for strings. The declaration part of a module (unit interface) is separate from its implementation, so it's easy to get an overview of what is exported from a module, but it's in the same file and is a first-class-citizen of the language, unlike C++ header files. The syntax also makes a lot more sense than C-like languages. For example, there's an explicit keyword to introduce a function, and constructors are named rather than using the type name. (These don't sound like interesting features until you're trying to navigate the source and you find that searching for a method becomes far easier, or you're trying to copy/paste a class and you find you don't have to worry about renaming constructors, stuff like that.) It doesn't even have to link in a libc, it has its own RTL. (It can link in a libc if you want to use some C or C++ libraries with it though.)
There's aspects of it that are a bit crufty from having decades of legacy, but it's probably still better than C++ in that regard.
I don't really know why Pascal derivatives haven't taken off more.
At work I use Dart, which has many of the benefits I listed above, but in the form of a GC'ed VM-hosted language. Dart's a much newer language, though, so regardless of its usage it's probably too early to know if it will end up in the "unfashionable" category. Dart has all kinds of cool features like the ".." operator for chaining, the "??=" operator for assignment-if-null, the "with" feature for doing composition rather than inheritance, etc. Also very readable.
Re: Ask HN: Do you use an old or 'unfashionable' programming language?
#245My dad uses and has used BASIC. He's not a teacher, nor a hobbyist. He writes bank software. In BASIC. For forty years. At the same company. UBS, Bank of China, and other names all run this massive million(s)-line BASIC codebase, that he almost singlehandedly wrote, on minicomputers[1] powered by OpenVMS. With it, according to my father, they process billion dollars worth of transactions and other facets of their bus…
Re: Ask HN: Do you use an old or 'unfashionable' programming language?
#246Im in the EDA industry and use Tcl. It's easily the worst language I've ever used and I firmly believe that the entire semiconductor industry is being held back years due to the stranglehold of Tcl. Everything in Tcl is a string. This is just one example of the idiocy of this language.
And as a former Tcl dabbler, that's also definitely not the first thing I'd pick on. `upvar` is a far more egregious violator of sanity, and I seem to recall that parsing optional arguments to a function is quite the adventure.
Re: Ask HN: Do you use an old or 'unfashionable' programming language?
#247Earlier quoted context omitted.
As long as you get to use PHP 7 and one of the more modern frameworks modern PHP is actually quite pleasant to work with.
No, the rotten and dangerous stuff remains rotten and dangerous. https://www.reddit.com/r/lolphp/comments/41fqib/it_is_so_sim...
Re: Ask HN: Do you use an old or 'unfashionable' programming language?
#248A close friend still uses Fox Pro to do data analysis sort of work in a trading company. Every time I see him working masterfully, I feel I should learn it someday.
VFP had a slick little way of letting you indirectly address variables and pop them into a SQL statement or other VFP code, and they would evaluate at runtime. Later when I was learning Java & Javascript I was quite annoyed that I was not able to do this.
Re: Ask HN: Do you use an old or 'unfashionable' programming language?
#249Re: Ask HN: Do you use an old or 'unfashionable' programming language?
#250Although I mainly write code in Python, JavaScript and Go, I have a SaaS web application that was written in the early 2000s using ColdFusion (CFML) which I still support (started at v5 and now runs on v8). In the mid to late nineties (and early 00s) it was one of the best ways to write web applications (it was actually the first Application server as far as I know). But today is 2016 and ColdFusion is one of the lea…
Hate to say it, but you'll want to upgrade to a later version than 8. There are a lot of exploits out for 8. Oh, that was the other crappy angle for ColdFusion I forgot to mention in my post - the $1500-and-up license fees.