All Projects → idris-industry → idris-ffi-example

idris-industry / idris-ffi-example

Licence: MIT license
A minimal example of the Idris C FFI

Programming Languages

Idris
72 projects
c
50402 projects - #5 most used programming language
Makefile
30231 projects

Labels

Projects that are alternatives of or similar to idris-ffi-example

rid-examples
Examples showing how to use Rid in order to build Dart/Flutter apps integrated with Rust.
Stars: ✭ 191 (+1264.29%)
Mutual labels:  ffi
Compiler-Principle
词法分析,LL(1) 文法分析,LR(1) 文法分析
Stars: ✭ 18 (+28.57%)
Mutual labels:  ffi
clr-loader
Loader for different .NET runtimes
Stars: ✭ 16 (+14.29%)
Mutual labels:  ffi
rust-xgboost
Rust bindings for XGBoost.
Stars: ✭ 77 (+450%)
Mutual labels:  ffi
denoffi
Deno Foreign Function Interface.
Stars: ✭ 37 (+164.29%)
Mutual labels:  ffi
lua-resty-openssl
FFI-based OpenSSL binding for OpenResty
Stars: ✭ 76 (+442.86%)
Mutual labels:  ffi
rust lisp
A Rust-embeddable Lisp, with support for interop with native Rust functions
Stars: ✭ 128 (+814.29%)
Mutual labels:  ffi
cargo-valgrind
A cargo subcommand, that runs valgrind and displays its output in a helpful manner.
Stars: ✭ 66 (+371.43%)
Mutual labels:  ffi
deno bindgen
Simplified glue code generation for Deno FFI libraries written in Rust.
Stars: ✭ 142 (+914.29%)
Mutual labels:  ffi
ol
Otus Lisp (Ol in short) is a purely* functional dialect of Lisp.
Stars: ✭ 157 (+1021.43%)
Mutual labels:  ffi
react-native-fast-openpgp
OpenPGP for react native made with golang for fast performance
Stars: ✭ 29 (+107.14%)
Mutual labels:  ffi
asmdot
[Unstable] Fast, zero-copy and lightweight (Arm | Mips | x86) assembler in (C | C++ | C# | Go | Haskell | Javascript | Nim | OCaml | Python | Rust).
Stars: ✭ 23 (+64.29%)
Mutual labels:  ffi
rust-flutter-reactive
This is a sample app to improve consistency over Mobile App Development.
Stars: ✭ 25 (+78.57%)
Mutual labels:  ffi
php-ffi-rust
PHP7.4 + Rust
Stars: ✭ 28 (+100%)
Mutual labels:  ffi
wasm
Utilities for loading and running WASM modules from Dart code
Stars: ✭ 252 (+1700%)
Mutual labels:  ffi
ffi-sdl
PHP FFI SDL bindings
Stars: ✭ 23 (+64.29%)
Mutual labels:  ffi
haskell-libui
Haskell bindings to the libui C library.
Stars: ✭ 45 (+221.43%)
Mutual labels:  ffi
pony-sodium
Safe Pony FFI wrapper for the libsodium cryptography library. 🐴 🔐
Stars: ✭ 24 (+71.43%)
Mutual labels:  ffi
opencl-ruby
OpenCL bindings for Ruby
Stars: ✭ 38 (+171.43%)
Mutual labels:  ffi
ffi-clang
Ruby FFI bindings for libclang 3.4+.
Stars: ✭ 41 (+192.86%)
Mutual labels:  ffi

idris-ffi-example

This is a collection of examples of how to use the Idris FFI.

myFirstFFI

We have a C library testlib with a function int foo(int); that takes an int, adds 1 to the argument and returns the result. The Idris program calls foo with 42 as argument and then prints the result.

strings

We have two functions that return a char pointer. One of them will always return a C-string while the other always returns NULL. Note that the example doesn't work in v0.9.9.2.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].