Can someone tell me why this is bad? Are you really not supposed to use regex at all in ring 0 (the /kernel)?
>>100160013Not sure but my guess that it's so hard to get a prefect regex you're bound to attract unforeseen consequences
regex is super complicated depending on the features you implement and prone to bugs, thats usually why
>>100160013Regex sucks
>why the fuckOH MY REDDIT! HE DID NOT JUST SAY THE F WORD!!!
Just noticed this is Rust, too. You get what you pay for.
>>100160013regex is complicated and doing complicated stuff for input parsing in the kernel is bad.>>100160073kek>>100160083hare
>>100160013Drew is a wizard, but he also does kinda dumb shit sometimes.
>>100160013depending on the rules of the expression it can be a lot to step through causing slowness
>>100160083Take your meds
>>100160013>create a programming language that's 2x less likely to have bugs>make everything have 10x as much logic because you approach programming like a JavaScript shitterGood going, Rust retards. Tell me more about your 50k lines of code command line argument parser and your ring 0 regex compiler.
>>100160013fuck drew.
>>100161798this is not Rust, this is Hare
>>100161798>I'm going to pretend that I know things.> Wdym this is not Rust. This is Rust. Fuck off Rust retard.
>>100161798>>100160083Is this the new way to "own" Drew? By claiming Rust is Hare and Hare is Rust? Lmao, pathetic
>>100160083it's not Rust, he's too hipster and contrarian for that so he made his own pointless lang that mixes existing ideas together
>>100163132Nah, rust just lives rent free in /g/'s head.
>>100160013pretty obvious, to filter out extensions
>>100163132fuck off Drew
>>100161798Lol fucking incompetent nigger
>>100160013Why would you use regex for this?
>>100162612>>100163112>>100163132>>100163990Oops, looks like I am the retard after all. I have brought shame on my family and will consider committing sudoku.
>>100160013>Can someone tell me why this is bad? Regex is very complex, several algorithms with different runtime, some famous attack on webservers was exploit common Regex pattern to overload the servers.>Are you really not supposed to use regex at all in ring 0 (the /kernel)?Can performance very slow or unpredictable, allocate a lot memory and if need regex on kernel is you are solving the wrong problem or begin too lazy for one more safe methods without extra allocations or hidden allocations. In this case simple string search or use ID of device vs regex.