skysight-inc/HackerNews huggingface dataset:
There's kind of three things you want to show people to get them to understand indexes. Let's say you sell an internet police service and have a table of URLs you are crawling for a table of clients, each client gets some client_id, each URL references the client_id of the client who wants it policed. Here are the things you want to say:

1. Binary search. It's be really handy to have the URLs stored in a different order, maybe grouped by client_id first and then all the URLs for the same client are alphabetical. The index conceptually just contains the same rows in a different order.

2. The read vs write trade-off. Your data fits in memory if there's less than 10 TB of it (possibly up to 100 TB) so the big thing is latency, what an index does is, it requires you to write the same information twice in order to read it exponentially faster, so depending on how often do you write versus how often you read, indexes make less or more sense.

3. High fan-out trees. Once you have explained that the index is just an the same data in a different order, you have inserted a sort of ticking time bomb of misunderstanding. The problem is, a beginner programmer’s notion of a freely indexable list, such that binary search works on it, is an array. How do we insert into an array? With all the work of array copies! So you get people who think that random ID columns should never be indexed, because every write into the middle of the array has to shove half the data one cell to the right—unacceptable! So it really helps to say, “now we can store this as a binary tree, make one comparison per level of the tree.” Pause for understanding that the “list,” can be stored with such a tree. “but, modern computers have a nice property that right after accessing some memory the memory near that location is loaded into a cache... this makes arrays real fast. Suppose we don't just have the binary tree thing of 2 child nodes each representing 50% of our data, but an array with 100 pointers each representing 1% of the data, you get something like a 6x memory speedup from the cache, because your tree is one sixth the depth of the binary tree. And that's basically what a B-tree is, you use a higher fan-out of your sort tree to exploit the cache.”
https://blog.feedspot.com/ukraine_blogs/

https://ukraineworld.org/

https://ukraineworld.org/podcasts/ep-74

Ep. № 74: 11 days of war: Russia tortures civilians, Ukraine begs to close the skies
March 6, 2022

Russia continues to torture civilians and shell humanitarian corridors, breaking earlier commitments to let civilians to evacuate from war-torn cities. Ukraine is begging NATO to close the skies over the country or at least to provide more air defense systems. There is a humanitarian disaster in the Kyiv suburbs. We continue our “Explaining Ukraine” podcast by sharing our analysis of the Russian invasion and Ukrainian resistance. Hosts: Volodymyr Yermolenko, analytics director at Internews Ukraine, and Tetyana Ogarkova, in charge of international outreach at the Ukraine Crisis Media Centre. The “Explaining Ukraine” podcast is a product by UkraineWorld.org. Support us at patreon.com/ukraineworld
Add StandWithUkraine Banner to Updates
A single greenhouse could keep a single family alive long enough to eventually repopulate the Earth.

Killing most humans is a lot easier than killing all humans.
Same goes for sugar. We know the dangers it poses, we are also seeing how much it increases risk of death due to covid.

I don't think we should be surpsied, as much as pushing to regulate this garbage.

As an aside, Michelle Obama's campaign when Obama was in office was about improvement children's health. Her focus was going to be on nutrition (lunch food). Shortly thereafter Coke and Pepsi came in with "donations" and the whole thing became about exercise, no focus on nutrition.

There should be no surprise that capital takes precedent over health in our current system / culture.

Arguably, we should care more about sugar than we do about covid.
Hm would like to see JDs for that, unless you're referring to the really white glove stuff (ex-whatever, no name consultancies with incredible reps).
I feel this will be the spring/summer of e-bikes. They are perfect, especially in Europe, for combating high fuel prices with the existing supply of batteries/goods/services. There's no way EV cars will ramp to address the oil spike. An e-bike gives a totally normal human being 20mph speed without heavy sweat, and effective distance to 8-10 miles, can deliver the power necessary to get up hills, fight headwinds, and tow a burly of goods. In a cheap, compact vehicle that only needs an LFP battery for 40-100 mile ranges, and simple outlet charge.

Likewise maximizing home solar installations would help as well. Since this is strategic, rather than a pure economic concern, home solar might be able to be rolled out more quickly with rebates/incentives.

Russia is enabled by oil and gas.
What we need is a 10-20MV DC national transmission grid that connects all 50 states.

States should be able to buy/sell power to/from this grid in an efficient manner at interconnect points. This lets a solar panel in Texas "power" a heat pump in Vermont at less than 3% loss.
I wonder what happens if the caller on the other side replies with the famous universal-fake-news-one-upper:

"What, you really believe Ukraine exists ? Wake up, sheeple !!"
As of 2021, out of 432 members in the house of congress, a scant 31 are millenials. In the senate, just 1.

Millenials are -not- the ones responsible for disastrous policies (yet). They haven't been around long enough yet. It's mainly boomers, some gen x, and a few silents.

https://www.pewresearch.org/fact-tank/2021/02/12/boomers-sil...

edit: Added "(yet)" because it's not obvious, I suppose. My point here is that the actual policymakers in congress, right now, are majority "not-millenials". So stop blaming millenials and/or gen-z when they're not the ones currently writing legislature...
This just isn't accurate though, you're using a definition of heat pump that's personal rather than shared.

Here let me prove it: https://www.carrier.com/residential/en/us/products/heat-pump...

If you're going to insist that air source heat pumps don't exist then yes, heat pumps are very expensive. They do however, and especially in non-Scandinavian Europe, they will work fine.
You're thinking of a geothermal heat pump which I do not think is what OP was talking about. Heat pumps are ac/furnace 2 in 1 systems that run on electricity. https://en.wikipedia.org/wiki/Heat_pump
Ransomware gang breached 52 US critical infrastructure orgs
I had assumed btree in Postgres was referring to a binary tree but that is definitely not the case. I also learned when to use a hash index, rather than a btree. (If I understand correctly if you’re only using the = operator rather than something that needs sorting with >, <, <=, etc. then a hash will perform better.)
What is IR?
sheesh. 2002 called, they want their fossil fuel talking points back.

A: Nobody is proposing making the grid 100% solar all the time.

B: there is no need for new magical technologies to make energy storage feasible. There are dozens of different battery technologies that scale well, including iron-air and zinc-hybrid, and grid-scale pumped hydroelectric storage has existed for over 100 years but has never been prioritized because emissions have historically been an unaccounted externality of generation.
>Maybe the base load is mostly industrial and large relative to those peaks?

Exactly right. Residential usage tends to spike greatly during hot or cold events since a much larger portion of it is for heating and cooling. For industrial users, there is some heating and cooling component, but the industrial process is generally what's going to dominate.

So, if you look at extreme events, residential usage will dominate during those times. The residential usage total may spike up to 2x or 3x "baseline" usage, which industrial never will. However, if you look at sum totals across a year, industrial will typically be a much larger user than the residential sector.
> Are you in the U.S.?

Indeed

> What brand?

Carrier. 2.5 ton.

In fairness, you reference a single retailer. And that's really important here - retailers will always have a significant markup. You want to go to a wholesaler like CE [1] for a good deal. Most HVAC wholesalers and suppliers will give walk-ins an above wholesale price, which is still less than retail.

> For $2500 USD you are under 2 tons.

Certainly not. Perhaps with installation, but not the equipment. Here's some super lazy validation https://www.google.com/search?q=carrier+2.5+ton+heat+pump&sx...

[1] https://www.carrierenterprise.com/search.html?query=heat%20p...
And the floppy drives for the C64 were too, a whole computer that could do magic things on it's own. And dozen of other magic things, like Sophie Wilson who I admire most and who did magic things with the Acorns (and of course ARM).

The difference is that those people don't spend decades on bad mouthing others. Also the difference is Sophie Wilson does astonishing things all the way until today.

Everyone says Wozniak is humble, but someone nastily putting others down with "those were skills Jobs had to develop to compensate for not being a particularly skilled computer engineer" is not humble in my book, but passive agressive and toxic. I at least would not like to work with a person that talks bad about others all the time. This is a rule when I hire people, if they talk bad about their current employer, they will talk bad about me in the future.
Compared to ignoring global warming - ignoring lead exposure is a minor negligence.
Show HN: Share fine-grained access to your Kubernetes cluster temporarily
Sure. That’s part of it. But the US has some truely insane housing policies. Where I work, many employees are forced to drive 40+ miles one way to work on super clogged 5 lane highways. You’d think there would be buildings everywhere right? Nope on either side of the highway are endless mostly empty fields with an occasional cow. The cows commute is like 2 min and I’m sure those farms aren’t paying their fair share of property taxes. Voters couldn’t care less.
I don't think it helps to make this a generational warfare issue. Especially since it's not like every person in a particular generation had a say in these decisions.

It's also too easy to cast judgement backwards in time, given the lack of context and the benefit of hindsight. Better to look forward.
In general, "unity" is something software developers routinely pursue just for the sake of unity itself, failing to understand that unity comes with significant tradeoffs. It is much harder to build a unified solution than a localized, one-off solution. Divide-and-conquer is often a much better engineering strategy: DAC might create more work than unity, but the work is more likely to succeed instead of falling apart because we failed to anticipate all the use cases within the unified framework, especially when we lack experience in the domain.

Also refer to Jeff Atwood's Rule of Threes (which he borrowed from someone else) here.
If only someone was there, able to take pictures and report on it! You know, like all the news organizations across the world. Or refugees were streaming out of the area with horror stories. And satellite pictures and spy planes showed Russian troop movements. And the tyrant of Russia even said he was sending troops into another sovereign country, while contextualizing it under an obviously false narrative (that would imply the democratically elected ethnically Jewish president of Ukraine was a neo-nazi), and threatening a nuclear response to any armed involvement by other countries.

Oh if only.

Get out of here with however many worthless rubles you're getting paid.
I work in the healthcare sector and the good news is that the standard of care amongst cancer patients continues to go up. There is a lot of time, money, and brain power that goes into this every year. It's one of the few things that people around me agree is terrible no matter your background/political affiliation and I am excited to see its advancements in the years to come.

That said, some people do get unlucky and get it early, but that doesn't mean you shouldn't take care of yourself. Living a healthier lifestyle reduces your risk not just of cancer, but other health concerns as well, and also improves your recovery times when you do get sick. But make no mistake, even if humans lived 1000 years and had no other illnesses, Cancer could still happen. Just the free radicals in the oxygen you breath is enough given enough time
Apple I and II. Unix. Plan 9. Bitkeeper. TeX.

The freight container. The seat belt. Carl Edvard Johansson’s “Jo blocks”. Ball bearings.

HTH (^_^)
One possibility is to evacuate through Armenia or drive to Finland.
Unfortunately NATO has been played into a corner. Sanctions are the only tool that NATO is willing to use right now (alongside lethal aid to Ukraine). What a lot of Western media is overlooking is that this invasion is modestly supported by the Russian population (20-50% depending on which sources you trust). As you said, these same Russians that support the invasion will ultimately blame NATO.

We are gambling that making life more difficult for the average Russian will result in regime change. There is an alternative where sanctions increase popular support for further escalation with NATO and/or Ukraine, in order to result in Ukraine being under the Russian sphere of influence _and_ dropping of sanctions.
Related:

https://news.ycombinator.com/item?id=29043518
We are just as dumb. Processed meat causes cancer, micro plastics are doing all sorts to us: arguably, we are dumber, because we know all about the harm that lead and cigarettes cause and yet… we haven’t applied that lesson. Do you eat meat?
Guido van Rossum quit as Python BDFL over backlash on the := assignment operator. I'm sure there were other reasons, but it was a final straw:

https://hub.packtpub.com/why-guido-van-rossum-quit/
Some Like It Fraught: How Billy Wilder Survived the Twentieth Century
Playing devil's advocate, previous generations didn't have access to the vast, coordinated information on the scale that Millennials do.
Ask HN: Anyone know of a good prediction market / community?
I've had some success predicting world events, but nothing has come of it because I've utterly failed to identify secondary effects. Those secondary effects seem obvious in retrospect, but I never got there in my thinking. Is there a community of predictors who get together and bounce ideas off each other? I'm thinking specifically of the process described in "Scrum" where Dalkey and Helmer of Rand sought predictions from experts, but then analyzed the factors used in those predictions to repeat the process and achieve a high level of confidence. (Maybe the process is called a Delphi Exercise?)
Not only would such a community help me refine practical decisions out of my predictions (and subject those predictions to rigorous challenge), but I suspect it'd also be a lot of fun.
If Russia Backs Out of the ISS, SpaceX Could Help Keep the Station Operational
Not OP but "google being google" - typically they will play out a theme for days or sometimes an entire month with various front-page images and related info. That's how I took it, anyway.
The irony here is that in order to do any of the above things and to do them to the extent that you have a large impact on the world you have to sacrifice many, many other things in your life.

You can't be a dedicated parent and slave away 80+ hours/week in a lab doing research. The day has 24 hours for everybody and you can't be world class with a 9-5pm.
> I think the best possible outcome, which still isn't great, is that the Ukrainian people turn this into a quagmire and the Russians leave.

I don't think a quagmire in your own country is ever a good outcome. I honestly believe it would be preferable for most civilians if Russia quickly wins the war rather than dragging it out for a decade until Russia withdraws.

Of course, ideally Russia will agree to a peace relatively soon, take a few things they already had (Crimea, parts of Donbas) and some security promises, and lick their wounds after the sanctions...
> Same goes for sugar.

Except that presumably includes the current generation, instead of everyone pre-millenial. There is certainly not any real consensus or meaningful action being taken in regards to sugar. It is as prevalent now as it ever was.
> In doesn’t matter what they want if they are actively working in opposition. This is performance is a massive incompatibility to hiring.

No one is working towards degrading performance on purpose, and caring about performance is not "a massive incompatibility to hiring". But the fact that you keep stating this makes it clear that there seems to be plenty of other reasons organizations are not hiring you.
Such sky high prices. Wholesale energy prices in my area (Texas) this morning was USD$0.075/kWh not including delivery, and that's a bit pricier than normal. 87 octane is running ~USD$3.89/gal, ~€0.94/L. Natural Gas costs me ~USD$1.36/CCF including delivery and taxes.
https://www.metaculus.com/
This will only work for a very unbalanced exchange though where the attacker has way fewer resources. The cost of an iron dome intercept will be far higher than that of an artillery shell. In an exchange of equally resourced opponents the attacker will quickly overwhelm the defense capabilities.
Some more:

Processing capacity might not be constant. If you're in a cloud, maybe you can launch more processing power as queue length increases.

Multiple items in the queue might be satisfiable by the same processing, e.g. multiple requests for the same item. In that case, having more requests in queue can increase processing efficiency.

Edit: another one. All requests may not need the same quality of service. For some, best effort might be acceptable.
Love that solution. It's plainly unfair but in my experience so critical to getting things done in business, even setting aside engineering.
Yeah if anything millennial's were _taught_ to be less reckless. They didn't just come out of the womb that way :/.
Does the MKV container work without a video track? Is there any player that can handle "using" MKV for audio files?
Lots of APIs are used to track users, but for example the Canvas API. Firefox also enables quite a few telemetry options by default.
What they're doing is quite medieval. They're encircling cities, cutting them off, then shelling them into oblivion, cutting off food and resources. Literally a modern day Roman siege.
I'm no expert, but I don't think this is true. Couldn't tasks arrive into the queue at the same rate that they are processed, resulting in a fixed queue size at 100% utilization?

Put another way, in the second "No good" diagram showing one task being worked on with none in the queue, another task could arrive before the current one is finished.

I suspect the counterargument might be that the task arrival rate is not usually that predictable, but even so, I expect that the amount of variance predicts how true this theory is in practice.
This idea is really, really neat:

> " During development, you still write GraphQL queries and mutations, but at runtime, we replace GraphQL with JSON RPC."

> "At this point, it should be clear why we introduced the concept of the virtual Graph. If you have a GraphQL API, composed of multiple other APIs, but really only expose a generated REST/JSON RPC, it makes sense to call it "virtual" Graph, as the composed GraphQL Schema only really exists virtually."

One question I have -- how did you arrive at the design for the plan/IR representation of a query?

Was it a trial-and-error phase or it did it sort of just feel natural and work the first design around?
Who is the largest single voting bloc?

Edit: That struck a chord with millenials, ha! Tell your friends that bitching does not help, voting does. Boomers seem to understand this and so they have a disproportionate amount of influence. You want it to stop? VOTE.
Well at least you didn’t call it the fog of a “special military operation”
FireEye bought it for about $1B. The deal is great because they had to restructure and sell former FireEye business.

https://en.wikipedia.org/wiki/Mandiant
Sugar is at least a substance that one can choose not to eat. Lead poisoning and pollution aren’t choices.
I agree with your assessment, and I've seen most of that referenced in western media.
I am talking of a technical possibility of remote work for farmers.

I am not sure what you are talking about?
similarly, the second leading cause of death is cancer, and yet we willingly bask in cancer-causing substances all the time. future generations will probably look back and think, wtf?
Oh, I agree. Having a "smart friend" though is why we have Apple and not who-knows-what.

I was actually trying to make the point that he was exactly positioned because of his personality to find some level of greatness. That that greatness would end up being AAPL is, I claim, the "smart friend".

Jobs, for one, knew better to have smart friends, knew also how to push smart friends to do big things.

I am in no way trying to take Jobs down a notch.
I'm sort of asking if anyone remembers this as well, was posted on HN, I probably could find it myself but since I don't have the time right now I thought I'd make the comment!
The nukes were at the end of World War II. That they would have caused it to end is a myth.

Contrary to the US commanders' belief, the loss of civilian life was actually of little concern to Japan's military leadership.
Several Japanese cities had already been destroyed to the same extent as Hiroshima and Nagasaki, at a greater loss of life outside than in those two cities combined.
(That the bombs would continue to kill people for decades afterwards was not known at the time...)

What turned Japan to surrender was that simultaneously, the USSR was advancing rapidly in the (mostly undefended) north. USSR had taken Sakhalin and was very close to invading Hokkaido.
The Japanese did not want any part of Japan-proper to be under Soviet rule, as that would have been devastating to their religion and culture. Surrendering to the US was seen as the lesser evil.
IQ doesn’t measure intelligence so for all we know this just shows that IQ tests measure how little lead you’ve been exposed to
There are a lot of factors at play, climate is by far is the biggest. I moved from the east coast to the west coast of the United States and my home energy consumption was halved.

That being said, we still used 9600kWh last year which is more than double your consumption.
The dead outnumber the living at over 14:1

https://www.prb.org/articles/how-many-people-have-ever-lived...
A prolonged insurgency needs Ukrainians there to fight. That is something Russia can fix.

What ever solution you propose will have a cost in Ukrainian lives and that cost is largely determined with what Russia is willing to do. With their ruthlessness reducing their casualties massively.
It's relevant because your GP asked specifically whether I was talking about network design.
That’s only if you use CPI, not the far more accurate PCE inflation measure.
https://fred.stlouisfed.org/graph/?g=MIJn