Hacker News new | past | comments | ask | show | jobs | submit | 7bit's comments login

> There was a book “C Interfaces and Implementations” by David R. Hanson and he put it so: there are user errors (input/data errors), program bugs (things we 'assert') and everything else are exceptions. So a non-existent file is a user error, uninitialized memory is a program bug, and an arithmetic overflow is an exception.

I don't agree with this definition in the same way I don't agree with many others not found in books.

These definitions always reflect the personal view of their authors, but are fundamentally just an interpretation of their own thoughts. There is nothing objective about it. It's just a philosophical or semantic debate.

For example, why is uninitialized memory a bug, but an arithmetic overflow is not? In both cases it would have been the developers responsibility to initialize the memory and prevent an arithmetic operation that overflows.


In his interpretation exceptions were just a little short of being fatal errors. They were almost fatal errors but with an optional escape hatch. But I agree all these distinctions are vague and do not seem to be fundamental differences.

Exceptions are a side effect of nice syntax. When we write

    a = b + c
in a modern language quite a lot can happen behind the scenes. Yet the form implies 'a' will always be a sum of 'b' and 'c' whatever this means. There is no notion of 'a' not being a sum. So it seems there are two ways: either we provide a separate error handling mechanism (exceptions) that stops the execution and leaves 'a' undefined or we somehow turn 'a' into either a sum of 'b' and 'c' or an error (sum types).

> Also, there is little fundamentally different between throwing an exception and returning an error result.

Thank you. I was about to reply the same. The most notable difference is that from a usage-perspective is that exceptions bubble up automatically, whereas errors must be returned manually.

I usually don't follow the error vs. exception debate because both have their difficulties and both let's you write code that behaves different than you anticipate.

I prefer exceptions, especially how Python handles them (most of them at least). The only thing I really would love to see is something like Rusts Option() type in Python so assigning values to variables inside a try: would not require me to have variables with typ int|None. That's really yuck.


Yet, the Gen ai image producers have no understanding of anything and draw human anatomy convincingly very often. Yin other words, you're wrong. AI does not need anatomy knowledge, that's not how any of this works. They just need enough training data.

> AI does not need anatomy knowledge, that's not how any of this works.

Surely someone has done a paired kinematics model to filter results by this point?

Not my field, but I figured 11 fingered people were just because it was computationally cheaper to have the ape on the other side of the keyboard hit refresh until happy.


Teams works in Firefox. However, Firefox on Android is not supported.

Try sharing a window on linux and see how that goes.

Random errors during calls, tab freezes etc..

"Supported."


I mean, on Windows with the official Teams, I see "Person is visibly talking, but there's no audio (and did not mute themselves accidentally)" multiple times a week. So, yeah, going from that baseline, that's surely "supported".

Please share how you make it work on FF then.

Or use PowerShell where LS returns a bunch of objects, and say goodbye to string parsing forever.

nushell is the superior structured data shell and it's cross-platform. https://www.nushell.sh/

I've only used Powershell a little bit on Linux and Mac but it seems reasonably cross-platform.

On the surface, it looks like I'd be giving up the decently sized ecosystem of Powershell libraries for a new ecosystem without much support?

I'm interested in knowing what Nushell does differently since I'm wanting to find a better shell.


I'm probably not the best person to ask, since the last time I touched Powershell, it was Windows only, but I'd say nushell is likely a lot more platform-agnostic, has sane syntax and follows a functional paradigm. Plugins are written in Rust. It's probably not worth it if all you do is Windows sysadmin work, as you'd have to serialize and deserialize data when interacting with Powershell from nu.

Last I looked, powershell's startup time on linux was disappointing. Understandable to an extent given it was bootstrapping a bunch of dotNET stuff that would already be there on windows. But slow enough that I couldn't use or recommend it to my team.

Wait until you realize that "giving up the decently sized ecosystem of Powershell libraries" is a net positive ;-)

Nushell is way less powerful.

I haven't read the article. This isn't surprising in the least. Pizza is readily available everywhere in Italy, and the quality is not just a little higher, it's extremely better than Dominos. So why would anyone pay more money to get an inferior Pizza?

The mere thought that they could set foot in that market is already funny.


> Pizza is readily available everywhere in Italy, and the quality is not just a little higher

Note that the modern Italian pizza, including in Napoli, is a post-War invention [1]. “Most Italians hadn’t heard of pizza until the 1950s;” after “Italian-American soldiers were sent to Sicily and travelled up the Italian peninsula, they wrote home in disbelief: there were no pizzerias” [2].

(19th-century pizza marinara had little t9 no cheese, for instance.)

[1] https://en.m.wikipedia.org/wiki/History_of_pizza

[2] https://www.ft.com/content/6ac009d5-dbfd-4a86-839e-28bb44b2b...


I don't have access to the FT article, which looks to be a random opinion piece. But the Wikipedia article contradicts what you claim.

> Before the 1940s, pizza consumption was limited mostly to Italian Americans. Following World War II, veterans returning from the Italian Campaign, who were introduced to Italy's native cuisine, proved a ready market for pizza in particular

How could veterans bring pizza back the US if somehow pizza was unknown in Italy? That's absurd. I really don't get why some Americans feel this need to claim that everything popular originates in the US.


> looks to be a random opinion piece

It’s not, though it is a sceptical review of an Italian academic’s work. (How did you conclude it’s an opinion piece? It’s not even in the URL.)

> Following World War II, veterans returning from the Italian Campaign, who were introduced to Italy's native cuisine, proved a ready market for pizza in particular

I forgot the term, but it’s a food that’s cross influenced itself.

Pizza obviously existed in America before WWII. We have documented evidence of American pizzerias, e.g. in New York back to 1905, opened by a Neapolitan [1]. Italian Americans in Italy, influenced by the American version, spurred pizza’s development and expansion across the peninsula. Those soldiers (and their comrades) returning to America influenced our version and in turn spurred its expansion across America.

> don't get why some Americans feel this need to claim that everything popular originates in the US

I said it’s a post-WWII invention and was strongly influenced by America. Not that it originated here.

Pizza was born in Italy. What Italians call classic pizza today is a post-WWII invention, by Italians, in Italy, strongly influenced by the way it’s cooked in America. Chief among the changes was the temperature at which it is cooked. (Something they dialled up further than we did.)

For whatever reason, pizza is a food that everyone makes up myths around. This is as true in New York or Chicago as in Italy.

[1] https://en.m.wikipedia.org/wiki/New_York%E2%80%93style_pizza


> It’s not, though it is a sceptical review of an Italian academic’s work. (How did you conclude it’s an opinion piece? It’s not even in the URL.)

The only thing I had access to, the title: "Everything I, an Italian, thought I knew about Italian food is wrong". That reeks of "opinion piece".

> Pizza obviously existed in America before WWII. We have documented evidence of American pizzerias, e.g. in New York back to 1905, opened by a Neapolitan [1]. Italian Americans in Italy, influenced by the American version, spurred pizza’s development and expansion across the peninsula. Those soldiers (and their comrades) returning to America influenced our version and in turn spurred its expansion across America.

The italicized part is not supported by the Wikipedia article, that I trust more than some review of a book I don't have and that you selectively quote. Without it your narrative breaks down.


> That reeks of "opinion piece”

Sure. I’ll confirm that you’re wrong.

> the Wikipedia article

You only quoted Wikipedia saying “before the 1940s, pizza consumption was limited mostly to Italian Americans.”

Where do you think Italian Americans live?


It's in the section about history pizza in the USA. It's saying that, in the USA, pizza consumption was limited mostly to Italian-Americans. Is that clearer? Come on...

Read the whole paragraph, it explains that once American soldiers (presumably non-Italian-American) were exposed to Italian cuisine, they brought back appreciation for it back home, which led to the rise of pizza in the general American population.


> in the section about history pizza in the USA

Also known as America! You asked “how could veterans bring pizza back the US [sic] if somehow pizza was unknown in Italy.” To prove that, you quoted a section that showed veterans did not “bring pizza back” to America, it was already here. (Nobody claimed pizza “was unknown in Italy” prior to WWII, so I’ll ignore that part.)

WWII caused pizza to stop being seen as an immigrant food in America. It also caused the American pizza processes to intermix with those in Naples, both changing it into its modern form and helping it expand across the Italian peninsula.

I’ll note that you’ve misquoted once source, Wikipedia, complained you couldn’t access a second, and provided zero of your own all while rejecting evidenced culinary history. Curious to be proven wrong with sources versus stubbornness.


The guy is known in Italy for being very clickbait-y. What he says is usually okay but a bit exaggerated, but in the case of pizza he is wrong.

This is a discussion between him and another guy -> https://angeloforgione.com/2022/04/04/alberto-grandi-sulla-p... Pizza became widespread in Italy after WW2 (thanks to emigration from Naples to the rest of Italy and tourism within Italy), and the global diffusion of pizza outside US and Italy definitely comes from the US rather than from Italy; but it got to America at the beginning of the 20th century almost a century after pizza restaurants were born in Naples.


> it got to America at the beginning of the 20th century almost a century after pizza restaurants were born in Naples

Everything you’ve said is correct. The question is whether 19th-century Neapolitan pizza would be recognised, by Italians, as pizza today. The answer is a solid maybe. In Napoli, yes. Elsewhere, including in America, much less certainly.

Note that I’m not suggesting people would think it’s not related to proper pizza. But if you told the average Roman or Venetian about New Jersey tomato pie [1], they’re likely to react as they would to Hawaiian pizza. Even though that product resembles pizza marinara quite closely. (Even when baked on a bubbling versus rising dough.)

[1] https://en.m.wikipedia.org/wiki/Trenton_tomato_pie


Seems pretty interesting and pizza-ish (unlike Chicago pizza which is only interesting). Yeah, I would call it focaccia al pomodoro perhaps. But if you consider that New York-style pizza is commonly sold by bakeries in Italy, and it's considered to be pizza (it's simply called "tall" pizza, and I think it's an independent reinvention but don't quote me on that), I think 19th century Neapolitan pizza would be okay in the rest of Italy as well.

On the other hand, Hawaiian pizza is definitely pizza, the question is only whether the topping makes a good combination.


I remember reading this anf it's reasonable. But it doesn't matter who invented it, Italy has mastered it. The quality is so much better and the price is low (due to the very low salaries in the country I presume). Hard to compete.

Domino is still one of the worst pizzas I have ever tried in Canada.


> I forgot the term, but it’s a food that’s cross influenced itself.

The term is noted in the "history of pizza" wikipedia article you linked:

https://en.wikipedia.org/wiki/Pizza_effect

> I really don’t see how saying it’s a post-WWII invention and was strongly influenced by America means it originated here.

> Pizza was born in Italy. What Italians call classic pizza today is a post-WWII invention, by Italians, in Italy, strongly influenced by the way it’s cooked in America.

This doesn't really make sense; an object that a 19th-century Italian would have called a "pizza" would not be called a "pizza" by anyone today. The word existed, but the concept didn't.

However, while a modern "classic Neapolitan pizza" is clearly not the same kind of thing as a 19th-century Neapolitan pizza, it just as clearly is the same thing as a 20th-century American pizza.

Flatbreads eaten with other foods placed on top of them are a common thing, and wikipedia's "history of pizza" page makes sure to say that that's where the history of pizza begins, but that's not really a defensible idea either; there is no continuity between various parallel "bread, but with flavorful foods at the same time" meals from across the world and pizza. If Achaemenid soldiers baked flatbread with cheese on it, and then that practice died out, and over a thousand years later Italian peasants put vegetables on their flatbread... why would we say the extinct Persian food is an ancestor of the Italian one?

If a bunch of American soldiers, raised to believe that pizza is an Italian food, visit Italy and learn that nobody there makes, eats, or sells pizza, what can we say about where pizza was born? The lesson there is that pizza is about as Italian as crab Rangoon is Burmese.


Huh, some overcomplicated ones and then the “pizza effect.”

> an object that a 19th-century Italian would have called a "pizza" would not be called a "pizza" by anyone today

Eh, some of the 19th-century descriptions come close enough to be recognisable as a pizza variant.

I’m not convinced a 19th century tomato pie wouldn’t be recognised as pizza today.

> while a modern "classic Neapolitan pizza" is clearly not the same kind of thing as a 19th-century Neapolitan pizza, it just as clearly is the same thing as a 20th-century American pizza

I haven’t seen a historical source (or combustion analysis) showing the high temperatures modern Neapolitan pizzas are cooked in occurring in the early 20th century here (nor 19th century there).

That appears to be the Italians taking the New York gas-oven idea and cranking it to 11. (480°C to be exact.)

> visit Italy and learn that nobody there makes, eats, or sells pizza, what can we say about where pizza was born?

That many of them didn’t go the Napoli, also, we bombed a lot of things.


> That appears to be the Italians taking the New York gas-oven idea and cranking it to 11. (480°C to be exact.)

Is that really the temperature New York pizza is cooked at? Every Napolitana pizza recipe I've made or seen is cooked around 330-350C in a stone oven with wood. Never imagined pizza would be cooked at such high temperatures.


> that really the temperature New York pizza is cooked at? Every Napolitana pizza recipe I've made or seen is cooked around 330-350C in a stone oven with wood

Neapolitan. Approximately 380 (base) to 485°C (dome) in a wood-fired oven, by regulation [1].

[1] https://www.pizzanapoletana.org/public/pdf/Disciplinare-2024... page 12


This is deceptive. It’s a tautology. Pizza - as Americans define it - is American. You may as well say Orange Chicken is - shockingly - not Chinese.

Most Italian food served in the US is American food made by immigrants. Just as Indian food in the Uk is. Italian American food is heavier, much more meat based, and drowning in cheese and garlic in a way Italian food isn’t.

Pizza is Italian. Period. American style pizza is a riff on that which has become popular outside the US. However claiming that pizza is American is akin to saying Chinese food is. Nonsense.


> Pizza is Italian. Period. American style pizza is a riff on that

Sure, do you have a contemporaneous source?

Because the food historians who have traced its history through primary sources do, and they point to one story: pizza marinara and its variants in Naples in the 18th and 19th centuries, which had almost no cheese, sometimes no sauce (it wasn’t marinara then), and—crucially—wasn’t heated nearly as much as today’s Neapolitan pizzas, and the modern Italian pizza after WWII.

Also, I didn’t say pizza is American. I said it’s a post-War invention. Certainly in its proliferation across Italy, and strongly influenced by America’s Italians.

And I’m referring to the pizza one gets in Italy. (I’m on the Gulf of Napoli for the umpteenth time in a week.) American pizza is distinct, and also different from its own pre-war form.


[flagged]


> Please delete this

No!

“Carbonara is ‘an American dish born in Italy’ and it wasn’t born until the second world war. The story that most experts agree on is that an Italian chef, Renato Gualandi, first made it in 1944 at a dinner in Riccione for the US army with guests including Harold Macmillan.”

And “before the 1960s, wheels of parmesan cheese weighed only about 10kg (as opposed to the hefty 40kg wheels we know today) and were encased in a thick black crust. Its texture was fatter and softer than it is nowadays. ‘Some even say that this cheese, as a sign of quality, had to squeeze out a drop of milk when pressed,’ Grandi says. ‘Its exact modern-day match is Wisconsin parmesan.’”

Italy was a poor country until after WWII, when it saw in half a decade “the same kind of progress that the UK had witnessed over the course of a century during the Industrial Revolution.” That kind of abundance fuelled a fury of extravagant culinary creativity and alongside it myth making. (The “correct” formulations of which were largely not pinned down until the 1980s.)

https://www.ft.com/content/6ac009d5-dbfd-4a86-839e-28bb44b2b...


Why?

Pointing out that pizza was obviously developed in the United States would tend to undermine the idea that Italy is "the home of pizza".

Pizza Is depicted in a few frescos in Pompeii and is also mentioned in Virigl's Aeneid.

It's not a modern invention.


> Pizza Is depicted in a few frescos in Pompeii

Nope [1]. (I’ve seen it. This is the view of on-site historians.)

> and is also mentioned in Virigl's Aeneid

Indirectly, as trenchers [2].

[1] https://www.npr.org/2023/06/28/1184724633/pizza-a-wall-paint...

[2] https://publish.illinois.edu/litlanglibrary/2020/07/23/the-a...


The article is poorly-written but it sounds like Domino's was differentiating by introducing delivery pizza to Italy. When COVID hit, local pizzerias were also forced to introduce delivery to survive, and then Domino's lost it's differentiation because before if you were lazy and wanted pizza you got Domino's, but now you have local, better, options.

But the article only tangentially touches on the actual reasons so I'm not sure if that's an accurate description.


Pizza delivery has been available in Italy since the 90s at least. Not as common as it is now, with every restaurant offering it, but it definitely existed even in small towns.

How can Starbucks be so popular with such terrible coffee? Why McDonalds still profitable in Italy and other places famous for great food?

I'm actually surprised Domino's wasn't a success. There's something about the network effect and fast delivery that makes these projects thrive.


Because the coffee you get at Starbucks is not the kind of coffee you can find at a typical bar and that we use to drink for breakfast or after lunch. It's a completely different market.

McDonald's doesn't have a local equivalent (it used to exist, and they got bought up by McDonald's[0]) so it doesn't have the same local (and better) competition that Domino's has, especially on a dish Italian people feel strongly about.

So basically, three completely different situations.

[0] https://it.wikipedia.org/wiki/Burghy


Starbucks is popular in North America. However, they had to shut shop in Australia precisely because there was high quality coffee available everywhere and nobody wanted to put up with the rubbish Starbucks was feeding.

> Why McDonalds still profitable in Italy and other places famous for great food?

Because McDonalds is cheap, fast, and tastes good. Seems obvious. They haven't sold billions of Big Macs because they taste terrible, no matter how much food snobs would like to pretend otherwise.

Even if you have "great food" sometimes you want a change. Something that might be "great food" to a tourist can be boring to a local.


Coffee is mostly terrible in Italy. Even Starbucks might be better than the median. McDonalds is junk food - everybody sometimes craves that and it has little tradition in Italy. But pizza? Italy is so traditional with food that its hard to find anything else than pasta and pizza. So Dominos was competing with like 50% of all food vendors.

"Coffee is mostly terrible in Italy"

say what?


Might be it's just not something we are used to in NZ/AU - in Italy you get like 20ml of espresso or if it's cappuccino it's something like 50ml. Quality will be ok. But I can't remember getting 100-200ml drink (i.e. cortado, flat white) for longer enjoyment.

I don't know about Italy. I was in Poland for couple days, and we decided to check if Starbucks is any good - we've ordered filter, espresso, and few kinds of coffee with milk. It's the most disgusting coffee you can ever find, and costs higher than any other cafe. I just don't get it.

Lol. Tried coffee in Germany, Austria, France, Spain, Netherlands, USA, Mexico... Only decent coffee was made by italian machines. Starbucks coffee is pure shit compared to an average italian one, literally very hot garbage water.

McDonald in Italy is quite different than US one, tried both. First time I went to an italian McD was 27yo in Bologna and it was terrible, now quality improved a lot, much better than McD I went in US.

Different categories of items. Starbucks is fine for syrupy dessert delivery mechanism. McDonalds is new category done well enough. But with pizza in Italy you need to compete with multiple similar options in same category. Dough with some toppings and even optionally cheese or not cheese and tomato or not tomato on top of it. Reasonably good products, with reasonable prices with reasonable availability.

For growing chain competing with anything is hard.


They are pretty big in New York. We take pizza fairly seriously. There’s a pizza shop on every block.

American-style pizza was invented in NYC. Pretty different from Neapolitan pizza, although many shops sell what they call “Neapolitan-style” pies, that are still pretty different from the original.


There's lots of terrible pizza in Italy, but Domino's probably has the wrong business model. A regular restaurant will have excellent pizza, of course, but if you go to one of those little storefront places that are open between 2 and 5, when the regular restaurants are closed, there's a good chance the pizza will make Domino's look good. I don't think Domino's is well-positioned to compete with those, though.

I don't know why you're being down voted, there are two places in my partner's home town in Italy that sell objectively mediocre pizza, but are invariably busy because of location and convenience. It's just, a different type of convenience to Dominoes - buy by the slice and sit by the piazza/street to eat.

99% of pizza in New York is garbage. I live there a lot of the time. Just because locals think it’s okay doesn’t mean it’s good. People like McDonalds and that food is garbage.

New York’s pizza pride is entirely misplaced.


> why would anyone pay more money to get an inferior Pizza?

For the same reason that Starbucks exists in Italy, or Portugal, it is way more expensive, provides worse quality, and yet it managed to succeed.


> it's extremely better than Dominos

Yes when compared with napolitana, but average pizza in Italy is just as meh. Hotdog pizza at least tried to innovate. NY style pizza is on par with napolitana (and far better value for money). Italy gets all of its pepperoni from US. What never ceases to entertain me how much Italians try to get offended by it or how pizza experts try to disagree with me.


Yes, it is non-deterministic from our point of view, because OpenAI does not let us set the seed.

Sure you can: https://platform.openai.com/docs/api-reference/chat/create#c...

It does not guarantee determinism, though, because of the nature of GPT4o's optimizations.


Every project that says it's "secure" is already a complete joke in itself. The multi billion companies who say that about themselves, can't even uphold that statement despite their infinite resources. "Secure" isn't a property that anyone can claim, it's a property that only can be attributed looking back in time.

Reminds me of a Steve Jobs video where he talks about quality, and how the Japanese never use that as a qualifier in their advertisements. People don’t assume your product is quality because you tell them it is, they experience it or hear so through word of mouth.

Secure and fast (tm)

(400mb Python script with supply chain CVEs)

Welcome to software postmodernism.


But this works for everyone.

Then at some point you have to prevent the users from harming themselves - and devices get locked in walled gardens; and that arguably works for everyone too.

There are exceptions, kudos to the EU for working to protect user rights. This software postmodernism will go only as far as we allow it.


Does Microsoft Windows ring a bell? The bloat and insecurity are features, Mr., this is capitalism. Thank you for your service.

> Vegetable oils aren’t safe for human consumption in any form.

Yeah, I'd need to see some sources for your claim.


> People who lead obese lifestyles can simply decide to lead a more healthy lifestyle.

This is a greatly simplified POV and also incorrect. Lifestyle is influenced by a lot of things that are not merely choices. Stress, depressions, addictions (sugar is highly addictive), trauma, your social environment. Saying that someone can simply choose a healthy lifestyle is like saying someone can simply choose not to be depressed or addicted.


These things can influence the choices people choose to make, but they cannot make those choices for them. You’re simple stating the shared delusion of obese people who can’t confront accountability. None of the factors you’ve mentioned require anybody to have a donut and a milkshake for breakfast every morning. They might make somebody more likely to make that terrible decision, but it’s still a decision only they are accountable for.

> You’re simple stating the shared delusion of obese people who can’t confront accountability. None of the factors you’ve mentioned require anybody to have a donut and a milkshake for breakfast every morning.

I'm not saying that. I'm merely saying that things aren't so easy as you make them out to be. Read my post again.


Your claim is very explicitly that people are unable to make healthy lifestyle choices. This claim is complete nonsense. Posting a list of vague reasons why people may choose to make unhealthy choices doesn’t support your central claim in any way.

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

Search: