skysight-inc/HackerNews huggingface dataset:
There's more to life than C++. It was implemented in OpenJDK and seemed to get some good results there in micro-benchmarks at least. The nice thing is, it was a transparent upgrade. Synchronized blocks just became TSX transactions, unless they aborted too much, in which case they went back to being ordinary lock based critical sections.

The bigger problem was actually that in many cases where the optimization could be applied there was always a conflict, usually because of updating some sort of statistical counters. So a lot of attempts to optimize this way would de-opt. It could be fixed by changing the way stats were aggregated to be more tx-friendly but few developers ever did it.
Rich Hickeys Company Cognitect is now owned by a bank from brazil. They started off with Clojure though.
This is both the most plausible explanation for current actions and future planning. They can't afford to "let it rip" as US/UK/Australia did as they don't have the same hospital capacity per capita and the number of resulting deaths would be politically untenable.
Planespotting with the ‘Avgeeks’
Bad take, disingenuous
China's policies have kept the global economy afloat. They've been operating for the last two years almost at normal, in stark contrast to the US and company.

And what a disgusting comment to make. Yes, how dare they stop producing goods for us to consume! Do you also discuss our obligations to the global economy like this? What is our comeuppance to be for our comically poor COVID policies reducing global demand?
This one-line AI could be of interest: https://clipasso.github.io/clipasso/
According to this article [0], x86_64 level 4 is AVX-512 itself. So no, you lose a level completely. Nothing gets borked, and you get level 3 hardware.

[0]: https://www.phoronix.com/scan.php?page=news_item&px=GCC-11-x...
The nvim on my work laptop is old being from Ubuntu 21.10 so I went with Nix (because I dont like Snap). Fairly easy to set up, Nix is even included in Ubuntu repo.

You only have to install it once, and update things like update-alterrnatives or play with $PATH.
> That's a false dichotomy and the exact argument one would expect from a proponent of censorship. That puts you in the wrong camp, the fascist authoritarian camp, sadly.

Sadly you don't really elaborate on how my comment reveals the authotarian position you do falsly assume I hold.

There is a position between no censorship and full authotarian style censorship and it is a common rethoric vehicle to first talk about the extremes to show that the reasonable area is somewhere inbetween (and then we can talk about trade offs and priorities).

My main point as someone who studied media science is that we cannot treat modern social media with the exact same rules we treated other speech with, because ultimatly it is a different place to speak in. The social distance is lower than anything we ever had in history, the audience bigger than ever in history, it feels private but you are in the spotlight at the same time (and people tend to act like this). It is a place where a rural person communicating a rural opinion will be directly next to a city person communicating a city opinion. Before social media you had natural borders of which people could actually hear (and/or react to) each other. So it is fundamentally different place than anything we ever had before it.

And different places have different rules. Someone who speaks loudly in a library will be thrown out (because the place has a certain function and them speaking loudly interferes with that function). Someone who repeatedly and loudly farts in a restaurant might be thrown out. Someone who listens to music in church might be thrown out. A bare-breasted women in a mall might get thrown out etc. Different places, different rules.

The question now is: what kind of place is something like twitter? What behaviour shall be accepted or restrict there and with what goals?

If our goal is the equivalent of a verbal bar brawl where people can let out their innermost emotions we might end up with different rules than if our goal is rational and fact-oriented discourse with the goal of moving discourse forward (these places have typically stricter rules of which speech is acceptable, as can be seen for example here on HN).

With twitter a lot of the emerging behavior that can be observed is a direct result of or a direct reacrion to the systemic structure of the place. If this shall be seriously changed you have to either establish a new culture how one has to behave in such a place (hard) or you change the systemic variables itself (easier).

But one point I want to stress is: by allowing most speech one might involuntarily prevent other, more nuanced speech from ever emerging.
Presumably investigating someone over that would violate their 5th amendment rights, no?
You can separate the two things, most people are multidimensional. I have a lot of friends that I respect who hold abhorrent beliefs.

You can say that the first person should be free to say whatever they want, and that the people affected by it should be able to say whatever they want, that's completely irrelevant to the issue.

Cancelling means someone losing their financial safety and that of their family for expressing their opinion. If your response to this is "tough luck", I'd say you're showing a lot of privilege, and lack of empathy that'd get you cancelled if expressed about one of the hot button social issues.

You cannot both claim there is free speech (the principle) and that it's fine that people get fired for what they say, it is fundamentally incompatible.
Sounds great for testing the candidate but at the same time it sounds like the best way to get the candidate to look for another job.

I still haven't found a company larger than a few employees with a codebase that didn't make me want to leave.
This comment seems off topic and it's heavily down-voted but there is an element of truth to what this person is saying. Please hear me out.

I've been through the process of installing Ruby on a Linux (Ubuntu 20.04) laptop I got for my new job. Here is how it went:

1. I obviously can't just `sudo apt install ruby` as the version used by projects differ, and also differ from the one in the repositories. This has been an issue since forever with ruby on Linux.

2. Tried installing rvm as this was the method I knew from a long time ago (before I started using docker for local development). The one in the repository could not install ruby properly and the one from rvm.io gave gpg errors.

3. Tried installing rbenv, again the one from repositories had problems when installing ruby versions.

4. Installed homebrew on Linux (yes you heard that right, homebrew, a mac tool, on Linux).

5. Finally managed to `brew install rbenv` and `rbenv install $RUBY_VERSION`.

6. Of course, the normal stuff like needing to install `libpq` and `libffi`, and other build packages, because `bundle install` would not finish successfully without them. Error messages for these are still cryptic, you figure out the issue if you read them carefully, but still a pain.

So yes, it's not necessarily Rails's or Ruby's fault, but it is a struggle today just as it was back in the day. And I think this problem needs to be acknowledged and worked on by the ruby community. It's a shame since ruby itself brought the world a lot of wonderful tools and practices that I think improved developer experience (it certainly did for me) and seeing it being neglected like this is painful.

P.S. Nowadays I do all my development work withing a docker-compose setup, I don't even need ruby installed on my laptop. But I think new joiners in the ruby community need a better on-boarding experience.
I know the article is about JavaScript, but I was wondering how Swift resolves the problem of weak self within the async/await model.

If the part of the function after await is the callback, how do I specify weak self if I need to?
Sure async/await makes your casde more complicated .
That reason why, I prefer use Go for I/O wait application because I don't need to manage this Go doesn't it fore me.
My code still readable and simple.
> The most common power reactor design, the pressurized light water reactor, heats water to around 315 degrees Celsius

Can’t it just heat something else than water? E.g. something that’s liquid at 2000C?
If you're doing nothing in between your async calls, using .then/.catch might be simpler.

As soon as you need to introduce local variables and complex control structures, not having shared closures between your .then methods becomes extremely limiting. Hence, the async/await sugar.

About having to add await to ensure your error is handled with the try catch — not putting an await before a promise is something I use all the time. Being able to store tasks/promises and reuse/await them later is a clear advantage to other types of async code (such as coroutines).
Because the other players will react differently to the same moves and you get different boards after the first few moves.
How is spam blocking not content moderation?
And of course, no reply
It's important to be kind to everyone. Anyone "skeptical" of a trans person really ought to mind their own business. I agree with you there.

To play devil's advocate, some identities have less currency in current society. See "Neopronoun" [1] for examples. To lliamander's point, there is a gray area where not everyone is going to feel comfortable with unfamiliar gender constructs. If the rule is to accept everybody's identity at face value, then that closes down any space to feel uncomfortable calling someone "kitten," to use an extreme example.

[1] https://en.wikipedia.org/wiki/Neopronoun
There's nothing conspiratorial about pointing out the close ties between organisations like the ACLU and HRC and the Democratic party, if that's what you mean.

Sad truth is, the moment an advocacy group and a political party become too close, the advocacy group ceases to be effective. This has nothing to do with Democrats in particular; cozying up to the Republicans is no different (e.g. the NRA).

I'm heartened by the emergence of organisations like FIRE that are picking up the baton for free speech in some of the contexts where the ACLU has completely dropped the ball, but still feel a pang of sadness at the hollowing out of the old, bad-ass ACLU.
It's just words with no weight on them. They very much care about politics. They even banned Donald Trump.
You may find this recently released video facinating as I did: https://youtu.be/2rUV4TAP46U

The idea that cannabis would have inconsistent effects, or the effects of different strains was always a mystery to me until I watched it.
Agreed. I'd like to add that PRs are not only a means to review code to improve that code. They're also way for new hires and jr devs to learn new things, how the hive mind thinks, etc. This is, ideally, today's PRs help improve tomorrow's code as well.
How do you know you've tested all cases?
>On a friday night no less.

Not just any Friday, but Good Friday, which happens to be a legal holiday in many countries, including here in Germany. And since Easter Monday is one too, a lot of people will go on vacation on this "long" weekend (maybe even taking a couple of days off before or after to make it even longer)... Flights and hotel rooms booked, and all that.
With the dozens of variations depending on context, position of the writer and recipients, if you know them personally, etc.

Canadian comedian François Pérusse has a good sketch about those, called Veuillez agréer.

I still use them on formal written and printed letters, mostly with contractual stuff, government services. Maybe once or twice a year.
>Also, you're really understating how good Tesla self-drive is

How good is it?
Yeah, I lie and I'm already a dead man. Thanks to the Hell Express I can even shitpost on HN after I died, so it's not too bad.
> For instance, say I live in a very expensive city and I can no longer afford the land tax.

One of the major reasons that our cities become expensive in our "modern" society is that we don't have land value taxes. If we have a land value tax, then when someone decides they can't afford to keep paying the tax, they sell it to someone who can OR they find a way to make the things built on that property much more valuable so that the tax is affordable. It provides a very strong incentive for property owners to do things like tearing down single family homes and building multi-unit condos in their place. Because there are multiple units where there was previously only one, the cost of living actually goes down. This is why it's considered a very beneficial tax: it promotes efficient use of land from economic perspectives. (This also applies to businesses: if a business isn't able to afford the land value tax for their property, they have strong incentives to find a way to make the use of their land more valuable or to sell it to someone who can. And if the value of their land is going up more than they can afford, that implies that there likely are potential buyers who could make better use of it.)

For us to go from where we currently are to a land value tax would require a transition period, because it takes time to tear things down and build new things. But a society that was implementing a land value tax would see new properties opening up like I described above on a regular basis. So if you couldn't afford the land value tax, you would still be able to stay in the same city (and probably more cheaply and in a nicer, newer condo) unless you absolutely required a single family home or similar low-density housing.
This reminds me of Varga's organization in season 3 of Fargo: https://en.wikipedia.org/wiki/Fargo_(season_3)
> You don't need a house after you die.

Perhaps these are just my European sensibilities talking, but a house is not a hamburger, that you consume and then discard when you're done with it. It is your home, and your children's, and possibly their children's too. It's part of the link to your community, your memories, your history. Not a market good like any other, measured only in dollars.

You despair why communities are dying, why people don't know their neighbors, why they are becoming increasingly isolated - well here's your answer.
Mindanaoan Cebuano
Data out of Turkey, Brazil etc where Chinese vaccines were widely deployed with less lockdowns/restrictions do suggest lower efficacy at both reducing hospitalization and death. That said they are still fairly effective, just apparently not effective enough that China is willing to activate the floodgates. Also they have low vaccine penetration among the elderly which are hesitant to take vaccines in general
27 years ago I accidentally ran the hardest, strangest Easter egg hunt
Yeah, this was already happening with people moving from the bay area to Phoenix.
You are talking about the costs of half-hearted US lockdowns that accomplished the worst of both worlds. Meanwhile China's strict lockdowns allowed them to end said lockdowns extremely quickly. Things like welding doors shut were temporary measures that let them _avoid_ things like lockdown-induced mental problems and overwhelmed medical services. Until Omicron their policies were working splendidly, with life essentially at normal. Even with Omicron it's only Shanghai being drastically affected.

Focusing on Shanghai ignores the >1billion other people that strongly approve of Chinese policy and who saw firsthand how their quality of life was _preserved_.
Kern.al is something like this
>I doubt any of them can speak with much weight on AI. That hardly means they can't make serious points about censorship, or corporate finance.

Isn't this Gell-Mann Amnesia in full effect?

"Sure, they are speaking nonsense about AI, but I bet they have great ideas about corporate finance!"
As someone who prefers the iOS and macOS platforms, the biggest areas where I wish for strong regulatory actions are on the app store restrictions (no side loading and large cuts from the price) and the right to repair fronts. Apple repeatedly claims that Android and Windows are (comparatively) insecure and cites malware statistics, but I’m not seeing Apple really spending money to get capable people at all levels to manage the app stores on these platforms. There have been plenty of reports on developers making millions by gouging users with useless apps.

This instance of ransomware on the Mac App Store is mind boggling. I thought the apps listed on the Mac App Store are heavily sandboxed and that they couldn’t get more permissions without somehow making the user change settings in System Preferences (and even that wouldn’t be the same as installing a binary downloaded from the web). How does an app get through reviews and technical restrictions?

When it comes to the app stores, Apple’s negligence over the years while making more than 70% margins on services (which is where app store revenue is counted, AFAIK) is appalling. I’ve avoided spending money on these app stores, and prefer buying from reputed developers for macOS apps. Unfortunately, that’s not possible for iOS.
I agree. I think the article takes a simplistic view of the use cases in an effort to make the post consumable but in doing so, misses some of the point behind the syntax.
> There are countless SaaS applications asking for full-repo access to Github (all the source code, with write access).

Sentry does not request write access to source code. It requests read/write access to issues and read access to source code. You can also see this on the documentation for the GitHub enterprise integration which lists the exact permissions required: https://docs.sentry.io/product/integrations/source-code-mgmt...
Only if you are limiting yourself by the options mentioned by the top comment author :) I was interviewed many times without showing any of my code. The most effective way I saw: the interviewer gives you some code and asks you how you could refactor it, what parts you would implement differently.
Apart from tbe rapists (plural).
Yeah combination of several factors. Lower vaccine penetration, lower efficacy, lower hospital capacity per capita. COVID zero is the only moral option, they can't choose the death of millions.
A manager at my company finishes all his mails to those who aren’t his superiors with “A très vite” which means “See you/hear from you very soon”.

I always want to do that with people I don’t work directly with. But I’m not cocky enough yet.
> they DONT CARE ABOUT POLITICS. They really don’t.

How was censoring the Hunter Biden laptop story not caring about politics? How is banning gender critical theory not caring about politics?

Yishan simply isn’t keeping up with twitter in the last few years.
I find it very ironic how people who were fine with censuring people whose opinions they didn't like, repeating "free speech does not imply free reach" and "private companies can do as they please", are suddenly freaking out when there is a slight possibility that they might emerge on the censured side.
Two I like are the Pilot G4 range, and the Uni Pin fineliner range. They punch above their weight and if you damage the tip you haven't spent too much. The 0.3mm has become my new goto: https://uniball.co.uk/brands/pin/uni-pin-03-line-drawing-pen...
Twitter acts as a public square in the sense that there's basically no one there and only a fraction of the people actually talking.

People - mostly 'media types' - give Twitter and outsized amount of importance. Significantly more people 'use twitter' by way of journalists taking tweets off platform and talking about them in news/other sites for whatever reason.
Async / await is nice syntactic sugar. I don't understand why they copied the naming from c# over do syntax in Haskell (which dates roughly 1995, if I'm not mistaken).

The main problem is error handling, having to use try / catch is pure cancer and really screw up your closure.
You can use catch together with await / async but then you're not dealing with exceptions outside the promises.
>The second the car is out of the hardcoded route it's not a self driving car anymore.

So what you're saying is that at least the car is self-driving sometimes, whereas the Teslas never are. That's your pro-Tesla argument?

You can get in and drive around in a Waymo taxi with no driver and yet Tesla fans are still claiming it's not self-driving, while Tesla is. Hilarious.
> Why do software engineers insist on re-inventing wheels every few years rather than grab existing, proven and solid solutions for this?¹

For one thing, because it works very well and is much easier to wrap your head around than the command pattern (much less undoing a command, and keeping track of which commands make incompatible changes).

These things are worth the effort if you are going to build an app that will be around for ten years and serve an existing market. Much harder to justify if you are still figuring out what you actually need to do.

Like, I agree with you that most developers just don’t know about it yet, and therefore don’t use it, but that’s also a factor of MVC just being the right choice for 90% of all apps, and easier to get started with.
As a fullstack dev, I worked with

- Spring MVC (Java Futures)

- Spring Webflux (Reactor observables)

- Scala (Scala Futures & for comprehensions)

- TS async/await

- Angular observables

- React hooks (which combined with Redux, React Query etc. is a special approach to async programming.)

I think it's very important to understand that ultimately, async (non-blocking) programming is kind of a "hard problem" and there is no trivial solution for it. But we can't get around it because we must not block code execution: Javascript runtime environments are single-threaded (except workers) and the JVM has limited thread count, too.

Any senior developer has to understand how each of these approaches work and how they are trying to solve the issue of non-blocking code execution. I dare say that this problem area is one of the hardest ones during becoming a more senior developer.

In terms of ergonomy (developer experience) when it comes to simple chained non-blocking calls, in my opinion nothing beats async/await in terms of syntax simplicity. I miss them from Java & Scala! No indentation, lambda functions, flatmaps, monads or special methods/hooks needed. You just have the result of an async method right there.

I don't agree with the author that we shouldn't use async/await because it _looks like_ synchronous code. We _should_ use it to keep syntax simple and clean wherever possible!

The developer has to properly learn the language fundamentals (and how JS code execution works) and know that async/await is just syntax sugar over Promises and generator functions. If they don't do this, then having a Promise.then() chain instead of async/await won't help that developer write better code.

On the other hand, once they understand it, they can freely choose between async/await and Promises depending on what needs to be written.
I honestly don’t think there is that possibility. Elon hasn’t discussed censoring the far left and I don’t think he cares or feels it’s productive to do so.
> We banned and kicked their sorry arse off the server.

Is this... a moderation policy?

> The Internet was truly free.

Hmmm...