The Wayback Machine - https://web.archive.org/web/20210827093118/https://github.com/topics/ffi
Skip to content
#

ffi

Here are 535 public repositories matching this topic...

denfromufa
denfromufa commented Oct 23, 2017

Based on pythonnet/pythonnet#554

> #r C:\\Python\\Python35_64b\\lib\\site-packages\\Python.Runtime.DLL
> using Python.Runtime;
> dynamic np; using (Py.GIL()) { np = Py.Import("numpy");};
> using System.Collections.Generic;
> using System.Collections;
> dynamic a = np.array(new List<float> { 1, 2, 3 });
> dynamic b = np.array(new List<float> { 6, 5, 4 }, dtype:
core
facundominguez
facundominguez commented Feb 26, 2021

Currently, a Haskell program that reports uncaught exceptions in stderr looks like this:

main :: IO ()
main = withJVM [] $ handle (showException >=> Text.hPutStrLn stderr) the_program

The call to handle is cheap enough that it should be made inside of withJVM, making the default behavior the more chatty. Thus, the same behavior could be achieved with

main :

Improve this page

Add a description, image, and links to the ffi topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ffi topic, visit your repo's landing page and select "manage topics."

Learn more