Re:ZeroMQ instead of HTTP, for internal services
by enduser on Monday July 22, 2013 @08:55PM
(#6087512)
Here is a more complete list of language bindings taken from http://www.zeromq.org/bindings:_start
Ada, Bash, Basic, C, Chicken Scheme, Common Lisp, C#, C++, D, Delphi, Erlang, F#, Felix, Flex (ActionScript), Go, Guile Scheme, Haskell, Haxe, Java, JavaScript (Node, Flash), Julia, LabVIEW, Lua, Nimrod, Objective-C, Objective Caml, ooc, Perl, PHP, Python, Q, Racket, R, REBOL (2 and 3), Red, Ruby, Scala, Smalltalk, Tcl, XPCOM
Re:ZeroMQ instead of HTTP, for internal services
by augustl on Monday July 22, 2013 @07:33PM
(#6087202)
OP here, thanks for making that clear. I intentionally tried to keep the Clojure code as generally easy to read as possible, and aside from the big Clojure win (more specifically, functional programming win) towards the end, the code is pretty generic ZeroMQ stuff. I suppose it's not a coincidence that the ZeroMQ docs has the code snippets available in many programming languages :)
Re:ZeroMQ instead of HTTP, for internal services
by ajkjk on Monday July 22, 2013 @08:52PM
(#6087503)
I have to confess that I, as a non-Clojure-speaker, found it much less interesting after seeing that your example was in Clojure. Using less common languages as examples makes it feel like it's in that big world of amusing side projects instead of something trying to be mainstream. Not on purpose, it's subconscious.
Re:ZeroMQ instead of HTTP, for internal services
by TeMPOraL on Monday July 22, 2013 @09:42PM
(#6087677)
OTOH, Clojure gets more common as more people use it in examples. Subconsciously, if you keep seeing this strange language every other example code then you start to think that maybe it's not so side-projecty after all.
Re:ZeroMQ instead of HTTP, for internal services
by krichman on Monday July 22, 2013 @11:09PM
(#6088012)
On the contrary, if I see someone writing in Clojure or Scala it is a good indicator that they can be taken seriously.
Re:ZeroMQ instead of HTTP, for internal services
by chongli on Monday July 22, 2013 @10:49PM
(#6087918)
That's really not fair, to be honest. The ony way for small languages to break through is to get a lot of exposure so that people start using them.
Re:ZeroMQ instead of HTTP, for internal services
by doublec on Monday July 22, 2013 @07:33PM
(#6087203)
I wrote an ATS binding which I use in a number of projects: https://github.com/doublec/ats-libzmq
I attempted to use ATS features to make sure resources are cleaned up and msg data usage is statically checked for correct sizes, etc.
Re:ZeroMQ instead of HTTP, for internal services
by bitops on Monday July 22, 2013 @11:59PM
(#6088159)
Is it now possible to use ZeroMQ in JVM languages without JNI? I used ZeroMQ with Java 2 years ago and had to use JNI to make it work. (Which I did not like).
Re:ZeroMQ instead of HTTP, for internal services
by gislik on Tuesday July 23, 2013 @03:08AM
(#6088624)
Yes, you can. The ZeroMQ git repository now contains a pure Java implementation of ZMTP/2.0 which aims to be compatible with libzmq 3.2.2.
https://github.com/zeromq/jeromq
I've recently started to migrate my ZeroMQ/JNI to pure JeroMQ and I have a few simple components in production already.
I guess my point is, don't skim the article and think it's not for you because you don't know Clojure. Here's a list of languages it supports ( http://zguide.zeromq.org/page:all#Ask-and-Ye-Shall-Receive ):
C++ | C# | Clojure | CL | Delphi | Erlang | F# | Felix | Go | Haskell | Haxe | Java | Lua | Node.js | Objective-C | Perl | PHP | Python | Q | Racket | Ruby | Scala | Tcl | Ada | Basic | ooc