a C API for Erlang

View: New views
3 Messages — Rating Filter:   Alert me  

a C API for Erlang

by chamila piyasena :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Can we use C fucntions within Erlang code without using the message passing techniqes specified in interoperability document and
 Does Erlang has a native C API ?

 cheers,
Chamila



_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions

Re: a C API for Erlang

by Rapsey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

C code is kept at a distance from Erlang, because it is not trusted to be reliable (it could bring the entire erlang runtime down with it if there is a problem). There is no native C API.


Sergej

2008/7/8 chamila piyasena <tchamila@...>:
Hi,

Can we use C fucntions within Erlang code without using the message passing techniqes specified in interoperability document and
 Does Erlang has a native C API ?

 cheers,
Chamila



_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions


_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions

Re: a C API for Erlang

by Alain O'Dea :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you really do want to call C directly you need to create a
Linked-in Driver. The Erlang Driver Toolkit [EDTK]
http://www.snookles.com/erlang/edtk/ looks like a good way to do this.
Make sure the C code is thoroughly tested and free of side effects
insofar as is possible.

2008/7/8 Rapsey <rapsey@...>:

> C code is kept at a distance from Erlang, because it is not trusted to be
> reliable (it could bring the entire erlang runtime down with it if there is
> a problem). There is no native C API.
>
>
> Sergej
>
> 2008/7/8 chamila piyasena <tchamila@...>:
>>
>> Hi,
>>
>> Can we use C fucntions within Erlang code without using the message
>> passing techniqes specified in interoperability document and
>>  Does Erlang has a native C API ?
>>  cheers,
>> Chamila
>>
>>
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@...
>> http://www.erlang.org/mailman/listinfo/erlang-questions
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@...
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions