SC言語は,Common Lispで実装された,S式の(Scheme風の)構文を持つC言語です.たとえば,以下のようなCコード long sum(long *ar, int n){ long s=0; int i=0; do{ if (i >= n) break; s += ar[i++]; } while(1); return s; } を,SCでは, (def (sum ar n) (fn long (ptr... 続きを読む 8 コメント
J/Invokeは,簡単にWin32 dllやLinux shared libraryを呼び出せるライブラリです. J/Invoke is the easiest way to call functions in a Win32 DLL (or a Linux shared library) from Java. With J/Invoke, Java programmers can call the Win32 API, or any exported function from a native DLL, with pure Java code. 一番簡単なサンプルは以下の通り. import com.jinvoke.JInvoke; import com.jinvoke.NativeImport; public class Example { @NativeImport(library="User32", function="Messa... 続きを読む 4 コメント