pybind11
ndk
Our great sponsors
pybind11 | ndk | |
---|---|---|
42 | 14 | |
14,626 | 1,864 | |
1.8% | 2.0% | |
8.7 | 4.2 | |
7 days ago | about 2 months ago | |
C++ | ||
GNU General Public License v3.0 or later | - |
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.
pybind11
-
Experience using crow as web server
I'm investigating using C++ to build a REST server, and would love to know of people's experiences with Crow-- or whether they would recommend something else as a "medium-level" abstraction C++ web server. As background, I started off experimenting with Python/FastAPI, which is great, but there is too much friction to translate from pybind11-exported C++ objects to the format that FastAPI expects, and, of course, there are inherent performance limitations using Python, which could impact scaling up if the project were to be successful.
- Swig – Connect C/C++ programs with high-level programming languages
-
I created smooth_lines python module, great for drawing software
This is based on the Google Ink Stroke Modeler C++ library, and using pybind11 to make it available on python.
-
Using pybind11 with minGW to cross compile pyhton module for Windows
I have a python module for which the logic is written in C++ and I use pybind11 to expose the objects and functions to Python.
-
IPC communication between rust, c++, and python
Reading from Python requires a wrapper, using pybind11 this is fairly done.
-
Is Pycharm an okay IDE to use?
That said, if you need to write a Python module in a compiled language, it's much easier and more fun these days to write in C++. pybind11 is extremely mature and even fun system to write Python objects in C++.
-
Roast my resume
There will be specific technologies you used in your data pipelining: Parquet? Did you use Pandas to manipulate your data? Did you optimise some aspects with C++? If so did you use PyBind11 to integrate it?
-
Pybind11 error | Compatibility and/or Linker issue | Mac M1 (But running X86_64 using Rosetta 2)
git clone https://github.com/pybind/pybind11.git
-
How to make C++ communicate with Python?
I would say that pybind11 is precisely what you want here. If you don’t want to write the bindings yourself, you could try Tolc.
Pybind11 https://github.com/pybind/pybind11 is an easy way to expose c++ functions in python.
ndk
-
CheerpJ 3.0: a JVM replacement in HTML5 and WASM to run Java on modern browsers
Android folks are thinking about using WASM for NDK, with compilation to native code on the PlayStore.
-
New Rust course by Android: Comprehensive Rust 🦀
We have looked into what work would be required to support Rust in the NDK, but even if we did it (which is not certain!) it's a lot of work. Today, we're mainly investing in the lower-level work (compiler changes for some of the complexity around linkage on android, etc.). Feel free to follow along / make suggestions here: https://github.com/android/ndk/issues/1742
-
Ocrmypdf stopped working in termux with python 3.10
If it used to work then you probably just need to reinstall(/recompile) it with something like pip3 install ocrmypdf --force. Most likely issue happens because some library it links against had a major upgrade, which caused the mentioned symbol to disappear (could also be a variant of https://github.com/android/ndk/issues/1614, but seems unlikely)
-
Ask HN: Pros and Cons of Switching from Linux to M1 MacBook in 2022
I have an M1. I compile Android apps in Android Studio a lot. For a small Android app without many bells and whistles M1 compiles fast (even faster than my Ubuntu laptop). However some Android apps I compile have some C/C++ code compiled with the NDK and accessed via JNI - and which now have to compile on an ARM chip - and that is a rigmarole currently ( https://github.com/android/ndk/issues/1299 ) to the extent that I am just sticking with Ubuntu on x86-64 until ARM is fully supported in Android Studio full release (not some alpha/canary version).
Also, I have never used the MacOS Active Trader Pro app, but I downloaded it to my M1 and it did not work, and online old Macbook users say it works and people with M1s say it has problems on M1.
So my experience is look to see what apps support M1 and ARM. I can tell you that Rosetta does not work for everything.
Apps were not working, and I put Rosetta in, and now some apps work and some don't. So this is another thing to look into.
-
Linux Developer Laptops: Dell's Precision 5500 series reigns supreme
> And ARM compatibility issues not really helping
There were two things I wanted to try on my MBP w/ M1 - compiling an Android app that has some C code, and also to run Fidelity's Active Trader Pro program (not that I would use it that actively). I also installed the Rosetta stuff it prompted for.
The Active Trader Pro program would not run.
In Android Studio, the production version can not compile with CMake as it can on Intel-based Macs yet ( https://github.com/android/ndk/issues/1299 ). They say there is stuff in the beta/alpha/canary branches where it is working, but I am not in a rush and will wait for that to make its way into production.
> It’s good, fast
Yes, I did see the speed, especially with a normal Kotlin/Java Android Studio compile, on 16GB RAM.
-
CANNOT LINK EXECUTABLE "findimagedupes"
Could you open an issue at github.com/termux/termux-packages? Miiight be a variant of https://github.com/android/ndk/issues/1614, but we haven't seen that for golang packages before
-
Anyone tried the M1 Pro/Max with AS yet?
NDK development is not supported, but my understanding is that everything else is good to go.
- C++ Weekly - Ep 270 - Break ABI to Save C++
What are some alternatives?
PyO3 - Rust bindings for the Python interpreter
nanobind - nanobind: tiny and efficient C++/Python bindings
Optional Argument in C++ - Named Optional Arguments in C++17
setuptools-rust - Setuptools plugin for Rust support
PEGTL - Parsing Expression Grammar Template Library
sol2 - Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
sparsehash - C++ associative containers
py2many - Transpiler of Python to many other languages
dynamic_bitset - Simple Useful Libraries: C++17/20 header-only dynamic bitset
wasmtime - A fast and secure runtime for WebAssembly
cpp-subprocess - Subprocessing with modern C++
LSHBOX - A c++ toolbox of locality-sensitive hashing (LSH), provides several popular LSH algorithms, also support python and matlab.