Is it possible to call Erlang functions (callback funs) from NIFs? I read the doc(http://www.erlang.org/doc/man/erl_nif.html), but didn't find how to do that.
What's the best way to integrate Erlang and python? We need to call python functions in Erlang and call Erlang functions in python. At this moment we are trying to use SOAP as a intermediate layer between these two languages, but we have a lot of "not compatible" troubles. Could you advise the best way to perform integration?
Here's an interesting article about "passing fun's to other Erlang nodes". To resume it briefly: [...] As you might know, Erlang distribution works by sending the binary encoding of terms; and so sending a fun is also essentially done by encoding it using erlang:term_to_binary/1; passing the resulting binary to another node, and then decoding it again using erlang:binary_to_term/1.[...] This is pr
I seem to not fully understand, how the -on_load directive works. In a module i have written i have a function to initialize an ets table and populate it with some data. This function works properly when calling it explicitly. However: i thought it would be nice, if the ets table would be populated "automatically" when the module is loaded. But this does not seem to work, because ets:info(filesig)
José Valimさんのstackoverflowに学ぶ「Elixirによる簡易無限ループ」を実装して常駐プロセスとして動かしみよう!Elixirdaemon 1. やりたいこと Elixirで無限ループってどうやって書くのかなー、と、GenServerを利用しているライブラリをGitHubで漁りながら眺めていたのですが、なかなかないなー、と。 そんな時に、José Valimさんがstackoverflowで、同じような質問をしている人に快く回答しているのを見かけました。 http://stackoverflow.com/questions/30568806/which-otp-behavior-should-i-use-for-an-endless-repetition-of-tasks 2. 実装して動かしてみた 2-1. 自分でも写経ベースで試してみた S3に保存したテストデータ
Just to clarify the naming, they are both functions. One is a named function and the other is an anonymous one. But you are right, they work somewhat differently and I am going to illustrate why they work like that. Let's start with the second, fn. fn is a closure, similar to a lambda in Ruby. We can create it as follows: x = 1 fun = fn y -> x + y end fun.(2) #=> 3 A function can have multiple cla
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く