News for hackers. Stuff that matters.
Re:Go bindings to Rust's regex engine by dangerlibrary on Monday May 02, 2016 @02:26PM (#11614064)
It's easy to call any code from any language - all you need is the power of HTTP and micro services! ;)
Re:Go bindings to Rust's regex engine by dikaiosune on Monday May 02, 2016 @02:31PM (#11614114)
Microservices don't help polyglots make regexes faster. If you're sticking a 100ns operation behind an endpoint with JSON serialization/deserialization, network round-trip, etc., then I'm not sure what to say to that.
Re:Go bindings to Rust's regex engine by cderwin on Monday May 02, 2016 @10:03PM (#11617294)
Actually this microservices approach has existed for decades in erlang/otp and can maintain quite excellent speed. You're not going to beat raw c speed-wise, but typically you will beat comparable dynamic languages -- and you don't have to worry about decoding/encoding json or any of that bs. I'd personally be absolutely thrilled if something like genserver and some other otp protocols were ported to other dynamic languages -- but alas real processes aren't nearly efficient enough.
Re:Go bindings to Rust's regex engine by vvanders on Monday May 02, 2016 @10:24PM (#11617380)
You can also delegate to C with Erlang via NIFs
Re:Go bindings to Rust's regex engine by steveklabnik on Monday May 02, 2016 @10:30PM (#11617412)
Re:Go bindings to Rust's regex engine by vvanders on Tuesday May 03, 2016 @10:33AM (#11621018)
Yes, that's been on my (long) list of things to check out.
Re:Go bindings to Rust's regex engine by sixbrx on Monday May 02, 2016 @02:37PM (#11614174)
Note wink at end of dangerlibrary's post!
Re:Go bindings to Rust's regex engine by dikaiosune on Monday May 02, 2016 @02:43PM (#11614227)
A wink does not necessarily mean sarcasm? I agree that in this case it probably does, but I don't see how that use of sarcasm adds anything substantive to the conversation (aside from a not-relevant-to-this-post dig on microservices, perhaps).
Re:Go bindings to Rust's regex engine by derefr on Monday May 02, 2016 @08:42PM (#11616993)
What the wink means is that dangerlibrary was making the same point you made in your reply to them.
Re:Go bindings to Rust's regex engine by cobalt on Monday May 02, 2016 @07:25PM (#11616618)
i think he was making a joke... (dangerlibrary)
Re:Go bindings to Rust's regex engine by xiaq on Monday May 02, 2016 @07:39PM (#11616707)
On a serious note, implementing libraries as standalone applications that can be accessed via IPC is actually a viable approach. Plan 9 does this with almost all of its services. Not exactly a fair comparison though, since the IPC mechanism in Plan 9 is just the file system and much easier to learn.
Re:Go bindings to Rust's regex engine by btrask on Monday May 02, 2016 @02:36PM (#11614160)
I wish you were joking.
Re:Go bindings to Rust's regex engine by xaduha on Monday May 02, 2016 @04:18PM (#11615190)
Granted.
Re:Go bindings to Rust's regex engine by jkrems on Monday May 02, 2016 @05:20PM (#11615743)