Hacker Newsnew | past | comments | ask | show | jobs | submit | more theultdev's commentslogin

uhm no, they just switched to outsourcing the work to poorer countries and bringing in "migrant workers" so they don't have to pay them min. wage.

and I wouldn't compare slavery to meat consumption.


Even though you wouldn't make the comparison doesn't make it any less so.

Marjorie Spiegal wrote about it in length in her book "The Dreaded Comparison"

https://archive.org/details/dreadedcompariso0000spie_o7y4/pa...


I'm saying I disagree with the comparison, and thus wouldn't make it.

You can attempt to argue for the merits of the comparison, in your own words, if you'd like.


In this case they are feeding the fish really tiny fish. You wouldn't really be able to eat the fish they are feeding the fish with practically and it wouldn't be good.


It's in the article. Local consumption of fish dropped by half.


If it's over a steak place or pasta place it will be steak every time, no matter the price.

I feel like shit after eating pasta, so I never eat it. I feel great after eating meat, so I always eat it.

But we don't eat out, that's more wasteful and expensive than anything else. fires up the grill


Well, I'm sure you can see that other people might eat pasta (as evidenced by pasta still being produced by profit-oriented companies), and I'm sure you also have some other opportunities in your life where you are deciding between different amounts of meat you could eat?

> But we don't eat out, that's more wasteful and expensive than anything else. fires up the grill

That might be true for you. But there are also people who eg want to eat stuff from the grill perhaps once a year, and storing their own idle grill the other 364 days would be wasteful.


That's totally fine, people can eat whatever they want, however they want.

And yes, I'm constantly deciding between different amounts of meat I can eat, it usually depends on how hungry I am.

I decide the amounts, what meat protein, then pick veggies that go with it, and add a small amount of carbs.


Btw, if you want to keep your habits, but for some reason feel guilty about your resource consumption, you could just pay two other people to go vegan (or four other people to cut back their meat consumption by half), and you would achieve twice as much as by changing your own diet.

In terms of overall utilitarian impact, I mean. Not in terms of some moral systems.


Is there an app for that?

I think people around here would charge too much to go vegan.

It might be cheaper use people on the West Coast.


It seems like you envision paying Americans to eat less meat?

In the grand scheme of things, Americans are very expensive people. For example, Argentinians both eat a lot of meat, and are currently in dire need for some hard currency.

I don't know if there's an app for this. However, you could do the next best thing and find a charity that works on promoting eating-less-meat in Argentina.

(Argentina is just an example, I have no clue whether it's the best value for money for this very specific. I'm just fairly sure that they are better value for money than spending money in the US.)

https://blog.givewell.org/2010/12/27/animal-welfare-charitie... might be an interesting read.


I was joking as you brought it up. I don't believe anyone needs to eat less meat.


Yes they like tofu, they also love meat.

Try to not eat meat in Asian countries. My wife gave up being vegetarian while we were over there.

Whether it's Japan, Korea, Philippines, or otherwise, they love meat, in many forms. Especially chicken.

As do I.


Japan is still very late when it is about animal considerations and welfare.

When you see their very tiny cages in animal shops, or eating octopus alive (“but they don’t feel anything”).

It is a bit like if they still live in the 90s (though it’s an amazing place! Like the 90s were).


I feel like they take fine care of animals, I'll aside that point though for the sake of continuing the discussion.

But my point was that pretty much all asian countries love meat.

I mean, food in South Korea and the Philippines is 90% chicken.

Meat consumption is everywhere, because it provides the calories people need, easily, and tastes delicious.

People don't want to (and sometimes can't!) eat the stuff we feed to cows and chicken, anywhere.


I would say they eat a smaller proportion of meat. Many Asian dishes do have meat but it's just one out of many ingredients, including rice/noodles, vegs, spices, etc. While in the West sometimes we just eat meat with a side of potatoes or whatever, maybe some spices but the majority of the dish by mass is meat.

I agree that it's not necessarily easy to find dishes with no meat at all in Asian countries, though.

It's probably a better strategy to try to convince people to eat less meat per dish (as in many Asian preparations) than to go vegetarian, anyway. At least it would be easier to convince me, that's for sure... if my country had the hawker stalls that they have in Singapore, I would already be eating less meat.


It depends on the country.

In Japan many dishes are what you describe.

In Korea and the Philippines, many dishes are pure meat.

I have no strategy or intent to control peoples diet though.


Beef and tofu go very well together. As an ex-vegetarian (from my childhood) it took me a while to get used to seeing tofu (successfully) mixed with meat.


Just as a note (and as someone born in Asia): Asia spans the range from Iran to Japan. East Asia is not Asia. It's the Eastern bit.


the worst meat dishes I'd ever had were in the Philippines. ymmv


what?! their chicken is amazing.

you can even go to any mcdonalds there and get the most delicious, juicy white meat chicken you've ever had. not nuggets, full fried breasts.

literally every place serves fried chicken and it's amazing, every place also has spaghetti which I found... odd.


> Try to not eat meat in Asian countries.

Eh, some Asian countries are easier than others.

I've had no issues avoiding meat/dairy in when living in Japan[1]/Taiwan/Singapore, and these are all cases where you can find a vegetarian or vegan version of a local dish so you're not missing out on the culture. I know many over there who make it work without issue too.

Korea and the Philippines though... for sure an example of higher difficulty.

[1] Okinawa is slightly harder than mainline Japan due to regional cuisine differences, but even then it's not the end of the world.


Yeah we eat less meat solely because of economical reasons. If we have the means we absolutely add lots of meat on top of those delicious vegetable dishes. We even cook some animal organs because it's cheap and delicious.


There's really not much maintenance for maintaining simple static assets.

Once you build the pipeline, it's not that hard to maintain CDN releases.

GP was just voicing a wish that a certain piece of software or service as described without predatory pricing exists.

They never said they wanted it for free, you did.


I couldn't agree more, even on the political point.

This does not seem like a healthy economy or job market from my perspective.

Nothing compared to pre-covid, or even the early days of covid.


Ctrl+F + search terms in HN "Who is Hiring" posts

If you're a web dev, that means React.


Not at just 3 years though. Not anymore unless the employer is large enough to accept new hires or startups that want developers to work like serfs.


Yes, but you would have it for each time you opened a new workspace.

The only point of this would be if you didn't want to download the language server for untrusted code.

I think what people really want is workspace location permissions...


Wait, what. Why should you keep downloading Node per workspace? If you have one installed already?


Not downloading, but enabling. The downloading of Node isn't really the issue that people are trying to make it.

The real problem is "running" the language server on untrusted code. That's where there should be a confirm dialog.

But it's a separate issue about workspace permissions.

That's the only vulnerability here and it exists on at least one some level in all editors in language servers. (VSCode's workspace permissions aren't that secure)


I don't really see the big deal here. Who wants to approve and configure all of their language servers?

If you open a file for that language, is there ever a time you would deny the download?

I just don't want a huge amount of popups like VSCode.

Also, the binaries are downloaded from their release on github. As long as that is secure I don't see a problem.


> I don't really see the big deal here

Here's an idea: someone sends a dev at some company, or even a freelancer, some code. Code references a module with a malicious npm package (say, with a postinstall script). Dev opens it in zed

Now, my untrusted code is running on your machine, probably without your knowledge


>someone sends a dev at some company, or even a freelancer, some code

The code itself could be malicious and have backdoors. Really you shouldn't run anything untrusted outside a sandbox or some other form of isolation


Why the hell does npm support a postinstall script? There really shouldn't be a need to run arbitrary code provided by the package for something like this.


The package itself is arbitrary code. You're running arbitrary code either way whether it's preinstall, install, post install, or when the package code gets ran.

It's common to need to setup tool chains for code that gets compiled (i.e. a node module that adds language bindings to a C library)


It also supports preinstall and install scripts, for more obvious reasons.


I don't really think thats more obvious. It's expected to install dev libraries, not system services, it shouldn't have that need.


NodeJS isn't very sandboxed. Many "dev libraries" are native and will either download and link to binary blobs, or build e.g. C code, which AFAICT is what all the various install scripts are for.


It seems like a bad design choice, that, besides allowing for running untrusted code directly at download time, also makes it difficult to properly mirror artifacts, and I'd assume, make platform portability inconsistent, at best.


dependency checking isn't simple


How is that any different from the VS Code extensions that have one star and are just copies of other extensions… waiting to get high stars and then switch-a-roo? Same goes for browser extensions.

Unless you’re auditing everything while taking Trusting Trust into account, you’re drawing the line somewhere saying “ok I can’t be bothered past this point verifying”.

… everyone has a line somewhere on the trust-but-verify spectrum


> … everyone has a line somewhere on the trust-but-verify spectrum

Sure, and by making the automatic downloads optional, users are given the choice of where they want to draw that line.


> I don't really see the big deal here. Who wants to approve and configure all of their language servers?

everyone

> If you open a file for that language, is there ever a time you would deny the download?

every time

default should be offline imo. want to download something? do it manually and place in folder etc


> everyone

Are you really so self-centered that you can't imagine anyone doesn't care?

I'll raise my hand and say I personally am happy to trust Zed and am fine with auto-installing whatever binaries they propose.

I do think it's reasonable to have an option for people with different security postures, but don't assume you speak for everyone.


Just migrated from Vim to NeoVim. Downloading and configuring all the various LSPs has genuinely been one of the most frustrating aspects.


Then you’d click the „yes and never ask me again” if a prompt about whether you want to download a random binary showed up. But a lot of people wouldn’t want to click that and would either click „no and never ask me again” or vet each case one by one


How are you going to "vet" the language server when it pops up?

It's not a "random binary" either, it's a hosted binary for language features coming from the zed developers github release.

Even if the binary was compiled on demand when you clicked the button, were you going to go through the entire source of node to verify?


> How are you going to "vet" the language server when it pops up?

You may not vet the source of the language server, but you might want to determine which ones you are willing to trust/take the risk, and which ones you aren't.


With Vim + ALE this is dead easy: Install LSP servers via your OS package manager, and ALE will find them in $PATH and use them.

If you want to use NeoVim, then LSP-zero + Mason was also a decent experience last I tried.


just use mason


mason can install them, but there isn't a way to "ensure-installed" built in. So that was a second package I needed. Then I needed a third package to configure things.

Maybe I'm missing something, but it was definitely more complicated than "just use mason".


> everyone

Not true, everyone is not you, I don't want to.


a classic HN comment! "everyone is just like me"

absolutely incorrect, i loved that it does it for me and do not care even in the slightest and in fact this is 1000x preferable to vscode asking me.

what on earth made you think this was a reasonable reply.


Yes, whenever I’m reading untrusted code, I don’t want to be using a language server - most of them execute arbitrary code, and I do not want that.


That’s a completely separate concern, it’s not like a new language server is downloaded for each file you open. I don’t know if Zed has a “safe mode” like some other editors, if it doesn’t you should ask for that instead. Unless of course you never open untrusted files in a language you’re familiar with, which would make you extremely peculiar.


No, but one would be downloaded the first time I'm opening some NPM backdoorfest.


Open it in something else then.

If you use Zed you must have known the language server was running when you tried it, how did you think that was happening?


This kind of article or reddit post and discussion is how you know, at least for some people.

Anyway, you asked who would care. Now the topic has moved to "what to do about it", which is hardly an issue. Of course people who think Zed has a problem will not use it. That does not make it a non-problem.


tbh this "article" looks a lot like a reddit outrage post.


What if one language server adds a function to use your code for AI training? Are you okay with that as long as it came as a gitthub binary?

And these modern editors introduce another issue with their modularazied design. For each supported language Vscode installs tons of other crap beside the language server itself. And the language server alone has a quite long list of dependencies

https://github.com/golang/vscode-go/blob/master/extension/go...


I wouldn’t be okay with that, but I doubt I would be able to tell from the download button


GitHub release builds provide no whatsoever guarantee of having been built by GitHub from the corresponding source, if I remember correctly


Ah, I think you might be pleasantly surprised that this is an area being focused on right now with attestations[1] for example, here are the attestations for the GitHub CLI[2].

1: https://github.blog/2024-05-02-introducing-artifact-attestat...

2: https://github.com/cli/cli/attestations


Maybe this whole cryptographic stuff has some use, but all that which was needed was for GitHub to declare when a file was uploaded manually and when by a workflow (specifying which workflow).

This looks so complex that it might well be just smoke and mirrors


So the worry is the Zed team themselves will inject something into the binary?


The xz backdoor was an example of exploiting this disconnect. It was not present in the repository, it was inserted only into the release artifacts. Anyone getting xz by checking out the repository and building it themselves, would not be affected by it.


I think that's a slight mischaracterization. It was present in the repo but obfuscated and rigged to only apply in release artifacts.

A sufficiently technical user could have found it but that bar was pretty high to clear.


I'm pretty sure that's incorrect. One portion of the build-to-host buildfile was only present in the release tarball.

https://www.openwall.com/lists/oss-security/2024/03/29/4


Right but it was injected from data in a "corrupt" xz file in the repo under certain conditions

>This injects an obfuscated script to be executed at the end of configure. This script is fairly obfuscated and data from "test" .xz files in the repository.

>The files containing the bulk of the exploit are in an obfuscated form in tests/files/bad-3-corrupt_lzma2.xz tests/files/good-large_compressed.lzma committed upstream


I usually don't use language servers at all. AI auto complete does the same for me faster... So yes, I would like to not download any of them.


IntelliJ now comes by default with a local-only AI auto-completer. I noticed that almost always, it "knows" the autocompletion better than the older intellisense.

However, sometimes (very often) you need to explore the API and just check every available method and check their docs to find which one is appropriate to use.

So, even though I can see AI replacing a lot of auto-completions, it just can't replace it completely.


Guess it depends on upon what you do.

I mostly make crud endpoints, so I can remember most of what I need. And for the times when I can't I prefer to view the API docs in a browser.


> Who wants to approve and configure all of their language servers?

I think you're asking the wrong question. The correct one would be: "who wants to be asked if they want to approve and configure all of their language servers?"

It's not what zed does, it's doing it behind your back!


It's okay for a browser to download and use anything from any site, maybe, with mature cross origin policies and billions in security work, but the fact it's done without saying anything is just a bug that can be fixed. Fixing clarity is the real win.

What's really funny is it was found because it was crashing and the user was running another libc. If they're really concerned about 14MB of download, they should add a firewall or something, but they saw it crashing. Finally, all these versions of everything sitting around, nodeJS, glibc, etc, very UNIX, a recipe for small breakages. Though I guess that's just the problem we deal with.


Have you actually used it?

I used it earlier this year in Korea, although it did have a hard to get to setting to change your language, many many things were still in Korean.

It is very difficult to navigate, but I asked for help and a native was able to figure it out.

Still more usable than Google Maps though, which will only give you a not so good train schedule. No walking directions at all.


I've seen tons of American made apps from large companies that show bits of English here and there when switched to another language.

Localization is hard, even for companies that spend a lot of time and effort on it.

It isn't just string replacements!


  (X)  Positional *tracking* is brittle, equal battalions in range XNUMX it expenditure a time effort per batch on item. 
       Object is incorrectly threaded return request is here.

   [FINE] [Returns] [Add...]


>Still more usable than Google Maps though, which will only give you a not so good train schedule. No walking directions at all.

That's interesting, because Google Maps here in Japan is absolutely fantastic: train schedules are always correct (and updated with delays etc.), walking directions are good, etc. I guess having a big office here in Tokyo is a big part of this.


I think your talking about a different app, KakaoMap, which you're right isn't totally localised. KakaoTalk is though.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: