Over the last few weeks I've been learning and experimenting with Clojure and Erlang. From what I understand both solve the same type of problems - but - with different approaches. If that is correct, then is Clojure just as viable an option for real-time systems like chat applications or ticker plants, as Erlang is?
both address concurrent programming though in different environments:
Both of these systems are "soft real time" and are well suited to things like chat and control systems though neither of them would be suited to system with hard real-time requirements.
As far as Clojure goes, it can provide as much real time capabilities as the underlying Java VirtualMachine can.
You CAN create a hard real time system with a JVM, but this has to go beyond just the language syntax that Clojure provides.
Depending on your real-time requirement, it looks like you are going to need to tune the JVM (here is a good IBM Works article or to use a specific JVM like the Fiji JVM
Concerning Erland, there is already a related questions on SO
Chat and ticker plants applications can be achieved with both languages, but I personally suspect it would be easier to deploy with Clojure, especially looking at the offers in the Cloud (Heroku) and regular hosting services.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With