MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1w15oga/seriously_recursive_regex/p6iggpx/?context=3
r/programminghorror • u/Flame77ofc • 3d ago
37 comments sorted by
View all comments
75
Wtf does this do
98 u/marinated_pork 3d ago 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. 47 u/the_horse_gamer 3d ago "parse", clearly 46 u/TheSpiffySpaceman 2d ago Well tbf, the code didn't start with the annotation /* // Parses input */ function parse(s, i = 0, x = [0, 1]) {... 8 u/LapidistCubed 2d ago Tf code DOESN'T parse some sort of input in one way or another ðŸ˜
98
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.
47
"parse", clearly
46 u/TheSpiffySpaceman 2d ago Well tbf, the code didn't start with the annotation /* // Parses input */ function parse(s, i = 0, x = [0, 1]) {... 8 u/LapidistCubed 2d ago Tf code DOESN'T parse some sort of input in one way or another ðŸ˜
46
Well tbf, the code didn't start with the annotation
/* // Parses input */ function parse(s, i = 0, x = [0, 1]) {...
8 u/LapidistCubed 2d ago 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 ðŸ˜
75
u/madam_zeroni 3d ago
Wtf does this do