#MyPyC

Kevin Brown-Silvakevin@brown-silva.social
2025-05-18

Other #PyConUS sprints this week:

* #RAPIDSai
* django-simple-deploy and py-bugger
* #PyFyre, #MyPy, and #MyPyC
* MemRay
* #Ruff or Ty from Astral
* #WheelNext
* ci-test / linting-arguments-python

Additionally there will be an "Introduction to Sprints" open space in Room 310 at 6:00 PM.

#PyConUS2025

Matthew Martinmistersql
2025-05-07

- but mypy already compiles itself to c via so being faster isn't what I'd be expecting, it will be different and probably find different typing errors since for all the type checkers, it comes down to a matter of opinion. Do you think that will be a runtime error? That's in the future, who knows man.

2025-01-29

@isaaclyman
That's pretty much how #Python optimizing compilers like #cython, #mypyc, #numba, and #TaichiLang work, and iiuc is the idea behind #MOJOlang.

As for leaky abstractions, I'd mitigate that by moving the lower-level algorithms into a separate module and limit the optimization pass to that module. Higher-level modules, like CLI entry points or API server route handlers, shouldn't need the extra optimization.

Matthew Martinmistersql
2024-08-04

Here is an example of how I used with (which in theory can compile to C anything that you can perfectly type annotate)

github.com/matthewdeanmartin/u

Matthew Martinmistersql
2024-01-31

So if I take ordinary (no math to speak of) and

it
it

No obvious pattern on if it is faster or not. I don't know where the 20% to 200x rule of thumb came from (that I've seen in various conference talks)

Matthew Martinmistersql
2023-11-06

I've been trying every x months to speed up with native code. This weekend with half-assed effort I got a rust + python thing going.

The magic: +

- c, go, c++, - failed because the difficult level of dealing with the build scripts. And c, c++ are just nasty.
- - Almost worked, but failed, the annotations have to be a perfect subset of what mypyc can handle.

Mypyc and cython need something like maturin if they want get widespread adoption.

Adam :redhat: :ansible: :bash:maxamillion@fosstodon.org
2023-01-28

People out here sleepin' on mypyc.

mypyc.readthedocs.io/

#Python #mypy #mypyc

रञ्जित (Ranjit Mathew)rmathew
2022-04-30
Iñigo Serna :emacs: :sway:inigo@fosstodon.org
2022-04-29
Serge Matveenko ⚠️ movedlig@fosstodon.org
2022-01-30

IMO, mypyc has a potential to become Python 4.0 in the future.

github.com/mypyc/mypyc

#Python #python4 #mypy #mypyc

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst