3 ms·
But is that a problem of the language itself, or is it just a problem of available toolchains? E.g. if the gcc compiler collection would come with BASIC support
by binaryturtle 1y ago
But is that a problem of the language itself, or is it just a problem of available toolchains? E.g. if the gcc compiler collection would come with BASIC support and you just could type something like "gbasic -O3 foobar.bas -o foobar" to get a properly optimised executable out of your BASIC source code file then some may would still use BASIC today, I guess?
I started with BASIC too. Also enjoyed BlitzBasic2 for a long time on the Amiga. That's where I learned programming… back then when programming was still fun.
- MoltenMan 1y agoRealistically? No, not at all. The reason there are no toolchains for BASIC is because nobody uses BASIC (because it's not functional in our modern world), not the other way round.
- vbezhenar 1y agoWhy do you think BASIC is not functional? Our modern world does not differ from the 1980 world at all. Variables are variables, subroutines are subroutines. It fall out of fashion, along with Pascal, Perl, Ruby, but that's just fashion.
- f1shy 1y agoI have even seen pretty darn impressive things done with VisualBasic back in the day. And that were not hobby things. I've seen it used in very important mission critical telecommunication equipment. The compiler was custom, not the one from Microsoft. After all, the language had pretty much anything other languages had. How can a language be "inefficient"? You can say it lacked on expressiveness. Maybe was too verbose? But I would not place BASIC into the "verbose" category.
- biofox 1y agoI hate that languages have become fads. The concepts have not changed, but there is a constant churn of languages. I don't have to relearn natural language every 5-10 years, but for some reason I'm expected to when it comes to programming.
- zozbot234 1y ago> Why do you think BASIC is not functional? Because BASIC simply doesn't have first-class functions, and they would be quite hard to represent in a BASIC-like syntax while keeping the language idiomatic. Even the unreasonably clunky C pattern of having a pointer to a function taking void* as its first argument (to account for closure captures) gets you a whole lot closer to functional programming than even the fanciest BASICs.
- ModernMech 1y agoHere, "functional" is being used to mean "ablity to function", not "relating to the functional programming paradigm".
- pjmlp 1y agoExcept there are, https://learn.microsoft.com/en-us/dotnet/visual-basic/ https://learn.microsoft.com/en-us/dotnet/visual-basic/ https://www.xojo.com/ https://www.xojo.com/ https://www.mikroe.com/mikrobasic-pic https://www.mikroe.com/mikrobasic-pic Just the three that come to my mind, of BASIC toolchains that people actually pay real money to use.
- bluGill 1y agoWhich basic. I remember Atari BASIC - which was a terrible language since the organization was line numbers. Visual BASIC looked a lot nicer the few times I saw it, but I have a total of 10 minutes of my life looking at visual BASIC and so I have no clue how it is in the real world. I do know Visual BASIC was used by a lot of untrained programmers who never learned why we have best practices and so there is a lot of bad BASIC out there - this isn't the fault of the language just the users.