Numba makes Python code go fast. It works by decorating your functions with decorators that tell Numba to compile them. It is particularly effective for code that involves heavy numerical loops and NumPy array manipulations.
Official docs: https://numba.pydata.org/numba-doc/latest/index.html User Guide: https://numba.pydata.org/numba-doc/latest/user/index.html Search patterns: @njit, @vectorize, prange, cuda.jit, numba.typed
This is the "gold standard" for Numba. In this mode, Numba compiles the code without using the Python C-API, resulting in maximum speed. If it can't compile (e.g., because of unsupported Python objects), it throws an error.
مترجم Just-In-Time (JIT) لـ Python الذي يترجم مجموعة فرعية من تعليمات Python وNumPy البرمجية إلى كود آلة سريع. تم تطويره بواسطة Anaconda, Inc. وهو فعال للغاية لتسريع الحلقات والوظائف الرياضية المخصصة والخوارزميات الرقمية المعقدة. يستخدم لـ @njit، و@vectorize، وprange، وcuda.jit، وnumba.typed، وتجميع JIT، والحلقات المتوازية، وتسريع GPU باستخدام CUDA، ومحاكاة Monte Carlo، والخوارزميات الرقمية، وحوسبة Python عالية الأداء. المصدر: tondevrel/scientific-agent-skills.