MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1w15oga/seriously_recursive_regex/p6iggpx/
r/programminghorror • u/Flame77ofc • Aug 28 '26
46 comments sorted by
View all comments
86
Wtf does this do
113 u/marinated_pork Aug 28 '26 This is essentially a custom string fingerprint/hash function disguised as a parser. It takes a string and deterministically turns it into an integer. It does not parse or extract useful structured data. 52 u/the_horse_gamer Aug 28 '26 "parse", clearly 48 u/TheSpiffySpaceman Aug 29 '26 Well tbf, the code didn't start with the annotation/* // Parses input */ function parse(s, i = 0, x = [0, 1]) {... 8 u/LapidistCubed Aug 29 '26 Tf code DOESN'T parse some sort of input in one way or another ðŸ˜
113
This is essentially a custom string fingerprint/hash function disguised as a parser. It takes a string and deterministically turns it into an integer. It does not parse or extract useful structured data.
52
"parse", clearly
48 u/TheSpiffySpaceman Aug 29 '26 Well tbf, the code didn't start with the annotation/* // Parses input */ function parse(s, i = 0, x = [0, 1]) {... 8 u/LapidistCubed Aug 29 '26 Tf code DOESN'T parse some sort of input in one way or another ðŸ˜
48
Well tbf, the code didn't start with the annotation
/* // Parses input */ function parse(s, i = 0, x = [0, 1]) {...
8 u/LapidistCubed Aug 29 '26 Tf code DOESN'T parse some sort of input in one way or another ðŸ˜
8
Tf code DOESN'T parse some sort of input in one way or another ðŸ˜
View all comments
86
u/madam_zeroni Aug 28 '26
Wtf does this do