Nim as another interface language for Cloudi?

30 views
Skip to first unread message

Bob Gustafson

unread,
May 26, 2016, 3:29:52 PM5/26/16
to CloudI Questions
I have been using Nim for the past few months - as a viable replacement for Ruby.

       http://nim-lang.org/

Nim is compiled to C++ which is then compiled to machine code, so the result is quite fast. Also, Nim has asynchronous function calls.

The Nim language is highly typed, so the Nim compiler does a lot of work to help with program correctness.

I was just wondering if anyone else had the same experience and interest.

Bob G

Lee Sylvester

unread,
May 26, 2016, 3:57:34 PM5/26/16
to cloudi-q...@googlegroups.com

Haven't heard of it but interested to look at it. How well does it handle concurrency?

--
You received this message because you are subscribed to the Google Groups "CloudI Questions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudi-questio...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Truog

unread,
May 26, 2016, 9:41:39 PM5/26/16
to cloudi-q...@googlegroups.com
I haven't used Nim before, however you should be able to use c2nim on the cloudi.h header file (the C CloudI API) to get a Nim interface (based only on a brief look at Nim).  Any of the languages SWIG support (Nim is not supported by SWIG) can also be used with the cloudi.h header file with a basic SWIG interface file (https://github.com/CloudI/CloudI/blob/develop/src/api/c/cloudi.i), though I have not attempted to test any SWIG generated interfaces yet.  The only problem with this approach is how it might impact concurrency the programming language provides (if it is ok to use C++ exceptions (that are handled) then it shouldn't be a problem, and you would find out quickly if there was a problem).
Reply all
Reply to author
Forward
0 new messages