News for hackers. Stuff that matters.
Re:Optimizations in Syntax Highlighting by trishume on Wednesday February 08, 2017 @03:22PM (#13601674)
Yes it would be possible to write a C wrapper for my Rust library and link that from Node, however I expect you might lose a lot of performance to data conversion.

I have yet to do the regex engine port, I'm doing that later this evening. I'm porting it from Oniguruma to https://github.com/google/fancy-regex which accelerates common types of regexes using the awesome Rust regex crate which is super fast.

Re:Optimizations in Syntax Highlighting by dgfgfdagasdfgfa on Wednesday February 08, 2017 @08:26PM (#13603836)
Doesn't rust export the C abi? Or does the "c wrapper" just involve converting c types to rust domain types>
Re:Optimizations in Syntax Highlighting by kevincox on Wednesday February 08, 2017 @10:16PM (#13604364)
You can very easily export a C api from rust. And fact you would have to if you wanted to write a wrapper anyways so I think the wrapper is probably unnecessary.
Re:Optimizations in Syntax Highlighting by trishume on Thursday February 09, 2017 @07:54AM (#13606544)
Sorry that's what I meant. Just export c ABI functions in a Rust crate.