MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/moh63k/polyglot/gu4ej43/?context=3
r/badcode • u/coopercm • Apr 11 '21
116 comments sorted by
View all comments
235
in C, -1 % 16 is -1; thus the return value for is_even would be in front of the lookup array and undefinedTM.
-1 % 16
-1
is_even
Also a polyglot is source code that is valid in different programming languages, this is more of a... very enthusiastic jit compiler?
139 u/deprilula28 Apr 11 '21 my man is jit compiling c, ahead of his time
139
my man is jit compiling c, ahead of his time
235
u/Square789 int mystery=*((int*)rand()) Apr 11 '21
in C,
-1 % 16is-1; thus the return value foris_evenwould be in front of the lookup array and undefinedTM.Also a polyglot is source code that is valid in different programming languages, this is more of a... very enthusiastic jit compiler?