Remix.run Logo
elcritch 15 hours ago

This is awesome! Small projects like this that take off are fun to read.

Maybe I'm imaging it but FreeBSD really seems to have far less bloat than Linux distros and better latency. I just setup a $4/mo FreeBSD VM on Vultr with 1G RAM and 1vCPU and it's only using 12% of RAM with Caddy. A VM with 4GB of RAM and 4 vCPUs could serve a lot of traffic.

I'm wanting to create a personal blogging with a retro BBS-like web app with a text first interface with a multi-threaded Nim server + sqlite. I'm sure something exists already but it'd more for my own tinkering. No containers, no async, no javascript libraries. Just a small 4MB binary and FreeBSD. This posts encourages me on the FreeBSD route!

YorickPeterse 11 hours ago | parent | next [-]

For Linux this will vary between distributions and configurations. For example, based on some testing I did today using mkosi [1] (for reasons unrelated to this discussion), a bare-bones Fedora 43 installation uses about 130 MiB of RAM, while a Debian installation uses a little more than 100 MiB.

IIRC last time I tried a bare-bones FreeBSD installation it used about the same amount of memory, maybe a little more based on how ZFS is set up.

[1]: https://github.com/systemd/mkosi

tiltowait 10 hours ago | parent [-]

ZFS will happilly (and intentionally) gobble up available RAM for ARC. On my 64GB system, ARC is using 42.4GB, but this memory is quickly reclaimable if it's needed. That said, I had very bad experiences trying to run ZFS on an underprovisioned system.

ErroneousBosh 2 hours ago | parent | prev | next [-]

> retro BBS-like web app

You mean like oldschool dialup BBSes, or a forum-style "Bulletin Board"? If the latter, take a look at FlaskBB :-)

RicoElectrico 15 hours ago | parent | prev | next [-]

Unbloated distros exist, Alpine is one example. I was taken aback how snappy it is. Does everything without any undue delay. Merely logging in via SSH feels quicker as you don't have to wait a second for the prompt like on Ubuntu. apk is also super fast.

Imustaskforhelp 14 hours ago | parent | next [-]

Alpine is really good for servers.

Man I love alpine even though I don't use it so much but alpine does hold a special place in my heart for some reason (and i think the reasons are good)

Tinycore is another one which holds a special place in my heart, partially because its the most no BS simple alpine-like os that I have seen which is rather focused on the consumer side, so you can get GUI systems super quickly and minimalist.

The minimalist tinycore iso with gui and terminals ran on 21-40 MB :) let that sink in

They showed as 0.0% or 0.1% on my 8 gig computer.

I used tinycore to take my really old laptop which my brother used to game on mostly and was super dead, it was a dell mini pc with intel atom 1 gig of ram 32 bit, probably 10-15 years old

I ran tinycore on it with no problem and ended up with wifi access and then even ran modern firefox browser and ended up even running a website like https://pomodorokitty.com/ on it

Man,do i love them both.

I genuinely just wanted to create a service which could just boot tinycore gui servers in the browser perhaps via novnc for people to play with but I seriously wondered who might pay for the project

Oh btw oops forget that you can already do that by just downloading the iso of tinycore and then going to copy.sh/v86

In fact that inspired me to create the project but one of the issues of copy.sh/v86 is that its ephemeral and runs directly in your browser so if you close it whereas I thought of having a mini-server-like tinycore where I can get a gui mini server and can quickly open/close it with terminal and even heck modern browsers.

Everyone should try out tinycore just once imo. The simplicity of 21 MB is mind boggling to me. Makes one really wonder what bloat really is I suppose, definitely a fun experience.

Oh also I love alpine because I ran it in my phone using UserLand and I loved it although running python in alpine was a bit of mess on my phone and I think I ended up doing some wizard magic or something using g-compat in the end as well to run it. Although I think termux is pretty good and even better than UserLand in this context because UserLand runs emulated where Termux doesn't I guess but not sure.

yjftsjthsd-h 6 hours ago | parent | next [-]

Alpine is also pretty good as a desktop OS; I've got a desktop and laptop on Alpine, and another laptop on postmarketos (Alpine derivative).

Imustaskforhelp 4 hours ago | parent [-]

Interesting, I had looked at postmarketos but it was too bloated for me perhaps the last time I looked as compared to tinycore which was truly super minimalist

Like is there a way to get postmarketos with something like jwm or anything small perhaps? I would love to give alpine desktop a try, I think I did the disservice of not trying it enough then if you mention this

jaypatelani 10 hours ago | parent | prev [-]

If you liked tinycore check this one https://smolbsd.org/

elcritch 14 hours ago | parent | prev [-]

True Alpine is pretty snappy. I don't like using it as muslc has given me headaches before. Arch is faster generally too but not as much. Maybe there's something with systemd stuff.

Imustaskforhelp 14 hours ago | parent [-]

One could probably use VoidLinux or Gentoo with glibc I suppose if one might want leaner than arch but more heavier than arch

Although VoidLinux's iso size I think is larger than ArchLinux or something which doesn't make that much sense but I don't really know but both are good references to check out.

realusername 4 hours ago | parent | prev | next [-]

The BSD utils are always much nicer to read than the GNU ones when you want to understand what's going on, there's no competition.

I do prefer the GNU style licensing model & popularity but for the code itself, I prefer the BSD ones.

draga79 15 hours ago | parent | prev [-]

Thank you!

elcritch 14 hours ago | parent [-]

BTW, how do you feel about ActivityPub in general?

draga79 14 hours ago | parent [-]

I like it. It's not perfect, but it's a good way to make sure that platforms will continue to be able to federate. They're evolving and things will improve. The experience is much better today, compared to some years ago.