Try to guess what each of the following lines of code do:
'''/5%9/$#=7*''*(?&&)58-,=93/1(0 1&<"1%?#$-::#)' asDate.
'%!@$44#!$!.&0-";)7.<7?%(; $535(0536.%#56&++''3!%0/' asDate.
'/-@+%3:3.''9"04=. @5+$;"& (6.-,?@6"?43@@>>:' asDate.
'1(%&0:19)) 7-?1.8;=?8+!&42-(?#>357).!=21603* 6=?38.1**,//'':@663>.09!2%=!%%%2!>4'':@#/8!@==2>%651)</' asDate.
',$*3,3''="0+0>:#14-8+(1@$&827%6-!)9-<>:"2+>&*39 !"(27' asDate.
'''"?. <>!@"2(%7#)0 )46+#'';=+"94?%)9 +!<.+!9,25("9$11-,?49 =677. 0;/''%%/*' asDate.
'4.+@)3&11)."+.6=$&$0>5:5;:$,%5-+,4$0>")>4838''*2/' asDate.
'!7$:''!@0=)?0?<#&@./0.:&?$?4 =<!><(7)@3$!:"$%%=""/?44=0?*$).,<+& ::"8>:925$8!,2,95' asDate.
' &+?!$3"(<*)1");35 $:&<"$!' asDate.
'>6(# %2736:-1#@@9%9''+"#?37''2,<3>8-*5"$2-6#''365++*8 &' asDate.
'?(2/=-@=@:4?/(3$3(8"&,!-2/&6&&' asDate.
'&?7+=''9,:$(430,3#/$4#866'';2/*,?):. -!#"7=?6:$3"5 -$/=0' asDate.
'3-;;=72@,9=%*.;+)74@7") -&?(''7+!3-3<-0,<8:(,,;+5-$:81#&6''7830;"01+@>7<37''!(#/9"6%0?' asDate.
';";5!9!,4/;25!0(<$4)''2"(2&-''4/>/.'')99(>><' asDate.
'03="9-/,(;74"%@>=''91%>#==6*0/#02@?)0.' asDate
G
Right of the bat: mind blown (they probably translate to something)
From: Guillermo Polito guillermopolito@gmail.com
Sent: Wednesday, July 19, 2023 6:48 PM
To: Pharo Development List
Subject: [Pharo-dev] Fun with dates
Try to guess what each of the following lines of code do:
'''/5%9/$#=7*''*(?&&)58-,=93/1(0 1&<"1%?#$-::#)' asDate.
'%!@$44#!$!.&0-";)7.<7?%(; $535(0536.%#56&++''3!%0/' asDate.
'/-@+%3:3.''9"04=. @5+$;"& (6.-,?@6"?43@@>>:' asDate.
'1(%&0:19)) 7-?1.8;=?8+!&42-(?#>357).!=21603* 6=?38.1**,//'':@663>.09!2%=!%%%2!>4'':@#/8!@==2>%651)</' asDate.
',$*3,3''="0+0>:#14-8+(1@$&827%6-!)9-<>:"2+>&*39 !"(27' asDate.
'''"?. <>!@"2(%7#)0 )46+#'';=+"94?%)9 +!<.+!9,25("9$11-,?49 =677. 0;/''%%/*' asDate.
'4.+@)3&11)."+.6=$&$0>5:5;:$,%5-+,4$0>")>4838''*2/' asDate.
'!7$:''!@0=)?0?<#&@./0.:&?$?4 =<!><(7)@3$!:"$%%=""/?44=0?*$).,<+& ::"8>:925$8!,2,95' asDate.
' &+?!$3"(<*)1");35 $:&<"$!' asDate.
'>6(# %2736:-1#@@9%9''+"#?37''2,<3>8-*5"$2-6#''365++*8 &' asDate.
'?(2/=-@=@:4?/(3$3(8"&,!-2/&6&&' asDate.
'&?7+=''9,:$(430,3#/$4#866'';2/*,?):. -!#"7=?6:$3"5 -$/=0' asDate.
'3-;;=72@,9=%*.;+)74@7") -&?(''7+!3-3<-0,<8:(,,;+5-$:81#&6''7830;"01+@>7<37''!(#/9"6%0?' asDate.
';";5!9!,4/;25!0(<$4)''2"(2&-''4/>/.'')99(>><' asDate.
'03="9-/,(;74"%@>=''91%>#==6*0/#02@?)0.' asDate
G
Not that this isn’t fun, but whenever anyone says “gues what it does," it reminds me of one of my favoriate quotes from Dijkstra in his 1972 ACM Turing Award Lecture, “The Humble Programmer”:
The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague. In the case of a well-known conversational programming language I have been told from various sides that as soon as a programming community is equipped with a terminal for it, a specific phenomenon occurs that even has a well-established name: it is called “the one-liners”. It takes one of two different forms: one programmer places a one-line program on the desk of another and either he proudly tells what it does and adds the question “Can you code this in less symbols?” —as if this were of any conceptual relevance!— or he just asks “Guess what it does!”. From this observation we must conclude that this language as a tool is an open invitation for clever tricks; and while exactly this may be the explanation for some of its appeal, viz. to those who like to show how clever they are, I am sorry, but I must regard this as one of the most damning things that can be said about a programming language.
— https://www.cs.utexas.edu/~EWD/transcriptions/EWD03xx/EWD340.html
On Jul 19, 2023, at 9:48 AM, Guillermo Polito guillermopolito@gmail.com wrote:
Try to guess what each of the following lines of code do:
'''/5%9/$#=7*''*(?&&)58-,=93/1(0 1&<"1%?#$-::#)' asDate.
'%!@$44#!$!.&0-";)7.<7?%(; $535(0536.%#56&++''3!%0/' asDate.
'/-@+%3:3.''9"04=. @5+$;"& (6.-,?@6"?43@@>>:' asDate.
'1(%&0:19)) 7-?1.8;=?8+!&42-(?#>357).!=21603* 6=?38.1**,//'':@663>.09!2%=!%%%2!>4'':@#/8!@==2>%651)</' asDate.
',$*3,3''="0+0>:#14-8+(1@$&827%6-!)9-<>:"2+>&*39 !"(27' asDate.
'''"?. <>!@"2(%7#)0 )46+#'';=+"94?%)9 +!<.+!9,25("9$11-,?49 =677. 0;/''%%/*' asDate.
'4.+@)3&11)."+.6=$&$0>5:5;:$,%5-+,4$0>")>4838''*2/' asDate.
'!7$:''!@0=)?0?<#&@./0.:&?$?4 =<!><(7)@3$!:"$%%=""/?44=0?*$).,<+& ::"8>:925$8!,2,95' asDate.
' &+?!$3"(<*)1");35 $:&<"$!' asDate.
'>6(# %2736:-1#@@9%9''+"#?37''2,<3>8-*5"$2-6#''365++*8 &' asDate.
'?(2/=-@=@:4?/(3$3(8"&,!-2/&6&&' asDate.
'&?7+=''9,:$(430,3#/$4#866'';2/*,?):. -!#"7=?6:$3"5 -$/=0' asDate.
'3-;;=72@,9=%*.;+)74@7") -&?(''7+!3-3<-0,<8:(,,;+5-$:81#&6''7830;"01+@>7<37''!(#/9"6%0?' asDate.
';";5!9!,4/;25!0(<$4)''2"(2&-''4/>/.'')99(>><' asDate.
'03="9-/,(;74"%@>=''91%>#==6*0/#02@?)0.' asDate
G
and woot: I'm a good parser (bullshit eliminator; went for a few of the examples - after you hinted it is super-permissive), but there is no reason for the default to be that tolerant.
perhaps an introduction of "culture" fo the default parsing, and otherwise some format rules ?
From: Rauš Miloslav
Sent: Wednesday, July 19, 2023 6:50:13 PM
To: Pharo Development List
Subject: Re: [Pharo-dev] Fun with dates
Right of the bat: mind blown (they probably translate to something)
From: Guillermo Polito guillermopolito@gmail.com
Sent: Wednesday, July 19, 2023 6:48 PM
To: Pharo Development List
Subject: [Pharo-dev] Fun with dates
Try to guess what each of the following lines of code do:
'''/5%9/$#=7*''*(?&&)58-,=93/1(0 1&<"1%?#$-::#)' asDate.
'%!@$44#!$!.&0-";)7.<7?%(; $535(0536.%#56&++''3!%0/' asDate.
'/-@+%3:3.''9"04=. @5+$;"& (6.-,?@6"?43@@>>:' asDate.
'1(%&0:19)) 7-?1.8;=?8+!&42-(?#>357).!=21603* 6=?38.1**,//'':@663>.09!2%=!%%%2!>4'':@#/8!@==2>%651)</' asDate.
',$*3,3''="0+0>:#14-8+(1@$&827%6-!)9-<>:"2+>&*39 !"(27' asDate.
'''"?. <>!@"2(%7#)0 )46+#'';=+"94?%)9 +!<.+!9,25("9$11-,?49 =677. 0;/''%%/*' asDate.
'4.+@)3&11)."+.6=$&$0>5:5;:$,%5-+,4$0>")>4838''*2/' asDate.
'!7$:''!@0=)?0?<#&@./0.:&?$?4 =<!><(7)@3$!:"$%%=""/?44=0?*$).,<+& ::"8>:925$8!,2,95' asDate.
' &+?!$3"(<*)1");35 $:&<"$!' asDate.
'>6(# %2736:-1#@@9%9''+"#?37''2,<3>8-*5"$2-6#''365++*8 &' asDate.
'?(2/=-@=@:4?/(3$3(8"&,!-2/&6&&' asDate.
'&?7+=''9,:$(430,3#/$4#866'';2/*,?):. -!#"7=?6:$3"5 -$/=0' asDate.
'3-;;=72@,9=%*.;+)74@7") -&?(''7+!3-3<-0,<8:(,,;+5-$:81#&6''7830;"01+@>7<37''!(#/9"6%0?' asDate.
';";5!9!,4/;25!0(<$4)''2"(2&-''4/>/.'')99(>><' asDate.
'03="9-/,(;74"%@>=''91%>#==6*0/#02@?)0.' asDate
G
How did you generate these :)
It looks like fuzzing :)
S
On 19 Jul 2023, at 18:48, Guillermo Polito guillermopolito@gmail.com wrote:
Try to guess what each of the following lines of code do:
'''/5%9/$#=7*''*(?&&)58-,=93/1(0 1&<"1%?#$-::#)' asDate.
'%!@$44#!$!.&0-";)7.<7?%(; $535(0536.%#56&++''3!%0/' asDate.
'/-@+%3:3.''9"04=. @5+$;"& (6.-,?@6"?43@@>>:' asDate.
'1(%&0:19)) 7-?1.8;=?8+!&42-(?#>357).!=21603* 6=?38.1**,//'':@663>.09!2%=!%%%2!>4'':@#/8!@==2>%651)</' asDate.
',$*3,3''="0+0>:#14-8+(1@$&827%6-!)9-<>:"2+>&*39 !"(27' asDate.
'''"?. <>!@"2(%7#)0 )46+#'';=+"94?%)9 +!<.+!9,25("9$11-,?49 =677. 0;/''%%/*' asDate.
'4.+@)3&11)."+.6=$&$0>5:5;:$,%5-+,4$0>")>4838''*2/' asDate.
'!7$:''!@0=)?0?<#&@./0.:&?$?4 =<!><(7)@3$!:"$%%=""/?44=0?*$).,<+& ::"8>:925$8!,2,95' asDate.
' &+?!$3"(<*)1");35 $:&<"$!' asDate.
'>6(# %2736:-1#@@9%9''+"#?37''2,<3>8-*5"$2-6#''365++*8 &' asDate.
'?(2/=-@=@:4?/(3$3(8"&,!-2/&6&&' asDate.
'&?7+=''9,:$(430,3#/$4#866'';2/*,?):. -!#"7=?6:$3"5 -$/=0' asDate.
'3-;;=72@,9=%*.;+)74@7") -&?(''7+!3-3<-0,<8:(,,;+5-$:81#&6''7830;"01+@>7<37''!(#/9"6%0?' asDate.
';";5!9!,4/;25!0(<$4)''2"(2&-''4/>/.'')99(>><' asDate.
'03="9-/,(;74"%@>=''91%>#==6*0/#02@?)0.' asDate
G