HackerTrans
トップ新着トレンドコメント過去質問紹介求人

robomei

no profile record

投稿

Newton, a physics simulation engine built on Nvidia Warp

newton-physics.github.io
2 ポイント·投稿者 robomei·3 か月前·0 コメント

[untitled]

1 ポイント·投稿者 robomei·3 か月前·0 コメント

Magicbind, automatically build Python extension modules from C++

github.com
1 ポイント·投稿者 robomei·3 か月前·1 コメント

コメント

robomei
·3 か月前·議論
There is a big difference between just “vibe coding” without reviewing the code and actually knowing what you’re doing and checking everything the AI produces.

In my opinion, humans don’t really need to write code anymore. The main skill is steering AI models.
robomei
·3 か月前·議論
I found it annoying to set up a build system and write binding code, when I just wanted to speed up a few Python functions with C++ code. Magicbind automatically parses your C++ header with libclang, generates nanobind bindings and compiles it with either your system compiler (g++, clang, msvc) or with an integrated zig c++ compiler that is shipped with ziglang Python package. So it always works out of the box without any dependencies.

Essentially you just have to add magicbind Python package, call "magicbind add mylib.h" and you can directly import and use mylib in your Python code.

It supports most of the STL type conversions out of the box and also supports conversion from OpenCV types (cv::Mat, cv::Rect, ..). You can also use it directly from a Jupyter notebook.

Repo: https://github.com/robomei/magicbind
robomei
·3 か月前·議論
I found it annoying to set up a build system and write binding code, when I just wanted to speed up a few Python functions with C++ code. Magicbind automatically parses your C++ header with libclang, generates nanobind bindings and compiles it with either your system compiler (g++, clang, msvc) or with an integrated zig c++ compiler that is shipped with ziglang Python package. So it always works out of the box without any dependencies.

Essentially you just have to add magicbind Python package, call "magicbind add mylib.h" and you can directly import and use mylib in your Python code.

It supports most of the STL type conversions out of the box and also supports conversion from OpenCV types (cv::Mat, cv::Rect, ..). You can also use it directly from a Jupyter notebook. You can try it out in Colab: https://colab.research.google.com/github/robomei/magicbind/b...