[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


Can someone tell me why this is bad? Are you really not supposed to use regex at all in ring 0 (the /kernel)?
>>
>>100160013
Not 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
>>
>>100160013
Regex sucks
>>
>why the fuck
OH MY REDDIT! HE DID NOT JUST SAY THE F WORD!!!
>>
Just noticed this is Rust, too. You get what you pay for.
>>
>>100160013
regex is complicated and doing complicated stuff for input parsing in the kernel is bad.
>>100160073
kek
>>100160083
hare
>>
>>100160013
Drew is a wizard, but he also does kinda dumb shit sometimes.
>>
>>100160013
depending on the rules of the expression it can be a lot to step through causing slowness
>>
>>100160083
Take 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 shitter
Good going, Rust retards. Tell me more about your 50k lines of code command line argument parser and your ring 0 regex compiler.
>>
>>100160013
fuck drew.
>>
>>100161798
this 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
>>100160083
Is this the new way to "own" Drew? By claiming Rust is Hare and Hare is Rust? Lmao, pathetic
>>
>>100160083
it's not Rust, he's too hipster and contrarian for that so he made his own pointless lang that mixes existing ideas together
>>
>>100163132
Nah, rust just lives rent free in /g/'s head.
>>
>>100160013
pretty obvious, to filter out extensions
>>
>>100163132
fuck off Drew
>>
>>100161798
Lol fucking incompetent nigger
>>
>>100160013
Why would you use regex for this?
>>
>>100162612
>>100163112
>>100163132
>>100163990
Oops, 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.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.