249 points · by jwilk · 1y ago · 288 comments
> A string that is used to identify a user; see also User Database. To be portable across systems conforming to POSIX.1-2017, the value is composed of characters from the portable filename character set. The <hyphen-minus> character should not be used as the first character of a portable user name.
* https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1...
The "portable filename character set" is defined as:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
a b c d e f g h i j k l m n o p q r s t u v w x y z
0 1 2 3 4 5 6 7 8 9 . _ -
* https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1...So only a hyphen as the first character is forbidden.
Given that you can't necessarilly control where usernames come from (e.g., LDAP lookups), properly speaking your system has to handle everything anyway, even if you don't allow local creation.
The above is a lot of work and will probably take more than a year to put into the standard, much less implement, but anything less is just user hostile. Sometimes commettiees need to lead from the front not just write down existing practice.
"Be the change that you wish to see in the world." — Mahatma Gandhi
It's free to join:
Meaning,
- :potato: OR :potatoh: may display as :eggplant: OR :potato:
- isEqual(`:eggplant:`, `:eggplant:`) may fail OR succeed
- trying to type :sequence: breaks console until reboot
- typing :potato: may work but not :eggplant:
- users don't know how to spell :eggplant:
- etc.
If you must, please fix Unicode first so that user entry and display would have 1:1 relationship. I do have Han Unification in mind, but I believe the problem isn't unique to the unification or East Asia.Not even the simplest tools, like grep do support unicode yet. This didnt happen in the last 15 years, even if there are patches and libs.
Let's talk again in 30 years when you're done.
Even if you speak US (or Canadian) English exclusively, there are still some words that are just impossible to spell correctly in pure ASCII, e.g. résumé, café etc.
In my opinion the way to improve this, is bottom up, not top down. Start with linux(theese days posix is largely "what does linux do?"), get a patch in that changes the defination of the user name from a subset of ascii to a subset of utf-8. what subset? that is a much harder problem with utf-8 than ascii, good luck. get a similer patch in for a few of the bsd. then you tell posix what the os's are doing. and fight to get it included.
On the subject of what unicode subset. perhaps the most enlightened thing to do is the same as the unix filesystem and punt. one neat thing about the unix filesystem is that names are not defined in an encoding but as a set of bytes. This has problems and has made many people very mad. but it does mean your file system can be in whatever encoding you want, transitioning to utf-8 was easy(mainly doe to the clever backwards compatible nature of utf-8) and we were not locked into a problematic encoding like on windows. perhaps just define that the name is a array of bytes and call it a day. that sounds like the unix way to me.
Honestly, I try not to be a pessimist, but this sounds like the opening narration to some dystopian doomsday movie. Titled something like You're Not Wrong, I suppose.
I was working as a contractor at a Fortune 500 firm several years ago when they introduced a new ERP system which apparently encouraged the company to switch to numeric system IDs. Fortunately the technical teams, especially Linux support, objected and it was overruled, but I was just as worried about the communications problems that would result.
When everyone has a system ID that matches a consistent pattern, like “YZ12345”, IDs are easy to recognize in documentation and data. An ID like “1234567” could be practically anything.
At the end of the day, pushing opinionated bullshit doesn’t belong in utilities. If there’s a security vulnerability, sell that and push for incorporation into NIST standards.
On the display side, I'm sure most tools that display usernames won't make it easy to see if there are leading or trailing whitespace characters, double blanks, tabs etc in usernames.
This sounds like support hell to me.
Of course, in those days if an OS upgrade broke some third party software, the end user paid for an upgrade. So although Microsoft forced developers' hands, the developers all got paid for their trouble. And you'd only have your hand forced that way once or twice a decade.
Windows at the time was also all about the GUI file-pickers. Breaking the command line? Shell scripts? What are those?
They didn't force anything.
And yet whenever I deal with a computer system I don't put the apostrophe in because even in 2024 it is completely jacked up. Sometimes it's just disallowed. Sometimes I get "\\'" showing up. Sometimes I get "'". I've seen "’". One time, one system accepted it, but another system that accessed the same data didn't allow apostrophes so the person using the second system couldn't access the record, and it took 2 phone calls and 3 people to come up with a workaround.
It doesn't work often enough that I don't even try anymore. There are just too many opportunities for it to get forgotten or handled improperly from all directions.
Not as bad as when I was once issued a first.o'last@corp email address though ..
There's still a lot of organisations that somewhere in their e-mail processing chain cannnot deal with 4-letter TLD e-mail addresses*. Even worse is that the front-end is often a relatively new framework and will happily accept your e-mail, only to then have it silently fail forever. Mercifully a lot of those organisations have their customer service authorized to change your e-mail address manually, but if they don't.. good luck.
In usernames or in name fields for text generally?
I assume things like bank systems can deal with it because they should match things like IDs?
If we're admitting they're poorly-written, why can't we admit that they're already broken regardless of whether that brokenness is currently being triggered? Allowing symbols or spaces didn't break anything, it was broken from day one just no one noticed.
Why is the answer always "go out of your way to not upset the broken garbage that's been around forever" rather than "throw Zalgo at it and fix what breaks so it's no longer broken and won't be broken in the future"?
Bug compatibility is the worst behavior of the computing industry. Let the bad code break and more importantly call it out so everyone knows where the blame belongs.
Same for when people are being too clever and use a password generator with all the characters for things you need to call/pass on some types of config files
No, you're not being smart for adding double quotes to a generated password, in fact quite the contrary. And guess who needs to try all types of escapes for that?!
TFA seems like another of Debian's self inflicted problems by people trying to be "too smart"
You'd have to be pretty darn important for an org to fix their scripts because of your name or the username you created. Of it would need to happen at a larger scale, but then that wouldn't be so controversial in the first place.
While we have more modern shells the fact that bash (or even sh) is the "common denominator" 30 yrs on is both good and awful
We need a PowerShell for Linux
If restricted ASCII a-z is good enough for passport names worldwide, it's good enough for usernames.
It's on a different level from having a name originally written in a different alphabet entirely. At this point you just have it written in two scripts, with second being ASCII.
Passports (and credit cards) are the best example why ASCII-only is horribly broken. It's 2024, people want to type in their name as they write it normally, and they have the reasonable expectation of IT "dealing with it" behind the scenes.
Unfortunately, that expectation isn't reality, and it's all too common people are being rejected at the border or their card transactions are denied because braindead policies leave no other option but to blanket deny in case of mismatches.
I got pushback from people who would not have to implement or maintain the systems for being a backward asciite so seeing this article is rather vindicating.
I always feel slightly worried on sites that demand that I give my full legal name (such as the US ESTA form), and then refuse to handle it because it includes "illegal" characters.
Yes, that's me, Mr. O&Conner
The UID, which is an integer. Ownership resides here; it's the primary key. Can be used by programs.
The username, each of which must be unique and maps to one UID -- but multiple usernames can map to the same UID. Used by humans and programs to login.
The GECOS field, or "human readable name", which is only used as a display label. Some systems include a structure inside this for additional info like phone number, office number, or similar". I don't think anyone would object to UTF-8 here.
But the Unix login thing might have been because of teletypes? https://www.columbia.edu/cu/computinghistory/teletype/ claims that ASR 33 used 8-bit ASCII but was uppercase only - not sure if the "8-bit" claim can be true.
On some Unix (and Linux) systems, you can still enter a kind of retro mode with "stty olcuc iuclc" (output lowercase to uppercase, input uppercase to lowercase) and turning on Caps Lock.
I'm not even sure it was only about ASCII. I suppose I should have written a more generic "character set" (which supports or not lower case characters) rather than "7-bit".
In the cases where you could only communicate in a single case (upper), you typed the commands in the usual letters (e.g., "LS") and capital letters were designated by a preceding backslash (e.g., "ECHO \JOHN \DOE"). That's why you were seeing the "\PASSWORD: " prompt, the initial letter was capital (as it still is).
Just for fun, I checked my current Debian system. The getty(8) command still supports it:
-U, --detect-case
Turn on support for detecting an uppercase-only terminal. This setting will
detect a login name containing only capitals as indicating an uppercase-only
terminal and turn on some upper-to-lower case conversions. Note that this has
no support for any Unicode characters.You can't guess how many workarounds I implement to make sure that a stray application doesn't get "ı" or "İ" in their naive codepaths, and start burning mid-flight (e.g.: Kodi, Pagico, some old Java programs, oh my...).
However, when you go through an upper() or lower() or anything which plays with capitalization, and if that data is being fed to a hash algorithm or anything which mucks with strings, boy, oh boy...
The easiest way is to sanitize these programmatic parts with forced locale of en_US or plain old "C". If the strings is not facing to the user and never localized, just force its locale. It's the only sane way.
unicode-org/icu: https://github.com/unicode-org/icu
Microsoft/ICU: https://github.com/microsoft/icu
IDN: Internationalized domain name: https://en.wikipedia.org/wiki/Internationalized_domain_name
Punycode: https://en.wikipedia.org/wiki/Punycode
IDN homograph attack: https://en.wikipedia.org/wiki/IDN_homograph_attack
CWE-1007: Insufficient Visual Distinction of Homoglyphs Presented to User: https://cwe.mitre.org/data/definitions/1007.html
GNU libidn/libidn2: https://gitlab.com/libidn/libidn2
Comparison of regular expression engines > Language features > Part 2; Unicode support: https://en.wikipedia.org/wiki/Comparison_of_regular_expressi...
And then update all data structures that refer to them (like last and w/who, also NFS), as well as file formats (like cpio, tar, and pax which encodes ownership).
I feel that there are already too many other things to fix to be wasting time in creating new potential bugs.
It seems to me like something that "should" be relaxed, but we need to have high confidence in the entire foodchain. adduser seems like the last place it should be changed, not the first - anyone requiring "enough rope" is already served by useradd.
* https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1...
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
a b c d e f g h i j k l m n o p q r s t u v w x y z
0 1 2 3 4 5 6 7 8 9 . _ -
* https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1...(Hyphen forbidden as first character.)
Similar to people who put spaces in file names, it should be a fire-able offense.
And a disruptive solution with unclear side effects at that.
Before anyone asks: yes, these folders do occur in real life, and I tired of pretending that they do not.
shoot, that's evil. had not noticed this. i read this as "removed", not "was released". now idk.
this pseudo-definition of dropped as "released" is beyond stupid. yikes!
And I say that as someone whose native language has more letters than English.
ICU could work, but adds an extra dependency, there is also GNU's libunistring.
I'll hazard a guess that your preferred username can be expressed in a small subset of ASCII? And to hell with everyone else?
Latin-like language system is simply superior for machine purposes. I am sorry, but I don't even want to think of supporting the entire unicode in my software. I am not going to even attempt to reverse that emoji.
There is no reason to consider the English alphabet as superior for machine purposes, in comparison to other Latin alphabets.
Its dominance in IT is caused by the fact that most of the development of commercial computers after WWII has been done at IBM and other US companies, not by any properties of the English alphabet.
Because then it to be normalised in the right way for comparisons to work, or it will only match if your input method happens to produce the exact same variant.
... And unicode is an evolving standard where this normalisation sometimes changes between standards, so the names as normalised in the old version of your standard library might disagree with the new version. So you need to care for that transition.
... And often this is implemented separately for different languages, so you can get names that won't match if you normalise them in python, java or C.
... And as all implementations, these unicode implementations sometimes have bugs, so you need to think not only about matching supported unicode versions, but matching bugs.
... And any change in these normalisations can in theory lead to two usernames that used to be distinct becoming identical.
It's a deep well
For whom? Presumably people won't choose a username themselves that is difficult _for them_ to input. It's not like allowing (a subset of) Unicode would force people with near-ASCII keyboards to deviate from what's easy for them to input.
> Latin-like language system is simply superior for machine purposes.
Citation needed. Besides, on the systems we're talking about at least, the machine itself works with integral UIDs, not user names.
> I am sorry, but I don't even want to think of supporting the entire unicode in my software.
What does that even mean? Why is your software doing operations on people's names, beyond storing and retrieving them?
> I am not going to even attempt to reverse that emoji.
Is there any legitimate use case for reversing someone's name??
There is a field for the full name of the person if you want to, and at least on my linux it warns for non-ascii characters but allows them
You started off with saying that there's no value to login names beyond ASCII, and now you're (a) insinuating that anyone who would wish to have login names beyond ASCII are too heavily invested in their login name, and (b) there's technical downsides to this.
Point b is certainly valid, and the whole reason there's a discussion in the first place. Point a might be true, but very different from what you originally wrote. And again, I suppose, this doesn't apply to you, because your login name – which you isn't attached to at all – is naturally ASCII safe?
But over the years the bikeshedding and some of the poor technical decisions started to wear on me. The debconf approach of asking a million questions on install bothered me. In my current job we use it on small industrial ARM PC's and it does a great job there at a large scale distributed over a wide variety of environments and geographical area, scorching heat, freezing cold and everything in between. But that's easy because it's a single system image which we deploy to hundreds of devices and it only requires minimal customisation to perform the required tasks.
But our datacenter servers remain RHEL for the simple reason ... the deployment and broad customisation process per server is easy, LDAP integration is straight forward and the customer wants to pay for support from the vendor even though we never use it. Security updates and bugfixes are delivered quickly and the vendors commitment to stability is commendable. It's a no brainer. More and more companies started to move their workloads to RHEL once it came out and unfortunately it just didn't make sense to bother with distributions outside of RHEL/Fedora for my personal use anymore, some sort of work/life balance is needed and I don't want to spend my personal computing time remembering all the idiosyncracies between different Linux distributions anymore. I would argue that Debian is pretty idiosyncratic and opinionated if you have come from more traditional UNIX systems in the 90's, while RHEL/Fedora more closely model an "evolution" of those classic systems if you like. It will be interesting to see what happens to RHEL in the coming years as Redhat becomes more and more absorbed into the IBM environment.
And when you don't need the support net, it's often gonna be ubuntu because that's what most people are comfortable with. Or yocto if you're shipping a custom OS. And containers are so ephemeral and purpose specific it means distro doesn't matter as much.
I'm still rooting for them the most. They're community based, an important upstream, and stable has never done me dirty. It's still my go-to for "I don't want to think hard about, or worry about this system."
It's time for programmers to stop treating everything that can be represented by a string as anything representable by a string type.
What's the user case for non-system usernames at all?
Why not just "user" and "root"?
Your comment makes for a solid example of why DEI efforts have a very practical side to it, and actually makes solid sense in the 21st century.
Names are identifiers, and such need to stay identifiable. There exist unicode security guidelines and rules for identifiers, they don't know about. My libu8ident library would help with that.
All Unicode characters have types, like letter, digit, punctuation, mathematical operator and so on. The standard for identifiers allows in identifiers only certain types of Unicode characters and it defines rules for normalization and comparison of identifiers.
So rules for handling Unicode identifiers have already been defined. Whoever wants this functionality should just implement the standards.
One may have opinions whether this is worthwhile or not for a certain application, but strawman arguments about cat pictures and other impossible dangers are no longer valid.
if you wrote code that couldn't handle bob;>/hacked in a username, you would and should be laughed at.
why are we using this ancient stuff?
For example "å" can be written with U+00E5, and the same visual glyph "å" with U+0061 + U+030A ( U+0061 {a} plus the code unit U+030A {Combining Ring Above}).
Another homoglyph Unicode user name example:
· is Café == Café ?
· C + a + f + e + '́ ' vs C + a + f + é
· Utf8: 43616665CC81 vs 436166C3A9
As one user has pointed out in another comment, some kind of standardisation for that specific use case with some kind of normalisation would be needed first (nevertheless a database search would want a different one, and so on). The above examples are among the simpler ones, there are also unprintable characters, etc.
It can be done as in "nothing is impossible", but it's not that easy, it's actually complex.
It's the users choice whether 43616665CC81 == 436166C3A9, same for Café == Café. But they are distinct and separate choices. Text and bytes are separate things.
We accept that case sensitivity exists and whether a user/business/program treats them as identical is and should always be their choice to make.
There is abstract complexity in the problem, but the context in which text is used solves most of that.
If I have handwritten notes and I make a copy but write the second one in cursive and ask someone if they say the same thing - the correct answer isn't "we need to create a standard to normalize the presentation of text" - it's "be more precise in what you are asking".
Whether Café == Café depends on if it's written on a road sign, or a network packet with a fixed byte size.
Unprintable characters are not text and should not be stored in text fields. Neither are control characters, and as far as I'm concerned should not be included in any text encoding standard. Formatting and terminal processing should never be stored in-band, that's an obvious design flaw that should be corrected.
We already deal with ambiguity within ASCII re I vs l vs 1. Some fonts render those identically - Using those fonts in a passport is bad design. Saying we should avoid having to compare those characters at all because some people/systems might confuse them is misguided.
This isn't a true rebuttal of what you were saying but some of my next thoughts.
I feel it's a rebuttal enough, and it provides a clear answer to the parent's question:
· is Café == Café ?
· C + a + f + e + '́ ' vs C + a + f + é
· Utf8: 43616665CC81 vs 436166C3A9
When we're talking about username/password fields, what we're really talking about keystrokes, or the input sequences that the user makes to identify themselves.
Android lock screen patterns are passwords, and the answer is blatantly clear there: the same shape drawn in a different way is a different pattern.
The context here isn't "are these two strings saying the same text".
It's "is the person typing this text who they say they are", boiled down to "can they repeat the input sequence provided at registration".
So, we get the answers:
* C + a + f + e + '́ ' != C + a + f + é if either can be intentionally produced by the user at the log-in screen (i.e., if these Unicode sequences can be produced by different keystroke sequences, and the user knows which output they're producing)
* C + a + f + e + '́ ' == C + a + f + é if either can be obtained as a result of the same keystroke sequence (i.e., if virtual/physical keyboard + OS combinations may represent the same keystroke sequence with different character sequences provided to the program).
* If both are true, neither should be allowed
The case of not all input devices having the keys requisite for reproducing the input sequence would boil down to either deciding based on context, or asking the user if they are sure they want to limit themselves to the particular hardware/software combinations to log into the service.
For example, a username like БДЖІЛКА is perfectly fine if you only ever want to log into the service from devices where a Ukrainian keyboard is available.
Which would be an appropriate assumption for e.g. Ukrainian government systems, where Ukrainian language support is required by law, but not in an general context (what if user travels outside Ukraine, and wants to log in from a device they don't own and can't enable Ukrainian input on?).
One can't hit the "Ж" key if their keyboard lacks it.
Same goes for the concern raised in the article:
>I see and type my username hundreds times a day, people use it to address me in written and spoken conversations with it, etc.
Good. That means that @БДЖІЛКА is only appropriate where everyone can be assumed to be able to write and speak Ukrainian, which doesn't even hold universally true in Ukraine, unless it's a government office.
That's to say, most people reading this comment won't be able to address me as @БДЖІЛКА in neither a spoken conversation, nor a written one (copy-pasting is not writing).
At the same time, if I can type "БДЖІЛКА", it should be my choice to have that as a username/log-in name, since only being able to log in from devices with a Ukrainian keyboard would be a security feature for me. I know that I will have that on my devices, but an adversary may not.
Similarly, a log-in name like @СІРНІК should be acceptable if I wanted it.
Note that it's not the same as @CIPHIK - the former uses Ukrainian character set. @СІРНІК != @CIPHIK for authentication purposes because I typed in different input sequences to produces these glyphs on the screen.
This is not a Unicode issue either; ASCII with codepages for internationalization had the same problem. Homoglyphs aren't limited to accents or complex Unicode sequences.
With Unicode, СІРНІК is not a problematic username - there's only one way to type that particular byte sequence in. Before Unicode, it was, because the letters were encoded as different bytes in KOI-8 (Unix) vs. Windows-1251 character sets, and the user didn't necessarily have a choice about which one is being used to record their input.
The problem wasn't limited to log-in screens, of course; it resulted in hilariously unreadable words which have since been enshrined in memes, like "бНОПНЯ" for "Вопрос" ("question", a common first word in a chat message asking about how to make text readable).
See, бНОПНЯ (KOI-8) == Вопрос (Windows-1251); same bytes. Whether to allow that as a log-in or password (e.g. on a Linux machine) depended on whether you wanted to allow the user to log in from Windows devices too.
Obviously, for local accounts on Windows 95 machines, it was not an issue, as Windows encoding would be the only one available on a Windows log-in screen. The context gives all the answers.
All of this directly follows from the "not a true rebuttal" you typed, and I frankly don't see what else there is to say on the matter, or how else to say what you said to get that point across.
Definitely you can't spell it to someone else.
Who owns that file? Oh, it's right-to-left non breaking space smiley snowman Chinese sign for water, I love that guy!
This reminds me, around 10 years ago on the chat app we used at work, we were able to change our nicknames and I made mine start with a combining character instead of a regular character. No one could ping me, it broke that part of the UI when they tried.
See e.g. RFC 8264. Only a restricted set of characters is permitted in identifiers, mostly letters and digits.
This is enough to write any user name, without allowing "smiley snowman Chinese sign for water" or other such nonsense.
"ç" is a letter. As is "å". The latter is in no way whatsoever related to "a".
Certainly there are people with a "ò" in their name, who will tell you that if you spell it "o" then "that's not my name".
Your reference to RFC8264 also makes another good point. 38 pages of best practices, plus thousands of pages pulled in from references. Not exactly a case for saying it's feasible for all software to handle this correctly.
I did a quick scan of RFC8264, and could not tell if "ç", "å", or "习" are "letters". Yes, that's due to not really trying, since "all I have to do" is read thousands of pages on unicode definitions.
What exactly are you trying to say is already established, under the assumption that Unicode already defines identifiers? 7-bit ASCII letters & numbers mostly, or a broader definition of letters? In any case I don't think people are making "outdated" comments, but that they are disagreeing, possibly unicode specs be damned.
E.g. see the article itself, where people say that anything that isn't colon or NUL byte should be allowed.
> This is enough to write any user name, without allowing "smiley snowman Chinese sign for water"
But not to have the username "习近平", right? Or am I misinterpreting by getting lost in references to references in unicode specs?
Debian has opinions but I disagree that they should extend that far.
If my employee Zalgo-fies everything. I don't file a bug report with Debian. I just fire them.
Which such clearly north American attitude you can as well use ASCII for everything.
There is tons of useful code which you will likely never encounter, that helps people accomplish their tasks every day. Do you think there is some central authority who is going to go building to building and dd if=/dev/zero every shell script they find?
If someone is objecting to changes because of things like "bob;>/hacked". That is laughable, and I will continue to point and laugh. Imagine limiting URL encoding because of SQL injection.
We can fix this, then fix the things that break - and then we can improve.
Or we can ossify into stone. Your choice.
I was referring to this. Don't get me wrong, I also would love to make sweeping changes to many things in computing. I still think it is perfectly valid to impose reasonable limitations on input even if the program could theoretically handle it - it prevents all kinds of problems at the very root (like allocating disproportionate amounts of resources, infinite timeouts, etc).
We have our tower of babel here and we are telling people not to use it? I am not even native English user btw. Having a lingua franca allowed me to understand someone from Russia, China, Japan, etc.
Maybe once we have easily accessible ML translate nuances in one language to another without loss we can all talk in our own languages and just translate each others words.
Limiting text-space because of communcation is a strange objection that I don't think will hold up over time.
One of the dumbest things Debian has done.
Debian seems to just squander resources on things a few powerful people care about.
All my servers have been Debian-based, so I can't be too hard on them, but whenever I see someone recommend a Debian-family distro as a Desktop OS, I feel like I need to call the police.
I've been thinking about that a lot lately. Code is text, it's arranged linearly, code has to be readable, identifiers are thus short strings that try to express short essays about the purpose of the variable or whatever it is, and then ideally there's a longer version of the essay in a comment, but not too long because that would clutter up the code as well (because it's text, arranged linearly). And we have code folding to tidy them up, for what good it does, and ideally an even longer version of the essay in documentation except nobody writes that.
What if it wasn't text, and wasn't linear, and we didn't have an expectation that code should be strings of stupid over-terse names and hieroglyphic symbols? So I was thinking vaguely about investigating graphic-based programming, but it's probably worse, IDK. It could automatically assign arbitrary icons* instead of identifiers, and you could write tooltip-like comments to describe them as and when you want to, and everything could be laid out nicely with diagrams and different pages instead of like a text file. I suppose this is all merely cosmetic? The thing with the instance on code being written as strings of text feels very primitive, is all. It causes this problem.
* Which doesn't solve the problem, I admit, because now you have to remember what the icons mean, but maybe that's easier?
Another case in point: when was the last time you saw someone use a flowchart to describe the pseudocode of an algorithm, as opposed to writing, er, pseudocode? Flowcharts used to be the dominant way to do this, decades ago, but they seem to me to have been thoroughly supplanted by pseudocode...
>What does an algorithm look like?
And any effort to answer it which gets beyond the size of a single diagram/screen/page/poster becomes a problem like to:
https://blueprintsfromhell.tumblr.com/
https://scriptsofanotherdimension.tumblr.com/
I like to think of myself as a visual person, and I wish there was a good solution here, and I keep looking for and trying different solutions other folks have made (current two iterations are BlockCAD and OpenSCAD Graph Editor) --- I'd be glad of other suggestions, esp. if able to make graphic user interfaces more complex than the OpenSCAD Customizer.
Have you ever read large electronic schematics? That's basically it .. except all the important things have to be identified by text anyway, because it's a massive challenge to the imagination to come up with two hundred different pictograms.
Of course, if you really want your identifiers to be pictograms, why not just use kanji for your identifiers? The Japanese language and Unicode provide tens of thousands of ready made pictograms for your convenience!
The only nonlinear programming environments that have really worked are the spreadsheet (which is still linear within each cell) and Labview. Possible shoutout to Unity blueprints, but when those get too complicated sphagetti .. people rewrite them in linear text code.
As a mechanical engineer who works with Labview and Simulink, as well as more conventional code (python mostly), that is indeed a very good description. First glance at a large labview program feels very much like first glance at a large and complex electronics schematic. Lots of wire everywhere and you're not even sure where to start.
I think a nice "best of both worlds" approach is a graphical "high level" view which shows the flow of data, at least for "data transformation" kind of programs, and code for the low level logic (what actually happens in the blocks). Sort of like nodal editors in Blender and NLE apps. Fortunately Simulink makes it easy to drop in a Matlab function call, Labview not so much (need to get into C FFI or use a really old version of .net or something).
The thought I have about spreadsheets (might have read that on here), is that spreadsheets make the data visible and hide the code. Text-based programming hides the data but shows the code. I'm not sure what something that makes both code and data first class and visible would look like, but I'd be curious for sure (for engineering type applications at least). Best I've found so far (and what I actually for a lot of data processing tasks) is a Jupyter notebook making plentiful use of df.head() and df.plot().
Not 100% sure what you mean by 'nonlinear' here (flow control?) but almost all industrial and mining equipment is programmed in visual languages on PLCs. Ladder Logic looks like, well, a stylized electrical drawing of a bunch of relays wired up to perform logical operations. Function Block Diagram looks like a PCB layout, but the 'integrated circuits' are function blocks (basically functors) and the 'traces' are copying data between between the function blocks. Not great for implementing hardcore algorithms but you can do a surprising amount with them (once you get used to coding with both hands tied behind your back) and they sure are accessible to people who otherwise wouldn't be programming.
Of course, as you say, when things get genuinely complicated, it's much nicer to use a 'real' programming language (or even just Structured Text, which is pretty much just Pascal).
Then again, even with electronics, once things get complex enough don't we start using text (eg. VHDL)? Expressing designs is always a tradeoff between simplicity and 'obviousness' on the one hand, and representational efficiency on the other. Structured text sits right in the sweet spot between the two.
I guess you're right. This has been a dimly-felt wish of mine for some 25 years, but probably pie in the sky.
Edit: I see there are a lot of visual programming languages.
Edit: forgot the link. Here is: http://reactable.com
That said, I keep trying various ones, and will keep hoping that someday someone will make a graphical tool able to make a GUI program.
Nodezator seems promising.
For example, say you have getFoo(). It's clear it gets the foo. But later you introduce getFooAsync(). Suddenly it's no longer clear whether getFoo() is sync or async, because you didn't call it getFooSync().
If instead you used names like getFoo1, getFoo2, getFoo3, etc., the semantics you're providing is that there are multiple "ways" to getFoo without making promises (a contract) about what the function actually does in its name.
Although this sounds like bad naming practices (it is), it effectively solves the naming problem. Apply this to CSS, and instead of .red-button or .secondary-button, you get .button1, .button2, .button3, and you just don't have to think about WHY are you creating a button to give it a class and start styling it.
And code isn't just linear, it can be spread across multiple files in a directory tree, functions can can each other, etc.
I'm not sure this is universal.
After all, it's objectively the most perfect set of characters for any reasonable human language.
In Bulgarian, латиница ("latin alphabet") transliterated to latin alphabet is just "latinitsa" or "latinica".
In Polish "cyrillic" is "cyrylica" - basically reverse.
But how else would you represent non-latin characters? More character sets?
Well, they are defined as: "an intermediate technology until we find a way to transfer images over data connections."
So it was always a technology that was 40 years too late to the party?
(It should also tell you something that not only is there a name for "computers failed at charsets", but the name is Japanese.)
Maybe it was nice if you worked for a US company without any operations abroad, which includes absolutely none of those which mattered.
Contra:
* https://stackoverflow.com/questions/25812790/wrong-character...
It would be impossible to e.g. build a site like Reddit where people can comment in any language.