Live data from Hacker News

A high-performance, zero-overhead, extensible Python compiler using LLVM

github.com

1–10 of 95 posts

Re: A high-performance, zero-overhead, extensible Python compiler using LLVM

#2
I immediately wonder how it compares to Shedskin¹

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.)

1: https://github.com/shedskin/shedskin/

Re: A high-performance, zero-overhead, extensible Python compiler using LLVM

#3

I immediately wonder how it compares to Shedskin¹ 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.) 1: https://github.com/shedskin/shedskin/

I looks like codon has less restrictions when compared to shed skin.

Re: A high-performance, zero-overhead, extensible Python compiler using LLVM

#4
post #3

I immediately wonder how it compares to Shedskin¹ 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.) 1: https://github.com/shedskin/shedskin/

I looks like codon has less restrictions when compared to shed skin.

I suppose that's right, I don't think shedskin can call numpy yet, for instance. On the other hand it seems easier to put shedskin on an embedded device, for instance.

Re: A high-performance, zero-overhead, extensible Python compiler using LLVM

#5
> Is Codon free? Codon is and always will be free for non-production use. That means you can use Codon freely for personal, academic, or other non-commercial applications.

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.

Re: A high-performance, zero-overhead, extensible Python compiler using LLVM

#7

> Is Codon free? Codon is and always will be free for non-production use. That means you can use Codon freely for personal, academic, or other non-commercial applications. 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.

The license is the "Business Source License 1.1" [1].

The Business Source License (BSL) 1.1 is a software license created by MariaDB Corporation. It's designed as a middle ground between fully open-source licenses and traditional proprietary software licenses. It's kind of neat because it's a parameteric license, in that you can change some parameters while leaving the text of the license unchanged.

For codon, the "Change Date" is 2028-03-01 and the "Change License" is "Apache License, Version 2.0", meaning that the license will change to Apache2 in March of 2028. Until then, I guess you need to make a deal with Exaloop to use codon in production.

[1] https://github.com/exaloop/codon?tab=License-1-ov-file#readm...

Re: A high-performance, zero-overhead, extensible Python compiler using LLVM

#10
so, assuming I don't get integers bigger than int64, and don't use the order of build in dicts, can I just use arbitrary python code and use it with codon? Can I use external libraries? Numpy, PyTorch? Also noticed that it isn't supported on windows
Post reply on HN