GithubHelp home page GithubHelp logo

abilian / cython-plus Goto Github PK

View Code? Open in Web Editor NEW
2.0 5.0 1.0 51.28 MB

Multi-core concurrent programming in Python. (Friendly) fork of Cython.

License: Apache License 2.0

Starlark 0.04% Python 48.93% C 9.16% C++ 0.78% Makefile 0.03% Shell 0.05% Emacs Lisp 0.15% Smalltalk 0.01% PowerShell 0.05% Batchfile 0.02% sed 0.01% Cython 40.75%

cython-plus's Introduction

Cython+ - Multi-core concurrent programming in Python

Warning

This is the README for the Cython+. Since Cython+ is heavily based on Cython, you may want to read also the README for Cython.*

What's Cython+?

The aim of the "Cython+" project is to ensure that all the cores of a microprocessor can be efficiently exploited with a program written in Python in the field of system or network programming, so as to correct the main shortcoming of the Python language and increase the competitiveness of its ecosystem. The envisaged approach consists in transferring the extremely powerful multi-core concurrent programming model of the Go language to the Python language by relying on innovative scientific and technological approaches stemming from three decades of French know-how in the field of concurrent object programming around Actalk, and leveraging the existing Cython language.

Cython is actually a superset of the Python language that brings together the strong typing of Python, performance equivalent to C and a form of low-level parallelism well suited to scientific computing. It is with Cython that the scikit-learn libraries or certain components of the NEO transactional distributed database are developed. Cython corrects the shortcomings of the Python language in terms of typing or performance. Cython also corrects the Global Interpreter Lock (GIL) problem which is at the origin of the poor support of multi-core microprocessors in Python.

In the "Cython+" project, we propose to remove the GIL in a very specific way: only at the level of asynchronous Cython functions not calling Python objects. So nothing is changed in the Python language nor in the "CPython" runtime which is the reference implementation of the Python language in C. All programs already developed in Python remain compatible. We only modify the Cython compiler and the subpart of the Cython language disjoint from Python, which we extend with a garbage collector and coroutines that can be used on a multi-core architecture.

Thus, "Cython+" will offer the same kind of coroutine programming as Go, the same level of parallelism, the same kind of memory management, the same kind of performance, exception handling that Go does not fully benefit from, a better concurrent programming model than Go, a very well-stocked standard library with much broader community support, and guaranteed memory isolation between threads. "Cython+" will become an alternative to Go with many advantages, strengthening the community of the leading development language that Python has become.

Installation and basic use

Simply run:

pip install cython-plus

Then you can use the habitual Cython commands: cython, cythonize and cygdb, as well as import the cython module from your Python code.

It should work on Linux with Python 3.7 to 3.10.

It doesn't (currently) work on MacOS or Windows.

Documentation

Development

License & Copyright

Cython+ is a (friendly) fork of Cython.

Its copyright belongs to the Cython original authors (as listed Here) as well as to the members of the Cython+ consortium: Nexedi, Abilian, Teralab and Inria.

Cython+ is licensed under the permissive Apache License. See LICENSE.txt.

Contributing

Want to contribute to the Cython+ project?

Please contact us at <https://www.cython.plus/contact/>.

Acknowledgements

Cython+ is based on the work of the Cython authors.

The Cython+ project has been selected to receive funding from the PSPC-Régions 1. It is supported by Cap Digital and financed by the PIA and the Paris Region.

cython-plus's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

wall-eeeeeee

cython-plus's Issues

Milestones request for Windows support

I'm just hoping to use this awesome project in a windows environment. After noticing the readme stated that windows is not yet supported, it got me curious if any timed plans are in the works.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.