Live data from Hacker News

FLI: A binary interface to let Scheme use Python, Lua, Ruby etc's Library

github.com

1–10 of 17 posts

Re: FLI: A binary interface to let Scheme use Python, Lua, Ruby etc's Library

#6
Racket has this for C-based APIs. My mind is kind of wondering how this would ever be stable/maintainable to use for Python, but Lua seems possible but I would rather do my scripting in Racket then Lua and use the C APIs directly.

https://docs.racket-lang.org/foreign/index.html

Looking at Julia (Which has a no "boiler plate" philosophy when using C or Fortan) the function is just called.

Interesting to look at for comparison

Julia ccall- https://docs.julialang.org/en/v0.6.1/manual/calling-c-and-fo...

Racket FFI - https://docs.racket-lang.org/foreign/index.html

Re: FLI: A binary interface to let Scheme use Python, Lua, Ruby etc's Library

#9

I just looked at the repo, haven't tried this yet. Could be very useful to me if tensorflow, pytorch etc. are callable

BTW, guenchi thanks for writing this code! Much appreciated.

I have been working hard to promote the construction of the (Chez)Scheme community for a year. Being useful to you is the best gift for me.

By the way, we have a scheme binding of tensorflow. That calling direct by tensorflow's C API.

FLI is in order to solve the problem of calling Numpy by Scheme which is lack of C - api.

Re: FLI: A binary interface to let Scheme use Python, Lua, Ruby etc's Library

#10
post #7

How does Chez Scheme compare vs. CHICKEN Scheme? For a layman, they both seem to compile to binary; Chicken via C, Chez maybe not? Which one has a bigget community? Also, do you know of any static typing extension for Chez?

Chez is compile direct to Native Code

Chicken has much more library and bigger community.

BUT...

Chez is the only commercial compiler (before open source) and very stable and fast...

Post reply on HN