skysight-inc/HackerNews huggingface dataset:
This is an unreasonable expectation to have for Unicode anyway.

1. Assume that some letter X has only a lower-case version. It’s represented with two bytes in UTF-8.
2. A capitalized version is added way later
3. There are no more two-byte codepoints available
4. So it has to use three bytes or more

I see people are jumping on the “oh the wicked complexity” bandwagon in here but I don’t see what the big deal is.
Any method does an extra null check and a cast to ICollection<T> which incur unnecessary performance degradation. Of course this is in micro optimization scale. If you do not call Any() on a hot path it does not matter which one you use.
How does that still make Kafka a better choice than any of the other queueing systems out there? SQS, Redis, ActiveMQ, RabbitMQ, there are tons more queues out there that are far easier to use than Kafka.
I suspect this will also suffer from the “grass is greener” problem. Those who live in cities will romanticise suburban living, and vice versa in suburbs.

Culture also matters; in the west the city is often seen as a place for single professionals, rather than somewhere to build your life long term. This will affect perceptions, for good or ill.

Also, although you can get by without a car in many locations, I think there’s probably a relatively stark difference in how livable that is depending on how it’s implemented. If your city is filled with two lane roads through the core that’s clearly much worse than the Netherlands equivalent.
The mention of this subreddit on HN will make goodle search algorithm recommend it even more to Kafka product users.
Because there are so many companies who deserve derision. Not all companies of course.
James Clark
We know users better than ICE brands: India's first electric scooter maker
Since you ask for an example: moving the cursor in a terminal-based text editor requires #2 string length. That said I understand your point about focusing on what is actually needed.
Not only the advice is wrong, the quote itself is too. Allegedly, the full quote says the inverse:

> It is wrong to suppose that if you can’t measure it, you can’t manage it – a costly myth.

https://deming.org/myth-if-you-cant-measure-it-you-cant-mana...
username related - read lots of stuff while doing nothing useful with it :)

other fun x86 ones:

CALL SP

will call whatever code has been pushed on the stack. Unlike PUSH SP, it works the same on 8086 and newer CPUs

RET -2 (16 bit; -4 or -8 for 32/64 bit)

return but leave address on stack

LAR

load access rights; doesn't trap to kernel, so you can use this in ring3 code to scan through segment selectors and find out which are accessible and what type they are. On any x64 Linux, you can switch between 32 and 64 bit modes via far call, and syscalls will work in both modes (though they use different numbers).
Actually, I've been meaning to ask: what's a good charity to donate to? I haven't had much money until recently, so I've never sat down and figured out a charity.

There are lots to choose from, and I suppose I don't really care about making a perfect choice. I'm mostly just curious what other people donate to.

Re: the data tables, it's tempting to think that you need the string length for that case. But what you really care about is whether the strings start at the same place, and whether the string fits in a column -- both of which are questions best answered by a font subsystem rather than relying on string length.

But the data table case is so common that I agree it fulfills the terms of the bet, in the strictest sense. But e.g. that Competition / Name column will break for various non-English languages if you try to base the formatting on "number of visible characters."
I will not disclose the company name.

With purged I mean exactly this. Purged. 80% was low from their point of view. Don't know how many products they had. Couldn't believe it at all.
Machiavellian people co-opted the word vaccine because it has a generally positive connotation. They then retconned the word as if it has always included mRNA and viral vector therapeutics.
Not everyone is young enough (or old enough!) or healthy enough or rich enough to drive a car either. That's exactly the point of people advocating for less car-centric infrastructure. Walkable neighborhoods and public transit are much more inclusive.
You're correct, they are advocating that stroads be removed. The difference is that in your comparison to computers you assume that roads, like computers, have a quasi-linear trade-off between performance and power (ie: alpha x performance - beta x power = 0, obviously a simplification, but I hope it gets my point across) and thus a middle-ground between the extremes represents a good compromise for a variety of applications.

Strong Towns appears to be arguing that the trade-off between movement (roads) and value (streets) is highly non-linear, and that the middle-ground's combined performance is so much worse than either a street or road that it's not worth building. See the comment below about counter-tops vs. stoves for an example of an extreme binary case.
>Humanity survived on hunting for tens of thousands of years. So the only reason we survived is because we were "speciesists"? If that's the case, then I am okay with being a speciesist.

Humanity also probably only survived difficult conditions because many of our ancestors raped and killed each other over rare resources and lack of willing sexual partners. Hence by your logic we also should be okay with being killers and rapists, because they're the only reasons we're alive.

Or you know, we could use our brains and recognize that our ancestors lived in completely different environments than we do and we also have a much better understanding of the world than they did. Hence it would be incredibly stupid to use their actions, world view and ethics as a foundation for our belief system.
Applauding their efforts but retaining a critical eye for the usual long term safety considerations are not mutually exclusive.

You can also laud the mrna vaccines and be critical of the obscene profits being made.

In fact, you can also promote vaccinating as widely as possible, and at the same time harshly condemn the politicization of medicine, the creation of second class citizens, and the nonsense power games being fought that seem to exclusively benefit massive corporations that fund political campaigns.
As someone who used to live in a frat house, I feel I must object to this characterization. There are certainly frats that behave badly but my frat would have ejected Musk or his like without a second thought. This is not normal behavior. Acting like it is lets the perpetrators off the hook and is slander against all decent men.

It reminds me of people excusing Trump admitting to sexual assault on tape as "locker room talk". Talk like that in any locker room I've ever been in and you'll probably get hit.
This is an argument that the system in which you are operating is flawed, society should ensure that you are not so vulnerable that a vehicle failing will make you end up jobless and homeless. This is not a good argument that criminals disabling your vehicle for profit is an acceptable justification for killing them.
And honestly, why would someone want "native-like" controls in a web app? "Native-like" simply means "close enough to make you think it works the same, but subtly doesn't". That's pretty much the definition of uncanny valley.
Requiring coding tests etc just wasn't filtering more than random chance when I was hiring. I ended up pulling in people who had the most preposterous CVs to see what they were actually like.

One guy was a ninja. A black belt in ninjitsu, apparently. I asked him about his ninja skills (he looked like Harry Knowles). He said he could make himself invisible. I was like O_O. I asked him to demonstrate. He said he couldn't do it right now as we already knew he was there. I told him to leave the meeting room and "come back in invisible." He said it didn't work like that. I asked how it works. He said "Let's say I'm at a party.. I can enter the room and walk completely through the crowded room and not a single person will notice me." I think I know what was happening....
Some languages that had the misfortune to be developed while people thought UCS-2 would be enough define string length as number of UTF-16 code units, which is not even on the list because it's not a useful number.
I came here thinking this was going to be a super boring thread, and realise now I'm wrong.

These are very provoking, thank you!
I wouldn't call 3MF great. The format is text based. This means if you have 1GB model, you gonna have to print 1GB of float numbers when saving the model, and parse 1GB of float numbers when loading.

Text formats are good when human readable, but no sane person gonna read 1GB of data. Not even 100MB. Both numbers are reasonable now for very high-poly models.

They should have designed a true binary format, instead of zipped XML. Speaking of the STL format, it can be either binary or text depending on the header. When they have measured size, pretty sure they have used text variant of STL, otherwise they'd get similar sizes.

Also, the format is rather complex. One of the reasons why STL is so popular, only needs couple pages of code to support, almost regardless on the programming language. For optimal compatibility, one needs the official C++ only lib3mf library to read/write 3MF files.
It's really not. Frequency is nearly meaningless as you can have as many computational elements as you like operating at a given frequency meaning it tells you nearly nothing. It's like counting transistors which actually DOES work even if imperfectly.
As a Dutch person: everybody bikes here. Young people, old people (sometimes with electrical assist bikes), women, men, people with and without an immigration background.

It's the money sink that is a car that's the real privilege.
I will continue to cheer on the criminals until it's normal for companies to have good information security.
The primary problem is language/library designers/users believing there must be one true canonical meaning of the word „length“ like you just did, and that „length“ would be the best name for the given interface.

In database or more subtly various filesystems code the notion of bytes or codepoints might be more relevant.

By the way, what about ASCII control characters? Does carriage return have some intrinsic or clearly well defined notion of „length“ to you?

What about digraphs like ij in Dutch? Are they a singular grapheme cluster? Is this locale dependent? Do you have all scripts and cultures in mind?
> But if the OP is actually trying to benchmark raw directory enumeration speed vs git ls-files, they should make sure they're benchmarking against something that's not making per-file stat calls at all.

I think OP is trying to benchmark which tool is fastest/most efficient for his workflow. If one of the tools has bugs (or intentional, but unnecessary behavior) that slow it down unnecessarily, that's great if they're fixed, but doesn't help if they're not.

I do think it's going to be pretty hard for a directory walker to do better than a pre-made index listing of the files, though, even with a warm filesystem cache.
My understanding is that binning is typical at the beginning of the product line, but usually process tweaks increase the yield as the product continues. At which point things become complex.

If you no longer have N core chips because all of them test good at more cores, but don't want to sell the N+1 core chips at the old N core price, you've raised prices with all that entails.
You might enjoy Multithreaded JavaScript ;)
It's obvious BS driven by cloud marketing because in monolith case you pay them for way fewer services. In Micro Services case a single client request will generate a number of downstream requests to multiple services driving the cloud provider's profits up. You also have a higher chance of using their highest margin tracing/telemetry offerings.
That’s both #2 and #3, because Unicode characters can have various widths including zero. Gotta find out how far to move the cursor.
This is a very toxic exchange. All I was saying is to give a try to his interviews. Think on your own and make up your mind. I really don’t sense any fascist tones.

I guess I’m interested in the intellectual aspects, not political. Peter cuts through the BS that conformity teaches me. That was the point of the original comment - think like a contrarian.

FWIW with regards to politics, Peter isn't quite a Republican or a Democrat. He is mostly Liberatarian. Often his arguments include all 3 sides and he makes a case for liberatarian. He also supports liberal policies as well as conservative policies, but the approach towards it is quite fascinating to me.
Did you even read my comment? For most patients, COVID-19 isn't a big deal. However some vaccinated patients do suffer severe symptoms or death.

https://www.thelancet.com/journals/laninf/article/PIIS1473-3...

You appear to be dangerously ignorant of how vaccines work. Obviously no vaccine can prevent exposure. However many other vaccines such as that for measles are highly sterilizing, in that they prevent the virus from establishing an active infection in the body. Unfortunately the SARS-CoV-2 vaccines aren't sterilizing to any significant extent.
I think it’s fine. Software usually Darwins out a language winner. There’s a reason a lot of things got built with Perl, python, js, Java, c++, ruby, php, and there will be a reason why things won’t be written in those languages anymore (or aren’t anymore). There’s no amount of will that can force the hand of god and make Rust or Typescript ubiquitous or not-ubiquitous in the long run.

We learn our lessons slowly. The winning language always surfaces itself in the form of useful software. If it’s true that these new language constructs are useful, pain-free, then we will surely see the ubiquity of those languages and the corresponding software with it.

If it’s not useful, then nothing useful will come of it. It will be just another exercise in technical virtuosity, a master violinist playing a technically profound tune that no one likes to listen to. You’ll just have to enjoy it for the feat that it is, but it’s not something people will want to sit through regularly.

Cheers, design away, I’ll see you on the other side of the cacophony.
You are mistaken that they have a choice.
Case distinction does not happen in every language. I'm not sure if it's European-languages-specific.
But the point is it ought to be. Tell a user they have "a 280 character limit" and the intuitive interpretation for 98% of the world population that doesn't know the intricacies of Unicode is "a limit of 280 visible characters."

That's what Twitter's tweet limit ought to be, and if there was an easy, culturally neutral algorithm for it I'm sure that's what they would have done.
That was a very kind way of putting me in my place, and I sincerely appreciate it. I don't have a big competitive coding background or anything like that (AoC is really the only competition I've tried) but I suppose it's undeniable that I have a stronger background in coding in general than many, and it's totally reasonable that without that background, a larger time commitment would be necessary. Fair point!
NFT Bay go brrr !!!
Many scenarios the optimisation is exp(A) + exp(B) … in which case the expert wins over the generalist.

For example, being a fraction of a second slower at running is the difference between a career in running versus needing a side job to make ends meet.

I would say choose to be expert over the generalist for the big break throughs.
It makes JavaScript in Firefox running on IBM POWER9'S CPUs faster.
I think many developers like microservices partly because they get to do green-field projects constantly: just start a fresh service when you need a new functionality, etc.

Of course, in time, this might spiral into an uncontrollable mess without discipline, but it feels good at the beginning.
A CR is a space-type character. A string containing it has a length of 1.
> No one asked for strings to be ruined in this way

Except for the, what, 80% of the world's population who use languages that can't be written with ASCII.
Perhaps, but it depends on how it's used in the real world. The author was benchmarking tools for the purpose of finding files in via a text editor. If that's something that's done once, then sure, cold caches make sense. But if it's done frequently, presumably those caches will be warm for all but the first run, so the expected, common performance encountered would be with the warm cache.
Twitter clearly has chosen to intentionally deviate from it. E.g. what they specify on that page is not "unicode code points" either, but indeed their own mapping of "this character is worth that many points".
That’s what Rust does too, in the standard library offering #1 and #4, UTF-8 bytes and code points. Because they named a code point type a char, though, folks continue to assume a code point is a grapheme cluster. Which it frequently is, and that makes things worse.
not_a_virus.hta
Best videoconferencing toolkit for family holidays
> Which, again, you know, but... why is it important to you that vaccines not be criticized honestly?

.... what?
Programming languages really should have distinct string-like types:

identifier -- printable ASCII characters only, an array of 8-bit chars
ucs16 -- An array of 16-bit chars for compatibility with Windows, Java, and .NET
utf8 -- Normalised, 100% valid UTF-8 with potentially some "reasonableness" constraints
text -- Abstraction over arbitrary code pages, including both Unicode and legacy encodings.

Languages like Rust kinda-sorta implement this. For example, the PathBuf type internally uses a "WTF8" encoding that is vaguely Utf-8 compatible, but allows the invalid code sequences that can turn up in Win32 system API calls.

IMHO that's a good try but not ideal. The back-and-forth conversion is complex, requires temporary buffers, and is slow as molasses for many types of API calls.

The ideal would be to have abstractions (traits, interfaces, whatever) that cover all the use-cases. E.g.: it should be possible to test if a 'utf8' string contains an 'identifier' string. It should be possible to compare strings without having to convert their formats. Etc...
Remove or replace usages of “sanity” (Wikimedia)
What you're describing is responding to an insult/attack by ignoring it. And I agree that it is often a good tactic.

I think the article is kind of strange though. It's framed in the context of negotiation and how to respond to questions.

> ...SILENCE. It's the best reply to questions you wish you weren't asked.

And yet, as you quoted, it mentions being attacked.

I think silence is often a good response to insults/attacks, but not in response to questions. The latter is rude and disrespectful.
Good news for anyone whose mRNA COVID vaccine reactivated their herpes, I suppose.
https://academic.oup.com/qjmed/article/114/7/531/6325520
"Prominently placed"... you mean placed with a clear "AD" button under the name?

And instead of 20 results when there's no guarantee 20 quality apps even exist... what about the first result besides a clear ad and Apple Music itself?

And what do you know, it's a top 100 app, over 12 years old, updated last month, and sitting at a 4.6 rating with 51k ratings.
Excellent news - the timing is right ...

The largest farmer's protest in the world, in India, just recently partially ended after a year+ long non-violent protest with the indian government backing down and conceding to their demand to repeal farm laws that favoured corporates and didn't address farmer's concerns. ( https://www.nationalheraldindia.com/opinion/fam-laws-are-bei... ). Civil activists around the world will get a big boost and draw inspiration from this.

Trade Unions in Public Sector Units that the indian government wants to sell to private entities are also planning to go on a national strike soon.

I see all this as a natural correction of political imbalance that had shifted too far to the right, around the world, in the last 2 decades ... political unrest results when the extreme left or the right gain an upper hand.
> Except almost everyone always means #2.

Until the string has to be stored in a database. Or transmitted over HTTP. Or copy-pasted in Windows running Autohotkey. Or stored in a logfile. Or used to authenticate. Or used to authorize. Or used by a human to self-identify. Or encoded. Or encrypted. Or used in an element on a web page. Or sent in an email to 12,000,000 users, some of whom might read it on a Windows 2000 box running Nutscrape. Or sent to a vendor in China. Or sent to a client in Israel. Or sent in an SMS message to 12,000,000 users, some of whom might read it on a Nokia 3310. Or sent to my exwife.
Yeah, and most languages/libraries which predate Unicode define string length as the number of bytes (#1). That's probably the most common interpretation, actually. But most new implementations count code point, in my experience. I believe this is also the Unicode recommendation when context doesn't determine a different algorithm to read. Been a while since I read those recommendations though, so I could be wrong.
Presumably string length corresponds to something like “number of glyphs” rather than byte count.
It's fucking stupid. Can't stand that comic.
Well, the bar for sentience is actually so low I am quite sure bacteria and even individual cells in multi-cellular organisms pass it - almost every living cell detects aspects of and reacts to its environment.
Is google still the default?
The current to move the seat with someone sitting on it is likely not all that different from the stall current as it starts pushing into someone's knees, particularly given it's likely geared down a significant amount so it can move slowly.
The https://open-dotnet.net/ does not work. I guess they are working on it?

It looks neat as the .Net framework has been splintered and changed. One without an MIT license and Microsoft control.
Does your reply argue semantics?
I think you're thinking of UPS, and IIRC the decision is mostly to reduce waiting time/idle fuel burn. (Most jurisdictions in the US allow right-on-red and that makes this even easier to justify.)
so, the dispute with France over post-Brexit fishing rights didn't go too well then? innit?
Because tab completion often has to do i/o, which can put the shell into an uninterruptible sleep state. I personally see this most when I've left home but I still have an NFS mount (to my NAS at home) under my home directory.
As someone who interned at two Indian government PSUs, I can't wait for them to get privatised. You wouldn't believe the amount of inefficiency and laziness.
Haskell: How to Mapreduce?
We tend to measure intelligence by human metrics so of course humans will be the most intelligent at being humans.

Taking spiders for example: humans cant spin spiderwebs for shit while this is a core skill to being a spider. From a spider centric worldview, humans must just be dumb meat factories then.
Paying MS overhead is basically justifiable if you will need to scale your product development team for a single product to some ungodly size so not really applicable to 99.99% of the projects.
The original hard constraint of not having a scalable enough RDBMS
no longer exist you can use Spanner, CockroachDB etc.
Or sorted! That’s its own special hell.
I've seen galaxy brain comics where the last row is the punchline. The comic might start out moving in a certain direction in a logical way, which may or may not be humorous by itself, but then the last row has a twist, an unexpected interpretation of the direction.

Some bad examples I found on Google:

https://i.redd.it/j0wwzqe2287z.jpg

https://in.pinterest.com/pin/366128644701746892/

The x86 comic may or may not count, depending on whether you expect the reader to know that using those sorts of legacy instructions is not actually an improvement…