by wspeirs on 9/18/24, 2:44 PM with 93 comments
by haberman on 9/18/24, 7:04 PM
This is targeting a Python subset, not Python itself.
For example, something as simple as this will not compile, because lists cannot mix types in Codon (https://docs.exaloop.io/codon/language/collections#strong-ty...):
l = [1, 's']
It's confusing to call this a "Python compiler" when the constraints it imposes pretty fundamentally change the nature of the language.by Lucasoato on 9/18/24, 3:56 PM
I hope it is released under a truly open-source license in the future; this seems like a promising technology. I'm also wondering how it would match C++ performance if it is still garbage collected.
by actionfromafar on 9/18/24, 3:24 PM
I can say one thing - Shedskin compiles to C++, which was very compelling to me for integrating into existing C++ products. Actually another thing too, Shedskin is Open Source under GPLv3. (Like GCC.)
by amelius on 9/18/24, 11:06 PM
by veber-alex on 9/18/24, 4:29 PM
by w10-1 on 9/18/24, 5:25 PM
Any relation? Any comparisons?
Funny I can't find the license for graalvm python in their docs [2]. That could be a differentiator.
- [1] GraalVM Python on HN https://news.ycombinator.com/item?id=41570708
- [2] GraalVM Python site https://www.graalvm.org/python/
- [3] HN Dec 2022 https://news.ycombinator.com/item?id=33908576
by codethief on 9/18/24, 6:42 PM
https://ep2024.europython.eu/session/spy-static-python-lang-...
https://ep2024.europython.eu/session/how-to-build-a-python-t...
(The talks were fantastic but they have yet to upload the recordings to YouTube.)
by timwaagh on 9/18/24, 8:31 PM
by albertzeyer on 9/19/24, 9:45 PM
But it's anyway maybe an interesting comparison to Codon.
by jay-barronville on 9/18/24, 9:54 PM
They note the following [0]:
> The GPU module is under active development. APIs and semantics might change between Codon releases.
The thing is, based on the current syntax and semantics I see, it’ll almost certainly need to change to support non-NVIDIA devices, so I think it might be a better idea to just go with WebGPU compute pipelines sooner rather than later.
Just my two pennies…
[0]: https://docs.exaloop.io/codon/advanced/gpu
[1]: https://www.w3.org/TR/webgpu
[2]: https://wgpu.rs
by GTP on 9/19/24, 6:29 AM
by ipsum2 on 9/18/24, 11:34 PM
by big-chungus4 on 9/18/24, 4:48 PM
by shikon7 on 9/19/24, 1:51 AM
> Strings: Codon currently uses ASCII strings unlike Python's unicode strings.
That seems really odd to me. Who would use a framework nowadays that doesn't support unicode?
by Sparkenstein on 9/18/24, 5:54 PM
by zamazan4ik on 9/18/24, 9:26 PM
by tony-allan on 9/19/24, 2:53 AM
by xiaodai on 9/20/24, 10:49 AM
by jitl on 9/18/24, 4:19 PM
by mgaunard on 9/19/24, 1:30 PM
numba, cython, pypy...