Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A short description for your project.

Project description

The quick lambda compiler takes quick lambda objects from sidekick and compiles them either to Python, C or Javascript code. The goal is to improve interoperability between Python and other languages that can be useful in some common Python applications.

C compiler

The main goal of the C compiler is to help with scientific Python where simple and small functions can be defined both in Python and C. The goal is to prototype a function in a scientific computation in Python and then later convert it to C and have huge speed gains with very little effort.

The main use case is interoperability with Numpy, but it can be used as a simple code generator for other C applications.

>>> from sidekick import _
>>> from qlcompiler import c_compiler
>>> print(c_compiler.compile(_ + 2))
void function(double _) {
    return _ + 2;
}

Javascript compiler

Similarly to C compiler, the Javascript compiler converts quick lambdas to Javascript code. It may be useful in web application in order to share code between the client and the server.

>>> from qlcompiler import js_compiler
>>> print(js_compiler.compile(_ + 2))
function(_) {
    return _ + 2;
}

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for qlcompiler, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size qlcompiler-0.1.0.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page