ANN: Dogelog Runtime, Prolog to the Moon (2021)

Mostowski Collapse bursejan at gmail.com
Wed Sep 15 14:26:54 EDT 2021


Well I would be more than happy if an experienced
programmer can fine tune my code. My programming
experience in Python is only 4 weeks.

Mostowski Collapse schrieb am Dienstag, 14. September 2021 um 14:56:35 UTC+2:
> The test harness, test cases and individual 
> results for all test cases are found here: 
> 
> And we could test GraalVM Python, results are from 14.09.2021, 
> tested with Dogelog Runtime 0.9.5, Python Version: 
> https://gist.github.com/jburse/f4e774ebb15cac722238b26b1a620f84#gistcomment-3892587

If you follow the above link, you also find:

Test Harness
https://gist.github.com/jburse/f4e774ebb15cac722238b26b1a620f84#file-suite2-pl

Test Cases
https://github.com/jburse/jekejeke-samples/tree/master/jekrun_bench/core/tests

CPU / RAM: Intel(R) Core(TM) i7-6700HQ, 32 GB
Standard Python: python.exe Python 3.10.0rc1
GraalVM Python: WSL 2, Python 3.8.5 (GraalVM CE Native 21.2.0)

alister schrieb am Mittwoch, 15. September 2021 um 20:22:56 UTC+2:
> On Thu, 16 Sep 2021 03:26:39 +1000, Chris Angelico wrote: 
> 
> > On Thu, Sep 16, 2021 at 3:17 AM Mostowski Collapse 
> > <janb... at fastmail.fm> wrote: 
> >> 
> >> I really wonder why my Python implementation is a factor 40 slower than 
> >> my JavaScript implementation. 
> >> Structurally its the same code. 
> >> 
> >> 
> > Very hard to know. Your code is detailed and complicated. Do they 
> > produce identical results? Are you using the same sort of floating-point 
> > data everywhere, or is one integer and the other float? 
> > What's going on with all the globals, the continuations, etc? My 
> > suspicion is that you're trying to write weird, wonky Python code, and 
> > then are surprised that it doesn't perform well. 
> > 
> > ChrisA
> And this demonstrates how an experienced Python programmer can make an 
> almost spot on diagnosis without even checking the source code. 
> 
> @ this stage I would recommend watching some presentations on you tube 
> 
> this one https://www.youtube.com/watch?v=wf-BqAjZb8M by Raymond Hettinger 
> is brilliant as it highlights there is more to checking code than just 
> making sure it looks nice & runs correctly. 
> 
> 
> 
> -- 
> Lemmings don't grow older, they just die.


More information about the Python-list mailing list