[erlang-patches] add code:get_mode/0

Vlad Dumitrescu <>
Fri Feb 1 22:14:44 CET 2013


Hi!

It looks like this patch went forgotten after the discussions I had with
Henrik offline and after I had problems running the test suites. It went
well with R16A.

A new function code:get_mode() can be used to detect how
the code servers behaves, returning 'embedded' or 'interactive'.

Rationale:
    Some applications (like erlide) have code to be loaded dynamically on a
    node. It may be slow to load everything upfront every time, so if the
    node is in interactive mode, we would like to just append to the load
    path. Currently, there is no direct way to detect if the node is running
    in embedded mode or not so that we can do the right thing.

git fetch git://github.com/vladdu/otp.git code_get_mode

https://github.com/vladdu/otp/compare/erlang:master...code_get_mode
https://github.com/vladdu/otp/compare/erlang:master...code_get_mode.patch

Github shows a whitespace diff, but in my editor the whitespace is exactly
like on the line above. Maybe git does soemthing to it?

best regards,
Vlad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20130201/cb64b262/attachment.html>


More information about the erlang-patches mailing list