Skip to content

Instantly share code, notes, and snippets.

from numba import njit, f8
from numba.typed import List
from numba.extending import models, register_model
class Interval(object):
"""
A half-open interval on the real number line.
"""
@gmarkall
gmarkall / mcjit.cpp
Created February 10, 2021 13:03 — forked from gligneul/mcjit.cpp
LLVM MCJIT Code Samples (Working!)
/*
* To compile, execute on terminal:
* g++ -o mcjit mcjit.cpp `llvm-config --cxxflags --ldflags --libs all --system-libs`
*/
#include <iostream>
#include <memory>
#include <llvm/ADT/StringRef.h>
#include <llvm/ExecutionEngine/ExecutionEngine.h>
@gmarkall
gmarkall / ibz.f90
Last active December 29, 2015 10:09
module IBZ
implicit none
type Plane
integer :: M(1,1)
end type Plane
contains
integer function t()