recentpopularlog in

ianweatherhogg : ffi   323

« earlier  
Using C Libraries in Rust - Dwelo Research and Development - Medium
Today I want to dig into one of the difficulties we ran into while trying to rewrite our IoT Python code in Rust: specifically FFI, or the “Foreign Function Interface” — the bit that allows Rust to…
rust  ffi 
8 days ago by ianweatherhogg
Calling Rust From Python |
Hello! This is a detailed example of exposing Rust code to other languages (in this case, Python). Most articles I’ve seen that cover this topic uses really trivial example functions, skipping over a lot of the complexity. Even the better ones out there typically don’t have a pre-existing, reasonably complex program to work with. I’m going to start with trivial functions and build my way up to being able to define a scene for my raytracer in Python using a series of calls to Rust, th...
rust  ffi  python  windows  ray  trace  5* 
june 2018 by ianweatherhogg
Working with C unions in Rust FFI
When building a foreign function interface to C code, we will inevitably run into a struct that has a union. Rust has no built-in support for unions, so we must come up with a strategy on our own. A union is a type in C that stores different data types in the same memory location. There are a number of reasons why someone may want to choose a union, including: converting between binary representations of integers and floats, implementing pseudo-polymorphism and direct access to bits....
rust  ffi  c  4* 
april 2018 by ianweatherhogg
java-native-access/jna: Java Native Access
GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 79 million projects.
java  jni  c  ffi  library  github 
march 2018 by ianweatherhogg
Build Time Tooling - Rust Cookbook
Collection of useful Rust code examples
rust  c  cpp  ffi 
february 2018 by ianweatherhogg
First Steps with Rust and JNI · daschl writes. sometimes.
This post explains how to call into Rust code from Java (JNI) - simple but just enough to get you started.
java  jni  jvm  rust  c  ffi 
february 2018 by ianweatherhogg
What the FFI?!
What follows are the slidesfroma talk I gave at the PDXRust meetup. Thispresentation was very live demo example heavy, and I’ve replaced the demos withlinks ...
rust  ffi  c 
january 2018 by ianweatherhogg
Building Python bindings with CMake and Boost
This is a short explanation on how to build a boost python binding with CMake. You may or may not use JRL CMake macros or PID macros.

python  c  make  cpp  ffi 
january 2018 by ianweatherhogg
jue89/node-dmx4pi: Convert your Raspberry Pi into a DMX512 controller
node-dmx4pi - Convert your Raspberry Pi into a DMX512 controller
node  raspberrypi  ffi  c 
december 2017 by ianweatherhogg
Using Lua with C++
Tutorial on creating Lua host programs in C++
lua  cpp  c  ffi 
november 2017 by ianweatherhogg
Extending Python With C Libraries and the “ctypes” Module –
An end-to-end tutorial of how to extend your Python programs with libraries written in C, using the built-in “ctypes” module.
c  python  type  ffi  4* 
november 2017 by ianweatherhogg
Philip Cunningham - Writing PureScript Bindings for a jQuery Plugin
Philip is a Ruby and Haskell developer currently working remotely from Cardiff.
purescript  jquery  ffi  bind 
april 2017 by ianweatherhogg
The Redox Operating-System
This books carefully describes the design, implementation, direction, and structure of Redox, the operating-system.
rust  operating  system  book  kernel  c  ffi  free  4* 
february 2017 by ianweatherhogg
24 days of Rust - calling Rust from other languages |
Zbigniew Siciarz - Python and Django programmer, webdeveloper, open standards enthusiast. I make the internetz.
rust  c  ffi  language  haskell  python 
february 2017 by ianweatherhogg
Using Rust from Perl and Julia
In which we create a shared library with Rust, and use it from Perl and Julia
rust  perl  julia  c  ffi  interop 
february 2017 by ianweatherhogg
Generating Rust FFI Bindings to C/C++ Libraries at <code>cargo build</code> time in <code></code> with <code>bindgen</code>
TLDR? If you just want to see the full working example crate, generatingbzip2 bindings on-the-fly, it is available on Github here.
cpp  c  ffi  rust 
february 2017 by ianweatherhogg
Demangling C++ Symbols
I wrote a Rust crate to demangle C++ symbols: cpp_demangle. Find iton and github.
cpp  rust  ffi  c  gnu  symbol  object  file  byte  interface 
february 2017 by ianweatherhogg
Quick Start Embedding Lua In C++ | Jason Graves
A simple and straight forward quick start tutorial to embedding Lua in C++.
lua  cpp  ffi 
october 2016 by ianweatherhogg
rust-on-bbc-microbit/ at master · SimonSapin/rust-on-bbc-microbit
rust-on-bbc-microbit - Running Rust code on a BBC micro:bit micro-controller
rust  c  ffi  raspberrypi 
august 2016 by ianweatherhogg
« earlier      
per page:    204080120160

Copy this bookmark:

to read