Earlier quoted context omitted.
You're talking about a subset of ASCII then. Unicode is supposed to support different languages and advanced typography, for which those characters are necessary. You can't write e.g. Arabic or Hebrew without those "unnecessary" invisible characters.
Please explain why an invisible zero width "character" is necessary.
Glassworm is back: A new wave of invisible Unicode attacks hits repositories
131–140 of 201 posts
Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#132Earlier quoted context omitted.
What about numbers? Would they be assigned to arabic only? I guess someone will be offended by that. While at it we could also unify I, | and l. It's too confusing sometimes.
> While at it we could also unify I, | and l. It's too confusing sometimes. They render differently, so it's not a problem.
Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#133Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#134Earlier quoted context omitted.
You're talking about a subset of ASCII then. Unicode is supposed to support different languages and advanced typography, for which those characters are necessary. You can't write e.g. Arabic or Hebrew without those "unnecessary" invisible characters.
Please explain why an invisible zero width "character" is necessary.
Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#135Why can't code editors have a default-on feature where they show any invisible character (other than newlines)? I seem to remember Sublime doing this at least in some cases... the characters were rendered as a lozenge shape with the hex value of the character. Is there ever a circumstance where the invisible characters are both legitimate and you as a software developer wouldn't want to see them in the source code?
And, yes, there is a circumstance if you want to include Arabic or Hebrew in comments or strings. You need the zero width left-right markers to make that work.
Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#136Earlier quoted context omitted.
They might say that your job is to make the product "better", and they might even think they mean it, but I think in practice you'll find that their definition of "better" as it relates to products is pretty closely related to money, and further that they are the authorities on what makes the product "better" so you should shut up and do what they say. If you want to make the product actually better, you're going to…
To be frank, I tried to address your point with my comment about the audience. I very much disagree that you start with money and work backwards to technical problems. I do not think this approach would make you efficient at solving problems nor at increasing profits for the business. And I still firmly believe they need us more than we need them. At the end of the day this is why they want AI coding agents to work o…
> I do not think this approach would make you efficient at solving problems nor at increasing profits for the business.
If optimizing for profit doesn't result in profit, it's not the fault of the goal. That company was just incompetent. However many companies are, in fact, moderately competent, and optimizing for profit works fine for them. It even has a pretty heavy overlap with optimizing for good products, so that's nice.
It's fine. We agree on the ideal outcome in this situation.
Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#137Earlier quoted context omitted.
You're talking about a subset of ASCII then. Unicode is supposed to support different languages and advanced typography, for which those characters are necessary. You can't write e.g. Arabic or Hebrew without those "unnecessary" invisible characters.
Please explain why an invisible zero width "character" is necessary.
Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#138My hot take is that all programming languages should go back to only accepting source code saved in 7-bit ASCII. With perhaps an exception for comments.
Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#139Earlier quoted context omitted.
Sometimes you gotta say no. Trying to please every hare brained idea leads to madness. Normalized code point sequences are another WTF feature.
Of course! I bet there are tons of ideas that didn't make it into Unicode, for better of worse. Where you draw the line is kind of arbitrary. You, personally, can of course opt out of all of that by restricting yourself to ASCII only, for example. But the rest of the world will continue to use Unicode.
My early compilers used code pages to work with Japanese, French and German customers. The original idea of Unicode was absolutely brilliant and I was all for it. D was an early total adopter of Unicode (C and C++ followed years later). I rejected code page support for D.
It's mission was to support all the letters in all the languages, which was a good straightforward mission. But then came fonts, formatting, layout, rendering, casing, sort ordering, normalization, combining, vote-for-my-letter-and-Ill-vote-for-yours, emoji, icons, semantic meanings, elvish, people who invent things and campaign to put them in so they'll leave a mark in history, ...
Re: Glassworm is back: A new wave of invisible Unicode attacks hits repositories
#140Earlier quoted context omitted.
Another dum dum Unicode idea is having multiple code points with identical glyphs. Rule of thumb: two Unicode sequences that look identical when printed should consist of the same code points.
One of the ground rules of Unicode is the round trip rule. You have to be able to translate to and from Unicode without loss of information.