qaz@lemmy.world to Programmer HumorEnglish · 2 months agoWhy have UTF8 support if you won't write your code in the Sumerian clay tablet alphabet of Ancient Mesopotamia?lemmy.worldimagemessage-square24fedilinkarrow-up1276arrow-down10
arrow-up1276arrow-down1imageWhy have UTF8 support if you won't write your code in the Sumerian clay tablet alphabet of Ancient Mesopotamia?lemmy.worldqaz@lemmy.world to Programmer HumorEnglish · 2 months agomessage-square24fedilink
minus-squaresteventhedev@lemmy.worldlinkfedilinkarrow-up2·2 months agothis doesn’t hold a candle to APL: sudoku←{⎕io←0 ⍝ Whitney/Last p←{(↑⍵)∘{(⍺∨.=⍵)/⍳n×n}¨,⍵},(n*÷2){⍵,⍺⊥⌊⍵÷⍺}¨⍳n n←⍴⍵ m←{(⊂⍵)⌈(⊂⍺=⍳⍴⍵)×(1+⍳n)~⍵[⍺⊃p]} (⍴⍵)∘⍴¨⊃{⊃,/⍺ m¨⍵}/{(⍸⍵=0),⊂⊂⍵},⍵ }
minus-squareBillegh@lemmy.worldlinkfedilinkarrow-up3·2 months agoThe difference is that the above Sumerian could be dealt with using find and replace in a dire situation, while APL is a write-only language.
minus-squarestingpie@lemmy.worldlinkfedilinkarrow-up2·2 months agoI dunno, there’s probably less than ten people who can actually speak Sumerian, and there’s at least a dozen people who can read APL.
this doesn’t hold a candle to APL:
sudoku←{⎕io←0 ⍝ Whitney/Last p←{(↑⍵)∘{(⍺∨.=⍵)/⍳n×n}¨,⍵},(n*÷2){⍵,⍺⊥⌊⍵÷⍺}¨⍳n n←⍴⍵ m←{(⊂⍵)⌈(⊂⍺=⍳⍴⍵)×(1+⍳n)~⍵[⍺⊃p]} (⍴⍵)∘⍴¨⊃{⊃,/⍺ m¨⍵}/{(⍸⍵=0),⊂⊂⍵},⍵ }
The difference is that the above Sumerian could be dealt with using find and replace in a dire situation, while APL is a write-only language.
I dunno, there’s probably less than ten people who can actually speak Sumerian, and there’s at least a dozen people who can read APL.