4 ms·
Why not? It's a neat way of showing off fundamental Unicode support, and AFAIK there are ASCII equivalents for all of them, in case you have no idea how to ente
by yorwba 9y ago
Why not? It's a neat way of showing off fundamental Unicode support, and AFAIK there are ASCII equivalents for all of them, in case you have no idea how to enter ⤐ or whatever.
- cesarb 9y ago> in case you have no idea how to enter ⤐ or whatever. Did you mean to type a black square there, or is my Android phone missing a font? In any case, this shows a potential issue with using Unicode characters for operators or identifiers: unless it's from a common Unicode block (like basic Greek letters), it might not be readable. It's not just writing that can be a problem.
- pletnes 9y agoI heard many times that perl is «write only». Unicode operators takes it to the next level.
- throwaway7645 9y agoAPL has used a huge set of non ASCII characters for more than 30 years in production by large companies.
- deleted 9y ago[deleted]
- jnordwick 9y agoModern APL derivatives (namely J and K) have ditched them though in favor of pure ascii.
- sedachv 9y agoThe character set and font constraints of the early 1990s, when J (1990) and K (1993) were developed, no longer apply. APL symbols are part of Unicode. There is no technical advantage left to ASCII-only syntax for APL-derived languages.
- jnordwick 9y ago> There is no technical advantage left to ASCII-only syntax for APL-derived languages. Except for that minor technical advantage of actually being on a standard keyboard. That said, I would love standard keyboards to get more symbols. I actally like using symbols instead of words for operators, when done in a consistent and logical fashion as J and K do and unlike Perl's disaster of a syntax. Map and reduce (each and over in APL lingo, in K ' and /) should be a symbol.
- throwaway7645 9y agoAgreed on the keyboard thing. Dyalog sells an APL keyboard, but it isn't ergonomic, which I need. I think "/" is a good symbol for map as it is easy access.
- jnordwick 9y agoI really want to do a stream based language that is like APL for streams. With the current event sourcing craze right now, I definitely see modern use cases.
- sedachv 9y ago> Except for that minor technical advantage of actually being on a standard keyboard. The IBM/Unicomp APL keyboard is a standard PS/2 PC/USB HID keyboard. Literally the only special thing about the IBM/Unicomp APL keyboards is what is printed on the keycaps (which you can buy separately https://www.pckeyboard.com/page/product/USAPLSET https://www.pckeyboard.com/page/product/USAPLSET). I don't understand this - how do people on Hacker News not realize that your keyboard does not determine your character encoding? You can easily remap your keys to whatever you want, have multiple layouts for human and computer programming languages, change the modifier and functions keys, whatever you want. All with the keyboard you already have; laptop, external, it doesn't matter. Somehow multiple layouts are not a big deal for multi-lingual people, why is it so confusing for programmers?
- jnordwick 9y ago
- throwaway7645 9y agoTrue that J & K do, but Dyalog doesn't and is pretty modern in that it is still very actively developed...interfaces to Python/R, runs on Raspberry Pi, hooks into .NET, can run on GPU...etc.
- labster 9y agoSeriously, if Unicode operators are confusing to you(r group), don't use the feature. But if you're a mathematician, it's nice to have a language that understands set operators.
- pletnes 9y agoPython does: foo in bar
- yorwba 9y agoAndroid devices tend to lack a lot of Unicode characters for some reason. I typed the "rightwards two-headed triple dash arrow" (not used in Perl AFAIK, I just find the name funny for some reason) and it doesn't show up on my Android either. Another commonly missing character is schwa (ə), which is used quite a lot in IPA transcriptions, and I've seen accented Greek characters missing as well, so it's not like only very rare characters are neglected.
- raldi 9y agoPaste the character into Google search or Wikipedia URL to find out.
- iainmerrick 9y agoWhich do people tend to use? Are there tools for converting back and forth? I am tempted by the idea of being able to type e.g. ½x² in mathematical code, but overall it sounds like much more trouble than it's worth.
- ivanhoe 9y agoWell, this way you will have 2 versions of code in the wild, ascii and non-ascii. We will need to memorize both, which makes it harder to learn, and also having 2 versions of syntax that you run into puts unnecessary mental strain on a developer having to switch between contexts. Perl's motto was always "There's more than one way to do it", but IMHO it was also the root of many of its weaknesses. It just makes code more complicated to understand, and this is one way to make it even worse (otherwise I love what they did with Perl6).
- foo101 9y ago> Perl's motto was always "There's more than one way to do it", but IMHO it was also the root of many of its weaknesses. So are you suggesting that Perl should discard its TIMTOWDI philosophy? It won't be Perl anymore then, would it?