Post AvrgFikufe476hqOMy by [email protected] | |
More posts by [email protected] | |
Post #AvrcGuSkELLrt9eobI by [email protected] | |
0 likes, 2 repeats | |
So. In programming there is a standard notion of:453 # This is a decimal number… | |
Post #AvrcGubxg4iyLjyAy0 by [email protected] | |
0 likes, 1 repeats | |
@mcc what about putting spaces in the string? I feel like it's not very oft… | |
Post #AvrcGumx1DVytp6x60 by [email protected] | |
0 likes, 0 repeats | |
I'm currently thinking this is best done another way, if for no other reaso… | |
Post #AvrdqycYLbpLAF0V0K by [email protected] | |
0 likes, 1 repeats | |
@mcc It's a great idea!0eš²š # 134807155789 | |
Post #AvrfGL9RogESEe3FCq by [email protected] | |
0 likes, 0 repeats | |
Noteā The above is all nonsense but I need to simultaneously refute two uncle… | |
Post #AvrfGLFTSH3KXKs3bE by [email protected] | |
0 likes, 0 repeats | |
@mcc ruby has things like thisspecifically, it lets you use emacs escape sequen… | |
Post #AvrfPD3nGiVfkNdUki by [email protected] | |
0 likes, 0 repeats | |
@catsalad @mcc Oh that's cursed. Lmao | |
Post #AvrfszX28ClATdVucK by [email protected] | |
0 likes, 0 repeats | |
@mcc I would say yes, it's a sin, for the main reason of, you would need to… | |
Post #AvrfszftbFqgv7ezQm by [email protected] | |
0 likes, 0 repeats | |
@mcc (let alone unused codes such as 157) | |
Post #Avrftf7zThgRU87VPk by [email protected] | |
0 likes, 0 repeats | |
@mcc I like the idea, but you could have spaces inside literals at that point, … | |
Post #AvrfuXEaJP2nIDcXBo by [email protected] | |
0 likes, 0 repeats | |
@mcc how would you even find out the last digit? | |
Post #AvrfuXN5nlqjibbKS0 by [email protected] | |
0 likes, 0 repeats | |
@frikinin whitespace or an expression-ender like ,Actually, come to think of it… | |
Post #AvrfuXUtKm5W6nFYbg by [email protected] | |
0 likes, 0 repeats | |
@mcc @mcc Why is that not base 1114112? | |
Post #AvrfufMK6VzIUXIpMW by [email protected] | |
0 likes, 0 repeats | |
@mcc yes. I love it. | |
Post #AvrfwRH9R9D7OLjFZY by [email protected] | |
0 likes, 0 repeats | |
@mcc yes you are committing a sin against the human mind. But only because we w… | |
Post #AvrfwROF0msjkL2uci by [email protected] | |
0 likes, 0 repeats | |
@pbarker It ends when you hit whitespace. That's pretty simple | |
Post #AvrfxLVyLEL9oX5sRs by [email protected] | |
0 likes, 0 repeats | |
@mcc @frikinin time to invent the null terminator all over again | |
Post #Avrfz18V4zMNBqubIm by [email protected] | |
0 likes, 0 repeats | |
@mcc ASCII would be base-128 though.mksh has this as "base-1" numbers… | |
Post #AvrfzByykjHOpVXeUK by [email protected] | |
0 likes, 0 repeats | |
@mcc Intel chips are little-endian, but network traffic is naturally big-endian… | |
Post #AvrfzLY3BhgIUt1Hu4 by [email protected] | |
0 likes, 0 repeats | |
@mcc One potential issue is that ASCII includes a lot of unprintable characters… | |
Post #Avrg1Wd0xmrnRNNesq by [email protected] | |
0 likes, 0 repeats | |
@mcc [menacing non-printable noises] | |
Post #Avrg2A8a4MI1yZRv04 by [email protected] | |
0 likes, 0 repeats | |
@mirabilos Depending on how your lexer/reader works, the ASCII could be intersp… | |
Post #Avrg2AEFjGpKGA6RqC by [email protected] | |
0 likes, 0 repeats | |
@mcc yah well, even the form in mksh is a horror for parsing and escaping (ksh9… | |
Post #Avrg5d3N16s4WffIEC by [email protected] | |
0 likes, 0 repeats | |
@[email protected] Oh no I think TempleOS (out of all things) had this | |
Post #Avrg6TC1ACgaEY6vvU by [email protected] | |
0 likes, 0 repeats | |
@mauvedeity Identifiers in this language are a special case of strings | |
Post #Avrg6TIklA4cZRGJQO by [email protected] | |
0 likes, 0 repeats | |
@mcc Oh, OK. Didnāt realise youād thought of that. I am kind of looking for… | |
Post #Avrg6ljeDuHXk3z2qO by [email protected] | |
0 likes, 0 repeats | |
@mcc back in BeOS I think we had ābeosā for 32 bit constants, but iirc gcc … | |
Post #Avrg6lr5mEEk79SzRo by [email protected] | |
0 likes, 0 repeats | |
@mikaeleiman This was a fundamental element of Mac OS 6 programming. | |
Post #Avrg7K90I8laSY6m5Q by [email protected] | |
0 likes, 0 repeats | |
@mcc Yes ! | |
Post #Avrg811MsPCzRJrmee by [email protected] | |
0 likes, 0 repeats | |
@mcc I should have made the sarcastic tone of my post a bit clearer. | |
Post #Avrg8nMH9ySBM419uK by [email protected] | |
0 likes, 0 repeats | |
@mcc ASCII is base 128 surely? It is a 7-bit standard. | |
Post #Avrg9SPuVMiqhD28lU by [email protected] | |
0 likes, 0 repeats | |
@mcc is ascii ok in today's global Internet it do you need unicode? | |
Post #AvrgCAGURx0fGduzPE by [email protected] | |
0 likes, 0 repeats | |
@rabidchaos @mcc base64 literals could be nice to have, but wouldnāt allow ju… | |
Post #AvrgChMJPKH5uFtbYu by [email protected] | |
0 likes, 0 repeats | |
@mcc multi-char constants but _not_ based on the host endianness, i dig it. | |
Post #AvrgFiXnSPZcS1huvQ by [email protected] | |
0 likes, 0 repeats | |
@ShadSterling @rabidchaos I actually have very specific rules in my projects ab… | |
Post #AvrgFieX3MxemurIQK by [email protected] | |
0 likes, 0 repeats | |
@mcc @rabidchaos good! Having a way to restrict a literal to ASCII-only might … | |
Post #AvrgFikufe476hqOMy by [email protected] | |
0 likes, 0 repeats | |
@mcc @rabidchaos oops that wasnāt in this thread, but these confusables: http… | |
Post #AvrgHMbC1Itey654Nc by [email protected] | |
0 likes, 0 repeats | |
@mcc I think it's reasonable (if "reasonable" even applies here) … | |
Post #AvrgHOpRjHUDsslTsG by [email protected] | |
0 likes, 0 repeats | |
@mauvedeity It's⦠it's got a couple interesting ideas in it, I don… | |
Post #AvrgHPwZaGmVLH6gca by [email protected] | |
0 likes, 0 repeats | |
@mauvedeity What I said above was a little misleadingā in the S-expression, i… | |
Post #AvrgIEV1cS368bbuGO by [email protected] | |
0 likes, 0 repeats | |
@mcc If you strictly define the alphabet to just be 0-9, A-Z, a-z, and _ then y… | |
Post #AvrgJKnpfXUtycvt1E by [email protected] | |
0 likes, 0 repeats | |
@mcc maybe quotes I think. And at the end you could allow "be" or &qu… | |
Post #AvrgJU33IK1GeR7fUW by [email protected] | |
0 likes, 0 repeats | |
@mcc Yes, because in ASCII, only code points 32 through 127 are reasonably well… | |
Post #AvrgLNgRve3LUVSHdw by [email protected] | |
0 likes, 0 repeats | |
@[email protected] @[email protected] The other reason this is a sin is that A… | |
Post #Avrh6JSvQgJ21FVZZY by [email protected] | |
0 likes, 0 repeats | |
@mcc oh, I wouldnāt use it for anything practical, Iāve got Python3 for tha… | |
Post #Avrh6Ja10JyeNEpEci by [email protected] | |
0 likes, 0 repeats | |
@mauvedeity I've been doing this project (on hold) where I try to do the 25… | |
Post #Avrh6xysnHdVfwlewC by [email protected] | |
0 likes, 0 repeats | |
@mcc see now youāre applying rules whereas the others are just āwhat follow… | |
Post #Avrh6y6KLbai32FbXc by [email protected] | |
0 likes, 0 repeats | |
@godofbiscuits Yeah I'm uhhh actually literally writing a programming langu… | |
Post #Avrjai6wYvpd3FqgsK by [email protected] | |
0 likes, 1 repeats | |
@mcc Octal is usually prepended by just a zero, without any letters, so 0453 is… | |
Post #AvrnJsvVUs6LUNjRT6 by [email protected] | |
0 likes, 0 repeats | |
Poll:I'm writing a programming language interpreter. I support alternate ba… | |
Post #AvrnJtqE5zTIKIGjsO by [email protected] | |
0 likes, 0 repeats | |
@mcc if you're intending it primarily for interactive use, I'd permit o… | |
Post #AvrnKnoO01H1unq3ma by [email protected] | |
0 likes, 0 repeats | |
@mcc I would probably discard leading zeros and raise a warning. | |
Post #AvrnKnvTZeweGn9ipk by [email protected] | |
0 likes, 0 repeats | |
@mcc Nvm, interpreter not compiler | |
Post #AvrnLI6rLtsNsmiEk4 by [email protected] | |
0 likes, 0 repeats | |
@mccDo you want to rais an error if someone writes 0x001? | |
Post #AvrnLIEesu7AGyMStk by [email protected] | |
0 likes, 0 repeats | |
@zerbp @mcc I thought the same. I very often align ācomputer numbersā (hex,… | |
Post #AvrnMQTzhryU8o4hWK by [email protected] | |
0 likes, 0 repeats | |
@mcc If the target audience for your language is likely to be familiar with C o… | |
Post #AvrnNrxV2NSTe5Z1Mm by [email protected] | |
0 likes, 0 repeats | |
@mcc ASCII? How quaint. Unicode is much more sensible, and you get 20 bits per … | |
Post #AvrnORLpRuiRPgDReC by [email protected] | |
0 likes, 0 repeats | |
@Pashhur Unicode is confusing in this context because it does not have an unamb… | |
Post #AvrnP11Worrs38zk0G by [email protected] | |
0 likes, 0 repeats | |
@mcc the biggest issue with leading zeroes is that the classic convention is th… | |
Post #AvrnPs0HqDMmMdozvU by [email protected] | |
0 likes, 0 repeats | |
@mcc i figured you knew what you were doing. It felt like you were undervaluin… | |
Post #AvrnREvy4XPvlrSFUm by [email protected] | |
0 likes, 0 repeats | |
@mcc Not being able to write hex constants the full size of the datatype would … | |
Post #AvrnSYhG52NFLzCex6 by [email protected] | |
0 likes, 0 repeats | |
@mcc in isolation i feel either is fine but if itās an error there should be … | |
Post #AvrnSZHPubIVA87XJQ by [email protected] | |
0 likes, 0 repeats | |
@mcc go all-in and require all decimal numbers to be 0d11 | |
Post #AvrnStSQtLzbk5QcG8 by [email protected] | |
0 likes, 0 repeats | |
@mcc I also quite like languages letting you put digit separators in. Oh, I lik… | |
Post #AvrnTOlIVGVCpZUcT2 by [email protected] | |
0 likes, 0 repeats | |
@mcc if you use only symbolic unix file permissions, it's probably less imp… | |
Post #AvrnU0sMnQjh2V5nlI by [email protected] | |
0 likes, 0 repeats | |
@mcc I always liked the way Forth did it.You specified the base with a keyword … | |
Post #AvrnUGZSRV7LiUMvVg by [email protected] | |
0 likes, 0 repeats | |
@mcc i have used a language where leading zeroes are a syntax error because of … | |
Post #AvrnUHrDewv3hrgcpk by [email protected] | |
0 likes, 0 repeats | |
@mcc i had forgotten which language this was and had to look it up and of cours… | |
Post #AvrnUJ9gplHvjRKtGK by [email protected] | |
0 likes, 0 repeats | |
@mcc anyways my feeling is that making this a syntax error is extremely surpris… | |
Post #AvrnWr5vcS9zZWn7Kq by [email protected] | |
0 likes, 0 repeats | |
@zerbp No, and that's a very clarifying question | |
Post #AvrnWrCfDPY1uPwUpk by [email protected] | |
0 likes, 0 repeats | |
@mcc @zerbp then you will need to throw one on 0O65 - I.e ban uppercase variant… | |
Post #AvrnXznGlIQCqDbibo by [email protected] | |
0 likes, 0 repeats | |
@greg sincerely I considered it (not requiring this, but allowing it) | |
Post #AvrnZETleBZeg24jOy by [email protected] | |
0 likes, 0 repeats | |
@steely_glintI would not permit upper case for Any of the variants. I find lowe… | |
Post #Avrnaltwrxxock3Tto by [email protected] | |
0 likes, 0 repeats | |
@mcc once upon a time, I was writing mods for a web browser game, scraping the … | |
Post #AvrneKystuE6I342m8 by [email protected] | |
0 likes, 0 repeats | |
@mcc I would expect 0b00011111 or 0x0100 to be valid.Iād be OK with treating … | |
Post #AvrpB6sgRegO4PM3u4 by [email protected] | |
0 likes, 0 repeats | |
@oblomov @mcc I know itās classic convention, but no matter how many times Iļæ½… | |
Post #AvrpCCvXS3N36xDInI by [email protected] | |
0 likes, 0 repeats | |
@mcc 0.79 š | |
Post #AvrpCVA1evedf687sG by [email protected] | |
0 likes, 0 repeats | |
@benjohn yeah, I'm leaning to _ as it seems to be the standard | |
Post #AvrqPvTXEVeozhDjTU by [email protected] | |
0 likes, 0 repeats | |
@uliwitness @mcc this was going to be my answer too - if the social context len… | |
Post #AvrqQfOUVaxHPNDM00 by [email protected] | |
0 likes, 0 repeats | |
@mcc raise an error because this is invalid base 0 | |
Post #AvsCan8ykQWFKbBwzQ by [email protected] | |
0 likes, 0 repeats | |
@jrose This is good thinking.On that final point tho: If you're an old enou… | |
Post #AvsCdf5x85rZEl92zA by [email protected] | |
0 likes, 0 repeats | |
@mcc @jrose this feels like a potential lint | |
Post #AvsCnaiWGH8QYSv1yy by [email protected] | |
0 likes, 0 repeats | |
@mcc @Pashhur How about Unicode UTF-32 specifically? | |
Post #AvsD9ZRdfkVEyoVIP2 by [email protected] | |
0 likes, 0 repeats | |
@gutmunchies @mcc this is because of Pythonās mistake, not Cās mistake. Pyt… | |
Post #AvsDHvBwhZjik994rI by [email protected] | |
0 likes, 0 repeats | |
@benjohn @mcc That's going on my todo list for my language project. | |
Post #AvsDK4giMkNIm5Z1ma by [email protected] | |
0 likes, 0 repeats | |
@dandylyons @Pashhur that's an option in some cases, but doesn't corres… | |
Post #AvsDTYZGdtnU3GbNoG by [email protected] | |
0 likes, 0 repeats | |
@jrose @mcc you could add 0d for when you want to express decimal with leading … | |
Post #AvsDVPAmXlXfUd1x6u by [email protected] | |
0 likes, 0 repeats | |
@jrose @mcc ah. yes, you've convinced us; we'd like to change our vote.… | |
Post #AvsDaWR2yBuNSs4uyO by [email protected] | |
0 likes, 0 repeats | |
@swetland @benjohnperl -e 'print 1_000_000'1000000So satisfyingā¦What … | |
Post #AvsDk0PGuFrr1dlnqC by [email protected] | |
0 likes, 0 repeats | |
@megmac @jrose @mcc I lean toward allowing leading zeros on "plain" d… | |
Post #AvtIQliA0rdEsLDAmG by [email protected] | |
0 likes, 0 repeats | |
@mcc Base 128, surely? | |
Post #AvtIQx3TpwDo3eGr2G by [email protected] | |
0 likes, 0 repeats | |
@acb @botahamec It seems like Mastodon is not displaying my own reply to this p… | |
Post #AvtYjWfnkMNb0L4exc by [email protected] | |
0 likes, 0 repeats | |
@mcc Using 0o## for octal avoids the leading-zeros landmine nicely. And remind… | |
Post #AvtYjg3WrVhu6XFEh6 by [email protected] | |
0 likes, 0 repeats | |
@swetland I think Ruby does it? There's some existing language that does jt |