xthexder

joined 2 years ago
[–] xthexder@l.sw0.com 29 points 1 day ago* (last edited 1 day ago) (3 children)

The tarball is less than 2MB. You can download it here: http://squoze.net/UNIX/v4/README

The Internet Archive is also hosting a torrent (and mirrors) of the full 2.7GB analog capture of the tape: https://archive.org/details/utah_unix_v4_raw

[–] xthexder@l.sw0.com 4 points 1 day ago* (last edited 1 day ago) (2 children)

I'm actually slightly impressed it got both a working program, and a different one than Wikipedia. The Wikipedia one prints "Hello, world."

I guess there must be another program floating around the web with "Hello World!", since there's no chance the LLM figured it out on its own (it kinda requires specialized algorithms to do anything)

[–] xthexder@l.sw0.com 2 points 1 day ago (1 children)

That was one of my first impressions too. I'm a long time linux user when it comes to servers and CLI, but I have been using a Windows PC for years as my main desktop. I finally installed linux on my desktop again and I did a literal double-take when double clicking folders to open them in Dolphin. It finishes loading before I even release the mouse button. I thought it was opening on a single click, but it's just that fast and I got used to a few 100ms delay on Windows Explorer.

[–] xthexder@l.sw0.com 9 points 1 day ago* (last edited 1 day ago) (5 children)

Malbolge is a fun one

Edit: Funny enough, ChatGPT fails to get this right, even with the answer right there on Wikipedia. When I tried running ChatGPT's output the first few characters were correct but it errors with invalid char at 37

[–] xthexder@l.sw0.com 3 points 1 day ago (1 children)

Every soldering iron I've ever used has been a desktop station that plugs into the wall.

Apparently portable soldering irons in general are quite a new concept (1984): https://portasol.com/about-us

[–] xthexder@l.sw0.com 8 points 1 day ago (3 children)

I mean, you solder pipes with a flame, why not circuit boards too?

[–] xthexder@l.sw0.com 20 points 2 days ago

By the looks of it you've got enough time to be commenting about not watching the video. I'd question wether you actually have better things to do.

[–] xthexder@l.sw0.com 63 points 3 days ago* (last edited 3 days ago) (13 children)

Honestly, I'm happy they picked this as a default "car doesn't know what to do" scenario. From what I've seen Tesla's default is to just ignore the unknown thing, I wouldn't be surprised if Robotaxis would have just treated all the blank lights as green.

[–] xthexder@l.sw0.com 7 points 3 days ago

Well, good news, the source code is right there. Someone can go check (it probably won't be me)

[–] xthexder@l.sw0.com 10 points 3 days ago (4 children)

I think it's actually quite elegant. No matter what it has to skip over argument 0 which will be the executable name echo.
If the subtraction was removed and the loop changed to <, it would then need to do an addition or subtraction inside the loop to check if it's the last argument.

[–] xthexder@l.sw0.com 26 points 3 days ago (6 children)

Hello World in 1974: echo.c

main(argc, argv)
int argc;
char *argv[];
{
	int i;

	argc--;
	for(i=1; i<=argc; i++)
		printf("%s%c", argv[i], i==argc? '\n': ' ');
}
[–] xthexder@l.sw0.com 105 points 3 days ago* (last edited 3 days ago) (9 children)

I downloaded the tarball and had a look through it. Almost everything has source code included, which is pretty cool to see.

There's an entire C compiler from 1972, bootstrapped to be written in C. There was also a SNOBOL III compiler written in C, and a Fortran interpreter in C (only 462 lines!), and every unix command like ls,cd,echo,cat,grep,etc...

Unsurprisingly grep was written in assembly, but it's source is there.

There's also a games folder, but unfortunately these look like they're just binaries:
bj, chess, cubic, moo, ttt, wump
I'll have to load up a pdp11 emulator later to see what they are.

view more: next ›