Keybase proof
I hereby claim:
- I am mcapell on github.
- I am mcapell (https://keybase.io/mcapell) on keybase.
- I have a public key ASBNgFf3ci3IW0NK-UU4xgPWJaxXKlXBWjD2yIMZnGWxNgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
This is a small demo of how to create a library in Rust and call it from Python (both CPython and PyPy) using the CFFI instead of ctypes
.
Based on http://harkablog.com/calling-rust-from-c-and-python.html (dead) which used ctypes
CFFI is nice because:
ctypes
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.cards.notification"> | |
<uses-sdk | |
android:minSdkVersion="17" | |
android:targetSdkVersion="17" /> | |
<application | |
android:allowBackup="true" |
Since this is on Hacker News...
_t
in my types. I spend a lot of time at a level where I can do that; "reserved for system libraries? I am the system libraries".while
loops because shut up, you're overthinking a joke.I hereby claim:
To claim this, I am signing this object: