简体   繁体   中英

How to run erlang from c application?

is it possible to run erlang vm from withing C application? I'd like to use as script engine from my game and cannot find any erlang API or other "official" way how to do that ...

Thanks!

Erlang VM takes some time to boot, so it wouldn't make sense to start and stop it each time, you want to make a call. The only solution is to have it running all the time (it is not that heavy). You can communicate with your C code using raw TCP or C nodes. You can read more about different interoperability options here:

http://www.erlang.org/doc/tutorial/users_guide.html

Erlang is good for orchestration, while C++ is good for raw computation, so usually people do it the other way round: they call C from Erlang.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM