4 ms·
I have no rust knowledge let me ask - is this hard to do in 500 lines of rust? - is there a catch why a implementation in rust worth mentioning on HN? don't g
by Surac 2y ago
I have no rust knowledge let me ask
- is this hard to do in 500 lines of rust?
- is there a catch why a implementation in rust worth mentioning on HN?
don't get me wrong im realy intested in rust.
- bmn__ 2y ago[dead]
- diego_moita 2y ago> - is this hard to do in 500 lines of rust? No, not that much. User posted mostly because he/she is learning the language. > is there a catch why a implementation in rust worth mentioning on HN? HN loves Rust and it is an fun opportunity to explore Rust semantics in use without going to the more complex part of the language. It belongs to the category of "cool first project", like a Sudoku solver, etc.
- ModernMech 2y ago500 lines struck me as particularly long, but I would use a combinator library like nom, and it looks like they are trying to do it from scratch.
- nine_k 2y agoHow large is the combinator library? It should not be excessively long, for the simple thing it normally does, especially in Rust which is FP-friendly.
- ModernMech 2y agoI've seen a capable combinator lib written in about 500 lines of Rust. Probably could be shorter if minimal loc were a goal. The one I use is called "nom", it's very general and has a lot of built in functionality and options, so it's much larger than 500 lines to be sure.