News for hackers. Stuff that matters.
Re:Linux Desktop on Apple Silicon/M1 in Practice by matwood on Wednesday March 03, 2021 @06:35AM (#26327099)
> I think the people who claim that 16 GB isn't enough are insane

The problem is containers. Some development workflows appear to require running a container for every piece of software needed, and that adds up (and feels incredibly wasteful).

None of my development workflow requires containers locally, so I get by just fine with 16gb.

Re:Linux Desktop on Apple Silicon/M1 in Practice by gspr on Wednesday March 03, 2021 @06:51AM (#26327231)
I wonder when the pendulum will swing back and people will stop this insanity. I can already picture the buzzwords people will invent to describe "apps running on the OS itself".
Re:Linux Desktop on Apple Silicon/M1 in Practice by hnedeotes on Wednesday March 03, 2021 @10:32AM (#26329649)
On the other hand it's no insanity to run millions of lines of code in a computer, connected to the internet and hopefully sharing all the projects you need to work with and dependencies you need to make them work, with full access to your filesystem, usually requiring administrator rights to be installed or even used.

This would all be needless if there was an OS that allowed you to switch to another "env" wiping the RAM in the process (like, storing a snapshot of it for when you switch back), with guaranteed isolation at the filesystem level (perhaps able to still read-only link into common libs), able to install things without touching other "envs". If you're working in any webdev related environment, that is itself the definition of insanity.

It's like buying a hammer from the carpenter at the end of the road and giving access to all your house to him in the process, including your wife. Everything becomes a nail.

Re:Linux Desktop on Apple Silicon/M1 in Practice by gspr on Wednesday March 03, 2021 @10:48AM (#26329913)
Maybe I'm just a simplistic person, but classical Linux distributions make this problem non-existing for 99% of what goes on in my world.

Their role is precisely to orchestrate the cooperation and interdepndency of those millions of lines of code. I don't understand why people have started turning those distros into glorified delivery vehicles for containers.

Re:Linux Desktop on Apple Silicon/M1 in Practice by hnedeotes on Wednesday March 03, 2021 @11:07AM (#26330253)
Simplistic is actually good - but I don't think that any (?) of the available current OSes is able to contain a program that can run once as administrator right? If I'm not recalling it incorrectly, BSD jails, linux cgroups, user filesystem permission, docker, vm's - and that's at the surface.
Re:Linux Desktop on Apple Silicon/M1 in Practice by dmytrish on Wednesday March 03, 2021 @09:36AM (#26328813)
"A bare-OS application" sounds almost as cool as "bare-metal".
Re:Linux Desktop on Apple Silicon/M1 in Practice by UweSchmidt on Wednesday March 03, 2021 @09:15AM (#26328530)
That would require people to clean up. Sometimes I squint at the installation requirements and then head over to hub.docker.com. I think it will get worse (i.e. more layers on top) before it gets better.
Re:Linux Desktop on Apple Silicon/M1 in Practice by stjohnswarts on Wednesday March 03, 2021 @11:39AM (#26330796)
Yeah when you see "install this docker" OR "follow this 10,000 line install and compile guide" and then have to explain to your boss what you've been up to today.
Re:Linux Desktop on Apple Silicon/M1 in Practice by hnedeotes on Wednesday March 03, 2021 @10:16AM (#26329379)
Yeah, containers or VM's up the count indeed, but still. 2 Parallels (test version for m1) VMs running server ubuntu, 1 with 2 ssh connections, for X and tunnelling, running emacs into my desktop, running a web server with repl and environment, other running Postgresql. Safari with 8 tabs open, 4 terminal windows, Xquartz, tells me the biggest memory footprint is the vm with emacs/server/repl, at 3.9GB followed by the other VM at 2.8GB, but the overall used mem says 6GB used(?).

From the tabs Gmail was pointing to +1GB - a browser email client consuming +1/3 of the memory a VM running an OS plus a database.

I sometimes have another VM, another 2 ssh conns, more tabs open including youtube and never noticed any slow/sluggish behaviour.

I also feel like running VMs is wasteful, but it seems we are not able to create OSes with proper native tools for isolation.

Re:Linux Desktop on Apple Silicon/M1 in Practice by yjftsjthsd-h on Wednesday March 03, 2021 @10:06AM (#26329265)
Why would containers do anything to memory requirements? I guess you can't share libraries, but otherwise I don't see why memory use should be any different running the same process in a container or not.
Re:Linux Desktop on Apple Silicon/M1 in Practice by ogre_codes on Wednesday March 03, 2021 @12:01PM (#26331191)
> The problem is containers.

Even this makes little sense unless your containers are really poorly sized. I used to run a mini Kubernetes cluster on my desktop with 6 nodes. Some of them running big Java projects, Postgres, Elastisearch, and Ruby. And I still had enough memory to run Rubymine or IntelliJ along with Slack and whatever other local stuff I needed.