Email or username:

Password:

Forgot your password?
Top-level
promโ„ข๏ธ

@ollej @mhoye ๐“’๐“ธ๐“ถ๐“ถ๐“ฎ๐“ท๐“ฝ๐“ผ ๐“ถ๐“พ๐“ผ๐“ฝ ๐“พ๐“ผ๐“ฎ ๐“ฑ๐“ช๐“ท๐“ญ-๐”€๐“ป๐“ฒ๐“ฝ๐“ฒ๐“ท๐“ฐ.

18 comments
Lord Olle W

@promovicz @mhoye ๐š„๐šœ๐šŽ ๐šƒ๐šข๐š™๐šŽ๐š ๐š›๐š’๐š๐šŽ๐š› ๐š๐š˜๐š› ๐š™๐š›๐š’๐š—๐š๐š’๐š—๐š

Lord Olle W

@blogdiva @promovicz @mhoye Do it! :)

Maybe different bold weights can indicate size of an int. The bolder the variable is, the more bits will be used for it.

mhoye

@ollej @blogdiva @promovicz arbitrary byte-length numbers but the number of bytes assigned is the number of nโ€™s in โ€œintโ€. Need an 8-byte integer? Easy, just declare an innnnnnnnt.

Lord Olle W

@mhoye @blogdiva @promovicz I love it! Itโ€™s so convenient! And so easy to read, just count the nโ€™s.

mhoye

@ollej @blogdiva @promovicz I think weโ€™re on to something here - maybe the way to easily express precision accuracy preferences is with the number of Os and As in โ€œfloatโ€? If we only care about large numbers, declare a floooooaat but if you need precision in very small numbers, just declare a flooaaaaaaat.

Lord Olle W

@mhoye @blogdiva @promovicz Sounds incredibly practical! How about declaring the length of an array? How about out multiplying the number of aโ€™s in the first position with the number of aโ€™s in the second position?

aaaarraay = an array of length 8.

DELETED

@ollej @mhoye @blogdiva @promovicz one could write [int, int, int] as a type, at which point (int, int, int) and [int, int, int] read kind of similar and one might as well abandon fixed-size arrays in favor of tuples.

mhoye

@ollej @blogdiva @promovicz think of the convenience, how suddenly easy it is to declare an aaaaarraaaaay of floooooaaaats.

mhoye replied to mhoye

@ollej @blogdiva @promovicz tired: syntactic sugar. Wired: syntactic high-fructose corn syrup.

Lord Olle W replied to mhoye

@mhoye @blogdiva @promovicz Also, why only have ++ increment operator for adding one, just add more plus signs to increment with that amount. So +++ adds two and +++++ adds four.

Lord Olle W replied to Lord Olle W

@mhoye @blogdiva @promovicz Lets bring an end to the discussion of using keywords or braces for blocks, we can use this instead

dobegin{:

}end

And also requiring indentation with alternating tabs and spaces for each level of nesting.

your auntifa liza ๐Ÿ‡ต๐Ÿ‡ท ๐Ÿฆ› ๐Ÿฆฆ

@mhoye @ollej @promovicz i ought to snitch on you to Eric Meyer (he's here but won't tag him because he doesn't need this nightmare scenario seared on his retinas)

Lord Olle W

@blogdiva @mhoye @promovicz Who is he? And why wouldnโ€™t he want a nightmare scenario seared into his retinas?

Lord Olle W

@promovicz @mhoye The great thing about this is that we donโ€™t need to prefix comments with // or # or anything. Just use that font and it will be ignored.

promโ„ข๏ธ

Python code:

# make string [A ... B]
def crange(a,b):
s = ""
for c in range(ord(a),ord(b)+1):
s += chr(c)
return s

# some styles (see next post)
normal = crange('A','Z')+crange('a','z')
script_bold = crange('๐“','๐”ƒ')
monospace_normal = crange('๐™ฐ','๐šฃ')

# translation function
def tostyle(s, style):
t = str.maketrans(normal,style)
return s.translate(t)

# demo
print(tostyle("TEST", monospace_normal))

@ollej @mhoye

Python code:

# make string [A ... B]
def crange(a,b):
s = ""
for c in range(ord(a),ord(b)+1):
s += chr(c)
return s

# some styles (see next post)
normal = crange('A','Z')+crange('a','z')
script_bold = crange('๐“','๐”ƒ')
monospace_normal = crange('๐™ฐ','๐šฃ')

# translation function
def tostyle(s, style):
t = str.maketrans(normal,style)
return s.translate(t)

promโ„ข๏ธ

More styles:

bold = crange('๐€','๐ณ')
italic_normal = "๐ด๐ต๐ถ๐ท๐ธ๐น๐บ๐ป๐ผ๐ฝ๐พ๐ฟ๐‘€๐‘๐‘‚๐‘ƒ๐‘„๐‘…๐‘†๐‘‡๐‘ˆ๐‘‰๐‘Š๐‘‹๐‘Œ๐‘๐‘Ž๐‘๐‘๐‘‘๐‘’๐‘“๐‘”๐‘–๐‘—๐‘˜๐‘™๐‘š๐‘›๐‘œ๐‘๐‘ž๐‘Ÿ๐‘ ๐‘ก๐‘ข๐‘ฃ๐‘ค๐‘ฅ๐‘ฆ๐‘ง"
italic_bold = crange('๐‘จ','๐’›')
script_norm = "๐’œโ„ฌ๐’ž๐’Ÿโ„ฐโ„ฑ๐’ขโ„‹โ„๐’ฅ๐’ฆโ„’โ„ณ๐’ฉ๐’ช๐’ซ๐’ฌโ„›๐’ฎ๐’ฏ๐’ฐ๐’ฑ๐’ฒ๐’ณ๐’ด๐’ต๐’ถ๐’ท๐’ธ๐’นโ„ฏ๐’ปโ„Š๐’ฝ๐’พ๐’ฟ๐“€๐“๐“‚๐“ƒโ„ด๐“…๐“†๐“‡๐“ˆ๐“‰๐“Š๐“‹๐“Œ๐“๐“Ž๐“"
double_normal = "๐”ธ๐”นโ„‚๐”ป๐”ผ๐”ฝ๐”พโ„๐•€๐•๐•‚๐•ƒ๐•„โ„•๐•†โ„™โ„šโ„๐•Š๐•‹๐•Œ๐•๐•Ž๐•๐•โ„ค๐•’๐•“๐•”๐••๐•–๐•—๐•˜๐•™๐•š๐•›๐•œ๐•๐•ž๐•Ÿ๐• ๐•ก๐•ข๐•ฃ๐•ค๐•ฅ๐•ฆ๐•ง๐•จ๐•ฉ๐•ช๐•ซ"
sans_normal = crange('๐– ','๐—“')
sans_bold = crange('๐—”','๐˜‡')
sans_italic = crange('๐˜ˆ','๐˜ป')
sans_italic_bold = crange('๐˜ผ','๐™ฏ')

@ollej @mhoye

More styles:

bold = crange('๐€','๐ณ')
italic_normal = "๐ด๐ต๐ถ๐ท๐ธ๐น๐บ๐ป๐ผ๐ฝ๐พ๐ฟ๐‘€๐‘๐‘‚๐‘ƒ๐‘„๐‘…๐‘†๐‘‡๐‘ˆ๐‘‰๐‘Š๐‘‹๐‘Œ๐‘๐‘Ž๐‘๐‘๐‘‘๐‘’๐‘“๐‘”๐‘–๐‘—๐‘˜๐‘™๐‘š๐‘›๐‘œ๐‘๐‘ž๐‘Ÿ๐‘ ๐‘ก๐‘ข๐‘ฃ๐‘ค๐‘ฅ๐‘ฆ๐‘ง"
italic_bold = crange('๐‘จ','๐’›')
script_norm = "๐’œโ„ฌ๐’ž๐’Ÿโ„ฐโ„ฑ๐’ขโ„‹โ„๐’ฅ๐’ฆโ„’โ„ณ๐’ฉ๐’ช๐’ซ๐’ฌโ„›๐’ฎ๐’ฏ๐’ฐ๐’ฑ๐’ฒ๐’ณ๐’ด๐’ต๐’ถ๐’ท๐’ธ๐’นโ„ฏ๐’ปโ„Š๐’ฝ๐’พ๐’ฟ๐“€๐“๐“‚๐“ƒโ„ด๐“…๐“†๐“‡๐“ˆ๐“‰๐“Š๐“‹๐“Œ๐“๐“Ž๐“"
double_normal = "๐”ธ๐”นโ„‚๐”ป๐”ผ๐”ฝ๐”พโ„๐•€๐•๐•‚๐•ƒ๐•„โ„•๐•†โ„™โ„šโ„๐•Š๐•‹๐•Œ๐•๐•Ž๐•๐•โ„ค๐•’๐•“๐•”๐••๐•–๐•—๐•˜๐•™๐•š๐•›๐•œ๐•๐•ž๐•Ÿ๐• ๐•ก๐•ข๐•ฃ๐•ค๐•ฅ๐•ฆ๐•ง๐•จ๐•ฉ๐•ช๐•ซ"
sans_normal = crange('๐– ','๐—“')
sans_bold = crange('๐—”','๐˜‡')
sans_italic = crange('๐˜ˆ','๐˜ป')

Go Up