skysight-inc/HackerNews huggingface dataset:
My sane way to use (non-modern) C++:

- Use simple POD-like structs as much as possible.

- Don’t be afraid of creating simple functions. Not everything has to be a method.

- Only use virtual functions to create pure interfaces, don’t use them for anything more complex

- Don’t use constructors for things more complex than simply initializing fields. For that, use factory functions or separate Init() methods

- Make use of RAII as minimal as possible. Opt for batch
construction/deletion instead of RAII-like “single” construction/deletion.

- Turn off exceptions, exit early on error or return an error code/error object if recovery needs to happen. (Related to why you shouldn’t use constructors)

- As a bonus, turn off RTTI. Don’t rely on dynamic_cast, you’re doing something wrong.

- Allocate arrays of objects instead of unique_ptrs/shared_ptrs. Use indices instead of pointers as object handles. When objects are frequently created/deleted and indices frequently get invalidated, use generational indices.

- Ownership should be centralized instead of distributed. A central store should contain arrays of various kinds of objects, and it should take care of most of the memory management (as opposed to the “modern C++” way of scattering objects on heap memory via unique_ptr/shared_ptr as much as possible).
That's a monopsony, which is the opposite of a monopoly.

Monopoly is one seller, many buyers.

Monopsony is many sellers, one buyer.
I think it’s just a matter of proportion. Numbers. China has nearly 100 million more registered drivers that the US has total population. As resources come to parity I think it’s kind of impractical to try to out-compete a country that has nearly 4X the population on purely a numbers basis. Pick strategic areas of research that are of deemed importance and compete efficiently and with smarts.

Sure, even if the US was number 3, I would be asking, “guys, let’s get it together.” But countries like India and China are going to make their contributions known on the basis of size alone. If these countries had similar per person resource allocation as the US does, I wouldn't be surprised if they generated 3-5x the output.
Generally you hedge only about 70% of the expected crop, and then place insurance on that 70%. In a bad year you break even, and you get all the excess in a good year.. also the hedging is not all at once. Farmers are already selling contracts for their 2023 corn crop, but typically only 10% right now. They will contract more and more out over time has harvest grows closer. You have a good idea what you harvest for your 2022 crop by now, so you can contract closer to 100% if you can find a buyer.
`class exception1 {};
class exception2 {};

try {
...
if (condition1)
throw my_exception1 ();
...
if (condition2)
throw my_exception2 ();
...
}
catch (my_exception1 &e) {
handle_exception1 ();
}
catch (my_exception2 &e) {
handle_exception2 ();
}`

He posts this as an example of why C++ sucks.

Yeah, but no one actually writes code like that. The whole point of exceptions is for situations where you cannot handle the error locally. If you’re throwing and catching exceptions in the same method, you’re doing it wrong.
I just wish there was anything remotely close to as ergonomic as Fusion 360.
No, it's definitely in study and a lot of computational models of how these mechanisms may work were put forward.

Most definitely it has to do with "to stop something harmful to happen to the brain" but since the brain is such a huge interconnected mess, it's difficult to make a grand statement.

An analogy with weight-lifting (or long-distance running) is easier: when you are lifting weights sometimes you reach failure and you think you can go no further, but usually this is a message having to do with the body parts you are exercising just being to hot... some weight-lifters quickly cool down the palms of their hands (under the arms, under the feets, etc...) and can continue lifting.

Is very simple, you don't want to cook yourself, but the message that we consciously feel is akin to, "I can't go no more" when instead by lowering body temperature, you can come back.

So one factor, definitely, is temperature (you don't want your brain to get too hot) but also is the rate at which you can recreate new neuronal connections (when learning for example. And what are the constituents of these new neuronal pathways? Do you also delete?)

These are only two factors and there has to be a whole panoply of them (electrolytes, vitamins, glucose, dopamine, etc...)
I understood Winnie the Pooh to be the harbinger.

Edit:

Winnie 1926, later purchased by Disney

Willie 1928
I am fine with doubting any particular study, and I certainly have my reservations about social science studies in particular (most of them try to categorise "poorly-defined problems").

But we can either doubt the entire scientific process and throw our hands in the air, or we can work to improve it and look at it critically. At the moment, it's the best thing we've got.

Thus, I dislike the generic "I don't believe results of any study disagreeing with my anecdotal evidence", which is exactly what our scientific process is set up to dispell with. Proper argumentation is about misinterpretation of data, misapplication of statistical methods, insufficient sample size, outright data fabrication or anything along those lines.

Eg. in all your anecdotal examples, you are misinterpreting what "correlates" means. In particular, all intelligences correlating does NOT mean that "some will have all" (a famous statistics observation that there is no representative ever matching your average/median result in any complex measurement: eg you can have an average height of a group of people being 170cm and nobody being exactly 170cm — yet you can still claim how people in the group are 170cm tall on average, and then we can debate if that makes sense depending on the distributiin, sample size etc).
Or Vim users, they have those features too.

But for the Neovim users (including myself), this is handy if they would like to use other applications besides neovim while keeping their neovim session open.
> I think "modern capitalism" where the goal has obviously become: Extract as much value for as little cost as possible is an ethical quagmire when dealing with digital goods. The clear goal is for companies to keep the right to make zero-cost copies, and force consumers to rent a copy for an on-going permanent cost.

1. Your stated goal is not obvious. Actually, it is not a particularly useful way to understand company goals. We need a better understanding of corporate goals in order to explain the variation we see.

To gloss over just one way companies vary: not all companies want to seek profit in the same way. Companies vary in terms of their time horizons. Companies having tough times often try to squeeze out more profits in the short run. More stable companies sometimes are willing to take a hit to build market share.

There are many other ways they vary too: risk profiles, market segments, and more. Another example: some companies actively seek to improve their brand even though doing so is expensive and may not pay off right away.

And let's not forget that some founders do have goals other than pure profit maximization. Some focus first on other things, believing that sufficient profits will follow.

Second, while copies may be nearly zero cost, maintenance and support are not.
Not all Starlink are on the exact same orbital plane. There is some asymmetry but at the same time Starlink sats can also avoid debris from known places.

On this altitude debris would quickly drop out so you would never get Kessler synonym.

Russia would have to shoot down a huge amount of sats.

And SpaceX can easily have 100-1000x the upmass of Russia.

And this is before you can consider lots of counter-measures the US could potentially do.
We already had a policy spanning two separate administrations that punished financially-reponsible people with savings: inflation.
Yeah, that is the best part of the site/features
> Many former FBI officials hold influential roles within [ insert company name ].

> For instance, in 2020, Matthew W. left a 15-year career as an intelligence program manager at the FBI to take up the post of senior director of product trust at [ insert company name ]

I would certainly hope so, it'd be a waste of talent if people with that much experience behind them didn't end up with significant roles elsewhere.
Vue Desktop Apps
Writer, meet basic standards of making claims on the internet.
You get a lot less yield though. There are very few farmers who would make more switching from corn to wheat if corn is an option. Farmers grow wheat where corn isn't an option for some climate reason. Sure your inputs are less for wheat, but a good corn farmer will still make a lot more money on corn than wheat in most cases.
I should say though, I think your proposal makes sense as a way to minimize the impact of any individual checkpoint!

Though you still have to occasionally support arbitrarily large WAL files to an extent because there’s no limit to how big any one write transaction is.
Good to see Chinese make progress in sciences, without buying off brains from the third world in the name of greencards, so-called values, etc.
It's not quite the same niche and it costs $1K, but Rhino might do what you want, you will own it, it has a great user community and is very responsive to its users. For making things to 3D print it should be great.
Most of my training classes lately has used VitalSource.
Apparently they take their DRM pretty seriously, and hide their keys pretty well, and rotate them often.

There's some older DRM strippers for it that no longer work, I'm guessing anybody that has a working set of key extraction won't tip their hat on it.

Of course lo-tech methods can work well enough.

And FWIW: Kindle seems to be switching over to ePub as the default method.
This could be prevented by posting wait times for the next set of trains clearly on the entrances, on most stations is only available inside the gates.

New york does this but san francisco hates you, so they dont.
FWIW, I created an account at Bank of America without an SSN. This was a few years ago though.

I think a lot of this might inconsistent even across branches of the same bank.
Not so 'tiny' when they're using webviews
CTO, cofounder of edtech 2yrs Seed stage SG company, anyone interested to chat?
Looking to chat and learn together!
A lot of corn acres are facing severe drought this year, and so yields are down. Last year it was wheat facing drought and thus low yields.

Look at acres planted if you want to know what farmers expected in spring. Look at 5 year averages if you want to compare the yields with something.
They have a Debian derivative called BOSSLinux, so Indians can just use that if Debian gets blocked.

https://bosslinux.in/
You can reach me at Joshua via linkedin https://www.linkedin.com/in/xueyongjoshua
Self-taught AI shows similarities to how the brain works
It seems to be using the system setting, since on my phone it opened to dark mode by default.
Eventually you'll be able to use std::expected in C++23!

https://en.cppreference.com/w/cpp/header/expected

Don't throw exceptions, require the caller to handle errors and propagate them up the stack (everything returns an expected) if they cannot be handled. You are forced to model the error domains instead of just throwing an exception and assuming the caller knows to catch it and do something with it.

Java has checked exceptions, but, Kotlin decided to abandon them.

The nice codebases I have worked on stick to the Result<T,E> type in Swift or Kotlin. And thus you are forced to 'translate' errors (exceptions?) as described in Alan Griffith's 'Exceptional Java'.

https://accu.org/journals/overload/10/48/griffiths_406/

"If a checked exception is thrown (to indicate an operation failure) by a method in one package it is not to be propagated by a calling method in a second package. Instead the exception is caught and "translated". Translation converts the exception into: an appropriate return status for the method, a checked exception appropriate to the calling package or an unchecked exception recognised by the system. (Translation to another exception type frequently involves "wrapping".)"

If you can't wait for C++23, there's a single header implementation here.

https://github.com/TartanLlama/expected
The social networks are filling themselves with spooks. Internet companies are going to be more intertwined with government than banks, especially because their specialties are so widely applicable in government functions. Virtually every government project has a data or tech element, so potential contracting is unlimited. Some tech companies could really replace entire agencies (under a failing, corrupt government.)

Some startups should really start making that offer. Pitch that your startup should be responsible for regulating beef and monitoring compliance.
TL;DR a quote from this article: "What can we conclude from this warrant? Not a whole more than is obvious." The real question is why has FBI suddenly developed interest in this just 3 months before the midterms? So the "top secret" docs have been collecting dust there for 2 years and until now nobody's bothered?
Apple is behaving like the monopolistic corporation that it is - just as expected.

Treating users as pawns while bullying other corporations, using privacy as fear mongering tactic. All the while it is collecting all the data and plans to provide ads on its own ecosystem.
In case you weren't joking, one of the tenets of open source is no discrimination against groups of people. So it wouldn't really be open source if India were banned from using Linux.

https://opensource.org/osd
Ask HN: Favorite audio book for long drives?
What audio book have you enjoyed most on a long road trip?
> Have to say netflix shows have shaped my view of the world ...

I'm glad you recognize one influence.

> ... and I can't believe anyone would want to go work there in 2022.

You know that Agent Petty (in Ozark) is not representative of FBI agents, right? :)

Are you exaggerating? Can you not imagine a person who would want to fight crime at the federal level?
God, this. I've got tennis elbow and I dread lifting heavy cookware.
What happens when people start using AI to run phishing campaigns too ..
"It is inherently different, because it's been proven that you can detect the use of curl|bash Serverside"

Malicious people do malicious things? I worry that we conflate trust with validity. Some package systems do it better than others, but in principle you trust that for example, a maintainer of a package repository is not serving you bad checksums and malicious content. After all these systems get their checksums/keys on-first-use, so you still need to make the trust judgement. And they could still change the responses based on your ip, user agent, or other metadata they have access to when you interact with the system.

To boil it down to my gripe, the comments about checksums/gpg signing being the reason to never 'curl | sh' make no sense until you can clear the trust argument first, which no one does. And once you do clear the trust argument, and conclude the source is trustworthy, we can have a more technical debate on the distribution mechanism itself and what makes sense from that perspective.

edit: forgot to add, 'curl | sh' is also a trust on-first-use scenario just like with package ecosystems.
> They have the technical means to control what goes on there or not.

They have less control than you may think.

Any ethereum miners (or proof-of-stake validators) who block some class of transactions immediately become vulnerable to denial of service attacks.

This came up back in 2016 with the DAO hack on ethereum[1]. Some ethereum miners considered blocking transactions that moved the stolen funds, but then realized that this was infeasible: if you block such transactions, then the DAO hacker can spam you with them. Such spam on ethereum is usually prevented by requiring the sender to spend money on each transaction (ie pay gas fees). But that fee is only charged when the transaction is included in a block -- if you refuse to include it, then the spammer pays nothing. The kicker is that, by Rice's theorem, there is no way in general to distinguish "malicious" transactions from non-malicious ones (for _any_ definition of "malicious") short of just executing them to see what they do.

So if you as an ethereum miner (or validator) try to block certain transactions, you can be forced to do unbounded amounts of work for free, ie DoS'd.

[1] https://hackingdistributed.com/2016/07/05/eth-is-more-resili...
I don't think just is trying to be a build system. It's major focus is as a task runner and in that space it does it's job well IMO.
This is so cringey. Instructions on how/where/when to pet the cat.
> Why don't people move?

Because learning new software and workflow is extremely expensive for an architect. As software engineers who learn for a living we sometimes take our learning muscle for granted.

Autodesk is simply trying to find what that “cost” is for their user and keep the total price slightly below that.
It's crazy how resistant people are to change (or just learning new things)
...except for perhaps the most important and basic thing you want from a roadmap: being searchable.
Write a KEP not a blog post?
This is awesome! I love the way you have done this. Plus amazingly transparent.
as a heavy split Vim user; they do different things unless you run vim/neovim purely in server mode and remote connect.

The ability to close terminal and reconnect to it later is a key defining reason I run ~90% of my neovim sessions inside of tmux.
> but I have US bank account through Aeldra

Had. Aeldra is winding down operations. They sent out a notice a while ago. Check your email.
OpenSCAD was awesome, but crawled to a halt with any complexity as it was single-threaded. I wish I had the skill set to parallelize AST processing to contribute.
it's in their faq: the crash is caused by a bug in libXft. A workaround is installing libXft-bgra which is a patched version (you can find it in thr AUR)
I'm probably misunderstanding something here, but isn't the author's criticism of exception bubbling and duplicate code easily resolved with exception inheritance? Define a base exception that all others inherit from and catch that in the general case. If you want to take action when a particular exception occurs, add a catch block for it. Duplicate error handlers could be factored out into helpers.
Funny you mention quicksort, as qsort in libc is not guaranteed to be implemented by quicksort. So that's an other poor naming.
The soldiers have no say what missions or assignments they are put on. They do, however, have families and lives and dreams they would like to return to. Isn’t it ethical to allow these individuals to increase their chances to return home, regardless they f what command assigns them to do and whether those plans in and of themselves are ethical?
Has MS ever fixed the bad arithmetic implementation Excel used, that produced explicitly wrong answers for ordinary computations? Maybe an optional setting for a worksheet "Produce right answers"? And, "New worksheets should have 'Produce right answers' set"?

(I don't recall the details about the bad arithmetic.)
No graph, but it’s always two-to-three years away for the last 50 years give or take
Your first article is about how the NSA asked for but did not get permission to track hackers who were not known to be tied to foreign governments — no expansion in domestic surveillance there.

Your second article is not about domestic surveillance at all but about foreign surveillance that isn't expanded but filtered by different agencies the same way that the NSA filtered it.

Your third article doesn't contain a single example of expanded domestic surveillance.

The fact remains that Obama completely shut down one of the two domestic surveillance programs that Snowden leaked (https://www.theguardian.com/world/2013/jun/27/nsa-data-minin...) and limited the other (https://www.lawfareblog.com/nsa-ends-bulk-collection-telepho...).
It would be very interesting to see a parallel universe version of this thread where the subject was a Chinese company and a Chinese intelligence agency.
lolwut

Having written a few kioslaves decades ago, I feel pretty qualified to comment on Qt's signal/slot performance. Similar to select and poll, QSocketNotifier fires off a signal when there's data ready on an fd. Typically you won't see an event per byte with either interface (unless you're deliberately writing obtuse code).

I think that a lot of the "Qt is slow" nonsense came from C++'s awful reputation especially when it came to templates. The reality was that signals/slots were always a slick and performant wrapper around callbacks. It's worth noting that Qt in all its glory is available on QNX (a well known RTOS) and has been since 4.6. Performance is a non-issue.
I used a trigger function to detect long text and trim the source before it got indexed. That meant that any text over 500kb just got dropped from the index. I also used one index per long text field rather than combining with other fields.
> They're not hiring them as janitors or cooks, so isn't that 7,500 number pretty irrelevant?

It is good enough estimate, certainly good enough to support the "Dozens hired of a >7500 workforce amounting to ~0.5%. Is that alarming?" argument.

If you want, make a guess that Twitter has 1% of its headcount as janitors and cooks. Then revise 7,500 to ~7,425. The resulting math will vary about 1%. Peanuts.

> If they switch CEOs, we could call it a 0.00013% turnover, but that would also be silly.

Facepalm.

The comment is unrelated, a strawman, and laughably argued.

Take a mulligan and try again?
A more important factor in the app-switching use-case, imo, is that Spotlight or Alfred require just static unchanging input, so you can bash it out without second thought, and usually without looking at the displayed result (after learning the necessary text to trigger the app selection). When cmd-tabbing, you have to look at which app is under the highlight ‘cursor’ and where is the one you want, then position the cursor on the desired app—this all keeps visual recognition engaged and requires conscious choice at many steps.

This is also the reason why both mouse-clicking and touch-tapping are slow compared to keyboard typing: you likewise need to look at what is where on the screen, then aim with the mouse or the thumb, instead of just jerking the fingers to keys that are in muscle memory.
If the FBI was so effective at these problems, why are these problems so rampant? Could it be that the FBI is too effective at these problems? They have enough funding to run many operations...
Years and years ago (before the init wars) I made an init system that was just a makefile run by a statically compiled make binary. While this was fun it outlined what I dislike about declarative run control systems (you don't see what's actually going on without having it be pointlessly verbose). But as far as that went it ran my silly micro distro pretty well.
Tauri uses the operating system's web view, so it's significantly smaller than Electron's "ship a whole copy of Chromium" approach.
And that's fine, because we need more mixing of ideas between government and the private sector, rather than government operating with no idea of how to operate a business [1] and businesses operating with no regard for downstream impacts.

[1] https://www.wsj.com/articles/no-business-experience-needed-j...
Upvoted since the blog post is a pretty factual examination of the search warrant and lacks conjecture and hyperbole about what it might all mean.