Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The misleading thing about this approach is that the decorated function is no longer Python at all. It’s another language with Python syntax. Which is a neat way to get a parser for free, but it’s going to set up expectations about semantics that are bound to be incorrect.


It's funny how close it is to the title of my talk "Python already has a frontend for your compiler": https://github.com/true-grue/python-dsls


> The misleading thing about this approach is that the decorated function is no longer Python at all. It’s another language with Python syntax.

Some of the current implementations are either strict Python subsets or very nearly so, but, yes, DSLs are distinct languages, that's what the L stands for.


worse is you can't set a breakpoint inside the "jitted" function (maybe can't print either...)



> In JAX you can

I'm alway shocked when people in this line of work either take things at face-value or just lie by omission/imprecision. this is not python breakpoints - it's a wholeass other system they had to re-roll that emulates python breakpoints:

> Unlike pdb, you will not be able to step through the execution, but you are allowed to resume it.

you think it works with pycharm/vscode/any other tooling? spoiler alert: of course not.

so no in JAX you can not.


You can in CSP nodes https://github.com/Point72/csp




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: