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

This code is mostly just testing the regex engine?


Is the Rust regex engine slow because it's written in Rust?


Not really, it's mainly because it hasn't been optimized over many many years yet. Also, everything in Rust is implemented in Rust. Unlike interpreted languages like PHP, it's self-hosted.


Yes.


Seems to be the case. All the same, given enough cases, I would expect that one can find something at which most major languages are faster by a generally faster language.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: