skysight-inc/HackerNews huggingface dataset:
> In general, STB-style headers simplify C/C++ build system shenanigans.

Too vague. How is it better, concretely?

> E.g. one benefit is that you can configure the implementation via preprocessor defines without the defines leaking into the build system

That's not a benefit. How is this:

#define LIB_IMPLEMENTATION
#define LIB_KNOB 123
#include "lib.h"

Any better than the two-file version:

#define LIB_KNOB 123
#include "lib.c"

?

> It's also trivial to write "extension headers" which need to directly peek into the (otherwise private) implementation of the base library. Just include the extension header implementation after the base library implementation.

I'm not sure what this means. Can you give an example? Is this being used in the above library?

> PS: but also see: https://github.com/nothings/stb#why-single-file-headers

OK, that only offers this explanation:

> Why not two files, one a header and one an implementation? The difference between 10 files and 9 files is not a big deal, but the difference between 2 files and 1 file is a big deal. You don't need to zip or tar the files up, you don't have to remember to attach two files, etc.

This is kind of nonsense to me. The difference between 2 files and 1 file is barely relevant, and doesn't weigh against the awkwardness of having no clear distinction between declarations and definitions, and having to pull in definitions by setting a magic preprocessor header.
Banks can give your money away without your knowledge. Happens all the time, and people have little recourse. Worse yet, it's seen as the victim's responsibility and not the bank's.
For correct editing operations, and correct display. Sadly, it's not pedantry, it's reality.

The 0.5 value is not half the brightness of 1.0 in sRGB. It merely means half the power output to your CRT.

If you want correct editing operations, you need to work in linear RGB.

It gets more fun. What is white? The color of your backlight? The color of white paper under your particular desk light?

And what is black? Is it pure darkness, or the black ink of your printer? Does your printer represent pure black, or dark gray?

We're stuck with images stored in the display profile of old CRTs by default, because that was the most practical option at the time.
There are other platforms that are maybe better suited to that role though. I am not very up to date with the hardware but I remember PCengines being one.
> If he were to talk about decentralization/distribution vs centralization along with who controls the fiat money supply & who benefits & who does not benefit from the fiat central bank policies, then he would at least begin to broach the subject of why crypto currencies are being adopted.

Is that why crypto is being adopted? Are you serious?

I bet nearly no one who buys crypto even knows what fiat money is nor have they have a clue as to the ideas of the Austrian school of economists. We live in an age of memes and discords.

Crypto and NFTs are primarily being adopted because they are speculative vehicles that generally go up and to the right. It is quite simple.
We're not even talking about semiconductors. All of the basic goods you'd need to supply an army, or the industrial capacity for consumer goods that could be shifted to wartime production no longer exists. It's a problem the DoD has been talking about for years, but little action has happened.
> If nothing else, there better be some decent PCIe available by then- 8x PCIe 5.0 or better. ARM needs to start doing bandwidth, some day (in places other than server class chips); it's been on USB3.0 for a long long time.

Its not up to Arm to attach PCIe lanes but the chip makers who have been competing with x86 which already offer plenty of PCIe lanes. So far, only apple has bothered to make an Arm CPU which can compete with "PC" hardware. Hopefully AMD will offer something similar.

> Thunderbolt + PCIe would be a great boon for general usability & connectivity. Now that Intel has made it royalty free, now that USB4 already incorporates most of the hard part (packet based switching), it might finally be the time for some real PCIe on chip.

USB4 is based on Thunderbolt 3. Given that Thunderbolt 3 is a mess, I don't have high hopes.

Look at RapidIO or 1394 for examples of better thought out interconnects and protocols. PCIe cant connect CPU's together in a NUMA system whereas RapiIO can. RapidIO also uses Ethernet physical layers so there's parallel development with Ethernet. I honestly don't like USB or contraptions invented by Intel that are invariably consumer grade with various extensions to satisfy other industries, bolted on.
Would love to see 50 Shades of Grey.
Forcing opaque, possibly abusive EULAs on individuals is one thing, using them against organizations is another. In most jurisdictions, many terms routinely found in contracts between businesses are invalid when an individual is a party due to consumer protection laws. Take renting. In many places you typically can't rent out a dilapidated home to someone even if they agreed to it explicitly, but you can lease any location in any state to a business.

Unlike individuals, organizations are expected to be have the resources to handle the legalities and to not be pressured into a terrible deal by circumstances.
Yes, but that's not an argument for anyone wanting car-dependent life. It's an argument for people being willing to tolerate car-dependent life (in order to have some benefits like affordability and more space), and that was never a disputed claim.

Incidentally, car-dependent affordable space is a farce. It's not actually more affordable, it only externalizes the costs. The huge infrastructure costs to support sprawl-style development are subsidized by denser parts of town. This is laid out bluntly in the articles on https://www.strongtowns.org/the-growth-ponzi-scheme and that's not to mention the externalized costs of the pollution of all the car traffic and many other things we could bring up.

In short, the car-dependent suburbs are artificially more affordable. And yes, tons of people will accept car-dependency in order to get the benefits and affordability of those places as we know them.
Huh I guess I should look to switch. I never really cared for their interface either but since I only use it change the DNS over to point towards my own servers I didn’t really consider it could be worse than anywhere else.
For the house that burns or if you are in incapacity. I have a cloud shared keepass and I have printed a emergency sheet.

https://keepass.info/help/kb/faq.html

For your death, you need to have your legal papers in order.
Game design question:

Text adventures as a category always struck me as kind of lonely. They often take place in environments where all the people have been removed, like miniature apocalypses.

It seems technically fairly obvious why this happens: other people are too hard to model. People have goals and expectations and so someone traipsing around trying random things is not generally acceptable, and creating characters that are disinterested in their environment is its own challenge. (Writing this I realize grumpy and stubborn characters are fairly common, maybe for these same reasons!)

In all these years of advancement in games the NPC still seems either lifeless or absent. I'm afraid I haven't actually played your games, so I don't know how you've tried to address it, but I'm sure you've thought about it. I'd be curious to hear any of those thoughts, but maybe specific questions:

1. Have you had any successes you could share in making a NPC seem "alive"?

2. Any ideas you were convinced were great but failed when implemented?

3. Do you think new technology can be applied to this? For instance it sounds like you are using more advanced NLP in Escape the Gloomer. (But understanding is only half, NPC motivation and goals seem equally hard.)

4. Does a strong NPC distract from the autonomy of the player? (Sometimes I wonder if people even want a strong NPC, or if players actually prefer NPCs to be background.)

5. And separately, have you tried AI Dungeon and if so what did you think?
Which could be compelling if you lived in a society where the banks were extremely unstable, but looks terrible if you live in one with regulation, deposit insurance and and other account protections.
The basic point is that the default tendency in many environments is to run toward ever-increasing levels complexity -- often without even being aware that this is happening -- rather than be (as I believe one should be) by default always skeptical of added complexity.

If you try to remove all complexity from your product,

This wasn't what the commenter was advocating, of course.

Rather it was an attempt to simplify the basic message of: "Complexity has attendant risks which are too easily ignored -- and which in short enough order, can kill hour product."
Posting this while the inflation rate of USD is over 6% is kind of tone deaf.
Less snark would be preferred to elicit a response, but yes- there are more cheap computers than people in the world, and smart phones are near ubiquitous even in very poor places. You simply don't have the life experiences to make this criticism. i.e. PRIVILEGE
> with the left being authoritarian redistribution and the right being free markets.

No. Authoritarianism and Libertarianism are orthogonal to Left and Right in almost all modern models that include two or more dimensions [1][2]

1. https://en.wikipedia.org/wiki/Political_spectrum

2. https://www.politicalcompass.org/
Strategy Under Uncertainty
> I disagree that it was out of context [...] of the comment

It is not about your opinion, you are quite simply not responding to the posted comment. Because charitable reading of your comment required it, I have read the original comment that you claim to speak of again.

That comment says:

- Remote work can be done for a lower salary, because you can live anywhere

- If you demand that I come to the office, you should pay for the difference

You have responded to these points by saying that if you want more money, cheaper workers can be found "elsewhere" (i.e. abroad, so remote). This is not topical, because you address a claim that was never made.
It’s almost like Catholic leadership acknowledges the concept of religion to be a scam, as true believers wouldn’t do or defend evil shit. Huh.
> Is this a American cultural quirk I'm not understanding?

As an American I would say: yes, it is.

I suspect it has something to do with the rising neoteny of more recent generations coupled with America's persistent puritanical views on sex, but there has been an increasingly bizarre fixation on the age gap of couples. All teenagers have recently be re-defined as children, so much that it's common on places like reddit to view even attraction to say a 17 year old viewed as a form of pedophilia.

For nearly all of human history men over 30 forming relationships with women in their late teens has been normal. This was even not too rare 30 or so years ago in the US. But there has been a rising moral panic about age and sex that leads to comments like the above.
Judge: Dismissed Steam antitrust case didn’t include “sufficient facts”
What could possibly go wrong? It'll be just like housing, where speculators have assured that nobody can afford to buy a house but the wealthy. What happens when nobody can afford clean water but the wealthy? Not because there's a lack of clean water, but because speculators have driven up the price.
Youtubers are still promoting ExpressVPN, unfortunately.
I wondered exactly the same! Fortunately, the first hit on Google will explain it: https://letmegooglethat.com/?q=not+all+valid+Windows+file+pa...
Do you have a textbook in mind to teach high schoolers QFT? I'm dubious one could write such a textbook, but I'd love to be proven wrong.

I ask since I have taken a course on QFT lite. We had to spend three weeks just doing tensors, and this was after everyone was comfortable with linear algebra and calculus and so forth.
The definition of crime is not only a relative thing, but also a moving target which is quite unpredictable and has a lot of long tail events.
What is crypto if not money printing? While any one chain may be limited in issue, you can always just fork it or create a new currency or token. People are printing tokens at a phenomenal rate. And unbacked or badly backed "stablecoins" are money printing of real-looking but unstable currency.
Which is awesome, but I Algorand is < 0.5% of the crypto-ecosystem
How is relying on a foreign company helping the situation?
Have you followed this very thread?

> golang will slow down your application in order to meet GC deadlines

Hardly a good thing for throughput-oriented applications. Java let’s you tune this (the default G1 collector has a target pause time parameter, and then there is also the two new low-latency GC, Shenandoah and ZGC which has <1ms maximum pause time.)

> golang entirely sidesteps the issues java has requiring said systems with better memory layouts and utilizing the stack.

As mentioned many times, having value types greatly decreases the amount of created garbage, thus a less-modern GC can be enough for most Go applications. But there absolutely are use-cases where new object creation is unavoidable and java will beat Go by a huge margin, due to its more advanced GC, see:

https://news.ycombinator.com/item?id=29323468
> Would this make languages easier for non-native speakers? Would improve comprehension?

When I've been trying to learn languages, I can typically part-of-speech tag unknown words quite easily (common prefixes/suffixes/word length/sentence position give lots of information – and some of this is shared across languages as well). The comprehension difficulty is nearly always due to content words I haven't seen before (or have forgotten).
This is absolutely true in the PC space, cheating is a growing business.

There was a thread on HN about this the other day - at the most advanced end, bus mastering DMA devices are used to dump game memory for direct inspection, or to recover ephemeral / session negotiated keys used to secure client<->server traffic, and then dump or inject network traffic on a separate machine. PCIe FPGA cards are the most popular tool for this, but there are other approaches given anything with DMA mastering can be employed to sneak data out without the OS or user land knowing much about it.

There's also a big middle ground which is just a software cat and mouse game between detectability and effect - just like antivirus, anti-cheat is an uphill battle on machines where users can run whatever code they'd like.

Many of these cheating services are subscription based so they're pretty lucrative for the authors.

But, I'm not aware of as much (or really, any) of this going on in the console space. There aren't that many competitive console streamers to start with, and console eSports events generally use tournament-provided hardware. So, the possible revenue stream doesn't really reach the massive undertaking that would be required to break modern console security on anything but the Switch.
Anyone interested in syntax highlighting should read the book Human Factors and Typography for More Readable Programs. The majority of the book is devoted to non-color techniques, but they do present some ideas for how to effectively use color near the end.

Much of syntax highlighting in the wild is junk, just distracting eye candy.
> Baloney. Yes, I'm sure we can find some 1 in a 1,000,000 exceptional case of some bright student from a marginalized community who just couldn't obtain some obscure reference book in their high school library because conservatives had "banned it" (i.e. chosen not to include it in their limited selection due to content concerns). However, I find it hard to believe that 99.9999% of students, who probably haven't even used their public school's library more than a few times in their whole life, would be absolutely unable to obtain anything they could possibly want, for the price they already spend in a week on video games or music.

That is not the point. The point is that you don't want legislators, left or right-wing, picking the books that students can access in the library system of their school. School librarians are the ones who do that. It's a decentralized system that works extraordinarily well without political interference, and has done so for hundreds of years.

> Examples like this apply to like 0.001% of the population, and instead of spending tens of millions of dollars and years fighting for insanely insecure voting rules...

This is wholly irrelevant to the topic being discussed, which is legislatively banning books from public library systems.

> Likewise, I have never ever heard of any adult using a public school library (e.g. high school or elementary school) to obtain books or other media for themselves.

No, students use those libraries. Students that go to public schools. Adults usually go to their area's library systems. I suggest you check out your local library. You might find it stocked full of books that are interesting. And you can check them out, for free!

The only takeaway for me from a lot of this discussion has been that a lot of people don't seem to have much of an idea about libraries in general, school or public; or the role they play in society.
Yes, of course, I'm well aware that Germany of today is not the Germany of 1939. Otherwise I wouldn't have Bosch appliances at home. ))

> Germans basically keep EU going not only financially

This could be interpreted as meaning that Germany _has_ conquered all of Europe, finally!
key phrase:

> a full chip supply chain in the country

(emphasis mine)

TSMC is, after all, ALSO building a fab in the country, so it's not like TSMC doesn't believe in onshoring chips to the US. The fabs are {high capital expense/high recurring expense/high skilled labor} operations so the US is very competitive due to the labor value-add. Not every part of the full supply chain is like that.

To serve (aka reduce risk to) US supply chain interests in the short term, you also don't need access to the full stack domestically. You could potentially send a lot of activites that need low-skilled-labor to, say, Mexico, which is a much lower supply chain risk that Asia (aka thailand, vietnam, china). National security onshoring, which possibly has less tolerance for even outsourcing to Mexico, is likely a different story and more aligns with Morris' statement.
Thank you so much, deeply appreciated! Feel free to pass on / use as you like!
I thought the general consensus was that the only VPN worth a damn was Mullvad?

I'm not interested in a review aggregator. Individual reviews are the problem in the first place. What I want is someone to have a set of criteria and then rate the services individually based on that criteria.

Also, your family of review sites are for VPNs, backpacks and knives. This sounds like a writing prompt.
Thing is, you are assuming that’s what is important.

Look at the billions the US spends on military, all of it domestic. In US, the masks are simply less important than all that, as is healthcare in general.
On one hand, I misspoke. The US is not their biggest market, just a strategically _very_ important foothold in the continent, making and breaking financial decisions that impact every other country.

On the other, do you happen to have sources for all that? Specifically,

- That the cost of this plant is going to be in any way excessive/odd compared to, say, TSMC's plant basically next door

- That the level of technical expertise required is inordinately hard to train in the US

- That the air freight from (also, why air freight specifically?) prices to and from there are a constant, easily disregardable thing and will continue to be so

Would help a lot to ground the conversation in reality a little bit more.
What is the mechanism that ensures bitcoin inflates proportionally to the dollar?
I don't know the exact reason here, but from my experience JVMs don't seem to perform optimisations as deep as static compilers. You can see the compiler not only missed scalar replacement here, but also didn't use a conditional move to avoid branching neither it performed any loop unrolling. Maybe it is because JITs are constrained by time and resources a lot more.
Crime can be as simple as the delta between the desires of those with power and the desire of those without power.
Smaller, less features, ideally less vulnerabilities.
>cat /etc/doas.conf

permit persist :wheel

Now all the users belonging to wheel can run stuff as root. Done.
I know what you mean. I still think Processing and p5.js might be the best way to start, but what's missing is a bridge to move to the next level: showing other ways of doing things, comparing languages, IDEs, how to avoid the spaghetti, what are the strengths and weaknesses of different tools, etc.

This is my small contribution to help with this situation: https://vimeo.com/channels/p5idea Still much to do :-)
Because articles published recently are not "more recent information". It's just confirmation bias.
Not as bad as other electron apps is not the same as great performance.
I guess they know something you don't huh.
> All of Stellar, Hedera and Algorand have a big centralization problem, they have solved nothing.

Such claims must be further substantiated with strong and sufficient evidence. Elaborate your claim further with each cryptocurrency with valid sources, otherwise your claim is baseless.

> Stellar and Ripple aren't even proper cryptocurrencies unless you allow for a very lenient definition.

So what is a 'proper' / 'real' / 'true' cryptocurrency then? Are there any true Scotsmen here?

Did you just prove the point of the original comment in this thread? [0] Nano has been ignored once again.

[0] https://news.ycombinator.com/item?id=29331057
I'm not sure if this is exactly what you're talking about, but I read something a while back about using AI to predict if certain metallic glass alloys will have useful properties: https://phys.org/news/2018-04-artificial-intelligence-discov...
There is no meaningful safety net in California compared to European nation. They have a few more worker protections and a higher minimum wage, but it's not like they have socialized medicine.

It's better than the states that actively work to harm their citizens but that's not saying much.
It would be if rich people held all their money in cash like Smaug in his mountain, but anyone familiar with the current monetary system would know that people invest in assets to prevent losing out to inflation and this is what we’re going for with a steady inflation rate. Keeps the economy pumping and in times when we hit a recession (not depressions, since we don’t really have those anymore thanks to our modern monetary policy) those same rich people want to get their freed up assets into the economy as quickly as possible.
AFAIK the issue is the symbol versioning which is explicit by design. I can understand why it exists for glibc-specific APIs but i don't see why it is also used for standard C and POSIX APIs that shouldn't change.

It is an issue if you want to compile new programs on a new distro that can run on older distros, but IMO that is much less of a problem than not being able to run older programs in newer distros. And there are workarounds for that anyway, though none of them are trivial.
Disagree that specific forums are more trustworthy than others. To me, a trustworthy source is a known entity that tests themselves and keep a track record of accurate reviews. For specific forums, keeping track of users that post honest reviews would be a good way to start.
First rule of drugs and propaganda: Don't get high on your own supply.
Not being pegged to a state-controlled currency means your devalued currency competes with stronger ones, at least on the fictitious transitional period, you're sure you want that ?

Assuming a stateless money, when/if someone then steals your crypto coin, which gov't backed law/judicial system are you gonna turn to ?