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

ffi

Here are 566 public repositories matching this topic...

davidhewitt
davidhewitt commented Nov 29, 2021

Some users have specific use cases where they would benefit from being able to access the PYO3_CONFIG_FILE values in some form from the pyo3 crate.

I generally wouldn't advise this, as a lot of these config files (such as library path) are unique to the build environment so wouldn't have any useful meaning in binaries intended to be deployed on other systems.

See original comment from #2

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