Why Compile Erlang for the CLR?
Erlang for the CLR? Why do such a crazy thing?
- The .NET ecosystem lacks a concurrent programming language. C#, Visual Basic and so on have limited language support for concurrency (basically providing the equivalent of Java's synchronized.) Erlang would ideally fill this gap.
- Windows programmers expect multi-language interoperation, to be able to readily consume common Windows APIs and frameworks, and to be able to integrate with Windows applications. The CLR is the substrate that enables all of these scenarios. Incidentally, a lot of the .NET and Win32 libraries and frameworks complement the common Erlang libraries. (UI libraries, for example.)
- The CLR has a security model for dynamically-loaded code called Code Access Security (CAS.) CAS provides metadata for dynamically-loaded code to declare the permissions it requires, APIs for loading code with specific sets of permissions and for demanding permissions dynamically, and security policy management tools. Erlang's security system is much simpler: permissions are associated with entire Erlang virtual machines ('nodes') which can either be completely trusted, or not trusted at all. Bringing CAS to Erlang would make secure, distributed programming in Erlang first class.
- Erlang occupies an interesting spot: It is dynamic, functional, and concurrent. That is new territory on the CLR.
- The CLR runs on servers, the Windows client, and in browsers. That is new territory for Erlang.

6 Comments:
How far along are you? I'd be interested in how RabbitMQ behaves if compiled to run on the CLR.
By
alexis, At
September 29, 2007 9:11 AM
Just thinking and planning at the moment.
By
Kappuccino Kid, At
September 29, 2007 2:29 PM
Is the project still alive? Can I partecipate?
By
delfinof, At
October 30, 2007 12:19 PM
The power of erlang arguably derive more from the vm than from the language - so hopefully your thinking include both parts w.r.t integration into CLR.
Cheers.
By
caracarn11, At
November 28, 2007 4:07 PM
just wondering if this project is still active?
By
Garry Danger, At
January 17, 2008 5:39 PM
Not the same thing, but in order to have .net talking to erlang there is also another option:
http://weblogs.asp.net/nleghari/archive/2008/01/08/integrating-net-and-erlang-using-otp-net.aspx
By
Filcor, At
February 21, 2008 5:47 AM
Post a Comment
<< Home