News for hackers. Stuff that matters.
Re:Why does ++[[]][+[]]+[+[]] return the string "10"? by Aardwolf on Tuesday October 08, 2024 @11:12AM (#41778222)
++[++[+[]][+[]]][+[]] outputs 2 as a Number (rather than as string). How high could we go with those 3 characters ([, ] and +, no spaces) with less-than-exponential scaling compared to amount of digits of the result, as Number (as string it's easy by concatenating digits of course)?

I'm thinking it's not possible without being able to use '*'

Re:Why does ++[[]][+[]]+[+[]] return the string "10"? by wruza on Tuesday October 08, 2024 @11:20AM (#41778325)
Without concatenation it’s likely exponential since we are comparing n to log n.
Re:Why does ++[[]][+[]]+[+[]] return the string "10"? by eastbound on Tuesday October 08, 2024 @11:17AM (#41778285)
The best part is when you’ll code it as a type in Typescript.