News for hackers. Stuff that matters.
Re:New Linux port for the Nintendo 64 by weare138 on Friday December 25, 2020 @06:29PM (#25539970)
But the N64 only has 4MB of ram, I think a GUI would be beyond it's capabilities. Still a cool project though.
Re:New Linux port for the Nintendo 64 by laoganmaplz on Friday December 25, 2020 @06:38PM (#25540039)
Fascinatingly, quite the opposite! For example, the original Macintosh had only a small fraction of that to work with, at 128 Kilobytes![1]

Certainly a modern GUI a la KDE, Gnome and friends would be well outside of its abilities, but a functional GUI is possible on a shockingly small amount of memory!

[1]: https://en.wikipedia.org/wiki/Macintosh_128K

Re:New Linux port for the Nintendo 64 by bluedino on Friday December 25, 2020 @07:09PM (#25540208)
It was IRIX, not Linux, but UNIX GUI’s were memory hungry (more than their windows counterparts).

The SGI Indy which could be had with an R4000 CPU came with 16MB base

Re:New Linux port for the Nintendo 64 by anthk on Monday December 28, 2020 @07:40AM (#25558751)
And? People ran FVWM and rxvt on 4MB of RAM for i386. Slow, but with 8MB it was usable, and with 16MB FVWM ran much faster than CDE itself, not to mention rxvt vs dtterm or even xterm.
Re:New Linux port for the Nintendo 64 by badsectoracula on Friday December 25, 2020 @08:43PM (#25540661)
IIRC from a talk a few years ago, Xorg can be stripped down to around 600KB, so you could probably have a minimal X environment.
Re:New Linux port for the Nintendo 64 by boogies on Friday December 25, 2020 @09:38PM (#25540893)
TinyCore (on the frontpage a while ago) fits an OS with a FLTK/FLWM desktop in 16 MB of storage⁰, but it requires a bare minimum of 46 MB of RAM to boot (regardless of swap space, which it recommends along with 128 MB of RAM).¹

OTOH KnightOS² (not Linux) has a rudimentary (obviously not Xorg) GUI that IIUC runs on TI-73 series graphing calculators with 25 KB of RAM.

⁰http://tinycorelinux.net/welcome.html ¹http://tinycorelinux.net/faq.html#req ²https://knightos.org/

Re:New Linux port for the Nintendo 64 by anthk on Saturday December 26, 2020 @11:14AM (#25544275)
Tiny X existed and Basic Linux ran in those specs:

https://distro.ibiblio.org/baslinux/

Re:New Linux port for the Nintendo 64 by derjames on Friday December 25, 2020 @07:52PM (#25540413)
Yes, and also GEOS running in a Commodore 64
Re:New Linux port for the Nintendo 64 by tomc1985 on Friday December 25, 2020 @10:02PM (#25541017)
Or MirageOS on a TI-83
Re:New Linux port for the Nintendo 64 by im3w1l on Friday December 25, 2020 @06:58PM (#25540145)
I don't see why a modern gui should be impossible. It's not like flat design with rounded corners is amazingly complicated. One issue could be high-res assets, but with some codegolfed vector graphics I think you could get something nice looking.
Re:New Linux port for the Nintendo 64 by genpfault on Saturday December 26, 2020 @12:52AM (#25541720)
> codegolfed vector graphics

IIRC the Haiku folks had a format for that[1].

[1]: https://en.wikipedia.org/wiki/Haiku_Vector_Icon_Format

Re:New Linux port for the Nintendo 64 by weare138 on Friday December 25, 2020 @08:12PM (#25540503)
Ok I should have clarified that, I meant available Linux GUI's in reference to OP and IRIX. You'd have to create something from scratch. I don't think you could cram a GUI on par with IRIX in 4mb.
Re:New Linux port for the Nintendo 64 by anthk on Saturday December 26, 2020 @08:10AM (#25543226)
FVWM ran on that. Most people mid 90's ran X with 8-16MB.
Re:New Linux port for the Nintendo 64 by monocasa on Friday December 25, 2020 @06:37PM (#25540032)
The expansion pak is another 4MB of RAM, so that'd bring you to 8 total.

And Windows 95 only required 4MB, so it should be within the realm of possibility,

Re:New Linux port for the Nintendo 64 by dreamlayers on Friday December 25, 2020 @11:30PM (#25541388)
I can run X in 4 MB on a VAXstation 2000 in Ultrix or Athena-4.3BSD. But a usable Linux 5.10 system in 4 or even 8 MB? That's what I find hard to believe.
Re:New Linux port for the Nintendo 64 by derjames on Friday December 25, 2020 @07:57PM (#25540436)
Look around for GEOS from Berkeley Systems. It was a graphical OS for the Commodore 64/128. I was using this thing in 1986.
Re:New Linux port for the Nintendo 64 by ksaj on Saturday December 26, 2020 @05:55AM (#25542642)
I remember GEOS, but when I got my Commodore 128, it was only a couple of months before I discovered the "bigger computers." I didn't have my 128 for very long at all, but I had a Vic 20 and C64 before that. I thought the 128 was way better than my C64, but way too late. I wasn't much into video games, so that didn't last long. Chronology thing, I guess.

Berkeley Systems, of course, is known for BSD.

Re:New Linux port for the Nintendo 64 by tomc1985 on Friday December 25, 2020 @10:09PM (#25541049)
The machine can render 3d worlds but a simple GUI is too much?
Re:New Linux port for the Nintendo 64 by voltagex_ on Saturday December 26, 2020 @01:20AM (#25541824)
a large operating system kernel + GUI is too much. You're not loading NintenDOS with Mario 64.
Re:New Linux port for the Nintendo 64 by userbinator on Friday December 25, 2020 @06:37PM (#25540027)
Win3.x would be fine with 4MB of RAM, and it's (just barely) enough for Win95 too. But those OSs were definitely optimised for low resource consumption far more heavily than Linux.
Re:New Linux port for the Nintendo 64 by icedchai on Friday December 25, 2020 @07:38PM (#25540357)
Linux wasn’t always this bloated. My first Linux system had 3 megs of RAM. This was back in 1993. A 386SX laptop with 1 meg on the motherboard plus a 2 meg expansion. I could barely run X.
Re:New Linux port for the Nintendo 64 by ksaj on Friday December 25, 2020 @10:11PM (#25541058)
I would argue that it isn't Linux that is bloated. Linux is the kernel. It is the desktop environments and the things added to them to make each distro distinct (and fat).

There are significantly less bloated desktop environments, but people like their bling, and bling by default includes an accompanying increase in resource consumption.

Look at Raspbian. It looks pretty good, but uses a lot less resources than gnome and kde. You can add to it if you want it to be as bloated as the typical desktop environments. But it's a choice.

Personally I'm in love with tiling desktops which use even less resources yet. And they're blazingly fast.

Re:New Linux port for the Nintendo 64 by anthk on Saturday December 26, 2020 @08:17AM (#25543259)
FVWM is floating and "bling bling" and it's lighter than tiling VM's.
Re:New Linux port for the Nintendo 64 by Wowfunhappy on Friday December 25, 2020 @10:53PM (#25541245)
...I wonder how difficult it would be for whatever desktop environments GP was using in 1993 to be used today, on a super-resource-constrained system like an N64. The Linux adage is "don't break userspace", right?
Re:New Linux port for the Nintendo 64 by ksaj on Friday December 25, 2020 @11:05PM (#25541280)
You can already do that by choosing desktop environments that aren't trying to be all things for all people. More bling is literally more resources.

A lot of it is merely feature creep. Remember when OSX used to have animations (like applications minimizing like a genie getting sucked back into its kettle) as a feature you could turn on if you wanted it? Now it's pretty much default, and most people don't know you can shut that stuff off. And that's how things get sluggish. Sexy new "advanced" features become default, and you always need faster computers and more memory to keep up.

If you insist on using Gnome or KDE, obviously bloated because everything has extra features enabled by default, then then shut those resource hogs off. You'll start to get back to fast desktop days again. Some people will miss the bling, but you can't have one without the other. You can't expect all that sweet sweet bling without the resources being tied up to make it happen.

Re:New Linux port for the Nintendo 64 by ksaj on Saturday December 26, 2020 @05:27AM (#25542550)
I got voted down by someone who obviously never compiled their own kernel (which used to be the norm). After lots of questions about how you need to config, you get your kernel... THAT is Linux -- the kernel.

The rest, the part you are complaining about bloating is the GNU part. I'm not complaining about that GNU part, btw. I've lived in it since the early 90's. But the Linux kernel can be as slim and responsive as you want it to be if you are willing to compile yourself. You can even compile it as an RTOS, and you can never convince me that would be too sluggish.

What I got voted down for was pointing out that Linux-proper wasn't the slow part of that blend. It was the desktop. And that part is GNU, not Linux. Period.

Re:New Linux port for the Nintendo 64 by icedchai on Friday December 25, 2020 @11:27PM (#25541381)
It was very barebones. FVWM was the window manager I used, running on SLS Linux with a 0.99.xx kernel.
Re:New Linux port for the Nintendo 64 by ksaj on Saturday December 26, 2020 @05:19AM (#25542518)
I used fvwm as my main environment back then. It was really good. You can still see its influence in Raspbian and other desktops like that.

I actually had a gig with SLS Soft Landing back in the day. It wasn't unrelated to the stuff I was doing with uucp at the time. That was important then, but totally not at all today, lol.

I am assuming you are making a bit of a jest, because things have moved along in the past many decades.

Re:New Linux port for the Nintendo 64 by icedchai on Saturday December 26, 2020 @11:39AM (#25544461)
I used to do a ton of stuff with UUCP back in the day. Fun times. I had about a 5 other systems calling into mine for UUCP mail.

You are right. Linux has evolved tremendously over the past ~30 years. Those early times were fun though...

Re:New Linux port for the Nintendo 64 by Narishma on Friday December 25, 2020 @07:37PM (#25540344)
Windows 3.x ran OK with 1MB of RAM if you only used a couple of applications at the same time. It wasn't the fastest thing and swapped a lot but it was usable for Word, Excel and the like, as long as you stuck to contemporary versions, as later ones tended to be more memory-hungry.
Re:New Linux port for the Nintendo 64 by arghwhat on Friday December 25, 2020 @07:17PM (#25540244)
That's more than plenty.

(It won't be running Gtk4 or Qt6 of course.)

Re:New Linux port for the Nintendo 64 by weare138 on Saturday December 26, 2020 @03:06AM (#25542091)
Check out this article on the project:

https://www.phoronix.com/scan.php?page=news_item&px=Nintendo...

>It's also noted that Linux on the Nintendo 64 is still a big buggy and "constantly flirting with [out of memory]."

If you're running out of ram with just a shell that definitely doesn't leave much left. And there's no storage device, so you can't swap.

Re:New Linux port for the Nintendo 64 by arghwhat on Saturday December 26, 2020 @03:23AM (#25542147)
The DSLinux project runs in 4MB with no MMU as well. They do recommend using the +4MB RAM expansions cards to use the graphical environment, but it's not a a requirement.

IIRC, there used to be a GBALinux as well. That's what, 1/8th of the memory?

That this port is OOM-ing is just it being buggy.

Re:New Linux port for the Nintendo 64 by yellowapple on Saturday December 26, 2020 @09:20PM (#25548262)
> And there's no storage device, so you can't swap.

There's the cartridge. And yes, while technically that's supposed to be ROM, flashcarts like the EverDrive are able to get creative with that, and I can see that being a viable pathway to achieving something approximately resembling swapping.

Re:New Linux port for the Nintendo 64 by Latty on Friday December 25, 2020 @06:37PM (#25540036)
Upgradeable to 8mb with the "Expansion Pack", for what that is worth.
Re:New Linux port for the Nintendo 64 by sedatk on Friday December 25, 2020 @07:42PM (#25540371)
IIRC, X11 ran fine on my 486DX2-66 with 4MB RAM with Linux 1.2.13.
Re:New Linux port for the Nintendo 64 by anthk on Saturday December 26, 2020 @08:09AM (#25543222)
You could run X with 4MB, but it would crawl. With 8mb it was ok-ish with swap, and it was snappy with 16. No KDE, no Gnome, no XFCE, but FVWM flied.
Re:New Linux port for the Nintendo 64 by m-p-3 on Friday December 25, 2020 @11:34PM (#25541409)
8MB with the Expansion Pak I think.