Guile-GI: builder:new-from-file: Segmentation fault

2021-04-24 Thread Luis Felipe
Hi, I'm trying to learn some Guile-GI, but I just hit a segfault. I was trying to create a GTK Builder from a file: $ guile GNU Guile 3.0.5 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This progr

[ANN] GNU Guile State Machine Compiler (Guile-SMC)

2021-04-24 Thread Artyom V. Poptsov
Hello Guilers! I heard some of you like finite state machines. If you love FSM as much as I do, you may want to take a look on my Guile state machine compiler (Guile-SMC): https://github.com/artyom-poptsov/guile-smc With Guile-SMC, you can generate state machines using state machines, and then

Re: Python-on-guile

2021-04-24 Thread Stefan Israelsson Tampe
Guile is 3x faster then fastest python-on-guile which is 2x faster then python3 Cpython attached is a guile corresponding program. On Sat, Apr 24, 2021 at 4:41 PM Stefan Israelsson Tampe < stefan.ita...@gmail.com> wrote: > To note is that 'continue' is killing performance for python-on-guile > p

Re: Python-on-guile

2021-04-24 Thread Stefan Israelsson Tampe
To note is that 'continue' is killing performance for python-on-guile programs, so by changing the code to not use continue lead to python-on-guile running twice the speed of python3. The reason is that the while loop is used as (while (...) (let/ec continue ...)) And the let/ec is prob

Re: Python-on-guile

2021-04-24 Thread Stefan Israelsson Tampe
Actually changing in (language python compile), (define (letec f) (let/ec x (f x To (define-syntax-rule (letec f) (let/ec x (f x Actually lead to similar speeds as python3. On Sat, Apr 24, 2021 at 1:26 PM Stefan Israelsson Tampe < stefan.ita...@gmail.com> wrote: > Pro tip, when

Re: Python-on-guile

2021-04-24 Thread Stefan Israelsson Tampe
Pro tip, when running this on guile the scheme code that it compilse to is located in log.txt. If you ,opt the resulting code in a guile session you might be able to pinpoint issues that delays the code execution. On Sat, Apr 24, 2021 at 12:04 PM Mikael Djurfeldt wrote: > (I should perhaps add t

Re: Python-on-guile

2021-04-24 Thread Mikael Djurfeldt
(I should perhaps add that my script doesn't benchmark the object system but rather loops, conditionals and integer arithmetic.) Den fre 23 apr. 2021 17:00Mikael Djurfeldt skrev: > Hi, > > Yesterday, Andy committed new code to the compiler, some of which > concerned skipping some arity checking.

Re: Python-on-guile

2021-04-24 Thread Mikael Djurfeldt
On my machine, Jython runs 1.4 times slower than python3, that is almost double the speed of python-on-guile. I attach the script which can be run by simply typing, e.g., python3 ramanujan20.py and should print out 262656 On Fri, Apr 23, 2021 at 11:05 PM Matt Wette wrote: > On 4/23/21 8: