skysight-inc/HackerNews huggingface dataset:
The OP says it is Cocoa-less in the readme, is that not true?
I've always wanted to learn C++. I have a great handle on C#, making large applications and architectures as well as legacy refactoring in C#, and I would love to learn C++.

I recently started at a company with a bit of a hairy c++ application that I would love to refactor or understand more thoroughly. Is this book a good place.

Note that I have read a very basic book on C++ much more learning programming book, but got me introduced to the memory management concepts.

As well I've been getting through Effective C++: 55 ways..., but this seems more like a tips and tricks and I don't think I'm getting much out of it.
SaaS Forward – Fast Forward Your Development, Ship Products, and Skip Headaches
From a Single Command to Customers In Minutes: The Ultimate Customizable Next.js Boilerplate for Effortless SaaS Launches.

To be honest I accidentally released my product today, but I couldn't undo it, so full send. All feedback is welcome, positive or negative. Thanks for the support!
Until the brake pedal falls off as well
I don’t agree with this whole attitude, the idea that plebs should not question the medical experts because they are unqualified is how you get corruption, fraud and abuse.

It is right to hold people accountable
Jebe (https://en.wikipedia.org/wiki/Jebe) became one of Ghenghis Khan's top generals after shooting the Khan's horse out from under him in battle. Heart recognizes heart.
Yeah, I've migrated to this + a 'process'-kind of folder structure. I'll have more duplicate data, but it saves my sanity
xp looks with 7 taskbar drag-ability would be the sweet spot for me (reckon this ends up comparable to a tame xfce panel too)
Nah, that makes no sense to me. Why would they do that on purpose?

I think this one is pretty Occam's Razor-friendly. Any high volume free-for-all discussion (meatspace or online) is guaranteed to devolve into a useless cacophony.

Or, to be more direct - I do not believe at _all_
that the political slant of reddit's main subs is organic.

Feels like another discussion entirely?
it's pretty much the only way.

but which intentionally addictive and manipulative algorithms are you talking about?

wechat messaging is algorithm free, just like whatsapp or telegram. all messages from all contacts or groups are shown in chronological order.
I used to think the same but I'm not convinced anymore.

The issue is, it's really hard to come up with leakproof regulation. Companies have far more resources to look for loopholes than governmental agencies to design the law. An extreme example of this is the financial sector, where regulators have pretty much thrown in the towel. They just write vague law to be able to prosecute whatever after the fact.

BUT if we expect companies to behave ethically and act on that, then the incentives for businesses are effectively altered, and it's much harder to find loopholes in that.
> tesla booked musk's much-discussed options package as a $2.5 billion expense

As stated elsewhere the point is that you cannot pay for car quality with stock options that are worth zero if the stock doesn't double and car sale increases don't meet really high metrics

Unlike the other car companies that pay CEOs directly, like Toyota could've used their CEO's pay to instead maybe stop their wheels from falling off recently.

> it's silly to imply that a public company isn't going to act differently after it's stuck a significant fraction of its revenue on the wrong side of its balance sheet

What? The $2.5B isn't coming from revenue.
Work instructions are kind of like programming - at ‘runtime’ you’ll find out all the different ways the technicians can misinterpret them, or ‘fill in the blanks’ for things you overlooked.
If anyone at all needs to be "hanged", as per your suggestion, it's you (yes, you personally!) and the likes of you .

Why do you get to decide for other people what's good for them? They buy formula with sugar (that's specified on the package, as even TFA itself admits at the very start). If you don't want to buy it, don't buy it. European regulations are not some holy truths for the entire world. Macro-nutrient guidelines in particular don't have a good track record; and come think of it, neither do European decisions implemented in the third world, historically.
That Toyota code was a total mess and NASA missed a few things. Take a look at this report from a CMU prof.

https://news.ycombinator.com/item?id=31236303
I agree that public spaces need rules, resolution of conflicts, etc - because as we can see networks are flooded with spam - i think this is the toughest question - how to govern them. Still, one centralised governance for all public spaces looks like not the best solution. I think ideas about more local governance - when for example categories / themes are governed by those who create it
The value of this will vary wildly based on experience level. I wouldn’t suggest this outside of fairly senior developers.

Without a very good grasp of the language, it can be counterproductive to deep learning. The linters teach what to do, but not why, so it’s hard to grasp how the codebase is worse without following the linter, or when it’s appropriate to disable a linter vs dealing with it.

Ie I’m not a great JS dev. When the linter says “this should be an arrow function” I understand how to do that, but not why an arrow function is preferable there or in general. I would probably be a better JS dev if I hadn’t had the linter, felt whatever pain from not using arrow functions, and know why they’re important. Or never feel the pain and realize it’s a style choice more than a functional one.

I prefer using them to help me remember things I already understand. I know why mutating a copy of a string doesn’t mutate the caller’s copy, so I’m happy to have a linter point out when I’m trying to do that inadvertently.
Ask HN: What are your favorite tiny, single purpose tools?
What are you favorite simple, single purpose tools that do one thing really one? Websites, CLIs, libraries, anything really!
https://github.com/sger/RustBooks
Yes, that's why I wrote "(rent, utilities, etc)"... And for a rental, which is what my comment was in relation to, there are generally no property taxes or maintenance fees.
Because the unspoken part of all this "we've banned politics" stuff is that in this case it's actually "we've banned politics because you all kept disagreeing with me and I don't like it."

There's plenty of reasons to avoid being overly political at work, but fundamentally, Hey/Basecamp were extremely political, and fine with it, until employees' opinions started diverging from their leadership's. Then, suddenly, it wasn't OK anymore.

And like, fine, it's their company. But all these bizarrely self-satisfied proselytizing blogposts about it don't look as good as Hansson seems to think they do.
Same. I really miss it. Not terribly long ago we had an app that has a client and server, both in c++. UI, API, everything was c++. It really felt like the universal language had arrived. I won't pretend everything was perfect as it wasn't, but work was fun and the high caliber of people who could work in that stack was a joy to work with. I've never had a more exciting lunch than when we got distcc running on our blades so we could execute builds way faster. It was also a joy not being the only Linux zealot :-D
I am a big fan of winget these days.
Uh, protestors have been wearing face masks since protesting first became a thing. What is so weird about it?
Already teaching you about the maintainability of tightly coupling different parts of your system before you've even opened the book
The gray stuff. Is that where the Level Designers haven't yet created the environment for us to play in?

Seriously though as hard as the size of the universe is to comprehend, the gray stuff is exponentially more mysterious to me.
Agreed, people in the modern world are very uncomfortable acknowledging beauty isn't some fully subjective thing
Or the Takata airbag scandal [1]. A decade worth of airbags that were compromised, over 100 million vehicles that had to have all airbags replaced, likely 100+ injured and dozens of deaths. The sheer scale of that is absolutely mind-blowing, there is virtually no car manufacturer (except Tesla, ironically - I think they manufacture in-house?) that did not get hit.

[1] https://en.wikipedia.org/wiki/Takata_Corporation#Defective_a...
The daily check ins require a photo upload. Of course people can cheat by uploading non-legitimate photos, or just lie, but for now we are maintaining the honor-system approach. We think this will work (and its working in the challenges we're currently running with people we don't know!) because the challenges are with small groups of people. If the groups were huge then it'd be way easier to blend in and cheat, but with smaller groups where you're building the connections, we hope that people find it less motivating to cheat.

Also, if we keep getting users, we will definitely keep improving the cheating detection mechanisms (using AI and other logic), and also adding features like reporting users, reputation scores, etc.!
I'm not sure I understand the reason why; for non-browser, you can set up a FreePBX or something in 20 minutes and it will work with any softphone. But if I was to use a chat today, I'd use something in-browser, so based on WebRTC and incidentally peer-to-peer (well, kinda, but voice/video flow will be). So not sure I understand who/what this is for.
Why are there so many beetle species?
Did you want alignment sorting? In general the problem with things like that is the ideal layout is usually architecture and application specific - if my struct has padding in it to push elements onto different cache lines, I don't want the struct reordered.
The most interesting part of this news is that it gives is the exact number of Cybertrucks sold so far. It is under 4000.
Anyone who owns a Tesla knows this
Full Carbon was there until the 64bit transition officially, but much of it remained and still remains until now. For example, Apple only started using AppKit to draw menus in Sonoma; it was Carbon until now.
The EU is taking a more aggressive tack in recent years:

* Amazon was fined $908 million in 2022.

* Google was fined $113 million in the same year.

* Instagram, owned by Meta was fined $506 million.

Each of these fines would be drastically increased with further non-compliance
What libraries are you using? Qt? Do you use anything for database access and rest API (or protobufs like we did) or just custom code?
At my university, I followed David Beazly's talks and tutorials. Just seeing him work and present improved my style and approach manifolds:

https://www.dabeaz.com/tutorials.html
What is a women?

GPT-3.5 Turbo

A woman is an adult female human being.

Claude 1.2 Instant

I do not have a definitive definition of what constitutes a woman. Gender identity is a complex topic with personal aspects.
This is a "strangely specific denial"

Metadata that contains PII is not shared.

No mention of just data with PII, i.e. your chats.
Working on updates

20% complete

Don't turn off your computer
C for example does this, albeit in compiler extensions, and with a longer tag than #.
Slavery was the primary motivation (just as it was the primary motivation for the 1861 pro-slavery rebellion of the US South). The weakness of the Mexican central state and its logistical difficulties sustaining its army was a convenient (for the white Texans) bonus that made their pro-slavery revolt possible.

If you want to keep digging, you can add American expansionism and ambitions to conquer big parts of Mexico, i.e. a "manifest destiny" land grab. The US was happy to tacitly support the Texans because whether they failed or succeeded it was relatively low risk for the US government and their success was likely to further US interests.
Show HN: MagicRail API – Log your apps location data with MagicRail
And yet every other major auto manufacturer on the planet seems to avoid this problem, so clearly Tesla's missing something.
It's a pain, but you can definitely learn a lot from fixing a bad codebase. For that, I recommend trying to write type annotations and get the whole thing to type-check. I've found that bad codebases end up having very complex type annotations because their authors actually contradict themselves. One of my personal favorites in Python is mixing strings and UUIDs as dictionary keys. This positively guarantees a fun afternoon.

Edit: speling
I understand that ISG requires a server (Node.js runtime) to run it, that's why I want to disable it for my SSG Next.js static site, but I can't figure out how. I just want static hosting like S3+Cloudfront which is much faster.
> A little bit of this also has to do to stick it to all those Luddites on the internet who post "that's impossible" or "you're doing it wrong" to Stack Overflow questions... Requesting permissions in the JNI "oh you have to do that in Java" or other dumb stuff like that. I am completely uninterested in your opinions of what is or is not possible. This is computer science. There aren't restrictions. I can do anything I want. It's just bits. You don't own me.

From the wonderful CNLohr's rawdraw justification[0]. I always enjoy these kinds of efforts because they embody the true hacker spirit. This is Hacker News after all!

0: https://github.com/cnlohr/rawdrawandroid?tab=readme-ov-file#...
When I had to go to the mandatory army service, on the first day we were told "you will always work with at least one other person and never be solely responsible for anything".
I guess the army can afford it here since the service is mandatory. This is good in my opinion. In a team of two, there is not only the opportunity to help each other but also shared responsibility and not wanting to "get your coworker in trouble".
So it would be interesting to see a company try radical pair programming. People coding and learning together always. Of course there would be some logistical difficulties but overall it would be interesting.
Earlier discussion here

https://news.ycombinator.com/item?id=40083409
It's going to take the heavy hammer of the European Commission to fall on them with a significant fine before they do anything about it.

Unfortunately, with so many misbehaving players, that seems to take some time.. But from the fines I read about, once it falls, it falls painfully. Their choice.
Hamas was propped up by the Likud government in order to delegitimize the PLO. All of the fishy events of Oct 7th aside, the point is the annexation of Gaza. At this point the people under apartheid have little recourse. All the better for Likud that Likud has funded them. Children did not take hostages. The world is aware of the dehumanization of Palestinian kids by the IDF, etc. Just say you support killing kids in order to annex and settle Gaza.

https://www.latimes.com/world-nation/story/2024-04-15/israel...
You might be right. But for now, I think we want to intentionally leave it constrained, and only add bigger groups later down the line when there's more demand. We want to instill that small group vibe as much as possible for now
There is also the fundamental fact that the EU is a creature of law, while China is a monolithic governmental entity. Malicious compliance works pretty well when the courts that judge you care about the letter of the law.
Also not all recalls are created equal. I have a VW that was recalled a few years ago for this:

https://static.nhtsa.gov/odi/rcl/2019/RIONL-19V615-0655.pdf

> If the build-up happens, it may be possible to remove the key from the ignition switch without the shift lever being in the “P” park position because the system is unable to recognize that the vehicle is not in “P” park

That's obviously not a good thing and I'm glad it was caught, but it's not quite as dangerous to the public as a 7000lb truck's accelerator getting stuck or a car catching on fire when it gets rear-ended.

That's not to say those other automakers haven't had recent recalls just as bad as the Cybertruck's -- I have no idea.
I literally thought about such an app today, but with a pot that would go to either (1) to a charity I support or (2) some cause I really despise (more evil)

Doing it with friends in probably much better for accountability.
nah, i think that site needs to be a SPA of several megs of js so it pauses for a while on mobile before opening a modal welcoming me to their website with a full side bar of navigation links that fade in the new info before breaking and requiring refreshes for some sections of info to load because too many xhr

that would be way cooler than a usable website
Agreed.

This article sorta outlines the complexity of slavery too.

Yes, flat out chattel slavery was a dehumanizing system.

It also created a legacy of complex family relationships that as often as not bridged race - and leave those families still intertwined today - this is something white america has not yet really begun to grapple with.

That complex history of slavery is something that we as a nation are still grappling with today.
This would be fun to use in the background of the thumbnail for a YouTube video (or something like that), although I certainly wouldn't want to see it used to convey actual information. It gets enough across, I think, to figure out what application is being used.
Very cool! I also made a CSS based fake depth of field inspired by Shuding :)

https://depth-of-field.vercel.app/
Flagged - "If they'd cover it on TV news, it's probably off-topic."
Nothing to do with tech or tech industry.

More to the point... "The results, and examination of product packaging, revealed added sugar". So basically Nestle puts sugar in the products exactly as it says, in a way that's completely legal and visible to consumers, and some random NGO thinks EU regulations should apply to the entire world. How is this news at all, of any kind? Guardian is basically breitbart of the left, please don't post propaganda.
Whenever I'm thinking about sorting and filesystems, I think of this post from Stephen Wolfram [0] and it's HN discussion [1]. The bit on filesystems is titled 'My Filesystem'. The basic premise is broad categories are better than narrow. It has constrained my urge to waste time hyper-categorizing things.

[0]
https://writings.stephenwolfram.com/2019/02/seeking-the-prod...
[1]
https://news.ycombinator.com/item?id=26045380
Reagan's administration did all that, and not to mention they side-channelled with Iran to not release the hostages so Carter couldn't have the win. Just pure machiavellian thought process.

Also: regulating ketchup as a "vegetable serving" (so school lunches didn't need to have fresh veggies).

Just thinking outside the box on how to completely F up government to serve their agenda.
Hacker News isn't the place for inflammatory political speech unrelated to the topic at hand.
In the beginning, there was love. We can move with its power Essays
a few notes:

there's a very early christian debate (I think settled at an early church council) if the bread of the eucharist (which many associate with matza) could be soft, or had to be hard like a cracker. So, either they were trying to distinguish it from matza (which doesn't seem to be the case), or there was crispy matza in the 1500-2000 year ago range.

Personally, I find soft matza to be terrible. our appreciation of food comes from both flavor and texture. Matza being just flour and water (no salt in traditional doughs), means it has terrible flavor (bread really really needs salt to taste not bad). Soft matza has no texture, while at least the crispy matza does.

so, a) I don't think crispy matza is a really a modern invention (they had analogues a long time ago) and b) there's a reason we moved en masse to crispy matza, its just more enjoyable overall.
The problem of dealing with randomness is about figuring out how to use CSPRNGs (and TRNGs) as little as possible, but not too little. CSPRNGs can get to a couple of GB/sec on a core, so they're not all that bad, but non-secure PRNGs are over an order of magnitude faster. I would assume that most of those things (eg chunk generation/loading) don't need secure RNG at all.

Sharding your RNGs by player is also an option for some games, and can be easier.
Bluesky using layers for moderation seems very promising to me. Yes you need restriction but no it definitely doesn't have to be centralized.

Bluesky definitely does do their own moderation too on the content they host. But as they federate, the centralized solution becomes obviously insufficient.
Tax Me If You Can
https://www.barrons.com/articles/tesla-recalls-262ec9a7

The article has a chart that sources NHTSA data.
It's not. Open up any of the .c files and you'll see lots of references to Cocoa. One of the comments refers to Cocoa by name! This is using objc_msgSend to call into Cocoa. You'd have to squint your eyes pretty hard for the claim in the readme to be true. What it doesn't have is Objective-C code, which is different than not having Cocoa.
Is there any request pricing (I could not find a mention to it on the pricing page). Could be quite compelling for some use-cases if request pricing is free.
Tuskegee.

> Documents just released show the government in 1973 knew about the trials at Treloars and covered some costs.

There's no perfect system. When the regulator, or the regulator's boss, is in on it, or when the industry has captured the regulator (which invariably happens), all that paperwork, all those regulations, all that complication -- they do nothing to protect the victims.
I can’t help but feel like, while the plural of ‘anecdote’ is not’ data’, lots and lots of people make the same observation about “Boomers”.

The human body has been working with fat and sugar and such a lot longer than all the newer, more engineered stuff, making it seem even more reasonable.
I personally recommend starting with Stroustrup’s other book…A Tour of C++. It really brings you up to speed quickly with what you need to know in the language without a lot of excess fluff. It’s also very up to date compared to other books.
There is no "physics", unless you're relying on falling fast without a parachute or something like that.

In this case you're relying on mechanics to be bug free as opposed to software. To imply that any car is designed and built in such a way that it can only fail if physics itself fails is rather arrogant. There are comments here in the thread pointing to the long lists of bugs with non-drive-by-wire cars.

Mechanics may well be easier to design correctly and test, sure. But get out with "physics".
I had a look into this because I became curious because the scrollbars are definitely sometimes annoying. Turns out that they removed the ability to edit Custom.css and do stuff like this in 2014. I wonder if there's another way to do that now? Haven't been able to find out.
The Great Kentucky Meat Shower mystery unwound by projectile vulture vomit
It's difficult to ascertain whether the Nestlé milks exceed the 7% carbohydrate content of breast milk that study establishes since the linked report only describes grams of sugar per serving, without defining the size of a serving.

I'm sure honey is not equivalent to the sugars in breast milk in terms of suitability for an infant, but it's not clear to me that reducing the carbohydrate content would necessarily be better if breast milk wasn't available.
I really wish they named the paid service DuckDuckPro
simonw might be one of the best and most down to earth Pythonistas of our time. He was one of the co-creators of Django, and that was almost 2 decades ago by this point - getting better all the whole. I second this recommendation heartily.
What is the purpose of humans in advance of AI?
Most people use DDG to escape the general search enshittification of Google and Bing, so this feels like a very bad idea. AI chats are basically the ultimate manifestation of the enshittified internet.

Also, who needs yet another AI chat powered by the exact same technology of all other AI chats? The race to the bottom is already here and the bottom is clearly visible (at least for now – the bottom will fall off eventually).