compiler-explorer / compiler-explorer

Run compilers interactively from your web browser and interact with the assembly
https://godbolt.org/
BSD 2-Clause "Simplified" License
15.63k stars 1.66k forks source link

[COMPILER REQUEST]: Numba #5591

Open Rupt opened 8 months ago

Rupt commented 8 months ago

Compiler name

Numba

Compiler version

0.58.0

Compiler language

Python

Compiler homepage

https://numba.pydata.org/

Motivation

Numba compiles Python with LLVM.

It is a convenient way to make a restricted Python subset run fast, since it both compiles functions with an optimizing compiler and generates Python language interfaces.

From the CE perspective, I see it fitting as a separate language from Python, in the sense that it just uses Python as an intelligent code generator.

I have sketched an implementation in #5592.

Example of Numba in compiler explorer

Questions:

mattgodbolt commented 8 months ago

So to answer some of the questions:

Rupt commented 8 months ago

So we have at least two potential users! Nice. I appreciate the positivity. Thank you for taking time to respond.

  • How should it be installed? This is the biggest issue. I posted on the PR but it mostly means a whole new way of installing python and virtual environments that's currently incompatible with the way we do instlaations.

OK, I understand from here and there that this is a technical problem that nobody yet has a solution to. I'll expect to let this hibernate for a while.