| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> |
| 2 |
<HTML> |
| 3 |
|
| 4 |
<HEAD> |
| 5 |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1"> |
| 6 |
<TITLE>loadfuncpp</TITLE> |
| 7 |
<LINK REL="stylesheet" TYPE="text/css" HREF="loadfuncpp.css"> |
| 8 |
</HEAD> |
| 9 |
|
| 10 |
<BODY> |
| 11 |
|
| 12 |
<CENTER> |
| 13 |
<P> |
| 14 |
<TABLE BORDER="0" WIDTH="700"> |
| 15 |
<TR> |
| 16 |
<TD WIDTH="100%"> |
| 17 |
<H1 ALIGN="CENTER"><BR> |
| 18 |
Loadfuncpp</H1> |
| 19 |
<H2 ALIGN="CENTER">A Dynamic Library used to aid Adding <BR> |
| 20 |
External Functions written in C++ to<BR> |
| 21 |
<A HREF="http://www.cs.arizona.edu/icon/lb3.htm" target="_blank">The Icon Programming Language</A></H2> |
| 22 |
<H3 ALIGN="CENTER">Carl Sturtivant, February 2010, <FONT COLOR="#FF9900">version 0.91alpha</FONT></H3> |
| 23 |
<BLOCKQUOTE> |
| 24 |
<H5><FONT COLOR="#FF9900"></FONT></H5> |
| 25 |
<H3><FONT COLOR="#CC0000">Features</FONT></H3> |
| 26 |
</BLOCKQUOTE> |
| 27 |
<UL> |
| 28 |
<LI><FONT COLOR="#FF9900">Works with the existing Icon runtime system with no modification</FONT> |
| 29 |
<LI><FONT COLOR="#FF9900">Call Icon with call syntax from C++ and vice-versa, recursively</FONT> |
| 30 |
<LI><FONT COLOR="#FF9900">Has a simple way to create new Icon datatypes by inheritance</FONT> |
| 31 |
<LI><FONT COLOR="#FF9900">Write new Icon functions in C++ that suspend a sequence of results</FONT> |
| 32 |
<LI><FONT COLOR="#FF9900">Iterate in C++ through result sequences generated by Icon</FONT> |
| 33 |
<LI><FONT COLOR="#FF9900">All Icon functions, keywords and operators made available in C++</FONT> |
| 34 |
<LI><FONT COLOR="#FF9900">Takes care of garbage collection safety automatically</FONT> |
| 35 |
<H5></H5> |
| 36 |
</UL> |
| 37 |
<BLOCKQUOTE> |
| 38 |
<BLOCKQUOTE> |
| 39 |
<BLOCKQUOTE> |
| 40 |
<BLOCKQUOTE> |
| 41 |
<BLOCKQUOTE> |
| 42 |
<H4><A HREF="manual.htm">documentation</A><BR> |
| 43 |
<A HREF="loadfuncpp.htm">experimental binaries</A><BR> |
| 44 |
<A HREF="compile.htm">compilation options</A></H4> |
| 45 |
</BLOCKQUOTE> |
| 46 |
</BLOCKQUOTE> |
| 47 |
</BLOCKQUOTE> |
| 48 |
</BLOCKQUOTE> |
| 49 |
<H3>News</H3> |
| 50 |
<BLOCKQUOTE> |
| 51 |
<P>2010/2/10 (I am releasing this now having moved on to a new implementation of the language entirely.) There |
| 52 |
are no known bugs, but bugs almost certainly exist. This pack needs systematic in-depth testing for subtle issues |
| 53 |
connected to garbage collection. Specifically, the mechanism to call Icon from C++ pushes onto the top of the Icon |
| 54 |
stack a region used by a copy of the interpreter loop that's used to execute the Icon procedure called from C++. |
| 55 |
I have not investigated how the Icon stack is garbage collected, and this region does not extend the stack the |
| 56 |
way that Icon does. If this proves unsafe for garbage collection, the stack region for such a call may have to |
| 57 |
have suitable frames containing pointers to the lower part of the stack (or vice-versa) placed in it to repair |
| 58 |
this deficiency. Also, the way garbage collection safety of Icon values in C++ variables is ensured is to use the |
| 59 |
constructor to implicitly link them onto the far end of the main co-expression's safe list, and unlink them from |
| 60 |
there using the destructor. This is almost certainly safe from the usual call and return mechanism in iconx for |
| 61 |
protecting local variables, but needs testing and verification.<BR> |
| 62 |
<BR> |
| 63 |
2009/1/20 fixed a bug where a call of any C++ external function that in turn calls Icon and afterIcon returns calls |
| 64 |
Icon::runerr would not correctly report the name and arguments of said function in the resulting traceback. Upped |
| 65 |
the version number to 0.91alpha.<BR> |
| 66 |
<BR> |
| 67 |
2009/1/20 loadfuncpp now searches for a shared object on the path defined by the environment variable FPATH with |
| 68 |
the icon/bin directory appended if you specify no path. FPATH undefined leads loadfuncpp to search the current |
| 69 |
directory followed by the icon/bin directory.<BR> |
| 70 |
<BR> |
| 71 |
2009/1/12 <FONT COLOR="#FF9900">loadfuncpp has been completely overhauled</FONT>, and the old version is now obsolete. |
| 72 |
Many small functions have been added to eliminate ambiguities in programs that use loadfuncpp, and the central |
| 73 |
class has been renamed and a class eliminated. Small pieces of missing functionality have been added. The documentation |
| 74 |
has been modified accordingly. It is now close to it's final form, and in need of some serious beta testing, and |
| 75 |
I have someone who has agreed to do that. Once this is done, loadfuncpp will be made available as a pack with the |
| 76 |
Icon 9.5 source distribution. |
| 77 |
</BLOCKQUOTE> |
| 78 |
</BLOCKQUOTE> |
| 79 |
</TD> |
| 80 |
</TR> |
| 81 |
</TABLE> |
| 82 |
|
| 83 |
</CENTER> |
| 84 |
|
| 85 |
</BODY> |
| 86 |
|
| 87 |
</HTML> |