[ / / / / / / / / / / / / / ] [ dir / 4chon / abdl / asmr / htg / leftpol / len / pone / r ][Options][ watchlist ]

/prog/ - Programming

Programming board
You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Name
Email
Subject
Comment *
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): 1465424386980.jpg (27.58 KB, 500x295, 100:59, basic-2.jpg) (h) (u)

[–]

1f513b (18)  No.4269>>4526 >>4528 >>4591 [Watch Thread][Show All Posts]

will there ever be another language like basic?

>ships with every computer

>easy to learn easy to use

>can do most simple tasks, even make little games

>was considered the "linga franca" for learning languages

1f513b (18)  No.4270>>4291 >>4448

Javascript

jk pls dont kill me


1f513b (18)  No.4278

Vbscript


1f513b (18)  No.4286>>4292 >>4526

If you replace "every computer" with "every GNU/Linux computer" you are pretty much describing Python.


1f513b (18)  No.4291>>4297

>>4270

Unfortunately, you are right.


1f513b (18)  No.4292

>>4286

Unfortunately, so are you.


1f513b (18)  No.4297>>4440

>>4291

I changed my mind, actually Ruby is closer to BASIC.


1f513b (18)  No.4372>>4481

You forgot

> runs in ring 0

> direct access to entire memory & ports

> problem? reboot in 1 second flat (ROM BASIC)

Because OS have changed so much and added lots of complexity, layers of abstraction, restrictions, overhead, and constant upgrades (everything is always in a state of flux), there's no modern equivalent. Closest thing would be if you coded a BASIC for TempleOS.


1f513b (18)  No.4440

>>4297

How so, it better not be because of keywords…


1f513b (18)  No.4448>>5223

BASIC being the default shell language of all personal computers in the late 70s and 80s was the worst thing to ever happen to personal computing. BASIC tries to emulate assembly's jmp (jump) keyword with the goto keyword since assembly was the most used language back in the 60s when BASIC was invented.

Forth should have been the default shell language. It has high level lisp-like syntax, it gives very low level control over hardware (embedded systems engineers still use it to test their systems) and it runs in very low memory space.

>>4270

>Javascript

One would wonder what it would have been like if Javascript would have been invented in the 70s and replaced bourne shell as the default shell scripting language on unix systems. Bill Joy did invent csh (C shell) which was a scripting language that was supposed to have C-like syntax, but if youve ever seen csh it really looks nothing like C and is overall a pretty shitty shell language.


1f513b (18)  No.4462>>4528

Bourne shell is pretty much it. You can do most anything you can do with basic as a shell script, and it ships on every POSIX OS. People have made games in Bash, even.

It's not very good for learning languages, because of the weird comparison and arithmetic, and the fact that everything is string and argument-based, but it fits everything else you'd want to do probably better than BASIC does.


1f513b (18)  No.4481

>>4372

JavaScript

> problem? reboot in 1 second flat (ROM BASIC)

Just press F5

> direct access to entire memory & ports

With modern computers you get pretty much infinite memory, and you get to make requests to anywhere on the web.

> runs in ring 0

Doesn't really matter.


1f513b (18)  No.4526

>>4269 (OP)

Python. They damn near even look the same if you squint your eyes.

>ships with every computer

Applies more to Python than it does to Basic.

>>4286

Python is on all Mac OS 10 and most Wangblows.


1f513b (18)  No.4528

>>4269 (OP)

u mena javashit?

>>4462

I find bourne shell script very awkward to use, it's not as clean and intuitive as BASIC


1f513b (18)  No.4591

>>4269 (OP)

>Ships with every Unix box

>relatively easy to learn

>can do most simple task, even games

>not considered "lingua franca"

That's perl.


1f513b (18)  No.4592>>4600

BASIC was awful for that. Every BASIC was a different dialect, some were horribly bug-ridden, and most were fucking awful.

Really, shell languages or Python are the best you've got now.


1f513b (18)  No.4600

File (hide): c23a347be358893⋯.jpg (1.24 MB, 1197x4852, 1197:4852, rock.jpg) (h) (u)

>>4592

You paint an unfair picture of BASIC. Even some of the earliest were pretty decent. MBASIC for CP/M was quite alright, even though it didn't support anything in the way of graphics and such (normal situation for CP/M). But it's only some dialects that were crappy and forced you to use PEEK/POKE shit constantly. The MBASIC-derived ones for IBM PC (GW-BASIC, QBASIC) were pretty sweet, as was Locomotive BASIC for Amstrad CPC.

BASIC was nice because it didn't try to do everything, like modern scripting languages do. If you needed more power, you would eventually write machine code anyway, since the systems were slow and had very little memory (sooner rather than later, if you were stuck on something like a ZX-81).

Modern stuff is all bloated crap in comparison, and doesn't lead you to eventually learn machine language and the underlying architecture. You're instead forever trapped in their VM or runtime, like a little kid who never removes training wheels from his bicycle. Except he changes the color of the training wheels every few years, when a new fad language comes along.


1f513b (18)  No.4631

I double that so hard. Miss that times when you could just "screen 12" to initialize graphical mode and do wtf you want right out of the box.


d088dd (1)  No.4725

Your bullet points fit Python really well, but I think that might be intentional.


cf734c (2)  No.5121>>5122

lua. fuck every other language.

its so much better than Bython or Jehovahscript.

luajit which is lua's jit compiler is almost as fast as c.


acb90c (1)  No.5122

>>5121

Luajit is not "lua's jit compiler", it's an alternate implementation of the Lua language that has a jit. At least have a fucking clue of what you're talking about.


cf734c (2)  No.5124

big nerd detected


f99aa9 (1)  No.5205

Yes, it's called Javascript.


8ba971 (1)  No.5209

Scheme.


82d981 (1)  No.5222

I made the mistake of learning Lisp. Now I don't wanna BASIC anymore.


89fc6f (1)  No.5223

>>4448

>Forth

>high level lisp-like syntax

Is there more than one Forth? Because I know no such Forth.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
25 replies | 1 images | 8 UIDs | Page ???
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / 4chon / abdl / asmr / htg / leftpol / len / pone / r ][ watchlist ]