this post was submitted on 25 Jan 2024
840 points (98.3% liked)

Programmer Humor

32410 readers
1 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
all 47 comments
sorted by: hot top controversial new old
[–] AdamEatsAss@lemmy.world 143 points 1 year ago (2 children)

If you get it right you're a robot!

[–] lockhart@lemmy.ml 69 points 1 year ago

welcome to the secret robot internet

[–] jol@discuss.tchncs.de 6 points 1 year ago

When AI gets so cheap that it starts understanding any captcha challenge, we might be able to honey pot them like this for a while

[–] Flexaris@discuss.tchncs.de 77 points 1 year ago (2 children)
[–] Tolookah@discuss.tchncs.de 57 points 1 year ago* (last edited 1 year ago) (7 children)

I don't think the Spartan 6 can, it's an fpga with no arm, the zynq can, there's a lot of other arm chips that I assume can run some type of Linux, but the blurry ones are throwing me off

Edit, top left is a 286 CPU, and the Intel one has an earlier date, so they MIGHT be able to ~~run~~walk it, it'll be not good

[–] grue@lemmy.world 38 points 1 year ago (2 children)

Not only could mainline Linux never run on a 286, it also definitely doesn't count as an "SoC" to begin with. It needed a separate co-processor just to do floating-point math, let alone to manage all the I/O that a SoC does on-die.

[–] Tolookah@discuss.tchncs.de 17 points 1 year ago

You guys are the best. I reply in what I think is a bit nerdy way, and I'm outdone.

[–] cashews_best_nut@lemmy.world 1 points 1 year ago

It needed a separate co-processor

Such a great time to be alive. 🥲

[–] theamigan@lemmy.dynatron.me 22 points 1 year ago (1 children)

286 Protected Mode is very different from 386 PM and there is no way Linux will would run on it.

[–] socphoenix@midwest.social 10 points 1 year ago (1 children)

There is a project looking to do this kind of, known as elks that has images for 80286 chips. I have no idea why you’d want to do that to yourself though.

[–] theamigan@lemmy.dynatron.me 6 points 1 year ago

Interesting. Reminds me of PC/IX, and it probably similarly doesn't even enter pm, judging from it running also on an 8086.

[–] user134450@feddit.de 18 points 1 year ago* (last edited 1 year ago) (1 children)

this is extra tricky because they did not specify the exact kernel. mainline could be any of the kernels tagged as stable that you can build from linus' git tree. i know that in the past you could run a mainline linux on intel 368 chips but today you probably can not because official support was dropped a while ago.

[–] InputZero@lemmy.ml 8 points 1 year ago (1 children)

Part of me wishes I still had my families old 386 or commodore knock-off. Read some of the terrible short stories I wrote, play tanks. I remember when my Mom's friend came over with a stack of 5~1/4~ floppies and installed a program that played the Loonie Toons theme song with their logo and Buggs Bunny captioned saying "That's all folks." It blew my mind, video (sort of) on a computer, how was that even possible. I wondered how they got it to connect to the cable cause no way a computer could do that. Dang I'm getting old lol.

[–] dfyx@lemmy.helios42.de 9 points 1 year ago (1 children)

If posted in the right circles, this might motivate someone to get something on a Spartan 6 that runs Linux.

[–] Tolookah@discuss.tchncs.de 9 points 1 year ago* (last edited 1 year ago) (1 children)

Damn .. https://numato.com/kb/saturn-microblaze-and-linux-how-run-linux-saturn-spartan-6-fpga-module-part-i/ I was hoping to find a comment, maybe, not a complete guide.

Also, didn't know that you could run it in a microblaze instance

[–] killeronthecorner@lemmy.world 7 points 1 year ago (1 children)

Linux 🤝 DooM

Running on literally fucking anything

[–] uis@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

Doom runs without MMU or even MPU. Maybe can run even without context switching.

[–] MonkderZweite@feddit.ch 5 points 1 year ago

I guess the blurry Samsung in the center is an ARM?

You can run a "soft" (semi-hard?) Processor on a Spartan, you could run Linux on that at least.

[–] uis@lemmy.world 2 points 1 year ago

it's an fpga with no arm

You can make arm in fpga. Or more realistically RISC-V.

[–] AnarchoSnowPlow@midwest.social 14 points 1 year ago* (last edited 1 year ago) (1 children)

With enough grit and time, yes :D

Edit: ok not mainline, but Linux in some form or another anyway.

[–] tetris11@lemmy.ml 1 points 1 year ago* (last edited 1 year ago)
[–] nifty@lemmy.world 46 points 1 year ago (1 children)

What’s the test here? Prove you’re an embedded systems nerd?

[–] PeriodicallyPedantic@lemmy.ca 44 points 1 year ago

The opposite of a captcha. Making sure that ONLY bots can enter.

[–] dandroid@dandroid.app 30 points 1 year ago (1 children)

OH MAN. I worked on an Android tablet that used a rockchip CPU, not the one listed here but an older one (I think RK3026). What a PIECE OF SHIT. I don't wish that tablet on my worst enemy. Battery life was like sub 2 hours with a 3200 mAh battery. Sometimes it would start running hot, and you could watch the batter percentage go down one percent every 10-20 seconds. The only way to break it out was to reboot it or let it die.

We later upgraded our CPU to the 3288, one gen older than this one, and it was significantly improved, but still very entry level.

[–] WaterWaiver@aussie.zone 11 points 1 year ago (1 children)

Never use an SoC that's not at least 5 years old ;)

[–] uis@lemmy.world 1 points 1 year ago (1 children)

Do they get covered with mold?

[–] WaterWaiver@aussie.zone 1 points 1 year ago* (last edited 1 year ago)

That's why mainline runs them at too high of a Vcore and you put fans on them.

[–] stingpie@lemmy.world 14 points 1 year ago (1 children)

Anything that's turning complete, has enough ram, and has a c compiler can run Linux. Theoretically, you could program a CPLD to run brainfuck and you could still run Linux.

[–] Tja@programming.dev 34 points 1 year ago (2 children)
[–] stingpie@lemmy.world 17 points 1 year ago (3 children)

Yes. Any turing complete processor can perfectly emulate any other turing complete processor, whether it is x86, arm, or riscv. Mainline Linux can then run on this emulated processor without modification.

[–] Rodeo@lemmy.ca 12 points 1 year ago

Damn that's gonna be slow.

But I guess speed was not a criterion.

[–] Tja@programming.dev 4 points 1 year ago

I guess it's the difference of can today vs could if this emulator existed...

[–] monk@lemmy.unboiled.info 2 points 1 year ago (1 children)

"boot" is the next important part. Have you tried reading it in full?

[–] stingpie@lemmy.world -1 points 1 year ago (2 children)

Emulated processors can do the same things as physical processors, including booting from disk.

[–] Ross_audio@lemmy.world 3 points 1 year ago (1 children)

Boot = Bootstrap

If you've loaded up a virtual CPU first that's not a boot of mainline Linux on the CPU.

[–] stingpie@lemmy.world 2 points 1 year ago (1 children)

I respectfully disagree. The turning machine is not doing any set-up before the emulated CPU begins execution, and all of the actual BIOS is done by the emulated CPU.

[–] cashews_best_nut@lemmy.world 0 points 1 year ago

Nerd argument.

[–] monk@lemmy.unboiled.info 1 points 1 year ago* (last edited 1 year ago) (1 children)

Yes, but it doesn't count, because the SoC from the picture didn't boot Linux, an emulated machine did.

That's why the records on doing this silly stuff on progressively smaller microcontroller use the word "run". It has more transitivity.

[–] stingpie@lemmy.world 1 points 1 year ago (1 children)

I'm not sure I understand your argument. Are you saying that the emulated processor executes instructions while the SoC doesn't? Every instruction that goes to the x86 is broken down into several SoC instructions, which the SoC executes in order to emulate what an x86 would do. Saying that the emulated x86 is booting/running Linux, but the SoC is not is like saying that computers can't run java code, they can only run jvm.

[–] monk@lemmy.unboiled.info 1 points 1 year ago

I'm saying it runs it because "running" is transitive, but doesn't boot it because "booting" is not. Similarly to how you can carry your grandkid by carrying your kid who carries their kid (carrying is transitive), but you can't give birth to your grandkid by giving birth to your kid who'd give birth to their kid (giving birth is not transitive).

[–] xia@lemmy.sdf.org 2 points 1 year ago

...and lack of "theory".

[–] getoffthedrugsdude@lemmy.ml 7 points 1 year ago

What LPI Exam is this

[–] dion_starfire@lemm.ee 5 points 1 year ago

I remember this captcha. I gave up after about the fourth round. The prize just wasn't worth it, and I wasn't on a machine where I could try scripting out a solution.

[–] merthyr1831@lemmy.world 2 points 1 year ago

ARM really shot itself in the foot by making it so every SOC needs to have a custom OS image tailored to it. x86 meanwhile lets you pick a universal binary that'll sort itself out at runtime