Our great sponsors
|3 days ago||2 days ago|
|GNU General Public License v3.0 or later||Apache License 2.0|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Any library you would like to recommend to others as it helps you a lot? For me, mapstruct is one of them. Hopefully I would hear some other nice libraries I never try.
21 projects | /r/java | 27 May 2023
JavaCPP and presets for working with JNI
JDK 19 released
4 projects | /r/programming | 20 Sep 2022
In the meantime you might want to check out JavaCPP: https://github.com/bytedeco/javacpp
How can I use K/N with C++?
2 projects | /r/Kotlin | 27 Aug 2022
Maybe you can use JavaCPP?
Does Java 18 finally have a better alternative to JNI?
5 projects | dev.to | 11 Apr 2022
Here is the code for JNI, which uses the prebuilt JavaCPP library to call the getpid function. We don't have to write all the manual C binding code and rituals as the JavaCPP library already does it.
JEP 419: Foreign Function and Memory API
4 projects | news.ycombinator.com | 29 Mar 2022
Javacpp is the best ffi library of all https://github.com/bytedeco/javacpp
If it gets better w age, will java become compatible for machine learning and data science?
7 projects | /r/java | 20 May 2021
As for our approach, we maintain a library called javacpp: https://github.com/bytedeco/javacpp which proves a python wheel like experience where we distribute natively optimized c/c++ code (and even cuda accelerated code) as jar files on maven central. We also are able to develop with a python like experience by passing pointers around and other low level constructs directly allowing optimizations that you typically only get in c/c++.
CXX - Safe interop between Rust and C++
3 projects | news.ycombinator.com | 24 Mar 2021
* it maps naturally and efficiently many common features afforded by the C++ language and often considered problematic, including overloaded operators, class and function templates, callbacks through function pointers, function objects (aka functors), virtual functions and member function pointers, nested struct definitions, variable length arguments, nested namespaces, large data structures containing arbitrary cycles, virtual and multiple inheritance, passing/returning by value/reference/string/vector, anonymous unions, bit fields, exceptions, destructors and shared or unique pointers (via either try-with-resources or garbage collection), and documentation comments*
4 projects | /r/ProgrammerHumor | 21 May 2023
and again, everything that was released after using an older version of cython.4 projects | /r/ProgrammerHumor | 21 May 2023
Packages using cython (note the linked issues) due to this change.
Codon: Python Compiler
9 projects | news.ycombinator.com | 8 May 2023
Just for reference,
* Nuitka "is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11."
* Pypy "is a replacement for CPython" with builtin optimizations such as on the fly JIT compiles.
* Cython "is an optimising static compiler for both the Python programming language and the extended Cython programming language... makes writing C extensions for Python as easy as Python itself."
* Numba "is an open source JIT compiler that translates a subset of Python and NumPy code into fast machine code."
* Pyston "is a performance-optimizing JIT for Python, and is drop-in compatible with ... CPython 3.8.12"
Any faster Python alternatives?
6 projects | /r/learnprogramming | 12 Apr 2023
Profile and optimize the hotspots with cython (or whatever the cool kids are using these days... It's been a while.)
Python executable makers
2 projects | /r/Python | 26 Mar 2023
Cython - - embed demo
Been using Python for 3 years, never used a Class.
2 projects | /r/learnpython | 15 Mar 2023
There are also just-in-time compilers available for some Python features, that compile those parts to machine code. That includes Numba (usable as a library within CPython) and Pypy (an alternative Python implementation that includes a JIT compiler to improve performance). There’s also Cython, which is a superset of Python that allows more directly interfacing with C and C++ functions, and compiling the resulting combined code.
Python-based compiler achieves orders-of-magnitude speedups
9 projects | news.ycombinator.com | 15 Mar 2023
Surprising Consequences of macOS’s Environment Variable Sanitization
4 projects | news.ycombinator.com | 11 Jan 2023
Conceptually, Cython is mainly for accelerating Python code, and can _also_ access C code. Meanwhile CFFI is specifically for calling C code and nothing else. I recommend the video for the differences.
One concrete thing that pops to my mind is that Cython doesn't support Py_LIMITED_API which means that you need to ship a lot more binary wheels. At least the issue is still open (https://github.com/cython/cython/issues/2542) and Cython projects IME need new wheels for each minor Python release. Compare that to cffi projects that (musl & pypy aside) only have to ship wheels for one Python version / architecture: https://pypi.org/project/argon2-cffi-bindings/#files
Starlite development updates January ’23
9 projects | /r/Python | 10 Jan 2023
As you can see, in this benchmark Starlite handily beats even blakchseep, a notoriously fast ASGI framework written in Cython
Codon: A high-performance Python compiler
12 projects | news.ycombinator.com | 8 Dec 2022
How does this relate to
Would it be possible to write performance-sensitive parts of a Python system in Codon and link that to a CPython or PyPy runtime that supports more dynamic features?
What are some alternatives?
JNA - Java Native Access
SWIG - SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.
mypyc - Compile type annotated Python to fast C extensions
Pyston - A faster and highly-compatible implementation of the Python programming language.
JNR - Java Abstracted Foreign Function Layer
dramatiq - A fast and reliable background task processing library for Python 3.
jax - Composable transformations of Python+NumPy programs: differentiate, vectorize, JIT to GPU/TPU, and more
V8 - The official mirror of the V8 Git repository