News for hackers. Stuff that matters.
Re:FreeBasic by idle_zealot on Friday December 22, 2023 @02:28AM (#38731833)
I've been dismissive of BASIC as an outdated and terrible language since reading some old programs written in it. But reading the docs and examples for FreeBasic actually make it look decent. Static typing, decent syntax, and I don't even have to start all my lines with 10 20 30 so I can JUMP to them!
Re:FreeBasic by livrem on Friday December 22, 2023 @03:25AM (#38732169)
Serious question: What makes BASIC BASIC? I don't see anything in the FreeBasic example code that looks anything like what GWBASIC was 40 years ago. No line numbers and not a single GOTO. Is there still support for compiling old style BASIC or did the BASIC name move on to mean something completely different from what it used to?
Re:FreeBasic by parkertomatoes on Friday December 22, 2023 @03:35AM (#38732231)
In this particular case, FreeBasic was written in Visual BASIC for DOS 1.0 until it could compile itself. But you're right that some of the original syntax it's added (e.g. C-style pointers) takes it a bit away from what BASIC was.
Re:FreeBasic by mbirth on Friday December 22, 2023 @10:09PM (#38741271)
That reminds me: There’s PC-BASIC available for all platforms that emulates GW-BASIC:

https://robhagemans.github.io/pcbasic/

Since I’m kind of a data hoarder, I’ve put my GW-BASIC files from the early 90s on GitHub:

https://github.com/mbirth/gwbasic

Re:FreeBasic by yjftsjthsd-h on Friday December 22, 2023 @02:35AM (#38731878)
Yeah, BASIC started out painfully primitive, but it did eventually get pretty decent structured programming features (say, GOSUB with labels instead of just GOTO)
Re:FreeBasic by behringer on Friday December 22, 2023 @02:34AM (#38731875)
there are some BASIC dialects that can give other modern languages a run for their money. Check out on of my favs: https://www.cerberus-x.com/cxDocs/Programming_Language%20ref...
Re:FreeBasic by 7thaccount on Friday December 22, 2023 @02:55AM (#38731987)
"Cerberus X is a high level programming language based on the popular 'Blitz' range of languages, and was inspired by both Java for its streamlined language, and BASIC for its readability."

Interesting language. I've never heard of Java as streamlined though ;)

Re:FreeBasic by behringer on Friday December 22, 2023 @09:59AM (#38734732)
Sounds like an in-joke :D I wonder if it's one of those "don't be like Java" things!
Re:FreeBasic by 7thaccount on Friday December 22, 2023 @10:42PM (#38741427)
That would be hilarious