Live data from Hacker News

Linux When?

zed.dev

11–20 of 169 posts

Re: Linux When?

#11

Earlier quoted context omitted.

It's a blog post directly on their website. Is it really unreasonable to need to click to the home page for more context?

People on the internet expect everything to be spoonfed to them.

Kinda wild to me that people who frequent a website that bills itself as a site for news for "hackers" show such a nil-level of ability to comprehend anything themselves.

Re: Linux When?

#12

[flagged]

Some troubleshooting tips: - Move your mouse cursor to the "Zed Industries" icon in the upper-left-hand-corner, then click. - This "hypertext link" will instruct your browser to load the site's root "index.html", sometimes known as a "landing page". - The "landing page" is a great place to start if you're unfamiliar with a site or product! Here, you'll find the following text prominently displayed: "Zed is a high-per…

To be fair, the logo is like 2px tall on Firefox Android...

Re: Linux When?

#13
I know it’s small thing but it annoys me so much when the blog section of a site doesn’t have a link back to the home page.

Seriously, what do people think when designing headers like this? Like wow we should totally link to every other part of our site except the homepage.

Because who would want to go there after they found out about a project through a blog post?

Re: Linux When?

#14

I know it’s small thing but it annoys me so much when the blog section of a site doesn’t have a link back to the home page. Seriously, what do people think when designing headers like this? Like wow we should totally link to every other part of our site except the homepage. Because who would want to go there after they found out about a project through a blog post?

The logo in upper-left links to zed.dev, if that's what you mean.

This is not always great for accessibility (they don't have alt=, title=, or aria-*= attributes on the or tags) but seems to be a common pattern.

Re: Linux When?

#15
>Yup, that's a native file dialog, but we don't use GTK in Zed and that clearly is GTK — so, how does that work? You'll find the answer in the companion video in which Mikayla and I dive deeper into this and also touch on the question of whether or not we should use GTK or Qt or something else (spoiler: it's complicated).

Unless I missed it, the video doesn't actually answer the question. They talk 38:50 onwards about how they don't want to pull in GTK / Qt as dependencies, rather they just want to be able to read the toolkits' config and render a mimicking UI themselves. Then they show the editor opening a "native" file dialog, but don't actually say how exactly they did it.

Anyway, I assumed they would use xdg-desktop-portal, and based on searching the repo that does seem to be the case.

Re: Linux When?

#16

I know it’s small thing but it annoys me so much when the blog section of a site doesn’t have a link back to the home page. Seriously, what do people think when designing headers like this? Like wow we should totally link to every other part of our site except the homepage. Because who would want to go there after they found out about a project through a blog post?

The logo in upper-left links to zed.dev, if that's what you mean. This is not always great for accessibility (they don't have alt=, title=, or aria-*= attributes on the or tags) but seems to be a common pattern.

The logo doesn’t show up on mobile unfortunately.

Re: Linux When?

#18

>Yup, that's a native file dialog, but we don't use GTK in Zed and that clearly is GTK — so, how does that work? You'll find the answer in the companion video in which Mikayla and I dive deeper into this and also touch on the question of whether or not we should use GTK or Qt or something else (spoiler: it's complicated). Unless I missed it, the video doesn't actually answer the question. They talk 38:50 onwards abou…

Yep! That's how we did it, with the heavy lifting done by the delightfully named "Aperture Science Handheld Portal Device" crate: https://crates.io/crates/ashpd

Re: Linux When?

#19
> On macOS, for example, Zed makes direct use of Metal. We have our own shaders, our own renderer, and we put a lot of effort into understanding macOS APIs to get to 120FPS.

So they are taking the exact opposite approach of Electron (VS Code).

In my mind, if you're someone who types in HN comments in a rage because your text editor (VS Code) eats up 200+ MB ram, you don't get to cry about Zed not being supported on Linux from day one, because you can't have your cake and eat it too - if you want it on your platform, you gotta wait for the shaders to be written.

Re: Linux When?

#20

>Yup, that's a native file dialog, but we don't use GTK in Zed and that clearly is GTK — so, how does that work? You'll find the answer in the companion video in which Mikayla and I dive deeper into this and also touch on the question of whether or not we should use GTK or Qt or something else (spoiler: it's complicated). Unless I missed it, the video doesn't actually answer the question. They talk 38:50 onwards abou…

Yeah, there are some caveats to using desktop portals this way, but at least it'll usually give you a native dialog. I do wonder what happens on a machine with no desktop portals, though. I suppose in the future it probably would be feasible to implement a decent file picker directly in GPUI as a fallback, so it's not that big of a deal; I reckon they could make one that's more usable than the GTK one anyways.
Post reply on HN