skysight-inc/HackerNews huggingface dataset:
A year ago I needed a min-heap to build a priority queue at work.

So first I grabbed 'heap' from npm (272k weekly downloads) and set it to work. But a few days later I realized my code was executing slower than expected because it sometimes needed to clone the data structure, and the clone instantiation would break the heap invariant in the array internals. It turned out there's been an issue open about this since early 2017.

Then I went for the 'collections' package (35k weekly downloads) and brought in its heap implementation. That worked like a charm for about six months until a bug came in that made it seem like a completely different package was breaking. After almost a whole day of debugging, it turns out that 'collections' silently shims the global Array.from function (scream emoji) without mimicking its behavior when dealing with non-Array iterables presented by the other package.

So finally I wrote my own heap -- well, I cribbed from Eloquent JavaScript [0] but I did have to briefly remember a little bit about how they're supposed to work. So while I don't totally buy the "Never..." rule in the post title, thinking more carefully about writing versus importing a dependency would have saved me a great deal of headache in this case.

[0] https://eloquentjavascript.net/1st_edition/appendix2.html
Apple fights couple over pear logo
If you just took a standard antenna that approximately speaking broadcast evenly in every direction, you couldn't (or at least you would have to bother triangulating the signal). If you did that though you wouldn't be able to offer high speed internet because you would be incredibly bandwidth constrained.

Instead, what these satellites are doing is using something called a phased array antenna, that let's them narrowly select what area they are broadcasting to and receiving from at any point in time with some fancy electronics controlling an array of many little antennas that constructively/destructively interfere. As a result, they have to know where the base stations are reasonably precisely.

I'm not actually sure how they discover where base stations are, my guess would be GPS on the base stations and omni-directional signalling to find them, in which case they know to within meters where a base station is. If that guess is wrong, you might be able to be a small amount over a border and have SpaceX not know it, but not substantially.
>>A language with good orthogonality is smaller, more consistent, and is easier to learn due to there being few exceptions from the overall set of rules (wikipedia btw)

table = (SELECT column | scalar expression
FROM graph | table
WHERE ..GROUP BY ... HAVING...
ORDER BY...)

So in SQL, each scope is a table and that is the main primitive.

More metrics would be needed to criticize SQL orthogonality, instead of providing only one example of subqueries as scalar expressions, when they more generally produce tables.

Actually, SQL use the same query syntax for scalars and for tables and that could be seen as good orthogonality.
A more informative link [1], also on sec.gov, explaining the nature of the operation, says:

PALO ALTO, Calif., August 11, 2020 – Tesla, Inc. (“Tesla”) announced today that the Board of Directors has approved and declared a five-for-one split of Tesla’s common stock in the form of a stock dividend to make stock ownership more accessible to employees and investors. Each stockholder of record on August 21, 2020 will receive a dividend of four additional shares of common stock for each then-held share, to be distributed after close of trading on August 28, 2020. Trading will begin on a stock split-adjusted basis on August 31, 2020.

[1]: https://www.sec.gov/Archives/edgar/data/1318605/000156459020...
I don't agree. I think the whole press release comes off quite dishonest and manipulative.

I'm not quite sure who the intended audience of the release is. Releasing a statement announcing the layoff of many employees while trying to position the company as "a technical powerhouse of the internet activist movement" just screams insincerity.
I think people in China would be able to use Starlink without the great firewall being in the way. Just having access not be routed through ground based, hardwired facilities will go a long way toward preventing this type of thing.

There's no reason to ban TikTok or other apps if people in China have unrestricted access to US companies.
Fake security advisory used in clever cPanel phishing attack
I honestly don't know. I owned it briefly a while ago and got scared off, only to buy back in recently... and watch it double. Right now Tesla is priced as if it was the most successful auto company in the world. I'm a little skeptical they are going to get much bigger than VW is so it's tough to see them doubling again, but maybe? I think after the split plays out, I'll likely trim my position back a bit.

I will say Tesla seems to have a pretty large competitive advantage (and perception advantage) in the market right now. It also seems like they are paying quite a bit less for batteries at the moment than anyone else.

Most Tesla competitors are announcing future vehicles with pricing and range competitive with Tesla's current vehicles, which suggests to me those same competitors are about 18-36 months behind Tesla still.

It seems clear to me anyhow that in next 20 years most new cars will be electric. How big a chunk of the market can Tesla carve out before the rest of the competition finally catches up?

Definitely my most speculative non-options stock.
For reference, here's a short amusing thread about the original Tesla IPO (even replied by Musk himself): https://twitter.com/Mark_Goldberg_/status/129281818458888601...
Great! Looks really interesting, thanks for sharing
Shoot down the satellites?
People say this, but I always find Chrome just oddly unappealing to use. It just doesn't "feel" right. Which is the opposite of what I hear lots of people say, but it's always felt that way to me nonetheless.
Before, it used to be user32.dll/gdi32.dll calling directly while also having tons of logic inside.

Nowadays, it's split up as it should always have been, with the path being user32.dll -> win32u.dll -> win32k.sys.
From the Guardian link

“What’s happened is that the very talented lobbyists at OneWeb have convinced the government that we can completely redesign some of the satellites to piggyback a navigation payload on it. It’s bolting an unproven technology on to a mega-constellation that’s designed to do something else."
Wouldn't make more sense to make contracts that control 1 share so that sparseness is minimized?
That would be a killer trip if it includes the belt. I’d pay for that!

But Cyclers won’t save much fuel. Starships (or their descendants) still have to accelerate and decelerate the same, and still need almost as much shielding (a solar flare during descent once you’ve left the cycler is still deadly).
Most of the starship mass isn’t radiation shielding, it’s reentry shielding, tankage, engines, etc.

But once we get to the Cycler stage I think fuel costs will be low on our lists of concerns anyways.
Because half the government thinks that the government shouldn't be doing things other than security theater?
I know.

It is also clear that this is a hacky workaround that is not guaranteed to continue working.
https://brianjayjones.com/2020/08/11/sixty-years-of-green-eg...

For the those who don’t want to read a twitter thread but want a posting by the original author.
Why is it so hard to want to serve others?

This is an old person who would otherwise fall victim to a scammer, and all it takes a little bit of someones time every now and then. Suggesting we charge them $100 every time is ridiculous.
Yes, I agree. No point on linking to the download page, most people use their package manager to update their Go installation.
Does it take into account flavors? Yoghurt packages and Oreos come to mind. Lots of different flavors and the packaging is subtly different
Note that there is still plenty of work to be done in LLVM, Rust, and the ecosystem.

For example, function pointers accessed in global variables have the incorrect relocation applied. This notably affects the ability to use futures executors.

However, a lot of things do work, and we are always looking for more people to contribute!

Check out https://book.avr-rust.com/ for more.
Ongoing discussion: https://news.ycombinator.com/item?id=24122430
I was referring to whiners in the primaries. There are many factors for why trunmp won in 2016 and changing any one of them could have changed the outcome. One of those factors was Sanders voters who stayed home or voted for third-party candidates.
Interestingly, I don't quite subscribe to that view. I think there are businesses (like Retool or Quickbase) that are very good at catering to power users.

But I know what you mean. In the Geeks, Mops, and Sociopaths text (which I don't necessarily fully subscribe to except for the naming conventions - which are useful), these people are the Mops. They aren't people who are actually concerned about security (Vanta is a successful product for those people) or privacy. They are the Mops of the Sec/Priv group.

They can't give you anything and you can't give them anything. So there's little point engaging with them. If you're interested, I have a friend working on something he calls overlay networks, to allow the Geeks to communicate with other Geeks while allowing Mops to provide the cultural mass.

I've met other people who were part of Firefox's big grassroots campaign that forever changed the web and won all of us the new standards-compliant web that Chrome has thrived in and a lot of them have remained Geeks. And I suppose almost all of them were Power Users. So I don't quite disagree with you, I just think the group is refinable and you definitely want the Geek Power User on your team - they become the fabled first adopter.
Ok, we'll change the URL to that from https://bevyengine.org/. Thanks!
And let's not ignore the fact that someone could just kidnap the pilots families and blackmail them into "hijacking" their own plane. An organisation with the money and motivation doesn't care about the TSA and their security theater.
It takes less than a minute of searching to find that the first argument Bednar presents is factually incorrect.

Bednar: "Local restaurants, for example, are forced to use Google’s partner ChowNow in order to have convenient “Order Pickup” or “Order Delivery” buttons in search results for their own name, which charges an added hefty fee to the restaurant for each order, hurting their already thin margins."

ChowNow is all about "unlimited, commission-free orders":

https://get.chownow.com/pricing
How did we get the 13th amendment if not through the democratic process described in the constitution?

There’s some semantic argument here about whether there’s a causal relationship between democracy and legislation, but that’s missing the point.

Slavery in the U.S. was a democratic issue since its inception. Although Jefferson’s victory over the Federalists largely reframed the concerns of the voting populace away from slavery for most of the early 19th century, abolitionism eventually become an insurmountable movement. This movement had so much public support for and against it, that it grew into a civil war. I’m not sure how you can justify that it wasn’t democratic.
Time to break out the 56K modems!
That website is updated separately, if I recall correctly.
It will probably be updated later today.
If I'm understanding correctly, currently "RUM Errors" is not "Error Tracking", and "RUM Errors" only records an error if that RUM session is actually profiled/recorded?

Ie., you have a RUM sample rate less than 100%, so some errors aren't recorded in RUM Errors? Will that be the same situation for "Error Tracking"?

Curious to see what this pricing is.. eg., any client-side errors get auto-included as a RUM session? There's a good amount of bogus browser errors due to incomplete or oddly sandboxed javascript environments.
I've been using NetSurf for a long time now on my Thinkpad when I'm traveling. If I only need to check webmail and read articles NetSurf suffices perfectly, without draining as much battery power as a regular browser.
I'm pretty sure kibwen implies this restructuring is to cater to casual users. By axing their division focused on perfs, i.e. one of few divisions that actually impacts casual users.
If I wanted to learn more about rigorous, non-elementary logic, do you have a recommended resource? I've taken a course in intro level probability theory which covered it generally and another course that built on it lightly but nothing rigorous and I am wooed by how concise things become in a logical form.
If curious see also

2018 https://news.ycombinator.com/item?id=18692837

2015 https://news.ycombinator.com/item?id=10417807

2010 https://news.ycombinator.com/item?id=1913332
> DNS level adblocking is fantastic, especially since it can be done network wide so easily and used as an extra layer of ad filtering.

It's great, but DNS over HTTPS will end the party soon enough (if I was a smart TV manufacturer, I would be prioritizing adding dns over https to the device firmware to subvert network blocks).
Buy gold ;)

I wonder why TSLA is compared to dot-com stocks. Tesla produce real, tangible things, with sale and resale value; same applies to their factories. They are in the "real sector", while dot-coms were (and are) in the "virtual" services sector propped by ad revenue.

TSLA can be a bubble, but it must be a different kind of it.
> MSI Installers

Why was that important? I was under the impression that exe and msi installer had no real difference between them. Obviously I am incorrect but I am wondering why.
The same NY AG who ran for office on a platform of investigating the NRA for nakedly political reasons (ie. because of their political influence and stance on gun rights).

Do you really give that investigation credence?
Most of the people I find writing their on libraries are also the people that others avoid when they ask for help.

The support aspect of internal libraries, especially in the age of Stack Overflow, is widely overlooked by the very people who Must Be Stopped.
Quite clearly we are discussing your opinion and I've never claimed you're demanding we act according to your wishes. You are the one putting words in people's mouths.
Except more expensive...
I left that sentence as it currently is despite the ambiguity.

Btw, I have a Nigerian acquaintance who likes to discuss a business proposal with you. How do we contact you?
In my experience this is quite typical in the python community, I think it's a consequence of the batteries-included philosophy. Many people are very averse to using primitive data structures and operations to solve their problems, so working with a python codebase is like gluing libraries together
100 shares is considered a "lot" and is a standard size. True, an investor can own fewer than 100 shares, but every so often a company will make an "odd lot offer" forcing investors to either sell their shares or buy enough to hold at least 100.

Another issue is that out of the money contracts for a single share would frequently trade for pennies, which would greatly increase transaction costs and make the market less efficient. So you would have to standardize on some amount that is large enough to avoid such inefficiency, and 100 is a convenient number for mental arithmetic and reduces confusion. In theory you could have standardized on a larger number like 1000, which is equally convenient, but that would have priced out retail investors who may not own 1000 shares of a company whose share price is in the double or triple digits (which is common) and reduced the liquidity of the options market (which is already not very liquid).
Anybody can list a bunch of names to be broken up in a few minutes. I gave you plenty of examples to work with. Nothing to do with lawyers.

Google search is approx. 60% of Google's revenue according to the latest 10-K. And may be an even bigger portion of the net income. If you keep that intact you won't kill Google's golden goose nor will you solve many unfairness issues as relating to search.

AdSense et al. is 13%.
YouTube is 10%. These 3 are most of revenue-generating Google.

It is important what happens to their many other products. Most of which are not bringing in big money (in an obvious way) but are widely used.

Does everything not-search become one company consisting of Google leftovers? (this may be what you're proposing, but it's not clear)

The goal of any such action is to benefit the consumer in some way. When you actually do start defining how things would be broken up it becomes more obvious how consumers could suffer. And it becomes more obvious how you're not de-monopolizing anything.

> The discussion was about the case for why something needed to be done, not specifically what. Yet a lack-of-sufficiently-detailed-solution let's you shut it down

This may be what the original linked article talks about. I started this thread talking about how instead and it never discussed the why. It's merely a thought exercise aimed at illuminating what I consider a lack of workable solutions. Not telling anybody they cannot be interested in yet-undefined solutions.
My experience was getting on a call with them where they explained how their new pricing strategy was going to be so much cheaper and great for us and having them present a nice break down showing exactly how. Eventually we asked "say what's this bit at the end here about a marginal cost per metric+tag permutation?" And it was only after this prompting did we find out that given our current and projected usage profile, we were going to end up spending like 20x the quoted price.
Announcement E-Mail: https://groups.google.com/forum/#!topic/golang-announce/Z-cY....

Official blog post: https://blog.golang.org/go1.15.

Some fixes already planned for Go 1.15.1: https://github.com/golang/go/milestone/162.
Maybe https://briarproject.org/
FF was really crashy/hangy around when Chrome came out—the main appeal of Chrome was that it'd do the same thing but confine the damage to one tab. Also IIRC its dev tools were on par with or better than Firebug (remember that?) early on, and performed way better. FF has gotten a lot better since then so the difference is much less stark. It was worth a little UI weirdness at the time to not have your whole session die when one tab misbehaved.
"Supporting all the features required" and being able to rely on them on most platforms and in most readers are a very different thing.

HTML and CSS theoretically have these properties, but if you asked someone in the publishing industry to layout a book with them they would either quit on the spot or hate you until their dying breath. That or they're a masochist and want to see if they could actually do it because it is theoretically possible.
Big discussion a few days ago: https://news.ycombinator.com/item?id=24094143
AWS Hero, Microsoft MVP.. something about those sorts of recognition seem to attract certain types of people - types seeking the limelight - often not particularly good, ethical, moral, or pleasant types.
About $6 trillion was "created out of thin air" in the S&P 500 since mid March. But don't confuse value with output or wealth. The market is forward looking and valuations are pretty unstable long term.
The “trade off” not “curse” imho.

But what’s the point he is making. Is there a link to that lecture?
I agree with everything you've written here, particularly your process of tool evaluation and refinement. My only push back is with respect to the way you characterized the merit of "overhyped" tools (in your previous comment) that didn't line up with the productivity profile of your personal experience. I agree that Django/Rails/Postgres/MySQL/NodeJS/Redis are all reliable tools, but I am not a fan of the philosophy that labels other people's work as unnecessary or harmful simply for existing outside the pantheon of worthy tooling.
I guess I just looked at fewer shady websites than most. Never really had an issue with Firefox crashing on me.
A Tour Through Mathematical Logic. You don't have to do any proofs. If you learn Propositional Logic and First Order Logic you'll already have most of the tools to invent the rest.
The other option is giving up on the modern web and sticking to small easily implemented standards.
File handling in Unix: tips, traps and outright badness
What does this mean for someone who is quite familiar with AVR but new to Rust? How much of what I can normally achieve in my AVR projects can now be done under Rust?
I'm not sure how this demonstrates your point. The rich get richer.

US households have changed dramatically since 1967. There's participation of women in the workforce (up about 20% https://www.bls.gov/opub/mlr/2002/05/art2full.pdf), housing prices have gone up about (~800% https://dqydj.com/historical-home-prices/) - home ownership being the hallmark of the middle class, and the wages of the middle class have increased about 300% although that's 1000% more than the average personal income. Once you obtain a home, you can springboard (in a generation or 5) into the wealthy class. Even at that rate, you're the poor elite making a measly $1m a year without working.

The parasitic elite (in the US) have CRUSHED the working class by ensuring that entering the middle class is as difficult as possible, while the middle class have largely used property to boost themselves into their own generational wealth. The inflation has been due to US debt, which comes from Military spending, QE, etc. The public market has been dominated by large brands who have a slew of predatory practices (looking at you JPM Chase, Apple, Bank of America, etc). NIMBY policies (by the newly elevated middle class, clutching their pearls) and work centralization in dense urban settings, has hurt the whole situation...but there's hope with Covid, ironically. That's what I believe based on my own observation (and experience).
I agree. Outliners and spaced repetition software are godsends.
I don't think that's the whole story. Chrome was more user friendly from the beginning. It took FF years to drop the rigid, Windows XP style UI and become more user friendly. At the same time, FF doesn't offer the same level of syncing your data across all your devices like Chrome does. And when it comes to system resources, say what you want about Chrome's tab memory management, but FF on macOS is not a pleasant experience either (extensive CPU usage and heating problems).

I have tried to switch back to FF (and even to Edge), but every time I realize Chrome - despite all its problems - is a much smoother experience. YMMV.
> They even have graphs with historical wait times so you can time it for a low point.

I no longer trust those measurements.

Needing to visit the DMV for whatever paperwork (maybe in-person license renewal), I checked the DMV website. One of the local offices had a very short wait time compared to all of the others (maybe 5 minutes versus 1hr+). I went to the office with the short wait time displayed on the website only to find out they had a ridiculously long line outside the office to get the ticket, which starts the timer. They were gaming the per-customer timer by metering the rate at which customers outside the building could enter the building to get the ticket.

I thought it was both terrible and creative at the same time. Decent example of Goodhart's Law[1].

[1] https://en.wikipedia.org/wiki/Goodhart%27s_law
It does sound like you’re agreeing with the premise of the article.

Pagination is hard but it’s even harder to find a library that meets all your requirements and doesn’t have bugs.
That is true! You're right that the perspective can be different.

You could write <T: Into<Option<i32>> if you wanted, and your callers wont change.

Frankly, using options as parameters is just not generally good design, so this issue doesn't really come up very often, in my experience. There are exceptions, but it's exceedingly rare.
You will be able to fly after you undergo a "secondary screening"