skysight-inc/HackerNews huggingface dataset:
Let me cheat a bit and say Unicode comes in three flavors: UTF-8, UCS-2 aka UTF-16, and UTF-32. UTF-8 is byte-oriented, UTF-16 is double-byte oriented, and UTF-32 nobody uses because you waste half the word almost all of the time.

You can't reduce the bytes in UTF-8 or UTF-16, because you'll scramble the encoding. But you could parsing the string, codepoint-at-a-time, handling the specifics of UTF-8, or UTF-16 with its surrogate pairs, and reversing those. This sounds equivalent to reversing UTF-32, and I believe is what the original poster was imagining.

Except you can't do that, because Unicode has composing characters. Now, I'm American and too stupid to type anything other than ASCII, but I know about n+~ = ñ. If you have the pre-composed version of ñ, you can reverse the codepoint (it's one codepoint). If you don't have it, and you have n+dead ~, you can't reverse it, or in the word "año" you might put the ~ on the "o". (Even crazier things happen when you get to the ligatures in Arabic; IIRC one of those is about 20 codepoints.)

So we can't just reverse codepoints, even ancient versions of Unicode. Other posters have talked about the even more exotic stuff like Emoji + skin tone. It's necessary to be very careful.

Now, the old fart in me says that ASCII never had this problem. But the old fart in me knows about CRLF in text protocols, and that's never LFCR; and that if you want to make a ñ in ASCII you must send n ^H ~. I guess you can reverse that, but if you want to do more exotic things it becomes less obvious.

(IIRC UCS-2 is the deadname, now we call it UTF-16 to remind us to always handle surrogate pairs correctly, which we don't.)

TLDR: Strings are hard.
Semi-related (about length of emoji "characters", not reversing): https://hsivonen.fi/string-length/

Previously discussed:

https://news.ycombinator.com/item?id=20914184

https://news.ycombinator.com/item?id=26591373

As for this article & Python - as usual it is biasing towards convenience and implicit behavior rather than properly handling all edge cases.

Compare with Rust where you can't "reverse" a string - that is not a defined operation. But you can either break it into a sequence of characters or graphemes and then reverse that, with expected results: https://play.rust-lang.org/?version=stable&mode=debug&editio...

(Sadly the grapheme segmentation is not part of standard library, at least yet)
How does paying a pile of money to get that podcast on their platform count as "percieved endorsement"? They literally gave him money to express his views.
> solving for stability for a variable size and weight human that’s wriggling around.

Was solved for Segways. Just need the third axis and some kind of special emergency landing solution (goo + inflato-ball??).
And someone pointed out Remix has React as a hard-dependency... I thought some of the documentation looked familiar.

Talk about misleading:

> When we design Remix APIs, this is something we think about. We want your experience with Remix to transfer to web development generally.
> renewables are much much more cost effective

It's not a cost issue, it's an "intermittent and non storable" issue.

We don't need theories just look at Germany right now... Their last two nuclear reactors (max output 4GW) often produce more than their entire sun+wind system (max output 122GW)

https://mobile.twitter.com/fmbreon/status/148058947971495936...
Thanks, that really confused me
RegexBuddy works perfectly on wine: https://www.regexbuddy.com/wine.html

Why does it matter if it's closed source?

I am a paying customer of RegexBuddy. Best $39 I've ever spent on software.

RegexBuddy's `debug` feature has no equal in open-source or commercial software:
https://www.regexbuddy.com/debug.html

It has many more features than regex101 AND it keeps all data local. Maybe regex101 keeps things locally too, but I have to run it in a browser and I'm not about to put sensitive test data there.

That being said, regex101 is very well done, but I paid $39 for RegexBuddy 14 years ago (and price is still the same) and last year paid $19 for the optional upgrade from v3 to v4...but I really only did that to support the developer. v3 still met all my needs.
Last time a regex conversation came up on HN someone turned me on to https://regexcrossword.com - which is good fun if you're someone who enjoys regex :)
> The answer is: it depends. There isn't a canonical way to reverse a string, at least that I'm aware of.

Unicode defines grapheme clusters[1] that represent "user-perceived characters" separating a string into those and reversing seems like a pretty good way to go about it.

1: http://www.unicode.org/reports/tr29/
thank you, engage in discussion before threatening to take your ball and go home. I think it's a little dramatic to call it bullying, but from the other side it looks pretty pathetic.

Joe Rogan has changed his stance on a lot of topics over the years. And his listeners aren't all idiots. Some people, despite what we occasionally see here, and what some believe by default, are still open to hear whatever good points might be made. Everyone has an agenda, but it's not always diametrically opposed to what's decent.

In the past when I listened to his show, he's said some stupid shit, but he's also admitted being wrong, and agreed to hold conversations with people he disliked or disagreed with, and was able to take something positive from it.

But sure, people can think he's harmful to society, but I think that kind of grandstanding/absolutism is pretty harmful in itself.

And as a final note I guess I just want to know why people are still here if they think discussion won't change the mind of Rogan, or his listenership, or other people in general. Is it that you think his listeners are uniquely stupid or malevolent? Is the idea that at a certain point, shouting opinions you like and hiding/distracting from opinions you don't is the only way?
I don't normally scold the same user 4 times in one thread, but what you did here was so nasty and so shocking that I don't want anyone to run across a comment like this and not see it moderated.

If you post like this to HN again, we are going to have to ban you. Please read and follow the site guidelines: https://news.ycombinator.com/newsguidelines.html. The quality of discussion we want here is at the opposite end of the pool.
This is a nice dive into limitations in Python's unicode handling and at the end, how to work around some problems. But you could use languages with proper unicode support like Swift or Elixir (weirdly HN is fighting flags in comment code which makes examples header to demonstrate).
There is no need for a centralized database or always on internet access. How did my description suggest that either would be needed? As the verifiee, you need to print a piece of paper and have an ID. As the verifier, you need an offline app. No central authority is notified of the scan. None of this is rocket science, it is basic public key cryptography.

It does not take 5 minutes either. In practice it takes about 5 seconds to scan and validate the cert.

You have built an elaborate fantasy of how bad the system would be, rather than look at how the systems deployed for half a billion people actually work. Literally none of your stated fears actually bears out in practice. Suggesting you'd rather just get Covid is just depraved.
The clearer way to put this is: when faced with a regulatory requirement, most of the market will choose whatever pre-packaged solution most easily satisfies the requirement.

In the case of client attestation, this is how we get "Let Google/Apple/Microsoft handle that, and use what they produce."

And as a end state, leads to a world where large, for-profit companies provide the only whitelisted solutions, because they're the largest user bases and offer a turn-key feature, and the market doesn't want to do addition custom work to support alternatives.
Even the most basic ASCII string is still a data structure.

Is it a PASCAL string (length byte followed by data) or a C string (arbitrary run of bytes terminated by a null character)?
I see a lot of takes that it would be censorship for Spotify to remove Joe Rogan's podcast. I get where those are coming from. However, Spotify isn't just hosting Joe Rogan's content, they actively advertise for it and try to get more people to listen to it. It seems like that is a much more editorial role and something worthy of criticizing them for.
the stabber still owns part and sits on the board.
Remember when the US promised to leave Libya alone if they denuclearized and then Khadaffi got a rusty bayonet jammed up his back side?

That one is why Putin wanted anybody except Hillary to be President.

Or when U.S. Secretary of State James Baker famously promised that NATO would “not expand one inch eastward” of Germany?

The US developed collective amnesia over that.
I don't see the full list of brands, am I missing it somewhere?
I completely disagree. Activism is "Pull", not "Push". You need to put your points forth so as to rally people behind you, not beat them into submission.

This is just wokeness and cancel culture. It is top-down attempt for censorship, absolutely not activism.
I Am Satoshi
The filter only runs once on first sumbission. OP can edit the title afterwards to fix it up.
Off-topic, but our freemium website is under attack by headless browsers.

The freemium service provides access to compute-heavy machine learning models running on GPUs.

Hackers blast 50-100 requests in the same second, which clog the servers and block legitimate users.

We reported IPs to AWS and use Cloudflare "Super Bot Fight Mode" to thwart attacks, but the hackers still break through.

We don't require accounts, but could impose account requirements if this helps.

Any suggestions?
C’mon. In what world is Spotify an open platform?
I'm not surprised the flag had two components, but I _was_ surprised the US flag was made by literally U and S, haha!

I definitely thought it'd be something like [I am a Flag] and [The flag ID between 0 and 65535]. And reversing it would be [Flag ID] + [I am a Flag] which would not be a defined "component" and instead rendered as the individual two nonsense characters.
I don't think he miscalculated anything. We're all talking about it, and he publicly voted with his money. I doubt he believed Spotify would drop Rogan the next day or anything.

You're missing an important distinction. Spotify isn't just letting people stream Rogan, they're actively producing the content.
Neither U.S. Spy nor KGB Foe Could Turn the Other (1997)
I'm saying that the tech companies feel safe now, so the tech companies can support content creators who express increasingly right-wing views, as Spotify is doing by choosing Joe Rogan over Neil Young.
Perhaps rather, if you pull up stakes every time someone else on the same platform announces they prefer grape jelly over strawberry (fucking animals!), pretty soon you're going to have N platforms for N people. Which I suppose is one possible Fediverse end-game: millions of individual platforms, federating and un-federating on a daily basis as people discover that someone they thought was cool actually voted for McCain in 2008.
As for emulators, Platform Solutions developed a system that could run IBM mainframe Operating Systems and applications at a very competitive price.

I recall there was a middle layer of microcode such that the computer could run whichever instruction set you wanted.

IBM smothered the lawsuit by buying Platform Solutions and persuaded various antitrust authorities to look the other way.

https://applecon.com/case-studies/ibm-v-platform-solutions-a...

Up to that point many ISVs were using mainframe emulators such as the Flex system, but that license was killed off and ISVs were either pushed to remoting to a mainframe or going to z/PDT.
The reverse can also happen with people hoarding subreddits and refuse to hand them over to more eager people. Even when it is clear their interest have moved on, reddit admins will refuse usurpation requests because "the moderator is active".
> Clipping a fire hydrant could be part of a legitimate strategy to emergency-stop. Clipping a pedestrian wouldn't be. A self-driving car needs to know the difference.

No, this is not a choice a car would have to make. A self-driving car would simply never drive into pedestrian-only zones. The only time pedestrians and other obstacles are an issue is in the driving lane, and the only sensible course of action is to brake and veer within the confines of the driving lane, and nowhere else. These are in fact the rules of the road.
Would be interesting to see the list of flag emojis that, when reversed, become a different flag emoji.
Yes, the potential exists that some or all of us have had covid cases that were completely asymptomatic because we were vaccinated… which then just speaks to the miraculous effectiveness of these vaccines.
Related — I did a deep dive a couple years ago on emoji codepoints and how they're encoded in the Apple emoji font file, with the end goal of extracting the embedded images — https://github.com/alfredxing/emoji
there are many we's in hn emerging from the headlines we choose to click on.
> Like, yeah, I will take the risk of contracting coronavirus to play the piano, because I want the piano in my life.

The problem comes when it's "I will take the risk of infecting others who are vulnerable, of contributing to overwhelming the already struggling healthcare system, and of damaging the economy to play the piano, because it doesn't matter how many people are infected or are dying every single day I care more about myself getting the things I want right now than I care about any of those things."

There's no need to frame the issue as if folks are being told they can't do anything they enjoy ever again and have to devote their whole lives to simply breathing and eating either. It's a false dichotomy that we have to choose between common sense measures for the good of our community and limiting ourselves to "what is the minimum possible quality of life we can have".

We can instead make smart choices based on the degree of community spread which can mean putting off certain activities, but often times just means putting on a mask and washing our hands. It's not a huge ask.
And rightly given back to the Republic of China in 1945 (hence why the Chinese government retreated there in 1949...)

Those claims related to changing regimes are of course disingenuous and only aimed at creating a false narrative. It is fake history for political purposes.
Please do not feed flamewars on HN. This is in the site guidelines: https://news.ycombinator.com/newsguidelines.html.

Edit: you posted a lot of other flamewar comments to this thread too. That's not ok, regardless of how bad other comments are or you feel they are. If you'd please review the site guidelines and stick to the rules when posting here, we'd appreciate it.
This is complete conspiracy theory nonsense. It's a hoax generated by 4chan trolls. They crowdsourced conspiracy thinking and collected it into a list. Just like they do with QAnon. No actual proof, just spurious connections. I'm surprised people are taking it seriously (numerology? really??). That's literally what these trolls intended. It's also what they did with the OK hand symbol. They took something benign and sowed chaos with it.

See https://www.adl.org/blog/how-the-ok-symbol-became-a-popular-...

The “OK” hand gesture originated as one of these hoaxes in February 2017 when an anonymous 4channer announced “Operation O-KKK,” telling other members that “we must flood Twitter and other social media websites…claiming that the OK hand sign is a symbol of white supremacy.” The user even provided a helpful graphic showing how the letters WP (for “white power”) could be traced within an “OK” gesture. The originator and others also suggested useful hashtags to help spread the hoax, such as #PowerHandPrivilege and #NotOkay.
You will be compelled to exchange your dollars at the "official" exchange rate (which is about 1/2 of the real market value), so you lose ~50% there. On top of that, you have to pay taxes.
If battery tech continues to improve at current rates then certainly electric jetpacks will be possible and practical, if there's still demand (and we don't destroy ourselves one way or another). Without doing the math though it might be many decades.
CVE-2021-4034
Seriously. He's playing the culture war and identity politics game for his own benefit.

People who are downvoting you think it is "principled" to bully an open platform to moderate content and censor voices inconsistent with their own beliefs. Insanity.
poor man gave me and many others something like half of our introduction to computer science, but has gotten far more fame as the "emoji guy" for his repeated bouts with this particular part of unicode :)
Thankfully, there isn't an assigned ISO 3166-1 2-letter country code for SU currently; people may have interesting reactions seeing what happens when reversing a US flag emoji if there were.
"Fresher" is relative. It might be a little oxidized.
Isn't Neil Young an entertainer, too? Doesn't he also sell his products?

"There’s a difference between nonconformity and questioning authority and packaging those things for sale"

Yes. The things you're comparing have nothing to do with each other

Like explicit music lyrics, if you find it offensive, then don't listen, change the channel, etc.
>This is obviously false. First, employers can't just stop giving raises. Raises are governed by law and by collective agreements (although they are often below inflation).

You mean minimal wage?
That's more about the UTF-8 encoding than Unicode itself.
I wouldn’t say cypress is over engineered. Just a byproduct of its time.
FCC Proposes Point-of-Sale Labels for Broadband Providers and Plans
Well it does use RDF and probably has the same problem, was it `foaf:Person` or `schema:Person` or maybe even `ai:reificatedConceptNr1234`.
The peg was one of the main reasons why Argentina got into this mess in the first place.
"Eschew flamebait. Avoid unrelated controversies and generic tangents."

We detached this subthread from https://news.ycombinator.com/item?id=30074656.
I'm sorry for the difficulty you and your coworkers are facing, it can't be fun. I worked for six years in direct patient care and I know what it's like when my ward is filled an how exhausting it is.

Sometimes we lose a bit of the big picture in that situation though. It helps to take a look at the actual numbers.

In Pierce County, WA the hospitals have only recently exceeded bed capacity warranting transfers [1], in the past week there was an 8% excess capacity, the total bed capacity of Pierce County is ~460, and last week there were 125 covid admissions. The ICU is not at capacity, it's at 92%, which is typically where ICU utilization sits, if a hospital is profitable.

Pierce County has a new infection rate of about 3.5k per 100,000 [2]. The population of Pierce County is almost 1 million, which gives about 35,000 total case infections for 14 days. Of roughly 35,000 infections, there were 125 admissions over the past week. For excess capacity transfer patients, the number is somewhere around 35 to 40 people.

That's certainly enough to feel a strain with when you're working there day to day, but from the average Pierce County resident who's chance of admission in a given week (not age or health adjusted) of 0.000125, I think it's understandable why they may not feel like participating in all of the restrictive measures.

https://datacentral.kitsapsun.com/covid-19-hospital-capacity...

https://www.tpchd.org/healthy-people/diseases/covid-19/pierc...
We’ve spent a lot of time thinking and talking to folks about the incentive structures around this, and think they stand on their own - although your skepticism was an initial worry we had, too. As it stands the Block Protocol enables embedding applications to make their products more useful to consumers. And block developers reach a wider audience with their tools than they would otherwise. There’s a lot more to this that we’ll write up nicely later.
Makes you wonder how many other common foodstuffs are wildly mislabeled and contain harmful ingredients. It's hard to imagine any US government agency having the manpower to conduct the scale of testing required to find standards violations, even if the standards themselves were perfect.

I know nothing at all about the law on this topic, but would a producer of contaminated/illegal food be able to avoid responsibility for violating standards if they just shifted blame onto suppliers that are out of US court jurisdiction?
Oh, you should checkout RegexMagic. That's exactly what it does:
https://www.regexmagic.com/

Written by author of RegexBuddy and Oreilly's Regex Cookbook:
https://learning.oreilly.com/library/view/regular-expression...
In all seriousness: no.

There have always been protest moves like this, boycotts and so on. Everyone likes to pretend that protesting the views someone else has is this brand new snowflake era but that’s never been true.
He doesn’t want his music to be on a platform that is bankrolling someone who helps spread misinformation about vaccines. He suffered from Polio as a kid so this is something that means something on a personal level. That doesn’t seem that misguided to me.
The big component libraries in Javascript are +10 years old (except for Vue.js, which is "only" 7 years old), everything else that came afterwards is just a rehash/horizontal iteration as you say, be it Next, Gatsby, or Remix. If you learn e.g. React well, using any of these frameworks is fairly easy.

Which is kind of cool IMHO; this means the core libraries remain the same and then the ecosystem improves around. It's a world of a difference between React early days manual setup, the big advancement that was Create-React-App, and then again some other minor but amazing leaps like esbuild or vitejs. I can setup a fully-featured React app and be productive in seconds, with amazing nice things to have that traditionally had to be manually configured in other languages (linter, transpiler, hot module reload, etc).
Completely agreed... I'd love to be able to only subscribe to music.
Even if that once existed, this comment seems to exemplify what you wrote. The GP can freely voice their opposition to Spotify by moving to another service. They don’t seem offended to me, but rather resolute on a reasonable issue.
>what looks like one character is actually a special case joiner between two adjacent codepoints

Are you referring to a grouping not covered by the definition of grapheme clusters (which I am only passingly familiar with)? If so, then I don't think it's any more non-meaningful to reverse it than to reverse an English string. The result is gibberish to humans either way - it sounds more like you're saying that there is no universally "meaningful to humans" way to reverse some text in potentially any language, which is true regardless of what encoding or written language you're using. I was thinking of it more from the programmer side - i.e. that Unicode provides ways to reverse strings that are more "meaningful" (as opposed to arbitrary) than e.g. just reversing code points.
i put in my 3 week notice last week. I don't understand ceo's logic here, just counting on inertia?
HN doesn't allow any emoji.
Neil was never one who questioned all authority. From "The Needle and the Damage Done":

> I sing the song because I love the man

> I know that some of you don't understand

> Milk blood to keep from running out

> I've seen the needle and the damage done

> A little part of it in everyone

> But every junkie's like a settin' sun

e.g., he "loves the man" for keeping heroin illegal, because he's seen how it ruins lives firsthand.
In normal conditions you can check for a ZWJ, but with regional coding chars, you would have to consider the regional chars block as a single char in the reversal. Given that is isn't necessarily locale dependant but presentation layer dependant, there might not be anough info to decide how to act.