Skip to content

Instantly share code, notes, and snippets.

View myuanz's full-sized avatar

provefar myuanz

View GitHub Profile
@alendit
alendit / call_printf.py
Last active March 9, 2024 16:49
Call c `printf` from llvmlite
import llvmlite.ir as ir
import llvmlite.binding as llvm
from ctypes import CFUNCTYPE
def main():
m = ir.Module()
func_ty = ir.FunctionType(ir.VoidType(), [])
i32_ty = ir.IntType(32)
func = ir.Function(m, func_ty, name="printer")
@lirnli
lirnli / Gaussian Mixture Model.ipynb
Created September 18, 2017 01:45
Gaussian Mixture Model
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.