7 ms·
It's easy to call any code from any language - all you need is the power of HTTP and micro services! ;)
by dangerlibrary 10y ago
It's easy to call any code from any language - all you need is the power of HTTP and micro services! ;)
- dikaiosune 10y agoMicroservices 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.
- sixbrx 10y agoNote wink at end of dangerlibrary's post!
- dikaiosune 10y agoA 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).
- cderwin 10y agoActually 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.
- vvanders 10y agoYou can also delegate to C with Erlang via NIFs
- steveklabnik 10y agoThen there's https://github.com/hansihe/Rustler https://github.com/hansihe/Rustler
- vvanders 10y agoYes, that's been on my (long) list of things to check out.
- btrask 10y agoI wish you were joking.
- xaduha 10y agoGranted.
- jkrems 10y agoReminds me of this: https://blogs.oracle.com/angelo/entry/url_encoding_and_other_from https://blogs.oracle.com/angelo/entry/url_encoding_and_other...
- xiaq 10y agoOn 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.