Replies: 2 comments 1 reply
-
Thanks for pointing out the discussion! In general I'm in agreement with the folks responding there: I don't think the proposed feature would be a net benefit to the Python language spec. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Actually it can be easily resolved via something like a C++ generic on
python backend (I suppose C has them too). and would have no performance
impact whatsoever.
Do I understand correctly that C generics have no overhead except memory
and compile time increase?
…---
Well, anyway, when Mojo language will be develop the GPU computation well,
python slowness will stop being an issue
On Tue, Dec 31, 2024 at 4:26 PM Jake Vanderplas ***@***.***> wrote:
Thanks for pointing out the discussion! In general I'm in agreement with
the folks responding there: I don't think the proposed feature would be a
net benefit to the Python language spec.
—
Reply to this email directly, view it on GitHub
<#25691 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZZOTD32YJYIYVRDWDPPYPL2IKSQPAVCNFSM6AAAAABUKXALGSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNZQGU4TIOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Jax community,
I think if something like this PEP will be implemented in Python, Jax will have much easier time tracing what is happening in the code without
cond
and other terse code. A straightforward callback that would tell jit-compiled languages whenif
and other control flow keywords are happening.PEP: https://discuss.python.org/t/add-control-flow-callbacks-for-jit-compiled-frameworks/75636/2
I've tagged @jakevdp in the PEP because he will probably know what is necessary for such callback.
Basically to replace
cond
withif
.I'd also think that if jax does a little smart work (internally inferences when to use
vmap
, ortree.map
, orscan
instead offor
loops, which will be easily detectable now), most of jax "terseness" will be removed.Cheers,
Maksym Riabov
Beta Was this translation helpful? Give feedback.
All reactions