skysight-inc/HackerNews huggingface dataset:
I use arenas for HTTP request handlers. The JSON built or parsed is only going to be around for the lifetime of the request. It's much simpler and faster to use an arena than to do reference counting wrapped around malloc/free.

Here's an example where in a commit I swapped in an arena:

https://github.com/williamcotton/express-c/commit/4ae53f38e3...
I’m sure I remember an interview with him looking back at his time taking over from Welch where a bunch of people basically commiserated him on his appointment because they knew what a bunch of short term financial engineering he was walking into.
GraphQL isn’t magically faster. The equivalent endpoint in rest will be faster as you won’t need to translate the query to your backend persistence. GraphQLs benefits are not execution speed.
“This post is about Adidas, Gap, CAA, and his other corporate partners. It is about the moral obligation we have to draw a line.”
Having active-active storage infrastructure within 300km radius creates only 1ms latency. It might work.
taskpolicy seems to be the tool https://keith.github.io/xcode-man-pages/taskpolicy.8.html
From that book I vaguely remember that he negotiated a deal with his wife that he was proud to break while she maintained her part. It was something like he visits art installations with her if she plays golf with him.

He didn't seem to realize that he most likely killed his marriage with that attitude. He was winning while losing.
I have other things I judge companies for. I just assume I'm not allowed to do anything personal on a work laptop if they manage every aspect of it. I understand why they do it, however, the only thing I find unethical about it is how much companies have balked at explaining the depths to which they track internal employees.
To quote Andrei Alexandrescu, "Premature optimization is bad, but premature pessimization is also bad".
I miss Perl. I managed a startup that built in Perl and C++ simultaneously. The Perl MVP allowed us to get into customer premises right away and we fed that learning back into the C++ version (on which our acquisition was based). In retrospect we would not have succeeded without Perl.

I used it recently to generate reports from analytics and it felt good. If there are remote jobs calling for Perl, send them my way.
Parties adjust policies/messaging in response to polling, so balancing the tradeoffs ends up close to the cutoff? That doesn't really work for brexit as much though.
Go look at hobby sites for hobbies that are heavily weighted towards the elderly. OMG.

It's way better now, but for a long time I would go to woodworking sites (before it was trendy), and if you got much past GeoCities level sites it was almost a miracle.
I am aware of that, but in this case the query returns less than 5% of the total rows and I think the database should choose to ignore the index if a scan is faster.
Thrift (both fbthrift and apache thrift) has required fields
To be honest your message is literally "musk is wrong" while there is probably some better take to have either

Elon has definetely a different "style" of building compagnies, more technical, and it might just also be partizlly true in absolute terms
> We seriously considered a Wii U, but were totally put off by the Wii U controller, which seemed clunky, annoying, and expensive to replace in case it breaks.

You were right on all counts. It was a pretty terrible controller. Flimsy, heavy, way too big. And it was actually impossible to replace; they never offered replacement pads for sale, you had to buy a whole new console or find someone who fried their console and wanted to sell just a pad.
Can you provide a good example of someone doing this?

I saw the Wikimedia example, and it didn't appear to me that they were hiding anything. So I'd be curious to see an example of this being done well.

Edit: To be clear, I'm looking for examples like Wikimedia, where the donations are being used for multiple things.
If it got rid of ads completely, I'd sign up.
For me, I find its largest value for things like journalism. Being able to know it's the real reporter, and not a parody account. That's not a "brand",it's not "PR", nor is it an "influencer". The value is to me, the consumer.
The thrust is that Hoare's statement has been misapplied (I agree!) but even moreso: just because someone said it, and someone famous repeats it, does not mean it's true.

The statement is really a bit of a tautology: what is 'pre-mature' afterall? Well, it's any optimization that is not going to bear fruit for the user.

So the statement might as well be 'optimizations which do not improve the user experience do not improve the user experience'.

I see these sort of statements a lot. 'dont add too much salt', or 'dont drive too fast'. They dont really say much other than 'there is some max point which should not be exceeded'.

I guess my point is that it doesn't really guide us. Of course any 'pre-mature' optimization is not useful. The difficulty is knowing whether it's pre-mature, which can only gained through experience.

I think the reality is that optimizing code is not-fun. Adding features is fun. Writing tests is not-fun. If given the chance, we will find excuses to avoid the not-fun parts of software.
I prefer something that's been around for 20+ years without breaking changes to something newer that's already introduced breaking changes multiple times.
It doesn't. Sortition is more like random sampling of the overall population. The assumption is that those being sampled are already "qualified," since Athenian citizens only make up the top 10% of the population. And, anybody who gets picked usually has some kind of qualifying process after the lottery. Additionally, it is typically used for large bodies (like members of a legislature) rather than a single office (like a President.) This limits the damage any one single individual can make.

I don't think the ancient Greeks believe in "Long Term Planning" in the way we believe it today. For that, you would have to believe in the "future" and "progress".
Grifting pays big money and gains you attention.
Twitter to Lay Off 25% of Workforce
I have never, in 18 years of professional programming, heard "premature optimization..." used to mean that "you should never optimize your code!" Not saying it never happens, but I have never heard it once used that way.

I do occasionally hear it used to mean "don't spend the time to optimize until you have measured whether this is your bottleneck and it will actually matter", or "get it working first so that you know this is actually what you even want, otherwise you will end up optimizing things that get cut soon after". Both of which are valid.
Rich Hickey has a succinct quote that reveals the abuse that Hoare's "premature optimization" quote has undergone: the cheapest place to fix bugs is in design.

And if we're going to proceed by quotation, another one to consider is Linus Torvalds': Bad programmers worry about the code. Good programmers worry about data structures and their relationships.

IMHO, a big thing for junior programmers to unlearn is that one should begin by putting a sloppy version of the program in production, and incrementally improve it thereafter. A little bit of forethought and a bit of attention paid to big-O will do three things: (1) make incremental improvement easier (2) limit the amount of incremental improvement needed, and (3) avoid painting you into a corner wherein significant refactors are needed.

As it turns out, thinking ahead of time is not antithetical to shipping code. Quite the contrary.
Not only vulnerable - if you were going to siphon away money into your bank account, this is exactly how you'd set that up. This looks like it was designed to be abused.
You definitely have a category for whom being able to get a blue check mark was sort of a validation that their opinions matter too. Many of those will likely drop while brands, would be influencers, many journalists, politicians, mainstream celebrities will pay the basically trivial amount that they would now be able to more easily get.
You seem to be fine with the 30k Americans per year who die in car crashes.

That number is probably too high for robots to do though.

Humans are weird like that.
‘Fast Furniture’ Is Cheap. and Americans Are Throwing It in the Trash
Do they know that is your stance, and have you edited articles to reflect it?
Doesn't that depend on how payment happens? If it can be used to verify the paying party. It should be also a positive way to do things.
Our definition of "technological signatures" is an ant colony's pheromones. Because we don't have a solution to quantum gravity we cannot rule out the possibility that other civilizations can control space/time without emitting photons.
Link to the gag on page 14:

https://ia801005.us.archive.org/BookReader/BookReaderImages....

The full book is available on Internet Archive:

https://archive.org/details/06AsterixAndCleopatra_201804/pag...
That's fair. I think we had what became Comcast at the time. I believe it was called @Home.
What are some non-obvious or second order effects of this?
journalists, scientific experts, etc. they are going to be less well funded than a celeb, and the value of the checkmark in those circumstances is more for the consumer than the account.
"it takes away power from a grid that is then replaced by non-renewable energy."

This idea/delusion that energy that is used for mining should and could have been used for something else. It's just not the case.
Slight tangent, but you're OFTEN coding from a bus stop?! Why?
Why bother? If they don't want me to read it i won't read it.

There should be a way to mark this crap on the front page so I don't waste my time clicking on it...
You'd need some power for the actual powerline adapters. But if you have two outlets directly linked I would just remove the panel and pass an ethernet cable through the same pipe used for the power cord.
Python is fairly stable, node is prone to fast change.

That is, if python isn't using external dependencies.

If you are writing an app for decades long usage, node is probably a bad choice.

Perl, python, will be around... well, I dunno, decades more at least.

But perl? As someone else said, the code you write now, will work 30 years from now. That's its thing, its happy smile.

Imagine, just imagine writing code that doesn't vanish 2 months after you leave a place. Imagine code your great grandkids might tough.
I wasnt talking about "this one video" at all.

When I said "endless shitposting", I was referring to tons of actual tiktok videos of such behavior flooding the feed if you look up the relevant tags. I naturally got recommended so many of those videos, i had to spend quite a bit of time just teaching the algorithm that I dont want that garbage on my tiktok FYP.
Digitalocean is not a member of the bandwidth alliance
Only if the process to get the "Verified" status changes.

Like when you pay $xx to renew a lost passport, it doesn't mean anyone with $xx can get a passport from your embassy
Holy crap, I don't even have words for that.... just why? It's also quite toxic and she's going to be covered in it now.
Could such a AI be reversed, as in basically become a stable diffusion generation of music, with just keywords and a noise generator?
You don't know my friends. I do. When my friends say they are left and believe in socialized medicine and other leftist policy, I can comfortably decide they are left. Also note: no true Scotsman logical fallacy.

Did you come up with a source for your claim that 9 out of 10 PT members will say Lava Jato was a complete farse and that no one was guilty of corruption?
That's a valid objection. The question is whether preventing theft is a) a higher priority than let's say reducing prices and preventing electronic waste and b) whether prominance of smartphone theft hinges on the repairability of the devices. Or rather has just only professionalized the crime scene like with car theft. So while I think it's an intersting objection, I think it might miss the point.
The country is better off when we improve it directly, rather than optimizing for weak proxies like shareholder value.

It’s also best to discharge any gut feelings you might have about a “weak” versus “strong” dollar. They’re economic qualities, not moral ones.
Back then it was plain to see in real-time that upon GE's acquisition of Cooper Tools, Welch immediately set about destroying what made Cooper uniquely outstanding.

And that was just one company.

Other victim companies had been given the same treatment by then, the de-industrialization was well underway and picking up steam as upcoming American executives "across-the-board" tried to emulate the famous Welch by extracting long-term hard-earned intangibles and posting it as short-term profits in place of the real sustainable thing.
For readers, AFAICT the evidence that his blogs were created immediately before and deleted immediately after the attack is that the Wayback Machine hadn't indexed them prior to being linked to by major media outlets.
Many, many single-purpose rovers can be sent in the place of a human mission with no risk to human life. There is no scientific justification for sending humans on a science mission, it's mostly just adventurism.
Outside of outright frauds? He is surely on the shortlist.

I think the complicated thing with Dorsey is that he horribly failed with Twitter but maybe(?) didn't fail with Block.
It’s an equilibrium state.

Let’s say Trump/Biden was 80/20, not roughly 50/50.

The Democratic party would immediately either dissolve and be replaced or make major changes to siphon off voters from the Republicans.

Let’s say they succeed and the New Dems become 60/40 favorites. Then the Republicans need to change tactics to pull it back to their side.
I would probably say that your role isn't a "coder," but is more of a team lead or manager without the title. Other than that, I don't understand your situation well enough.

I also haven't reviewed your code!

But if you are specifically writing code that has the kind of errors that I describe, or are continuing to "add fuel to the fire," I would set very clear standards and expect that you meet them. I understand that you can't fix every problem overnight, and that you have to pick and choose the things you fix carefully.

But if you continued to, for example, write code that was vulnerable to SQL injection, after I made it clear that this was no longer acceptable, yes I would fire you.

Edit: Likewise, if you were reviewing someone else's code and allowed SQL injection, I would consider you "the source of the problem" and fire you. If your "20 lines of code this month" contained SQL injection, I would wonder why, after setting a clear expectation that SQL injection isn't allowed, you couldn't take the extra five minutes to write parameterized SQL, and then and fire you.
I don't think this is aimed at your average users. But instead of those whose Twitter profiles and posts are part of their identity. And I'm all for charging them for it.
Oh, nice!

Another issue with the standard implementation is that the TypeScript declaration files are missing lots of stuff. E.g. deserialization functions actually take a jspb.ByteSource (which can be Uint8Array, base-64 string and others), but the declaration files use Uint8Array.
IKEA issues cease and desist against indie developer
What crutch? What simplification? These sensors are widely deployed and have already been perfected. Systems which use only one modality are the crutch. Sensor fused systems will always be safer, and are the future.

This move is purely about screwing passenger safety for cost and sales.
I recall phone lines being overloaded shortly after, so that’s one bottleneck For dial-in.
Marking Riven’s 25th Anniversary: An Update from the Starry Expanse Project
Why not all? We should definitely be looking for greatness from CEO and other top level execs.
Wow this is neat, and I am wondering how to get licensed equips and is it possible to be another country's wholesaler? I mean, does hospitals desperate for such things or even have better alternatives?
If Brexit was extremely popular it wouldn’t be news or even interesting, it would just be obvious. Lots of things end up passing in a landslide but nobody cares.
GP was stating that "two cameras mounted 15cm apart on a swivel slightly left of the vehicle center of geometry" has proven to be a _sufficient_ solution, not necessarily the best solution.
The ratio of people killed vs farmland destroyed would likely mean there was plenty of farmland available in the aftermath. Lack of oil, fertilizer, and electricity would be the largest issues but if keeping people fed only requires something like 1-10% of current farm output that’s probably easily achieved.

Lack of water could be an issue in some areas but simply walking to fresh though not clean drinking water is viable in most areas.

Violence after disasters is more trope than reality. People will loot after a disaster, but it’s not like people are going to show up to Best Buy and work after a nuclear war. Looting is more useful to humanity than simply letting food rot because people can’t work the self checkout machine.
>There has long been debate in the scientific community about whether Mars had an ocean in its low-elevation northern hemisphere, Cardenas explained. Using topography data, the research team was able to show definitive evidence of a roughly 3.5-billion-year-old shoreline with substantial sedimentary accumulation, at least 900 meters thick, that covered hundreds of thousands of square kilometers.
An Open Letter to the Fans of Riven
My own search results:

[0] https://github.com/boguslaw-wojcik/encoding-benchmarks
[1] https://github.com/alecthomas/go_serialization_benchmarks
[2] https://techsparx.com/nodejs/datastore/protocol-buffers.html
A lot of coding decisions come down to that elusive idea, judgement.

Think about what the pros and cons are, what the scope is, budget, and... decide what to do. I've never come across one of these articles that doesn't boil down to "think about it".

That's not to trivialize it, because of course it can take years to hone your development judgement powers, but essentially such articles are only useful so far as they tend to contain a long-form list of commonly encountered thinking points.

More specific experience gives you more detailed items on your list. Level 0 of the performance considerations (relevant to every vertical) is maybe whether you can just throw more hardware at it. In my little vertical (finance) you might think about what data structure to use based on what instrument type you're building a system for.
Java to Java uncompressed in that article is 6x faster per that article.

So yeah not a whole order of magnitude. I was using my experience as a guide where JSON parsing is a huge compute hog and Protobuf is not.

I've never experimented w/ Javascript or compression or any of the other things in that article, I guess YMMV.
I'd say so, but if you keep doing the same thing then you typically don't improve.
Love this, was looking for something similar this morning.
You may also be interested in this comment thread from the article page, where the author explains his opinion on Zig's approach to allocators:

https://www.rfleury.com/p/untangling-lifetimes-the-arena-all...
> You seem to be arguing that anything other than strictly server maintenance is wrong, immoral or unnecessary. I'm not sure why that would be the case.

This is answered by

> Wikipedia's donation drives make it look like "Donate to us to keep the servers running"
The larger a group is, the less important it must be that the information shared reaches each individual. You use the group to share information in order to reach someone, not everyone.
Oh, I didn't see it. It's hidden.

"Unmolested' would be me not needing to interact with that.
I generally think Jack got it right with performance evaluation, but Rank and yank has done so much damage to the American Worker, corporation value, and deindustrialization that he earns no love from me.
Cobranded cards are always managed by the bank. The bank takes the risks not the partner
Gluing a phone shut doesn't have to be detrimental to repairability as long as the glue is heat-softening.

So far I've opened all my smartphones just by heating them first. However, when they start using thermoset (rather than thermoplastic) glues I'll flip.
You shouldn’t refer to other commenters as deluded.

It’s pretty clear the GP means a demand curve: cryptocurrencies induce demand for energy sources that would otherwise be uneconomical to operate. This doesn’t require fungibility.
Edit: Isaac Arthur's not Arthur Isaac's :)
I disagree with this. Inaction is merely an acknowledgement that we can't be informed, effective activists on everything. I'm pretty much disengaged from political activism these days, because I don't want to be manipulated into joining the human equivalent of a botnet. Instead I focus on the one area (accessibility for disabled people) where I'm actually knowledgeable enough to have an informed opinion, and where I can actually do something meaningful.

Edit to add: Also, accepting the status quo on some things, even if one doesn't think it's ideal, may be necessary to be maximally effective in one's primary area. So my main open-source project in the area of accessibility is maximally permissively licensed (the MIT/Apache dual license typical in the Rust community), is hosted on GitHub, and targets proprietary platforms first, because I care more about accessibility than any of these other things.

I have no problem with this specific decision though.
Jukebox is using a similar scheme: https://openai.com/blog/jukebox/#approach
Apple supercycle predicted as iPhone 14, Mac, and Apple Watch attract switchers
I think you could make strong arguments for all of those:

- fairly sure the Federalist society wrote a lot of words on why strong king-like presidents were bad; a strong individual post is a license for arbitrary whims of power

- weak currency improves exports; the Chinese strategy for decades was a weak RMB to the extent that the US complained about it endlessly

- "shareholder value" tends to be a horribly short termist metric that encourages hollowing out the business, reducing investment, and pinching the employees until they start leaving
He was great for:
-financial engineers
-increasing profit margins
-

he was bad for:
-blue collar manufacturing (which got outsourced to countries with low regulations)
-the environment (due to lack of regulations)
-culture of business leadership
-next generation of workers / young people
People seem to completely ignore that point.

Displacing 70kg of meat with 2+ tonnes of metal is a waste of resource, money, space, no matter the energy source

The article also doesn't seem to address the fact that particulate pollution from cars is now mostly caused by tires, EVs are usually heavier and have more torque = burn through tires quicker

https://www.theguardian.com/environment/2022/jun/03/car-tyre...
Unspecified edge cases in the DEFLATE standard (2012)
As a consumer, that adhesive strip is just foam tape with glue on both sides. You're correct that it's easier to disassemble then glue alone. But, it's still glued by most people's definition of the word.
One thing that struck me was the sizes of blocks assigned. I get a dynamic /64 prefix from my ISP at home, which would be large even if it were assigned to my work office; why is the maximum prefix length /48 for a single site and /32 for 3k sites? Aside from the obvious argument of wastefulness, aren't we just priming the same issue we have with IPv4 now to occur thirty, forty years down the line?
From personal experience, if you write the physics engine yourself you might find you never get around to making the game itself.

If your game loop is running at 60 fps then each frame exists for about 0.017 seconds. What happens if you have a 10 Kg weight sitting on your scale for the duration of half a frame (0.008 seconds), will your engine display 5 Kg on the scale, or what?

Interesting problems to solve, but can easily take up all your game development time.