this post was submitted on 10 Jul 2024
388 points (95.1% liked)

Linux

47462 readers
1274 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
388
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]
 

Zed is a modern open-source code editor, built from the ground up in Rust with a GPU-accelerated renderer.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 188 points 2 months ago (7 children)

Installer is piping curl into shell

I thought we were past this as a society 😔

[–] eager_eagle 50 points 2 months ago (1 children)
[–] [email protected] 57 points 2 months ago* (last edited 2 months ago) (3 children)

ooh, available for “x86_65” on Alpine

(and they’ve fixed that now)

[–] [email protected] 38 points 2 months ago* (last edited 2 months ago) (1 children)

Have you really not heard of it? It is a new architecture that is a bit better than x64_64.

[–] mlg 5 points 2 months ago

Finally. 65 bit processor.

[–] [email protected] 36 points 2 months ago (1 children)
[–] SidewaysHighways 15 points 2 months ago
[–] eager_eagle 23 points 2 months ago (2 children)

imagine the nightmare of writing a 65 bit instruction set

[–] laughterlaughter 6 points 2 months ago (1 children)

I don't think it has to be a nightmare per se if you start from scratch.

Instead of 8-bit bytes, you have 5-bit "bytes" (fyves?) Hoozah! Done.

[–] eager_eagle 10 points 2 months ago (1 children)

only if double precision can be called high fyves

[–] laughterlaughter 2 points 2 months ago

This is a mandatory rule now.

[–] yogurtwrong 1 points 2 months ago* (last edited 2 months ago)

Now imagine designing a 65 bit computer. The bus, registers, alu...

You'll probably waste a lotta chips since most of them are designed for working with powers of 2

[–] kazaika 27 points 2 months ago (1 children)

I mean its already in the nix repos as well as homebrew which means its essentially taken care of

[–] [email protected] 9 points 2 months ago (1 children)

I've been using it with the nix package manager. It's awesome how easy nix works

[–] [email protected] 5 points 2 months ago (1 children)

It appears to be a couple of versions behind ... and have some issues with dynamically linked libraries that hinder LSPs. Neither of these is Zed's fault. I'm sure the packaged version will be up to date momentarily (given the interest in Zed, sooner rather than later). Not sure how easy the LSP thing will be to fix, though there are some workarounds in the github issue.

[–] [email protected] 5 points 2 months ago

yeah the editor is being updated way too fast for nix to keep up. I'm sure it'll be easier once it has its stable release. I see the have a nix flake in the repo, it would be great if they added a package to the outputs instead of just a devshell, nix users could easily build it from master or whichever tag they want.

There are solutions in this issue to the LSP issue. The editor would need to be built in an fhs-env, or they will need to find a way to make it uses binaries installed with nix instead of the ones it downloads itself. VSCode had a similar issue, so there is a version of the package that let's you install extensions through nix, and another that uses an fhs-env that allows extensions to work out of the box.

[–] [email protected] 15 points 2 months ago (1 children)

A curl piped into a shell or some unofficial packages from various distros.

At this point I don't get why these projects are not Flatpak-first.

[–] [email protected] -5 points 2 months ago (2 children)

Flatpak is worse for debugging, development, and reproducibility.

Its good for user friendly sandboxing, portability, and convenience.

[–] [email protected] 15 points 2 months ago (2 children)

Is it really worse tho? A single build, against a single runtime, free from distro specificities, packaged by the devs themselves instead of offloading the work on distro maintainers?

[–] [email protected] 1 points 2 months ago* (last edited 2 months ago)

It is. Security problem in core library? Good luck waiting for 27 randos releasing an update. Whereas the distro updates it even before the issue becomes public.

[–] [email protected] 0 points 2 months ago

I'll have to come up with some examples and write something more detailed I think to explore this.

Until NixOS I was very in favor of language specific package managers and things like flatpak.

[–] [email protected] 4 points 2 months ago (1 children)
[–] [email protected] 2 points 2 months ago

You see the conclusion of that article is that flatpaks are not repeoducible after presenting solutions to make it reproducible right?

[–] [email protected] 11 points 2 months ago

There are various package manager vectors for installation listed in the docs

[–] [email protected] 5 points 2 months ago* (last edited 2 months ago)

That was my first thought as well, but I will say that uBlue distros had a signing issue preventing updates recently, due to an oversight with how they rotated their image signing keys, and the easiest (maybe only?) solution was to pipe a curl command to sh. Even though uBlue is trustworthy, they still recommended inspecting the script, which was only a few lines of code.

~~In this case, though, I dunno why they don't just package it as a flatpak or appimage or put it up on cargo.~~

Edit: nvm, they have some package manager options.

[–] PushButton 2 points 2 months ago

It's made in rust, therefore it must be safe!

[–] TunaCowboy -5 points 2 months ago (1 children)

It is worrisome that all the smug elitists are too incompetent to just leave off the pipe and review from stdout, or redirect to a file for further analysis.

Same people will turn around and full throat the aur screaming 'btw' to anyone who dares look in their direction.

[–] [email protected] 10 points 2 months ago

By that logic you have to review the Zed source code as well. Either you trust Zed devs or you don't - decide! If you suspect their install script does something fishy, they could do it just as well as part of the editor. If you run their editor you execute their code, if you run the install script you execute their code - it's the same thing.

Aur is worse because there usually somebody else writes the PKGBUILD, and then you have to either decide whether to trust that person as well, or be confident enough for vetting their work yourself.