Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

[flagged]


I'm working on an extension that filters out comments that whine and complain about Rust being mentioned.


You can literally make that with a one-liner Userscript in your browser.


And then rewrite it in Rust.


Would filter out trust, crust, …


That would be frustrating. Unless the matching is made case-sensitive, which would probably be a good idea when trying to filter out a proper name.


> frustrating

nice work


assuming people always case things correctly.


Why? You could just match on word boundaries '\bRust\b'

You would still get false positives with that but only regarding actual word semantics (i.e. articles mentioning Rust as oxidation process and not as programming language) but that's the tradeoff I guess


/([^a-z]|^)rust([^a-z]|$)/i


%s/Rust/Ruby on Rails/g would be amusing, just to see if the content even changes.


Of course. It needs to be written in Rust and compiled to wasm for maximum irony.


I wish! The hype cycle is unbearable.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: