skysight-inc/HackerNews huggingface dataset:
Yes, I can, and so can you, without a doubt.

If I wanted to distribute a single file library, but have the two file option for users, I'd make it so that a specific Awk one-liner produces the two. For instance, the file might look like this:

#ifndef FOOBAR_LIB_H_D3B94F3C
#define FOOBAR_LIB_H_D3B94F3C

// header stuff here

#endif // FOOBAR_LIB_H_D3B94F3

#if FOOBAR_LIB_IMPL

// impl here

#endif

Then to people who want two, I would say, just run this command in your shell and paste the content into it:

awk 'BEGIN { print "#include \"foobar.h\"" > "foobar.c"
print "#define FOOBAR_LIB_IMPL" > "foobar.c" }
/#ifndef FOOBAR_LIB/,/#endif.*FOOBAR_LIB/ { print > "foobar.h"; next }
{ print > "foobar.c" }'

that way I wouldn't need a build step on my end to generate parallel files.

I would have the extra build step if it were a large project of multiple .c files that I wanted to deploy as a single file for the users who want that. (Not only would I build the single file out of multiple files, but also have some test cases which actually use it. Things have ways of breaking when you combine files, like giving the same name two two static variables or functions in different files.)
You missed the best ones:

- Your avatar not showing for you but showing for everyone else

- Messages randomly disappearing from DM history (they're supposed to be stored locally, so I don't even know how this happens)

- Entire contacts disappearing (if they're in a group chat, they'll show up as "Unknown User")!

- Editing a message where you've attached a picture and then it says "Uh oh, we lost your attachment. Please attach it again." (Not helped by the fact that Windows lacks a clipboard history, like KDE has.)

- Once, parts of the GUI just failed to load, so all buttons and many elements rendered as text labels reflecting variable names. Menus exploded to gigantic size since a small button was now "foo_bar_widget_doohickey" and it broke the layout badly. It was pretty funny.

(And this is all native! Native app on Windows. Not the web app.)

I've never seen any software this buggy. I've been using IMs for like 20 years now, and Teams sets a new, utterly unparalleled bar for dysfunctionality.
>They also pioneered 2 hour no question return policy,

I don't consider that a positive. Big Box stores usually have 15 days for returns.
Sure, but that's irrelevant as far as the scam goes. What matters is real money entering the markets for fake money, e.g. USD for cryptos. That people after that can trade back and forth between different fake moneys is irrelevant, although it naturally keeps the illusion alive that these are valuable assets. USDT stands out because it's marketed as almost the same thing as USD, which it of course isn't.
>Sure, they banned him after he lost the election and could no longer retaliate meaningfully against them, while his opponents were coming into power.

What means of retaliation do you believe Trump would have had against social media platforms while in office? A President doesn't have the legal authority to simply outlaw companies they disagree with, nor do they have a right to a social media account, or to force businesses to accept them as a customer, or carte blanche to violate contracts or terms of service. Sign an executive order making it illegal to ban his accounts? Executive orders aren't laws, and Presidents aren't monarchs.

Meanwhile, as a billionaire celebrity even out of office, Trump remains perfectly capable of suing over his social media bans, which he is currently doing.
Which field is this? I find for my field it's really full featured, the part that is missing is the production-level stability and deployment process.
I'm immediately interested in that this seems to be aiming at being API compatible, which means it could in theory be used as an ES replacement for self-hosting services that hard-depend on ES?
If you were earning minimal wage in France, that would be about $1500 of fine for the equivalent of being caught commiting burglary for the 3rd time.

Quite lucrative.
The reply I got when I pointed at other apps was "Please file a report via the App Store, other apps not following the rules doesn't give you a free pass". :rolleyes:

I also once got told (on the phone with a reviewer) that I couldn't say

Allow "My App" to use your location?

In the title of the permission dialog because I was "leading" the user to allow. Never mind that the title of that dialog is system-generated and you can only edit the description that shows underneath. I went 3-4 rounds with the reviewer saying I didn't control that while they insisted I did/could. I finally gave up, made 1 other change they requested, then resubmitted and it went through. Reviewer roulette sucks.
I think Logseq is really what you need. Knowledge graph + outliner. It's local, exportable, zero-friction and a joy to use.

https://logseq.com
False Statement of Fact

Even deliberate lies are protected by the first amendment unless they fall under the category of defamation. "Harm to society" is an irrelevant distinction under American law.
A single gun shot was enough to stop an entire group of unarmed rioters, but they still posed the greatest risk of political violence in 150 years?

If the capitol police had properly prepared for the event as if it was a normal DC protest instead of a speaking event then none of it would have happened. The thin line of cops was obviously insufficient. The police response just took some time to organize but it was never under any serious threat of being overwhelmed.
"Official", quote, alludes to very active curation by participants in the standardization process, with example code frequently updated to reflect changing best practice.

Recognized best practice changes with both experience and with newly implemented language features. New features are proposed, and some standardized, specifically because they enable better ways of coding. So, best practice may change markedly with each new Standard.

Generally, the newest way to do something is usually best, for exactly that reason. (A common misconception has one sticking with older language features for better code. The reductio ad absurdum of this would prefer the C subset.) This does not oblige you to use every feature in every program; e.g., std::shared_ptr has sharply limited value. And, the absolutely newest features may not be very portable yet.

Sometimes more field experience with a feature and its interaction with others leads to changes to best practice. This should be expected particularly in use of concepts and asynchronous facilities.

As an example of change, the present universal preference for "std::" vs "using" took a long time to gel because writers (of articles, slides, textbooks) begrudged the extra space it took on their page.

Examples found on cppreference may usually be relied upon to produce sound results and to steer well clear of both risky usage and bad performance.
Yes it seems like they removed it entirely. An impressive victory for nitpickers everywhere. This site embarrasses me sometimes.
Do you think there's room in peoples' lives for Steam _and_ itch.io or do they overlap too much?
https://archive.ph/bLqU3
I doubt it. Look at the period from 1920-1960. Extremely entrepreneurial, extremely innovative, and tight immigration controls.

The talent is largely already here.
a controversial opinion to some, and in no way the ideology I subscribe to fully, but the books on unqualified reservations are quite an interesting read, albeit very long winded
The central issue in these cases are the difference between the following two scenarios:

1. The CDC or other government agency says "We believe X is misinformation, do with that advice what you will".

2. The CDC or other government agency says "We believe X is misinformation, and if you don't act on that, we will penalize you in some way".

The former is perfectly legitimate, and exactly what e.g. public health agencies ought to be doing: offering opinions and advice to the private sector and public. The latter is a first amendment violation.

Presumably, some of these cases will also turn on whether there was an implicit regulatory threat in the "recommendations" given. In some cases, according to this article, the threats seem to have been fairly explicit.
Seems like wrong tuning, ES have few gotchas when it comes to index structure and size (not too many but also not too big) when running big
I’m not sure it’s possible or desirable to make a low memory search index. Like, fundamentally you’re going to want the indexes in RAM for performance, no?
> The Range header doesn't work the way you suggest, it is for requesting a range for the response, not giving a range for the data in the request

rfc9110 actually does permit servers to implement range on PUT, with partial update semantics, but warns that user agents can only safely do this if they know the origin server supports this, as if not the server could fallback to replacing the whole resource with just the uploaded range! (To my knowledge such support is not very common. Also due to risks of being misinterpreted by caches and other intermediaries, using the dedicated PATCH verb is probably better.)

But this (ranged with PUT) is only semantically appropriate for updating an existing valid resource. For example, if you have database like file format, you can upload only the changed ranges which could be much much smaller than the whole file. Or for something like a log file, one could append new content to the end.

For most files, breaking them into many parts for initial upload and range putting each part would be semantic inappropriate, since the resource is likely to only actually be valid once the last part is uploaded.
Before I could choose the same manufacturers but things were tied to those. I knew if I switched from Nokia to Sony for example, it would be completely different. In a way Android resulted in the choice to switch between manufacturers to be painless. Realistically, now you can choose whatever non apple device you want and know everything will continue to work.
Hotelling's law and Nash equilibrium can partially explain why so many "next silicon valleys" haven't panned out. It's also interesting that the valley is in a jurisdiction with such pro-employee laws.
American Data Privacy and Protection Act
Ironically it's the kind of censorship the Biden laptop story got that scares me the least. Brazen, obvious, and now widely known about.

What's really scary is the silent implicit algorithmic ranking that decides which stories, channels, websites get traffic. Invisible and much more effective, leaving no big "banned from Facebook" banner a victim can point to. Just a mysterious, gradual dwindling of traffic. It could be for legitimate reasons, or because someone has their thumb on the scale, for political or economic reasons.
Damn. I guess it's a pretty bad sign then if you've been meaning to floss more for ages, but keep forgetting.
> They also pioneered a store that plays less of a moral police than any others.

They banned loli.

https://kotaku.com/steam-is-banning-sex-games-with-young-loo...
I have a feeling most normal people will be reticent to strap themselves into a suborbital rocket.
It says "lightweight". And this is HN, if a clone of a tool is written in a different language, it is customary to list it.
You will never become the next foo by trying to be the next foo. Instead you need to stand upon your unique merits.

The "Silicon Valley of Bar" never works as anything but campaigning to gullible and giving benefits to existing businesses for no real public gain.

Arguing for entitlement to runaway success based off of some misguided notion of equity is even worse (and by definition incoherent). Success being seen as a birthright is a fast way to stagnation and failure, demonstrated time and time again by fallen US industries like steel and automobiles. Success isn't guaranteed even with hard work and connections!
noone else is as beholden to baseball metaphors as us.

There's even judges who love baseball so much they quote it in opinions lol.
I've switched to working on other kinds of apps, more rich desktop kinds of apps. I enjoy this a lot more too since most mobile apps are pretty dumb and gimmicky.

Of course if you're doing client work you have to build what your clients are asking for and yeah the web is not a substitute for native in all cases.
Tangentially related if you need search without the clustering and high availability story of elastic search and friends I highly recommend Xapian.

Its like the SQLite of search. Single library that provides the basic set of features you would expect in a quality search experience: facets, ranked search, boolean operators, stemming etc etc.

https://xapian.org/
The Wind Rises is a masterpiece, and one I would especially recommend to any engineer.

The protagonist loves planes. He loves their grace, their beauty, the way they soar through the sky. He spends his whole life trying to build a great plane and... succeeds, only to find his dream (and Japan) in ruins from WWII.

It's a riveting exploration of the cost of mastery of your craft, made by a master of animation. Highly, highly recommend.
"What makes you as a human more valuable than other animals is your ability to communicate. As if your have everything muted you are making yourself less valuable."

That's a nice hypothesis. do you happen to have some research or such regarding this. that could be a nice read :)

And it seems you agree with the original intent of my message.
There is a time a place for being focused/left alone. And it's not up to a piece of software (or other humans) to decide this on a permanent basis.

also regarding "You will get less done in total, but what you do get done is so much more valuable to humans as a whole that it is worth the loss of focus."

It's funny because I have the opposite experience.
Guess everybody is different in this regard.
4-5 of the top 20 CS programs are in the Upper Midwest, depending on whether you count Western Pennsylvania (I personally do — politics are solidly Midwest conservative; manufacturing is a major industry; ethnicity is largely German-American rather than British; religion is largely Catholic and mainline Protestant rather than Quaker and Congregationalist; and so on. Pittsburgh looks and feels more like Columbus than like Philly.)
My personal take on this is that s.230 protections should not extend to companies using any kind of specialized "algorithm" to dictate what appears in a user's default feed on the website.

A feed or timeline view should be simply that: a scrollable list of the most recent visible things from people you have shown a specific interest in (follow/subscribe/whatever), and it should be the default view for the platform. Anyone deviating from that to add their cool special sauce should be excluded from those protections because that's editorializing their content.

If they want to have some "explore" section that does the algorithmic magic, sure, but it should be opt-in.

Carve out specific rules for users not logged in that can show the basic stuff (e.g.: "most interacted" -- likes and/or comments, "Latest from most subscribed"), perhaps a carve-out by region.

Disallow banning people except specifically for extreme ToS violations, harassment, and other criminal activity. Apps must provide robust anti-harassment features (block lists, inability to tag users who have blocked you, those don't show up in search, etc.), reporting mechanisms, etc.

If you deviate from these you lose s.230 and are open to being sued the same way newspapers are for their editorial content.
> Websdr started a 3 year journey/obsession into SDR for me. Proceed with caution.

Maybe you should get a ham radio license then :-)
> should not be legislated without consulting medical professionals

I don't understand what you are on about. This is an option. Nobody forces people to participate. Nobody forces the medical professionals to prescribe it. Nobody even forces the medical professionals to consider it in any case.

> If you're feeling depressed enough to see a doctor, a free museum visit is unlikely to do anything for you.

Yes. The first sentence on the page: "Brussels tests cultural visits to treat anxiety". So we are talking about anxiety here and not depression. The second sentence on the linked page: "Psychiatrists in the city can now prescribe free visits to cultural venues to complement other treatments" So it is, even if prescribed, recommended in addition to other treatments. And again. It is optional.
Is that a bad thing to deamplify it a bit?

Certainly not. I'm just saying the government should not be directly leaning on you to deamplify it. If you want to deamplify it on your own, fine. If the government wants to make a public announcement that "social networks allowing this sort of thing is bad" that is also fine.
DALL·E is the first darling of Web 3.0, The Semantic Web
I don't believe Europe has three strike laws. Anyway, in the US, three strike laws only apply to criminal charges and not civil ones.
For one, they could be a high-end export-driven economy, as there were lots of wealthy (by global standards) consumers. They've now built out the bureaucratic and practical infrastructure of building where they sell at scale. They also had time to test out various central bank/financial/strategic policies to figure out what worked.

With the rest of the developed world (outside of the US and a few others) moving into aging demographics more-or-less all at once, export-driven economies are going to be hard-pressed as global consumption decreases in the developed world. They also won't have time to experiment.

Now sure, theoretically governments could learn from Japan's successes and failures and, being forward looking, could initiate policy 5-10 years in advance to offset the worst of the impacts and... sorry I just laughed into my keyboard. It's going to be a show, people will wake up one morning, stuff will be expensive and broken, no one in power will understand why, problems will be denied for months until things break beyond the point of no return, and the solutions will be rushed, poorly directed and half-assed. See Germany's current energy woes.
And this half of my main beef with the language. To be clear, I absolutely agree that this aspect of it is wonderful, but it is a double-edged sword, and the edge pointing at the programmer's face is very sharp.

The second half of that beef is that most C++ learning journeys bring the learner up to the point of creativity without addressing concepts like Strict Aliasing which are not useful until you start getting "creative". That's big a problem because code containing strict aliasing violations (and/or any of a myriad of other UB) is often fundamentally broken while giving the illusion of behaving as intended.
So wait, everyone is self reporting the high efficiency and output but also complaining about how much wasteful BS they're doing? Which is it?
> Jailing executives is too hard

Do you mean "too difficult" or "too bigger punishment"? Either way, I disagree. If they reap the reward of huge salaries, they ought to take some of the risks.
A disgusting lie. And at the same time it is simply not a good argument against the unrest even if true. Irans totalitarian regime deserve to face its people.
> 85 percent of bosses say hybrid work makes it hard to be confident that employees are being productive

If they can't be confident employees are productive because they can't see them working, how on earth did they measure productivity before? Weren't they merely measuring how many people they could see working and not whether they actually produced anything?
Euromaidan 2014 overthrew a democratically elected president.
The "in-app browser" is Safari, not their own rendering engine (Which is explicitly disallowed.) The difference between in-app safari and external...is that the app can get callbacks for every link tapped within the in-app browser, and the app itself can inject javascript into each web page it loads, which essentially means unlimited perfect tracking for social networks (Since the user is already logged in to the app.)

This sounds bad...but the integrated webview is necessary for things like Cordova/Ionic/React Native/etc to exist on the platform. It's also a byproduct of iOS's pre-multitasking days where launching out to Safari was a big context change, vs now where you can just swipe back to the app you were in.
You can probably find a few condensed matter groups that are doing computational simulations, but I think full quantum mechanical simulations on that scale are computationally intractable so they'll have to use approximations of some sort. This is why quantum computers are predicted to exceed the computational power of classical computers.

Besides it's been fairly recent that simulations for classical thermodynamics with a decent number of particles became somewhat feasible. And even then it often uses lots of approximations as well as statistical tricks to get decent results for sizeable systems. For quantum mechanics quite a few tricks to explore the state-space stop working because the state-space is unimaginably huge, so I'm not even sure how to begin to do similar simulations, but I reckon they'll be disastrously slow for all but the simplest of systems.

The level of detail you need for a simulation that allows you to see cooper pairs come into existence is downright insane, you might be better of trying to predict next years weather.
I see both sides here. It'd be different if I didn't hear from clients/users about how they can't get push/location/etc feature to work only to find out they dismissed/denied the initial request. I have code I move from project to project to handle the soft-request and to handle the "you denied the system request, let me guide you to where you need to go in settings to fix this". Turns out my soft-request code goes against the rules (ok, that's fine, I just with it was constant) so I'll remove that but getting only 1 try to request is rough (though I agree it would be worse if apps could request that an unlimited number of times). I don't know what the good middle ground is here, maybe 1 request is the middle ground.
having a 15 day return period for games that can be beaten five times in that period doesn't make sense
As far as I know, the state of crypto privacy is that everything is directly traceable except:

* Bitcoin lightning transactions when the lightning nodes involved are trusted to not keep logs

* Transactions through mixers with a lot of users

* Monero transactions

* Zcash private transactions

And everything is de-facto traceable except:

* Tornado cash users who use standard-size amounts (or users of another equivalently large smart-contract-based mixer)

* Monero users who are careful about their entry/exit

Zcash privacy doesn't have enough users for anonymity, most mixers are too small, and lightning users generally use nodes from exchanges which do log a lot of information that isn't kept on chain.

Am I missing anything? This seems kind of bad for cryptocurrencies in general if everything is basically traceable.
contradiction:
An inconsistency or discrepancy.
I'm not sure I follow what it is they're benchmarking (although I struggle reading text that has too many images so I may be confused as to what they're even doing).

I'd expect the bottleneck in a database index to be your disk or RAM access patterns. It seems very counterintuitive to see a real-world speed-up from SIMD if that is the case. The fact that they're seeing one in the benchmark would suggest maybe the benchmark isn't entirely capturing the right thing.
Easy to switch between giving all your data to Google and giving all your data to Google, sure. Bear in mind, Android hardware is no longer unique or distinctive, every glass rectangle is the same, so those choices are pointless, but our lack of privacy is pervasive.
California’s non compete ban and laws protecting personal IP from employer’s claims.