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

Much of theoretical computer science is math, like much of modern theoretical physics is also math. “Computational science” brings up images of computational complexity theory, computability, information theory, distributed consensus, type theory etc.

So maybe not a marketing ploy.


> Much of theoretical computer science is math, like much of modern theoretical physics is also math.

Math is not science - regardless of whether it’s masquerading as computer science or certain branches of theoretical physics.

This makes me sound down on mathematics which I’m certainly not. It’s both useful and can be profoundly beautiful. And it can be an integral tool in science — or studied on its own merits. But it’s not science.


>Much of theoretical computer science is math

Does that make it a science? I think nobody in this thread is using the same definition of science.


I was thinking we could run what is being said in a call from an unknown number through a scam detector. The detector, upon noticing an established fingerprint of scam activity, would alert the caller.

There is Call Screen in the native Android Phone app that does this, but even better: it can take the call on your behalf, and warn you based on what the other party says. It is available in the US, but it seems only for Pixel devices?

https://support.google.com/phoneapp/answer/9118387?hl=en&ref...


My impression (I work at Google) is that internal interfaces to some of these services have a lot of Google-specific stuff that are hard to map to non-Google requirements.


You also have to see how easy these will be to use, with a dedicated app and all, compared to hiding a camera. In practice, if I spot a hidden cam on someone interacting with me in public, I’d call them out, but socially it would e super awkward to ask someone to put their glasses away. But I agree the FB association might be making people extra uncomfortable (can’t blame them!)


What if you met someone carrying their phone in their breast pocket, with the camera facing outward? Would you ask to see their phone to see if they were recording you?


I gave up on it after the free trial. The search extremely shitty for anything except popular Western music, and oh the recommendations! You like some Shiv Kumar Sharma? How about also trying $random_hiphop_dude?

YT Music has its flaws, but there is simply nothing that comes close to music discovery there.


I second this. YTMusic has amazing recommendations. I am though more excited about the lossless and high-res lossless playback. I have a nice DAC and Sennheiser HD6xx that provide amazing listening experience in Apple Music. I have never found any other service that provided high res bollywood music. not even torrents!


> A spokesperson for Starbucks said in an email in response to the union organizing drive: “While Starbucks respects the free choice of our partners, we firmly believe that our work environment, coupled with our outstanding compensation and benefits, makes unions unnecessary at Starbucks. We respect our partners’ right to organize but believe that they would not find it necessary given our pro-partner environment.”

I don’t know about the US, but that statement is such a joke in Switzerland Starbucks. “Partners” are fired the moment they declare they are pregnant, the pay is minimum wages (compared to even obscure fast food chains here, that pay significantly above the min) and stressful shifts are the norm due to understaffing.

The “perks”? Your drinks are generously on the fucking house, and you get to take home a bag of coffee beans every week. Source: several people I know well who are baristas.


In the US they pay for your college (at Arizona State University) if you work at least 20 hours a week, and offer you stock. Their base wage is well above the competition and minimum wage in most locations here, before tips (another US oddity).

There are always reasons to form a union, but I would be surprised if adoption was particularly high. Starbucks ranks highest in employee satisfaction among national fast food chains. https://www.comparably.com/companies/starbucks/happiness

> are fired the moment they declare they are pregnant

In the US this is illegal and a really easy lawsuit to win. Does Switzerland not have laws protecting workers from being fired for being pregnant?


Maybe they are not exactly fired (not familiar with Switzerland myself) but I know of constructions of keeping people (mostly women) constantly on 3-month temporary contracts. Those contracts then don't get renewed if someone is pregnant.


Yes I confirmed, this was what happened. The shitty part is that there was no obligation for this person to declare, they did it to be transparent, and their contract was never renewed. This in a store that is understaffed, constantly hiring with high churn.

edit: I noticed that they hire a lot of expats, and probably also why get away with it: If you're an expat who e.g., followed your (unmarried) partner into Switzerland, boy do you have to jump through hoops to stay. To these people, Starbucks is actually a lifeline.


In San Francisco, with our specific set of labor protections, Starbucks is merely competitive. But so is Union grocery work: which either pays better or worse after dues than comparably easy to get jobs depending on whether you need the insurance or not.


makes unions unnecessary at Starbucks

Genuine question. When corporate spokespeople say this, and when people hear it, does everyone involved think it's bullshit for appearances, for a kind of collective playacting? Or is there a genuine mindset behind this that truly, honestly thinks that unions couldn't help Starbucks workers; that there's nothing they could do to make things better for Starbucks workers? Or is it stating they're unnecessary because it's not necessary for employees to have a better life; is it a kind of clinical, harsh Chicago school style assessment of the situation?


American Starbucks also throws in tuition (if you're comfortable going to the one school they're partnered with and tying your education to keeping that particular job) and healthcare (while employing a sizable number of people young enough to be on their parent's still.)

Oh, and they'll hook you up with a Spotify subscription and a Lyra subscription.

Basically just a whole bunch of nonsense when all you really want is to see resources thrown into A: staffing more people on the floor, and B: giving your existing staff the hours they need so that they can afford to remain your existing staff.


> Switzerland...minimum wages

The pregnant part surprises me, but the wages don't. Aren't they something like $25 per hour in Switzerland?


Yeah, more like 20 (19 CHF/h). Switzerland is expensive, and Starbucks ensures that their prices reflect that -- "caramel frappuccino" is 8.90 CHF for the big bucket of a cup they have, while the same thing in the US is what, 5? They could easily pay their employees more if they wanted, but they don't and then talk about this "partner fair ethical something something" bullshit. Like I said, there are plenty of fast food/coffee joints here that do pay their employees well.

Re. the pregnant part, I confirmed and it was not technically firing, just not renewing the contract upon learning.


I don't remember the work law being so simplified 20 years ago. Has it been reviewed?

Or was I lucky with the kinds of contracts I had?


Starbucks, rather literally, treats homeless people better than their own employees. Rock on, NY organizers.


Can you go into more detail on how Starbucks does that?


It's a matter of perspective. Of course they aren't giving a wage to the homeless. But like many places they are often short staffed and not great paying.

In 2018, Starbucks came under fire for calling the police on 2 black men who were inside but not making a purchase. Starbucks policy at time was that only paying customers could use the facilities. Twitter does what Twitter does, and eventually Starbucks reversed course on their policy (after throwing their own employees under the bus for following policy).

So, stands to reason that a homeless person can come and go as he or she pleases, sleep, use the restroom, eat uneaten food, as they please. Can an employee? Perhaps they can do some of those things, but definitely not as they please due to aforementioned understaffing.


Starbucks treats homeless people better than their non-homeless customers.


Unions were designed for genuinely dangerous work, like factory and mine work.

The joke is a worker making coffee thinking they need union protection for their job.


Why flag the account and report it if the only goal is to politely prevent people from uploading? Like you say, a “code change can do anything” and we simply don’t know how the current feature is done or how it will evolve.

edit: like many comments here already say, reporting doesn’t sound terrible for CSAM, but nothing about the feature guarantees it wont be extended to other kind of content.


I grew up and studied in Kolkata, and have lived elsewhere in India, but I haven’t quite seen anything like the daily adda outside of West Bengal. The article is spot on with most of us not even realizing how special it is unless we move out.


मुफ़्त (muft) means free of cost, मुक्त (mukt) is free as in freedom.

मुफ़्त नहीं। मुक्त (muft nehi, mukt) reads like "not free (of charge), but free as in freedom."


Panic/recover isn't used nearly as much for error handling in Go as in Java. An online resource being unreachable does not cause the net package functions to panic.


Used or not, they ARE exceptions, and you need to write exception-safe code.

fmt.Print can throw. And HTTP handlers throwing exceptions is silently hidden. If you don't write code assuming anything can throw, then your code is broken.

And don't judge exception by how they are in Java. That's just a clusterfuck. No other language I'm aware of gets exceptions so wrong.


Panics Are exceptions but they should be seen as a fatal error. It is very discouraged from being used and the official doc insists that you should not use them for error handling. Qualifying a feature as exceptional use does count, just as having goto in C++ (and go) is possible but should be (and is) generally avoided should impact your perception of c++.


> Panics Are exceptions but they should be seen as a fatal error.

I agree. Well, "fatal" needs to be defined. If an HTTP handler throws an exception, is that fatal for the whole webserver?

Java seems crazy about this. Exceptions seems like it's being treated as just another return value. And that leads to a mess.

But C++? What parts of the C++ standard library have unreasonable exceptions used for errors? (there may be some, I just can't think of any)

And note that you have to throw (no pun intended) away large parts of the language if you remove exceptions. E.g. you can't have constructors without exceptions. How else would you signify "those arguments you gave to the constructor are no bueno".

Go doesn't have constructors, so it's consistent with what it says.

Also see my comment here, about how common or not, discouraged or not, the mere existence of exceptions in a language changes how you must write code to not have it be buggy: https://news.ycombinator.com/item?id=25275580

Yes, in C++ 'goto' is a code smell. It's not in C (greatly used for error handling), but C++ has RAII so `goto` should be rare outside of "clever" code (where "clever" is rarely good).

The mere fact that C++ doesn't have 'finally', and Java does, tells you a lot about how exceptions and RAII differs. If you write a macro for "finally" in C++ then you're doing it wrong.

Pretty much all of my `catch` clauses are in main() (or the root of an event handler), to pretty print the error and/or log to central service, or in a top level event like HTTP handler. `catch` should be about as common in C++ as `rescue` is in Go.

In Java it's fucking everywhere.


> If an HTTP handler throws an exception, is that fatal for the whole webserver?

Well, your handlers should not generally panic! It's called panic in Go so panicking should be hopefully rare for the peace of mind.


> Well, your handlers should not generally panic!

Uhm… no… no they should not.

I feel like you're missing the whole point, here. An interface that is extremely hard to use correctly without turning small bugs into major outages is not a good tool.

And one way to make sure this doesn't happen is to write exception-safe code, because Go has exceptions.

You could also argue that your C++ code shouldn't throw, and I agree. It should very rarely throw. But when it does it should be safe.

If Go had simply not had exceptions then this would have been easier.

> It's called panic in Go so panicking should be hopefully rare for the peace of mind

If you write a web service that hits a bug that panics about once per million requests, and you run 1000 qps, that means your Lock();dothing;Unlock() will deadlock the whole webserver once every 15 minutes.

If you write exception safe code, then it does not.


I was replying to the comment above -- Go or Rust did not simply rename exception related keywords, they have a completely different approach.

I don't know of any language that does mudane error handling with exceptions that is not a mess. C++, for instance, is extremely difficult to write exception safe code in.


> Go or Rust did not simply rename exception related keyword

I don't know about Rust, but Go most certainly did.

> C++, for instance, is extremely difficult to write exception safe code in.

It's WAY easier to write exception safe code in C++ than in Go, because C++ has RAII and scoped defers.

See my example for what a mess Go makes of this in this comment: https://news.ycombinator.com/item?id=25276360

I find C++ exception safe code to be pretty much trivial. Once you get used to "no naked resources" RAII just makes everything exception safe automatically.


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

Search: