This is a quick proof of concept of using the LLVM JIT compiler as
Python's extension module loader. This implelentation completely
replaces the standard extension module framework, so regular extension
modules cannot be loaded. It would not be too difficult to extend the
patch to allow loading both LLVM bitcode (.bc
) and regular extension
(.so
) modules.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A SAT-based KenKen (http://www.kenken.com/) solver. | |
The implementation of this solver is based on the ideas contained in | |
the paper: | |
"A SAT-based Sudoku solver" by Tjark Weber | |
https://www.lri.fr/~conchon/mpri/weber.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# VNC Server (Virtual-Mode) start-up script. | |
unset XDG_RUNTIME_DIR | |
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources | |
xsetroot -solid grey | |
if [ -f /usr/bin/gnome-session ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/python.hpp> | |
#include <iostream> | |
namespace { | |
void *convert_to_FILEptr(PyObject* obj) { | |
return PyFile_Check(obj) ? PyFile_AsFile(obj) : 0; | |
} | |
} | |
void test_argument(FILE* f) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.py[oc] |
OlderNewer