Codon

59 views
Skip to first unread message

Graham Harris

unread,
Jul 3, 2023, 4:08:14 AM7/3/23
to wikidpad-devel
https://github.com/exaloop/codon is a cross platform python compiler
"Think of Codon as Python reimagined for static, ahead-of-time compilation, built from the ground up with best possible performance in mind."
specifically, no GIL so it will use more than just a single core of your CPU.

Has anyone tried Codon?



Bjorn

unread,
Jul 3, 2023, 4:21:49 AM7/3/23
to wikidpad-devel
Tried unsuccessfully, but I did not give it much time.
Anaconda gave me some problems.

Graham Harris

unread,
Jul 4, 2023, 6:24:05 AM7/4/23
to wikidpad-devel
Like you, struggling initially.

No problem installing codon (though I am not using Anaconda) into ~/.codon, and it runs
I run Wikidpad in a docker container on this machine so I duplicated the build directory, tweaked the Dockerfile and the shell script to launch it. The docker container starts and then stops immediately- I have not had time to find the error, but I suspect it might be that WikdPad 2_3 requires python2 and codon is more like python3. So I should probably be experimenting with WikidPad 2_4 instead.

There is also an up to date docker container of codon at https://registry.hub.docker.com/r/exaloop/codon but the Dockerfile is not included- otherwise I would have used that as a basis.

Keen to hear if anyone else is trying codon- for me the speed improvement is likely to be really significant.

Graham Harris

unread,
Jul 23, 2023, 6:28:42 AM7/23/23
to wikidpad-devel
Has anyone got a minimal recipe that gets WikidPad 2.4 working in linux- ideally without conda or similar muddying the waters by installing lots of not-relevant stuff?

I have finally got WikidPad 2.4 running (from an .exe) on Windows and it appears to be faster than 2.3 was on the same data. It was not difficult, I just did not have sufficient reason before.

I would like to get WikidPad 2.4 running from source in a linux Docker container, same as I do with WikidPad 2.3, to isolate the python libraries it uses from the system python. Then I can keep WikidPad's environment static and working despite whatever upgrades the system pyton gets. I have shared the Dockerfile and shell script I use to run 2.3 on any modern linux.

I would also like to get 2.4 running on Linux to see if Codon can make it faster yet!
Reply all
Reply to author
Forward
0 new messages