skysight-inc/HackerNews huggingface dataset:
not OP, but the hint is in “computing summary statistics in 32-bit on a large dataset”.

A large dataset means lots of values, maybe we can assume the number of values is way bigger than any individual value. Perhaps think of McDonalds purchases nation-wide: billions of values but each value is probably less than $10.

The simplest summary statistic would be a grand total (sum). If you have a good mental model of floats, you immediately see the problem!

The mental model of floats which I use is 1) floats are not numbers, they are buckets, and 2) as you get further away from zero, the buckets get bigger.

So let’s say you are calculating the sum, and it is already at 1 billion, and the next purchase is $3.57. You take 1 billion, you add 3.57 to it, and you get... 1 billion. And this happens for all of the rest of the purchases as well.

Remember: 1 billion is not a number, it is a bucket, and it turns out that when you are that far away from zero, the size of the bucket is 64. So 3.57 is simply not big enough to reach the next bucket.
From the programmer's perspective C is not a stack based language the way that, say, Forth is, because (as you note) there are no explicit push and pop instructions. But from an implementor's perspective, evaluating C function calls and arithmetic expressions is very stack oriented, which is why in the cited paper some Bell Labs researchers in the early 1980s were trying to build stack machine CPUs to execute C code. Given your Lisp experience, just think about how you'd translate various C expressions to Lisp ones, and how Lisp expressions map to stack operations, and you'll see C's stack based nature come out. (I.e. the abstract syntax trees (ASTs) a C compiler builds can naturally be represented as Lisp-like expressions.)

C:

y = a*x + foo(b);

Lisp:

(setq y (+ (* a x) (foo b)))

Example stack instructions for the above (many variations possible):

PUSH a
PUSH x
MUL
PUSH b
PUSH foo
CALL
ADD
PUSH y
SETQ ; or MOV or whatever your arch wants to call it

Dennis Ritchie added the register storage qualifier keyword to primeval C (and also auto, inherited from B) to make the earliest C compilers easier to write, because bug-free register allocation is a very hard problem and Ritchie's earliest PDP had only a few kilobytes of core to hold both the C compiler's code and the chunk of program text being currently translated, so a complicated register allocator was out of the question.
An idea I've had for a long time is that "the community" can vote to override an accepted answer. There are many times when the accepted answer is incorrect, or a newer answer is now more correct, but the only person who can change an accepted answer is the OP.

I think community-based changes to the accepted answer would go a long way to solving your problem too, but it requires someone to be reviewing newer answers and identifying when there's another that would be more appropriate.

It'd incentivise writing newer answers to older questions. Correcting accepted answers that probably weren't ideal to begin with. A new "role" where users hunt through older questions and answers looking for improvements to make.

Stack Overflow answers are supposed to be community-based, but we unfairly prioritise the will of the original questioner *forever*. I don't think that's optimal.
Or, Apple can allow users to install whatever app they want instead of forcing just one they provide.
Android lets you do that (you can install any app you wish and disable the system apps) so it can't be that hard.
> Roadmap
> Understand the WebAssembly ISA
The difference here is that the these scooters either have a separate lane or are driving on pavement.

There are no such provisions in most of the US.
Show HN: A playable bingo card for being stuck in meeting hell
You have failed to provide an alternate source.
Many architectures? What would they be?

Regardless whether they contain a logarithm instruction or not, how may architectures are there these days. Outside of truly embedded computing I can only come up with 2: Intel and ARM. Counting POWER and RISCV is probably a bit of a stretch already.
> but in cases where someone is building an entire project (such as a website or a newsletter) on it.

Oh, this is an interesting qualifier. The newsletter is not based solely on HN. There are other sources as well. How much is from HN? I'm not actually sure myself, but I'm gonna attribute some HN links (where applicable) and we'll see.
>Imagine poor kids 100 years from now having to memorize all those emojis and their combinations at school.

I mean, we all know what a "polar bear" is, right? If those kids know how to say "penguin", and they know how to write the parts, then they know how to write "penguin" in Chinese.

Meanwhile, the parts in "penguin" aren't used in any other word. The "pen" isn't a writing utensil. And what's a "guin"? If you didn't learn how to spell beforehand and were suddenly asked to write "penguin", maybe you'd write "pengwin" or "pengwen", or mishear it as "pengwing" (because birds have wings so it makes sense, right?) English writing is brute-force memorization of spelling with some patterns that often don't hold, just like Chinese is brute force memorization with some patterns regarding sound or meaning that often don't hold.

And we can see that all English speakers still struggle to spell some words that they don't encounter often, and some even struggle to spell words they do use often.
Remarkable 2?
indeed, and it looks like neither thinks having a death penalty is somehow problematic...
And they use cash everywhere, what is this? Are we back in the 90s?
If you took antibiotics indefinitely, I would assume you would die, if just from diarrhea.
Disagree with this. You can acquire skills using Google. You can build a curriculum and a path by Googling on a domain you don't know a fuck about. It can give you a head start. I learnt Mathematics in same way. Being able to find Dr Keith Delvin was Godsend.

It's much like Blackbox testing you know.
JS has dynamic scoping via call, apply, and bind.
This isn't just a statistical problem, it's also a classical exploration/exploitation trade-off. You want users to notice and vote on new answers (exploration), but users only want to see the best answers (exploitation). The order you show will influence future votes (and future answers).

In addition, it's a social engineering problem. At least people with a western psychology seem to respond very strongly when a score is attributed to their person (as opposed to a group success like in a wiki). So you better make the score personal and big and visible, and do not occasionally sort by random just to discover the true score.
Gaddafi had launched the idea of a pan-African gold dinar at least since 2002. He was killed in 2011.
The driving force for military action against Lybia in 2011 was not the US, but France. Obama and Hillary Clinton only reluctantly went along with Sarkozy's initiative for military action.
Your suggested link between Ghaddafi's killing and "debt based fiat systems" is a conspiracy theory promoted by Russian propaganda channels like RT, but not backed up by facts.
I don't think gp was unaware of those conditions at corporates, but rather suggests that the layers of management, meetings and deadlines make for worse software.

Also remember that opens source includes things like the Linux kernel. That "pet" project underpins almost all software that the hypothetical corporate uses and makes, and does it without the meetings and the deadlines.
You're wrong about lightening. It costs a fraction of a cent per transaction and is meant for everyday transactions. For very large transactions, it is wiser to use the main BTC network since there is lower risk.

Edit: I'm forbidden to reply but not to edit, so I'll reply to your comment below here.

Reply: Yes. The thing you were wrong about was that lightning is not meant for everyday transactions. It actually is.
It's not a "sentiment", really, it's a provable fact from history. Human technology improves exponentially, that much is true. AI has continued to improve at a similar pace, if only because of transistor counts. We have no way of knowing however, where we are on the curve right now. So it's better to just play it safe and start thinking about it now.
Also reminds me of certain country that indiscriminately murders innocent non-citizens around the world... Truly different places, different justifications...
Where did I say equality of outcomes? This is just about holding people to the same standards. Equality of opportunity would be nice, but the majority of women (worldwide) don't have that either.
I had to go back and reread the article to find the reference you objected to.

The article has 25 paragraphs.
Near the bottom of the article, one line in one paragraph, mentioned racial diversity in passing.

Is that really a problem for you ?
This is such a great idea!

There are a lot of plays in this space that try to move the database, or serverless-functions closer to the end-users, but in all likeliness if you're already building a single-page-app the static content is already on a CDN and close to your customers, so this gives you a very easy way to increase performance dramatically without having to modify your infrastructure.

Awesome!
Browser-Based Install and Configure Wi-Fi via Bluetooth LE for ESP8266 and ESP32
Coca-cola has started buying all the bottled water brands in Mexico to stave off any people who won't drink soda. Tap water is dangerous to drink in most of Latin America.
So this 4 day work/week pays less or pay remains the same?
When you read that page, it's important to look at historical context. Ask yourself:

- was it a Communist govt? (ie. South America, SE Asia)

- was there anybody else that should have intervened? (ie. timid Europe refusing to police the Balkans)

- was there significant public support?

- was the US required to intervene as the sole superpower to maintain order?

- did a neighbor ask/pay for the intervention? (ie. Saudi Arabia and Kuwait paid the US to invade Iraq)

- did a neighboring country fail to maintain order (ie. Pakistan failed to police Afghanistan)

Also, note that Roosevelt ended English, French, Italian, Dutch and German colonialism. Most of their colonies can thank the US for their independence, most notably Indonesia.

The US has probably the world's smallest colonies for a superpower - Rome was nothing but colonies. How leftists twist that into America being evil is absurd.
There's a good reason to demolish much of that. It is overwhelming [1] in scale very ugly and not even painting it would help much. This building on the photo of Elista is nothing to look at.

But that photo from Makhachkala looks rather pretty and on a human scale. I imagine when the trees are green it must be a nice place (judging only from this one photo, don't know it IRL).

[1] The Ship https://www.google.com/maps/@55.7108903,37.6218164,3a,75y,21...
> Orientalism is the term coined for the Euro- or America-centric views of the Eastern Hemisphere

Somewhat ironically, the "Orientalism" you are referring to is an American-centric interpretation, which doesn't really have global acceptance as a theory. Orientalism was attempted to be redefined single handedly redefined in 1978 by an American professor (Edward Said with a book of the same name).

Notably, America is pretty unique in considering "oriental" an offensive term - Europe & elsewhere use the term freely without any negative connotations.
> Mostly after I turned 30

Me too! It does coincide with periods of medication, but this decade has been substantially better than the last.

I hadn't thought about that timing until now.
Thanks for sharing such great information, I highly appreciate your hard-working skills as the post you published have some great information which is quite beneficial for me, I hope you will post more like that in the future
https://www.mybalancenow.win/
Won't work, Afghanistan has no (legal) exports to speak of, and still there is the taliban gaining power. Iran and North Korea are hindered by very strict sanctions, yet their governments aren't any better.

War might work, if at least some larger part of the population wants change, like in Iraq. Sanctions didn't ever work.
The one liner is far less readable and under the hood it actually is worse: for each value in [0, m] you're iterating l and filtering it, so it's a O(n^2) code now instead of O(n). That mistake would be far easier to notice if you had written the exact same algorithm with loops: one would see a loop inside a loop and O(n^2) alarms should be ringing already.

Ironically, it's a great example of why readability is so much more important than conciseness and one liners.
Most productive time of my life was when I was forced to book 8 outstanding vacation days and I took two months’ worth of Fridays.

I had enough energy to do a week’s work in four days, plus people got so used to me not being around on Friday that I pretty much got the rest of the year free of Friday meetings as well.

(I also just came back from two week’s worth of bank holidays on Thursdays and Fridays, which seems to be having the same effect).
You probably already know this, but in case you don't a workaround for views not respecting RLS is to use an SQL function and then create a view which selects the fields from the function. Definitely more awkward than creating a view from a table without RLS though.

CREATE OR REPLACE FUNCTION my_view() RETURNS TABLE (...columns) AS $$
SELECT ...;
$$ LANGUAGE SQL STABLE;

CREATE OR REPLACE VIEW my_view AS SELECT * FROM my_view();
I always try and improve existing answers with edits. Often just adding important context when the answer is just a line of bash and adding links to source documentation.

There's very little gamification incentive to do so and often the edit queue is full. Still, there are lots of times where important caveats and information is pointed out in the comments and never added to the answer
https://news.ycombinator.com/item?id=27513568
I'm Swedish, but lived in New Orleans for 6 months in 2001, when I was 5 years old. I used to walk to kindergarten together with my siblings, 3 and 5 years older. Was that another time, or was that too much freedom for the US to handle even then?
I am curious how many people at least tried Git/GitHub in their note keeping journey to keep their notes safe and secure and accessible.
The laws and unwritten rules exist for both your and other's protection on the road.

So, that "just this once" blowing an intersection or red light might be this time that a huge crash happens or someone is killed. Not worth the few minutes saved.

And if repeated, it's unforgivable.
hi to beautiful BC - long may it last :)

My point was that when people wake up in the morning they care more about breakfast than checking the news to see if there was an earthquake. I'm not saying you don't care (at all) but ultimately that the level of caring is crowded out by, well, life.

Alas preparation (as much as you can) is a good thing, but the forces involved, and the sheer scale of the event (assuming a big one of course) will make preparations useful on a personal scale (my house didn't fall on my head, yay) but largely immaterial in the grander scheme of things.

Preparation will save lives. But the impact of the event will change everyone, prepared or not. Infrastructure will vanish, no roads, bridges, harbors, airports, rail. Food distribution, power, water, sanitation will all be off for extended periods of time.

In the long term one can expect large areas of unstable debris, oil and chemical pollution and so on.

Between the earthquake (perhaps a 9) and the tsunami, there's going to be a big mess, over a very large territory.

Regarding the west coast being untenable - mostly that revolves around infrastructure, and the ability to recreate it. Given the impact the event will have on the rest of the country (countries) the ability, or finances, to recreate it will be impaired.

Imagine you wake up tomorrow and Microsoft, Amazon, Apple, Facebook are just "gone". What would the ripple effect on other business be? Would that spark a recession? With respect to New Orleans, Katrina displaced 800 000 people, cost $125 billion, and roughly 10 years to reconstruct. And again, with respect, the cause of the disaster is trivial, and the result small, compared to a factor 9 quake, and 100 ft wave.

Imagine that playing out over the whole west coast, from Vancouver to San-Diego. The impact will be national, not local and it will be a long time before life on the west coast resumes in anything like the scale it is now.
Just to disclaim a little more -- I definitely would do this at home, and the first time I did something like this was before I started doing any real circuit work at home.

I take into account the typical audience of the site, though. Most of us tinker/work with highly complex things that require good research skills even if they don't touch electronics. The basics of how a fan capacitor works, how to handle one safely -- including testing, and discharging, can be done for less than $100 in parts including the required resistor/multi-meter -- in my case. But after inspection and planning, I opted for skipping some precautions and relying on "being careful"[0] which I don't recommend, but how many deaths is that, really, if we all try it? (/sarcasm)

In the case of my unit, there was maybe three seconds where -- if a reasonable enough charge were present (and I had every reason to believe it held enough to hurt ... a lot ... which is motivation enough) -- I was in danger of receiving it if started pouring on me spontaneously on a clear day -- I didn't have remove the cap from the unit to secure the leads. I suspect a lot of A/C units are similar, but YMMV and I'd be willing to bet, again, most readers of this site possess the wisdom to judge the danger for themselves after suitable reading/watching.

[0] Common sense which starts with Rule #1: Always have a physical witness if you're working on something that can kill you and ends with #2: Use them to double-check your research if it isn't obvious stuff (or my personal favorite, have them handle the dangerous stuff).
I think UK is a little "special" because of our messed up class system. I think we should include class into diversity definitions.
Being white is also a massive privilege in at least several majority black country that I know of.
Hum, okay it definitely seems I've not explained myself clearly, and I'm not too sure how to best communicate what I'm trying to share, so bare with me.

I can see that you're getting hooked on the utility side of things, when I say practical I do not imply benefitial to you in a selfish way. In fact, I'm making no moral implications, I'm not speaking to ethics or morals at all.

So it seems you're thinking I'm saying that you can simply make up falsehoods to your benefits, lie and deceive others is a great way to achieve a goal, so why not. Okay, that's not what I'm saying at all, I'm not arguing that the ends justify the means.

What I'm saying is that any argument to the truth is actually a way to deceive yourself and others. It's a dogma:

> Dogma - a principle or set of principles laid down by an authority as incontrovertibly true

You'll tell me this is the truth and argument it to death until I concede defeat and agree to your truth, or we'll just agree to disagree.

Now what I am saying is that this truth of yours, it's simply a hypothetical model which fits the data you have, or at least best tries to fit and explain the data you have. That it is true or not is unknown. What we can know though, is how practical of a model it is.

So replace the word truth with model everywhere and hopefully you'll come to the same "haha" moment as me, when looking at people's truth as simply models they came up with that best explains their current data, everything becomes clearer and starts to make sense.

So in that way, I'm saying someone's truth (which in my head I think of as model of reality, or explanation and understanding of something), is only as "true" (which in my head I think as accuracy of the model to predict or create a desired effect), as it can be used practically to predict the outcome or allow us to design methods that generate some desired outcome.

That means that when a historian explains what happened in the British Empire, why they did what they did, what effects it had on people and our modern times, how it felt to live in that era, etc. I will assess how correct they are based purely on if any of that information can predict anything or allow for any applicable learnings that actually works. Otherwise I will simply conclude that that's just their opinion, and it's probably biased from their frame of reference and beliefs.

So your examples are a little beside my point. But for example, in the case of the ethical manager, let's assume since they are ethical, they don't want their cars to cause harm to the environment. If they followed what I'm saying, they would not look for some absolute truth about the cause of global warming, instead they would look for the current models of climate and emissions that have best predicted the changes in the climate or have shown the most promesse in changing the climates outcome, and use that to figure out what best to do about it. Not try to argue that the model is not the real absolute truth, because of bla bla I believe and I think and therefore, and so don't you get it...
Hey HN,

When I built my last startup, Spectrum, we spent months building custom caching for our GraphQL API from scratch. It never worked well enough to alleviate our scaling troubles as we could only cache data for unauthenticated users since we had no invalidation. (since we open sourced it all before GitHub acquired us, you can even read through my terrible code[0])

When Tim told me he had built a prototype of a CDN specifically for caching GraphQL query results with proper invalidation, my first thought was: "Finally!" Not only had he made it possible to cache POST requests (which GraphQL requests usually are), he had made it possible to purge cached query results per specific GraphQL object. For example, when a user edits their name the API can call a purgeUser(id: $ID) mutation and any cached query result that contains that user's data is invalidated.

GraphCDN is based on Fastly Compute@Edge under the hood, which is really the main reason we were able to spin this up so quickly. Huge shoutout to the folks building that!

We'll be around all day to answer any questions you have about GraphCDN — ask us anything!

[0]: https://github.com/withspectrum/spectrum/blob/alpha/api/apol...
Trepanning always reminds me of His Dark Materials.
https://youtu.be/L7-k6nK1VUw

She has a great video. I'm a German also. I did live in the US too. I'd hate to have to raise a kid there.
And there's a nice angle that Sarkozy's election campaign was maybe financed by Lybian money ( the court case is ongoing as of now)

https://en.m.wikipedia.org/wiki/Alleged_Libyan_financing_in_...
>Loops are easier to read. With functions like reduce you have to solve a puzzle every time to understand what the code is doing

I think that is a function of familiarity, if you use reduce a lot it will be as easy to read as a loop - perhaps easier because more compact - there is a downside to reading more lines for some people, at some point verbosity becomes its own source of illegibility (although any loop that can easily be turned into a reduce probably won't be excessively verbose anyway)

Of course all that is just on the personal level, you , by using and reading more code with reduce in it will stop finding reduce less easy to understand than loops - but the next programmer without lots of reduce experience will be in your same boat.
Is there a term for this kind of "shallow" discussions/responses? E.g. if headline is about X but in the vicinity of Y the thread gets filled with generic comments about Y that have nothing to do with X.

It's obviously not exclusive to HN. I keep seeing it on reddit all the time and it's really tiring.