skysight-inc/HackerNews huggingface dataset:
This is a similar approach to what Kotlin did with its co-routine implementation. Aside from the suspend keyword, there are no language features that you work with directly. Instead everything is done via the kotlinx-coroutines library. Kotlinx means it is a multiplatform library with implementations for native, js, and jvm that do the appropriate things on each platform.

Basically how the library realizes this is opaque to the user and indeed it does things like reuse low level primitives available in each of the platforms. Basically, at it's lowest level it is simply syntactic sugar for callback based implementations common in platforms that have things like Futures, Promises, etc.

In fact it's easy to integrate any third party library that provides similar constructs and pretend that they are suspend functions. E.g. the suspendCancellableCoRoutine builder can take anything that has a success and fail callback and turn it into suspending code blocks. For example Spring supports coroutines and flows out of the box now and provides deep integration with its own reactive webflux framework. So, you can write a controller that is a suspend function that returns a flow and it just works as a nice reactive endpoint.

I actually would expect that these new C++ capabilities will also find their way into Kotlin's native coroutine implementation eventually. Kotlin native is still in Beta but seems popular for cross platform IOS and Android library development currently.

Kotlin's coroutine library took quite a while to get right for the Kotlin developers and evolved a lot between Kotlin 1.2 and 1.4. Parts of it are still labelled as experimental. Particularly, reactive flows are a relatively late addition and have already had a big impact on e.g. Android and server-side programming.
how ready is it?
Why is a single headerness so important here?
We use Arcanist + Phabricator, but main repo is SVN yes. We also have two git mirrors.

We use Premake5 instead of CMake, for historical reasons. an attempt was made at Meson but it was too messy on Windows.

We only switched to C++17 because Mozilla's SpiderMonkey headers required us to. Else we'd still be at C++11
Building a Blog
How product and markets guy me built out and hosted my blog a year and a half ago. Medium was cool and all but having control over the stack is pretty great even for a noob like me
> Herd immunity does not mean that a disease is eliminated. It means that the spread of the disease is naturally controlled.

Not necessarily "naturally".
If these guys were Indian pretty sure they would be facing jail time for exposing such vulnerabilities (1)

(1) https://www.livemint.com/Opinion/S6Ep52qB9PK1DRLFUbUDBK/The-...
We are talking about average here and 80+ is not average. The whole point was the the suggestion of moving would be a pointless exercise.

> as job coders are 21st century factory workers, its not on lawyer/doctor/accountant level.

Fair enough, but this proves the author's point. Development used to be on such a level and has steadily declined.
Get him into historical wargaming and miniature gaming, my dude. There are ancients, napoleonics, 30y way, 7y war, WW1 ww2, modern, whatever the old man has interest in. It will keep him motivated until the grave.
Hey, let's connect maybe? You can send me an email at mail@konstantinschubert.com

EDIT: I sent you an email.
I've used typed languages before (C#), and I've used Javascript for 8 or so year, and yep, I too can't see what the hell Typescript brings.

I also used Haxe, which was a similar typed language, that compiles down to Javascript, and writing typed language for an untyped environment was an exercise in frustration.

It's almost like the React trend to write CSS in javascript. It separates the end result from the code even more, and doesn't really get you anything other than the typescript tax.

Maybe one day I will have that aha moment and get it, but the only real reason I see to learn Typescript is if the industry deems it essential to learn.

One of my favourite things about Javascript is how expressive you can be in it. Some of the new ES6 stuff helps with this too, but at the point when you write Typescript, you might as well be writing in a whole different language.

But naturally every typescript fan has a few stories about 'type-safety' saved their bacon, and no stories about how they struggled with defining types for callback functions or getting everything scaffolded for hours.
> Why do people pin dependencies? The primary reason is that they don’t want dependency updates to suddenly break their packages for end users, or to have their CI results suddenly broken by third-party changes. However, all that has another underlying problem — the combination of not being concerned with API stability on upstream part, and not wishing to unnecessarily update working code (that uses deprecated API) on downstream part. Truth is, pinning makes this worse because it sweeps the problem under the carpet, and actively encourages people to develop their code against specific versions of their dependencies rather than against a stable public API. Hyrum’s Law in practice.

Exactly one of the problems with pinning your project dependencies, whatever language your project is in. It's better to unpin and continuously integrate upstream changes as early as possible: it's less work this way at the end of the year, and more secure.
> an attacker with root (but not kernel) privileges could disable swap, write a valid hibernation image containing code of their own choosing to the swap partition, and then reboot. On reboot, the kernel would happily resume the provided code.

Could someone please explain why an attacker with root would do that, and not just use their root privileges? Shouldn't SELinux prevent this kind of attack?
My script template includes some things like `var $=a=>{return document.querySelector(a)}`, `...prototype.evt=(a,b)=>{var e=this.addEventListener(a,b);this.events=this.events||[];this.events.push(e);return e}` and a few other shortcuts. I generally do a mass search and replace to remove them before saving as sometimes i modify them, and conflicting userscripts isn't fun.
src is a cute wrapper for rcs, but it has all of the same limitations of rcs, plus a few extra, so I hope you'd consider sccs/cssc if you wanted something "like rcs" but not.

fossil is also a really interesting choice for an "easy setup" version control system, and it's definitely worth considering if you're looking at sccs/cssc: I've used it to log configuration changes for an application, the "push" functionality to centralise changes from tenants, and then I can store issues/tickets (and other metadata) on the configuration changes centrally.
"worth the effort" is very difficult to quantify. If you haven't touched C++ in a while, I'd say the things in C++20 are intriguing, even if half-baked:

* ranges means that we're starting to get composable algorithms. Compared to doing `for_each` and then `accumulate` on a container, you can compose both operations into one reusable "pipeline" of operations. I really grew to like this from other languages, and am glad that C++ is starting to get it
* modules will help a lot, but I doubt we'll get widespread use for another year at least (until cmake has it; build2 has it, but that's a bit esoteric even though it's very pleasant to work with)
* concepts make working with template-laden code a lot easier. Most of the tricks for obscure SFINAE removal of templates are no longer necessary; one can just express it in a "positive" way as if to say "the thing matching this template should have these properties", instead of convoluted ways to turn off templates under certain circumstances.
* coroutines are very half-baked, but when combined with executors (which will hopefully come in 23) it will really be useful I think. The stackless nature makes them hard to reason about, but trying to add stackful coroutines would likely be a non-starter; it would require a lot of runtime support and modifications that would either require a lot of performance overhead OR backward-compat difficulties.

That said, unless you want to actually use it to DO something specific (e.g. make a game, work at a specific company), Rust or similar languages are probably more pleasant experiences. Without a standardized build tool with sane defaults, it's hard to just play around with things in a fun way. Trying to figure out how CMake + Conan works will take beginners at least a day in my experience, and the lack of a solid template "good defaults, applicable most places but easily changeable" for the build system + dependency system makes things a bit tedious to just try things out.
The UK had plans in the 1960s for the Queen, the Duke of Edinburgh, and the Home Secretary to spend WW3 on board the royal yacht Britannia, which would use remote Scottish lochs to hide.

(The Home Secretary was there to allow quorate meetings of the Privy Council, including to appoint a new Prime Minister).

Later on, a class of car ferries were built with airtight doors that could seal the car deck, as well as other features allowing them to be used as floating nuclear bunkers.
There are some surprising-seeming statements one can make about kea. They are alpine parrots. They are omnivorous parrots. They like to destructively investigate things, anything they can, hiking gear, ski clothing, roofs, cars, helicopters, boats, kayaks, etc.*; if they can take something apart or pull something off, they will. We're kind of lucky they're alpine parrots, and stay away from the cities.

* https://www.keaconservation.co.nz/support-kea/kea-proofing/ Any rubber part like wiper blades or window seals is fun to tear apart, as is accessible wiring. Car rental companies have warnings like this: "Please do not leave any of our convertible hire vehicles unattended in the Arthurs Pass National Park area. Local birds called Keas will likely damage the soft top of the vehicle and this damage will not be covered by your rental insurance." https://www.touchdowncarrental.co.nz/frequently-asked-questi...

There are more-surprising statements about kakapo, relatives of kea, but not their closest. They are nocturnal parrots. They are flightless parrots. They got down to just 51 individuals (now over 200). https://en.wikipedia.org/wiki/Kakapo
Apt username.

There is nothing sad about religious beliefs. We all have them but most people are not willing to own up to that. They'd rather just go with the flow and adopt the herd mentality.

If you have the conviction and strength of will to go your own way then that is worthy of admiration imo and I think that holds irregardless of the morality of the path chosen. However if the motivation is based in charity then doubly so.

From my point of view you are the 'sad' one (and me for caring enough to write this response). Judging people for dedicating their life to something they believe would lead to prosperity for others... it's so ugly. Show some respect.
> I scanned and ended up on a parked domain name.

Another "attack" is simply to print and stick a different QR code on top of a public one. Then you could redirect unsuspecting users to a malicious or advert website. The fact that this isn't done tells me nobody really scans public QR codes...
This is confusing. I couldn't tell what it was counting.

"Change in Net Worth" or something would make it clearer. But it's still not great.
Me too. Made me realise I picked the wrong language just for a performance boost. The Go patterns mentioned earlier are even worse.
I mean "naturally", in the sense that it is a process mediated by the immune system. Even a vaccine-induced immune response is natural.

But yes, my choice of words is confusing there. The point I am making is that herd immunity is not eradication. People (like the OP) confuse the two concepts.

You can have herd immunity in a population, and the pathogen will still circulate. Observing that a virus still infects people is not evidence that herd immunity to that virus has not been achieved.
The amount of time it takes to reach the final number is infuriating
We have this saying in my country "if grandma had a mustache she'd be a grandpa".
CPAN exists since 1993, online since 1995. CPAN has the package manager, which is able to install perl software with their dependencies. It's not a new, unknown technology.

If you are sure that you can create functional, stable, bug free, hole free, up to date, full of useful software distro with 10 independent package managers instead of one, then just do it. We will enjoy it. You will spend about 10x more time than current maintainers, but your time is free, so it's not a problem. Of course, we will say huge THANK YOU for your incredible effort, with nine zeroes after initial zero, except for some hatters, which will blame your perfect distro at HN for no reason.
"pay" appears twice in the article, "salary" exactly once.

The author did touch the salary topic, but it is not the main point.
void main() does not exactly inspire confidence.

https://stackoverflow.com/questions/636829/difference-betwee...
Great visualization on how crazy reality can be.
A resounding yes. My father didn't care for me much in his younger days, and now he is miserable because I seemingly abandoned him and my mother, whereas they are just emotionally abusive and unwilling to change.

If you like your father, get into miniature painting and historical wargaming with him.
"Money earned"
You need to Add support for in-kernel resetting of PCRs
Negative or positive...
I have always wondered why the cockatoo screams in this [1] video, when it is the aggressor. I suppose that's the cockatoo's way of laughing?

[1] https://www.youtube.com/watch?v=PRQebpwoOg8
And? Open your own business and make money.
This is fun to watch, in the time it took to look at another article, the number that appeared was double what I make in a year.
Hey, thanks for the feedback.

I agree that the market for this particular product is very small.
I really liked Josuttis's book on C++17 (https://www.cppstd17.com/). The only C++20 book I know of is the Grimm book linked in the referenced blog post (https://leanpub.com/c20). I'm glad I read it, but honestly it's a bit rough still. To be fair, though, it's still only a draft so will probably improve. And I'm assuming you already have C++11. There are a lot of resources for that one. I happened to use Stroustroup 4th edition, but I'm willing to believe there are better books, particularly for people already familiar with C++03.
For me, I use a Shield because of the technicals. It‘s currently the most complete solution if you want dolby vision/atmos capable playback with local stuff (plex/kodi) and streaming services. The shield pro 2019 is also the only box that manages to play 100gb+ 4K stuff without issues. Most people don‘t care about that though.
Reminds me of this dialogue from Gödel, Escher Bach: https://people.whitman.edu/~herbrawt/classes/110/Hofstadter....
the radio station owner's didn't recieve money moat of the time either in the payola days. it was the DJs amd programming managers..cant divvy up a 1/4 kilo of coke as a dividend payment.
I'd buy it in a heartbeat as long as there's no locking down of the software on it. A lot of these sorts of single-purpose devices go weirdly out of their way to be hostile to people modifying what software runs on them, which makes it all the more difficult to keep them working after, say, the manufacturer discontinues the product (or itself). A piece of hardware without user-serviceable software might as well be disposable - and the last thing the world needs is more disposable electronics :)

It's also worth noting that if you're marketing this for use at work, not all workplaces use Google Calendar; I've worked for quite a few companies that used Microsoft's ecosystem (particularly Outlook) exclusively. For a first go at the software, then perfecting the Google Calendar experience is a reasonable decision, but per above, it'd be nice if those of us with the know-how could mod in whatever data sources we please.

A couple questions:

1. Is this wall-mounted only? Or will it have some kind of stand so I can put it on my desk? Apartment dwellers and open-office-floorplan workers would probably find the latter useful :)

2. Would I be able to sync multiple calendars to it? Or would I need to buy multiple frames (one for work, one for personal) if I want to have both my work and personal schedule on display?
What’s the formula here?
They should have used fixed-width font to avoid the annoying fidgeting of the number as it changes.
In a way are all Jeff Bezos, because Jeff Bezos isn’t just a numerical figure on a web site, Jeff Bezos is there in your heart. And in your TV. And your phone. And your doorbell. And your kid’s classroom computer. And that Prime golf shirt. And...
Bezos has earned this rate of increase in net worth. Further, he's so much more capable of happiness than the average person, and having a lot of money makes him happy.

It would be unjust—nay, it would be abusive if we didn't let bezos make this much
> "I’ve seen many people coming from Python or C♯ try to shoehorn concepts or patterns from those languages in Go. Common ones include using struct embedding as inheritance, panics as exceptions, “pseudo-dynamic programming” with interface{}, and so forth. It rarely ends well, if ever."

I've seen this so much. I did it too. You can almost watch people go through this process in places like r/golang.

We all start off coming from a different language and being used to that, and while Go takes about an hour to learn all the syntax, it's only then that the learning starts. We all then try to write code the way we've always written it, only to find that Go doesn't work like that. Then we bump into the "this standard lib logging library is so shit, let's write a better one" (for the more ambitious, this is a whole framework). Then we learn more, and begin to realise why the logging lib is like that, and why there's no need for some kind of middleware construct, and so on. I'm not sure where this journey ends, because I haven't finished it yet - I suspect my understanding of chans and goroutines is incomplete because I still think they're "a bit clunky".

Simple is hard. But good.
This is hardly the first, nor will it be the last, time a term has shifted and taken on multiple related meanings. I don't have deep enough knowledge to say for sure, but on an initial glance it kind of looks to me like the socialism you are describing is not particularly close to the ideas espoused by the guy the term was originally coined for. [0][1]

You are free to make up some new terms yourself, but if you want to be able to actually communicate with others you need to be willing to look past these kinds of issues and understand what is actually meant.

[0]https://www.etymonline.com/word/socialist
[1]https://en.wikipedia.org/wiki/Henri_de_Saint-Simon
Or make it a wiki.
We were here all along, and yes the current trajectory of the World is starting to rattle things.

We might have been too polite and kept things to ourselves, not that the "Left" understands Social and Philosophical equilibrium.

Maybe we should talk more about things that separate us to bridge them, rather than pointing ever angrier fingers.
NASA says some Earth organisms could temporarily survive on Mars
> That's basically how Google works and is probably the only use case I can think of where backlinks help

Which also opened up for a massive spam problem, whic is obvious in retrospect. The only reason Google sort-of works is because it is not a protocol but a centralized service, outspending bad actors with a massive amount of warm bodies involved.

It is a common theme of well thought out hypertext system, both Xanadu and the Semantic Web which both have had a massive amount of research poured over them, that they aren't designed to operate in an adversarial environment.

Trustless systems such as the bare bones hypertext that is the original web didn't have this problem, in part because it wasn't ambitious enough. This can be seen to validate worse-is-better, or how vast permissionless systems can scale, or simply a stroke of luck. No matter in which perspective, it was a massive success.
This is fun just because im rereading Seveneves, which i highly recommend as a fun fictional 'what if a cataclysmic event took place with near current technology'.

One of the minor plots is a submarine equipped to handle thermonuclear war being further fitted to survive the several thousand years to ride out the event. I wont spoil it further.
Looks really cool! Since I'm just (as a "hobby") starting with Haskell, it looked pretty familiar. (I have no previous experience with ML and Scheme, which is also frequently mentioned as an influence).

At the risk of appearing too lazy to first read everything about it before asking this question (maybe the appearance is true ;):

what are, in a nutshell, the advantages over Haskell and main differences in terms of "not re-inventing the wheel"?
I very much disagree with that quote, so I had to look it up.

It comes from a theologian/pastor who then goes on to talk about why God and the Bible are at the core of human dignity.

Colour me shocked that a pastor criticises a largely non-religious philosophy.
Yes, you can replace basic functionality with a few lines of code, but jQuery has more features.

For example, jQuery.on('') also works with dynamically created elements. If you want that in vanilla JS you have to write more lines a code, I actually created a library/function for this specific use case: https://github.com/Cristy94/dynamic-listener
I also know classic C++ and used it professionally, although it wasn't my main language. I've started using more C++ 11, 14, 17, lately. Particularly with constexpr, and some more stuff with templates and smart pointers.

I would say the experience is about what you would expect. There are some things that are great, that are cleaned up and more consistent. There are more conveniences. But then you run into weird edge cases / quirks, or a cascade of subtle compile errors, and just use a macro instead.

I'm writing a garbage collector and there are a bunch of things where it helps over C, but also a bunch of areas where it falls short. In summary, C++ is still great and frustrating at the same time. If anything that property seems to have increased over time: It's even more great and even more frustrating than it ever was :) Coroutines look like another example of that.
actually, there's also `font-variant-numeric: tabular-nums;` if you want to keep the same font (if that feature is supported)
Images don't load from the second link for me. Sad museum? :/ Chrome on Android btw.
...and align the number to the right.
Your assertion Western journalists haven't visited is false; see a summary here [1].

The whole site is very good - and the independent journalist speaks Chinese and is fairly unbiased (excerpt from site "the US makes a big deal out of the treatment of Muslims in China while underwriting genocide in Yemen"). Especially the analysis on the leaked documents [2].

[1] https://wokeglobaltimes.com/aac16063149c4e37a8e3ee58066c4837...

[2] https://wokeglobaltimes.com/c227d529f6f0469392edbe07980f9f70