News for hackers. Stuff that matters.
Re:EndBASIC by behringer on Tuesday June 07, 2022 @03:57PM (#31659338)
BASIC languages seem to be having a bit of a renaissance year. There have been about (that I know of) 2 or 3 new BASIC languages introduced just this year alone.

I absolutely love the idea of a modern web based BASIC as I can work on the road from anywhere!

I've added a room for this to my BASIC oriented discord, hopefully this doesn't seem spammy it's the only one around on the subject of BASIC in general, as far as I'm aware: https://discord.gg/HQaDgJvbbJ

Re:EndBASIC by pjmlp on Tuesday June 07, 2022 @05:57PM (#31660550)
Structured BASICs are great.

Not only they were quite productive as dynamic languages, they also had optional typical and AOT compilation, besides the rich libraries for start coding right away.

One thing that many might be unaware is that the original Dartmouth BASIC was actually JIT based, the pure interpreted versions only came to be due to fitting it into 8 bit home computers.

Re:EndBASIC by eatonphil on Tuesday June 07, 2022 @06:30PM (#31660825)
My concern with attempting to learn BASIC is that at least the big ones aren't garbage collected (freebasic, qb64).

In the first place (not growing up using BASIC) I don't understand how BASIC got so big as a programming language for beginners (even kids) without a GC.

Or maybe my searches just haven't turned up the right implementation or something.

I have the same issue with (Free)Pascal but I'm less surprised there because it's not like (apparently, since like I said this wasn't me) everyone as a kid learned to game program with Pascal the same way they did with BASIC.

Re:EndBASIC by pjmlp on Wednesday June 08, 2022 @01:08AM (#31663466)
Because it actually had a lightweight GC for strings and arrays.

8 bit home micros lacked more complex data structures.

And when they migrated to 16 bits, and grew structures, usually you couldn't do indirection with pointers/references, only have a single level of array of structures. For anything more complex you had to use indexes.

Pointers were only use for low level coding, changing specific memory locations.

Then by the time of VB and Real Basic, proper GC was already widespread among modern BASIC dialects.

Re:EndBASIC by behringer on Wednesday June 08, 2022 @12:39AM (#31663275)
Why would garbage collection be an issue? All the best BASIC variants either do have GC, or they have manual methods of dealing with garbage, which as the programmer you can always automate.
Re:EndBASIC by eatonphil on Wednesday June 08, 2022 @12:42AM (#31663295)
I don't consider manual memory management great for beginning programmers and I don't even like doing it when I'm not a beginner programmer.
Re:EndBASIC by jmmv on Wednesday June 08, 2022 @12:48AM (#31663339)
But why do you think the lack of GC is a showstopper for using the language for learning purposes? Or am I misunderstanding your comment?
Re:EndBASIC by mrlemke on Wednesday June 08, 2022 @10:37AM (#31667998)
As long as you're not messing with memory directly (i.e. dynamic allocation), the OS will clean up after your program exits.
Re:EndBASIC by eatonphil on Thursday June 09, 2022 @08:18PM (#31688560)
Yes dynamic allocation is exactly what I'm concerned about. Deserializing text for example.