<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 04/22/2015 03:52 PM, Daniel Goertzen wrote:<br>
<blockquote
cite="mid:CAJCf5RyxsbBcNL_HyxtZrcDfWK4FVQ6DYXsxSKsraf-C3hV3_A@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div dir="ltr">I was thinking about the little Erlang wrapper that
you need around a NIF module and then it hit me: Could the
Erlang wrapper be thrown out and the NIF module plopped into
ebin/ and directly loaded like a .beam file? I'm curious if
this has been attempted or is even possible.
<div>
<div><br>
</div>
<br>
</div>
</div>
</blockquote>
<br>
Have not been attempted to my knowledge.<br>
Would be possible from a VM perspective by creating the "wrapper
module" dynamically in memory.<br>
<br>
Problem areas that I can think of are<br>
* missing module_info<br>
* missing type info (dialyzer)<br>
* all the code that expect files to be named *.beam<br>
<br>
<br>
/Sverker, Erlang/OTP<br>
<br>
</body>
</html>