skysight-inc/HackerNews huggingface dataset:
My fav optimization story:

A few years back, I was doing some geographic calculations. Basically building a box of lat/lngs and getting all the points within that box.

It was slow. Weirdly slow. I made sure the lat and lng of the records were in the index, but it was still slow.

More testing revealed that the way I was passing the lat/lng into the query was causing those values to be converted to strings, which were converted back to numbers, but caused the index to not be used. This meant the database had to do a lot more work.

Converting the parameters to numbers made sure the index could be used, which lead to a nice speed up.

Edit: I thought I wrote this up, but I didn't. But it turns out there was some interesting sorting shenanigans that I did: https://www.mooreds.com/wordpress/archives/547

Sometimes it's worth peering down through those layers of abstraction!
This is a different site with more functionality.
Still, folks in the comments section generally agreed: they wouldn't write anything that silly.

Well, if you've never accidentally crashed a system running an unexpectedly (and unnecessarily) "non-performant" piece of code then you're either an absolute genius of a coder, or relatively inexperienced.
I'm a large tech company employee, and I use "Not my job" sometimes because it means that I believe that the issue could be handled more effectively by someone else, or that I should not be the one to address the issue for political reasons. So it's less of a "not my job" and leave it at that, but more like "not my job, but Jane over on that other team is closer to that code and has a better understanding of what's going on."
Authorship is a constant battle. You don't put the supplier no, but the technician that ran half of the experiments and also improved them? Of course they should be.
Think bigger, I want a SoC "Server-on-a-chip" design. Integrate everything into the silicon for processing, network and basic storage I/O. I want to drop a big block on a simple 4 layer PCB and route memory, ethernet physical pins, USB, storage interface, and a power bus and that's it. The only other parts on the board are some passives. Then I want to duplicate that 64x or so on a rack sized PCB, put some cooling on the chips and board and have a super dense, super powerful cluster of ARM processors. Racks and racks and racks of these for as far as the eye can see...
Nice! Glad to know development is continuing. Thanks!
> cbonsai is a bunch of if statements homemade algorithm
Are there complexity guarantees for std::istream::operator>>?
Check out the, serious, Pleistocene Park project: https://pleistocenepark.ru/

The basic argument runs like this: reintroduce still living species (and then megafauna), megafauna turn forests into grasslands (see what modern elephants do to trees), grasslands keep snow on the ground longer and contribute to a cooler climate.
Strange. I've written some simple parsers over the course of my life. Latest one was to parse some subset of SQL for home grown in memory database.

I do not remember ever using anything even remotely resembling scanf or related stuff. It was always read next char from some abstracted stream and execute state machine on it.
Isn't the ability to sell targeted advertisements pretty much the foundation of their business plan? The business plan they showed investors and stockholders? Maybe they'll stop indexing my behaviour against my name or social security number, but to stop tracking me or using that information is the kind of behaviour that leads to class action suits by shareholders. I suspect that this lede will only be true if one allows some pretty creative definitions of "stop", "selling", and above all "specific". The only purpose that adjective has in this sentence appears to be to grant that sort of flexibility. "Oh, no, we're not tracking that specific human being. We're only tracking the use of the computer he's sitting in front of."
> The idea is that if lots of people add suspicious words to their messages, the agencies will get so busy with spurious input that they will have to give up reading it all.

Wow - so quaint!
I assume Not For Proft.
That's actually a very simple one. Just run a regex on "P != NP" to remove the "!" and you're good to go.
How to Reach People Who Are Wrong
While true it's not too often that filibusterers actually happen. The threat of doing it is usually enough to kill a vote.
Capitol Assault
I would have said the same a couple years ago, but nowadays I can get an external 5TB solid state drive for a few hundred $$ that easily fits in my laptop case. As long as my OS runs from the internal disk, I don't really need much more. Everything in the cloud anyway. :)
Artificial Intelligence and Advancement of Homes
How can one watch that documentary? Or rather, where did you?
From what I've read on FLoC (not much so I may be wrong), wouldn't having anonymized ad-targeting be a good outcome? Google and websites still get their ad revenue, and we still get ad-supported products. I guess there's always the possibility of a badly-anonymized algorithm leaking data, but other than that it still seems like a step up from that invasion of privacy being a given, no? If I'm misinterpreting the jist of FLoC, let me know.
Comment like this makes me wonder if you ever worked in enterprise before. Plenty of services/products have been cancelled/mothballed on large enterprise contracts once the services/products are no longer profitable, the services/products generally get sunsetted.
I think your code would be pretty much the same, sscanf, strlen and all. The main differences would be the standard library's implementations of strlen and whatever function you use to read the file into a string in the first place.
New nation-state cyberattacks (Microsoft blog post)
Yes, that's happening, promotion process at Google is doing it. Take a look at Pubsub, IOT, and Datalab
Link to a study about the subject: https://quanticfoundry.com/2017/01/19/female-gamers-by-genre...
This is fantastic. Thank you dang.
A raw currency conversion isn't meaningful. It doesn't account for cost of living.
15.78 gflops -> late-2012 MBP 13"
766.96 gflops -> 2017 5K iMac
I'm not sure that would work as simply as that. Imagine buying a volatile stock, say, TSLA at $100. This then skyrockets to $1000. You're now taxed on your wealth at that price point.
Then it immediately crashes down to $120.
All this while, you're just holding the stock but paid taxes on a non existent value.
If you look at the leaps in CPU perf the iPhone/iPad has had year over year, why wouldn’t we expect this to continue with these chips which are similar in many important ways?

I’d also expect the first release was relatively conservative and restrained to ensure a low risk debut. I’m optimistic for the next few generations.
People are probably fairly opinionated about this.

I'm currently using all 3 (for different companies), and they are all fairly the same at this point, but some shine on particular things (e.g. Azure generally has been easier to do user management in than AWS or GCP). They all have startup programs with credits which you should take advantage of.

Do you think you will hire someone at some point to take over managing this stuff? If so, you might want to look at the candidate pool you would hire out of and see if you can equally easily find someone across these.

Either way, it would be good to create a list of the top problems you are solving and test out trying to solve those in all 3. It will take a little extra time but you'll feel better about your choice from having tried it first in each place.
It seems like they're claiming to stop one particular kind of tracking, not targeting advertising all together. More than likely as a step to avoid regulation or to appear to be practicing good faith.

Or web browsing patterns turned out to be low-signal for ad delivery.
I skipped to that part and almost closed the stream thinking I had clicked the wrong link, I was kinda annoyed someone passing of CG for the real stream, then I realised it was real
"Something isn't quite right with Florida."

You can say that again.
Ah, never mind then. Probably should work on that.

Entertainingly enough, all of those things you described would've matched up pretty spectacularly with the interactions of that group I was describing.

We really were all just a bunch of five year olds at heart :P
The video cuts away right when the second engine shuts down and the fire starts. I really want to know the cause of the fire. Maybe the fuel side preburner valve didn’t close and fuel was leaking all the way through the engine. However, the fire looked too high up on the airframe to be from a leaky engine valve.

Edit: after another look it seems like the fire is from the engine and the wind is blowing it up the side of the airframe.
> Won't this disproportionately tax the poor? - Firstly, the existing tax code already does.

I used to think this because it's often said, but learned it's not true. This sums it up:

The top 50 percent of all taxpayers paid 97 percent of all individual income taxes, while the bottom 50 percent paid the remaining 3 percent.

The top 1 percent paid a greater share of individual income taxes (38.5 percent) than the bottom 90 percent combined (29.9 percent).

The top 1 percent of taxpayers paid a 26.8 percent average individual income tax rate, which is more than six times higher than taxpayers in the bottom 50 percent (4.0 percent).

https://taxfoundation.org/summary-of-the-latest-federal-inco...
I used to work on a tax product.

I 100% agree with the premise: to unseat TT, you need a auto-assembler of tax, like other countries have. I’m not sure why the author didn’t delve into it, but essentially if you have payroll integrated, you can enable this for a LOT of Americans. They work 1 job and take standard deduction. Don’t go after the complex 1% tax filers, do 1 job and do it well.

Imagine you get an email. “Hey it’s tax time. Looks like you’re due a refund of $1000. Click here to confirm and file.” That would be really powerful. For many Americans the tax refund is the biggest paycheck of the year. Anything that makes that easier is going to do well.
> even if you were to yeet an enormous, optically perfect, 10m telescope

10m is a tiny aperture: https://en.m.wikipedia.org/wiki/Synthetic-aperture_radar
Seems like they achieve double digit performance gains in each A series chip the last few generations.

I’m excited for a 16” MacBook Pro but hoping Microsoft brings a production version of Windows 10 arm to the market. I need it for various aspects of the work I do. I can keep a spare windows box around but it’d be great to have one system.
Mixture of Volumetric Primitives for Efficient Neural Rendering
Launching this feature (show everyone your online presence) and making it an opt-out feature really demonstrates how tone deaf social media companies have become IMHO.

I really don't get why this was even released?? What benefit does reddit get from having it??
You always have to obtain the communication you want to decrypt; that's not the interesting part of the problem.

The interesting part is using a weakness in one part to help decrypt a different part.
In fact, for the last several weeks a whole bunch of misogynistic Pedro Domingos fanboys (full of resentment and dishonesty, like JPKab) harassed her so much on Twitter that she deleted her account - but remember, this is a Good Cancelling because she criticized a emeritus crank.
Unless the M2 is a higher core version with 16-32 cores? M1 is already built on a 5nm process and you're right about the upgrades being incremental and small. But apple can bump up the core count significantly to make the m1x/m2 a big leap.
We made this choice at Rdio back in like 2012. Our mobile apps were written almost entirely in C#, shipping on iOS, Android, and even Windows Phone 7/8. About 70% of the code was identical on all platforms, even the super-hairy audio bits. Contrary to the prevailing notions at the time, our app had native levels of quality and performance. We could roll out a new feature an all platforms in only a little more time that it would have taken to do it for one.

That agility didn't come for free, however - we gained speed, but also traded routine bugs for exotic ones. In addition to simple null-pointer errors and the like, we got to spend two weeks digging into the Mono runtime to find a locking bug that drained users' batteries. We had our own sqlite wrapper because the built-in ones on Android and iOS had too many incompatibilities. We had our own red-black tree, for some godawful reason. We had a standing weekly call with our Xamarin reps to discuss toolchain bugs.

Ultimately, the pain ended up outweighing the savings of sharing code. At the time Rdio went bankrupt, we had substantially rewritten the apps in Java and Obj-C. RIP.
I feel like the M1 chips kind of broke the timeline. It's like the past ~10 years of Great Intel CPU Stagnation never happened, and we finally now get the mobile computers we thought 10 years ago that we would have in 10 years.

I think the M1X - or whatever they call the chip line with a much larger thermal envelope - will blow our socks off.
The B-2 pictured says "Spirit of Pennsylvania" on its gear flap. Are all of fleet named in similar spirit (pun)?

Would seem kind of reminiscent of WWII battleships named after states of each is named "Spirit of a State".
This has been speculated since logjam was discovered.
Auth0 is such a joy to work with due to their simple processes and amazing documentation! I hope auth0 continues to do well.
> Presumably hundreds of dollars. Well above what most companies would think of as theft.

This spin is so strange. Dustin is a longtime customer of Apple. Apple has a lot of information on him, and has done a lot of business with him. The idea that now he's suddenly going to become a criminal and steal money from a trade-in credit is absurd. Then what, high-tail it to Mexico and live a life of luxury with those hundreds of dollars?

> Whatever happened, Dustin must have known he hadn’t sent in the trade-in, but he didn’t mention that when

You mean in the tweet? Which has a limit of 280 characters? Because he did mention it in the article that he wrote after the tweet. It's silly to criticize a tweet for having incomplete information. Of course tweets have incomplete information, that's inevitable. Are you going to die on the hill of the tweet? The article expanded on the tweet.

zepto, I have to wonder what you think Dustin's goal is here? Do you think he's "out to get" Apple or something? Because buying Apple's latest MacBook Pro is a really strange way to bring down the company. Why are you so committed to tearing down one person who experienced a problem that nobody should experience? We're all interested in exactly how the problem occurred, but I don't know, I just find it so strange when people feel they need to be Apple's self-appointed unpaid internet defender. Apple, as one of the world's most powerful corporations, can speak for itself if it so chooses, as it just did today.

You know, this never would have become a public issue if Dustin could have just spoken to someone on the phone at Apple and gotten his problem resolved right then over the phone. Shouldn't that be the bare minimum of customer service? Dustin certainly tried to do that. He only went public after multiple failures to resolve the problem first. Nothing you can say, and no mistakes that Dustin made, can change the fact that there was a massive failure of Apple customer service here.
Since if true it could kill a baby, yes?

It's far more serious than someone putting glass or needles in food.
99% is not portable enough. Of 1B targets, 99% leaves 10 million targets unsupported. If each person has 100 targets (e.g. 30+ in your car), that means it doesn't work on something at least half of us depend on; and many others are only Tier 3. This is why I say "let's be honest, at least with ourselves". Pipewire that depends on Rust would be DOA. But Modern C++ works everywhere, and provides 90% of the safety, plus stuff Rust doesn't, yet, and other stuff Rust never will; and better performance than C.
does anyone know if any american carrier is doing similarly? I am quitting Alaska Air because they leaned in to the 737 Max, I feel like I'll take any other carrier that at least gives me a fighting chance of not flying a MAX on a route that I care about?
Curious, how does it compare to Ink?

https://www.inklestudios.com/ink/

https://news.ycombinator.com/item?id=26147329
I've been trying to buy markwatson.com for years!!!
Last time it was posted, someone had found it behaves weirdly with an infinity symbol shaped iceberg.

I tried it with this one, and yes, that issue is still there, though it seems to be better. Now most of them split into two icebergs, but some just jump away..

Try it..
Out of curiosity, what version of Ionic were you using?

Ionic 4+ is a complete rewrite from the ground up to use web components.

I use it in a non-traditional way, I do vanilla js + lit-html + web components and it works great.

Performance is smooth, mobile first approach makes responsive apps straightforward.

I don't do any of the native things or command line app creation or any of that.

I've been generally pleased with it.
I grew up in France, our bureaucracy is pretty intense and old school. But they send you a nice little note with your W2 and how much you own them. If they missed anything you can amend their draft. Usually it take 15min to complete the whole yearly process. Even with some midly complicated situation like renting and being landlord, living between two countries, cryptos.
I hope this is the case, however a lower barrier to entry also means those who could afford to clear the old barriers can come into this new space, leveraging the new technology in concert with their pots of money and make a bigger splash than any new player can afford. It wouldn't be the first time that a small creator has had their idea ripped off by someone with money, and be left in their shadow.

That said, it doesn't mean that those new creators couldn't still be "successful" in such a situation. Just that someone else with more money is still making more money than them.
You see it if you have showdead turned on, littering the bottoms of threads. There's not very much of it though; I can't imagine it's very effective. Brand new accounts that post links in their first comments often get automatically shadow-banned, which is why the spam isn't very visible.
Depends on what the extension is trying to do with your app. If it's scanning your html then no, it won't work.
In the standard there's things like "exactly N operations", but not seeing stuff for `istream`. There's like... an explanation of how things should work and I imagine you can derive complexity from it, but I think `istream` is a bit special since you're talking about this wrapper for (potentially) an arbitrary input source.

[0]: https://eel.is/c++draft/alg.move#15

[1]: https://eel.is/c++draft/input.streams#istream.extractors-7
The internet is more fun and more weird than it ever has been. There are entire genres of fun and weird spawned from the modern internet that could never have been imagined on the old web. The modern web gives us unfiction and multidimensional fandoms and niche fandom and remix fandoms and the A E S T H E T I C. People are making their own music, their own art, their own movies, sharing their passions, opening windows to their universe. Writing code and running it in compilers that run in the browser. Rediscovering forms of cultural expression the old web would never have preserved because it wasn't interesting to MIT computer lab nerds and angsty teen boys.

The web is about content and communication, and has matured from the gilded and hand-painted age of scribery (everyone writing their own HTML) to the Gutenberg press and centralized publishing (SAAS and social media.) Presentation matters but it's not everything. I'd rather have a good steak on a boring paper plate than junk food in a wacky container.

... also this article is just a submarine ad for what I assume is the author's app. It doesn't appear to be online anymore but I would assume that it offers a standard set of templates and XSS protection, in other words, everything the author laments as having homogenized the web.
Are you worried about tracking in the Chromium code? If so please see https://github.com/brave/brave-browser/wiki/Deviations-from-....

Otherwise if you are worried about engine monoculture, please see https://news.ycombinator.com/item?id=26337402.

If neither of these is the issue, what is?
It also creates a problem where you have countries who are close together people crossing the border to shop where taxes are cheaper and then the country where they live not getting those tax dollars (example Canada USA)
I went through it with some background abstract algebra and functional programming
The extra dramatics in this article turn me off.

Its essentially saying I'm busy and negligent. Now I'm mad big company didn't come to my rescue.

> scaling our business from 3 to 10 and then 100 people, raising money, editing our film, and planning our release. Oh, and a virus shut down the world, I moved two times, and our business went completely digital.

> and amid 18 hour workdays,

The quantified communication with company provides no details to what was said.

Maybe op was right, maybe they weren't but this sounds like whining without any evidence.
> It would be nice if it were more common for standard library functions to include algorithmic complexity as part of the standard documentation.

Isn’t the point of standard library functions to define the contract and not implementation constraints? In other words, if algorithmic complexity is a significant concern, perhaps a standard library function is not a suitable choice.
>instead of being jealous at apple

Believe me, I'm not jealous. It's baffling to me that anyone would buy Apple's consumer-hostile disposable crap.
This is a misunderstanding of what these cohorts are. If you read the [FLEDGE readme](https://github.com/WICG/turtledove/blob/master/FLEDGE.md) you can see that there are multiple types of owners of cohorts that fall into 3 categories:

1. Advertisers - who would add you to a cohort they own, so say "Nike - womens-running-shoes"

2. Publishers - who'd want these cohorts to better allow for advertisers to advertiser on their site, so "NYTimes - business-section-reader"

3. Third party ad-tech companies looking to create audiences for advertisers who work with them, so "Example Agency - mens-formal-wear". They'd partner with publishers so that when you go to somewhere like GQ or Man of Many and read an article on tuxedos then you'd get added to the cohort.

So you are right, you'd never see a prompt to add in your interests, but this isn't because Google doesn't want to associate with specific brands, it's that Google isn't necessarily an owner of a cohort (though they totally could create their own under any 3 of those categories).
There’s a reasonable chance you typed this on a pocket computer/communicator with an armful of MRNA vaccine in an electric car.
I don’t disagree with anyone who says “wow, this is not a good direction for the country”.

No matter what side you’re on, it’s important that people have confidence in our electoral system. Without that the system falls apart pretty quickly.

What I’m arguing against are the politicians fanning the flames because it’s politically expedient. They see an opportunity to gain political points or grab more power.
No, or at least not in general, because you can overload it for your custom types with whatever terrible implementation you like.
Thanks for the feedback. I am planning to spend some time exploring GCP and Azure as you suggested, I agree that’s a good way to learn.

I guess what I’m most interested in hearing from others with experience beyond AWS is what they think of other providers, what they like, dislike, etc.

Using all three is interesting, I know you said they’re mostly the same but do you find there are any meaningful differences?