python-on-guile fails to compile

2022-09-30 Thread Maxime Devos
I noticed python-on-guile fails to compile in Guix, so I tried updating it, but it still fails (somehow 'type' is #false?): Type is defined on line https://gitlab.com/python-on-guile/python-on-guile/-/blob/master/modules/oop/pf-objects.scm#L1530 as #f but set to something later

Re: Python-on-guile

2021-04-27 Thread Nala Ginrut
ode to the compiler, some of which > concerned skipping some arity checking. > > Also, Stefan meanwhile committed something called "reworked object system" > to his python-on-guile. > > Sorry for coming with unspecific information (don't have time to track > d

Re: Python-on-guile

2021-04-25 Thread Vivien Kraus via General Guile related discussions
Hello, Le dimanche 25 avril 2021 à 12:54 +0200, Dr. Arne Babenhauserheide a écrit : > (next frontier: compete with math that’s implemented via numpy — you > can find RPython implementations of the basics of numpy in the > pypy-sources: > https://foss.heptapod.net/pypy/pypy/-/tree/branch/default/py

Re: Python-on-guile

2021-04-25 Thread Dr. Arne Babenhauserheide
Stefan Israelsson Tampe writes: > (define-syntax-rule (letec f) > (let/ec x (f x > > Actually lead to similar speeds as python3. Please keep in mind that this is math. There are parts of Python that are heavily optimized, for example reading strings from disk. Guile will likely have a har

Re: Python-on-guile

2021-04-25 Thread Stefan Israelsson Tampe
ndicate, perhaps that would amount to efficiently compiling > let/ec. > > Best regards, > Mikael > > On Sat, Apr 24, 2021 at 5:19 PM Stefan Israelsson Tampe < > stefan.ita...@gmail.com> wrote: > >> Guile is 3x faster then fastest python-on-guile which

Re: Python-on-guile

2021-04-25 Thread Stefan Israelsson Tampe
eanwhile committed something called "reworked object system" > to his python-on-guile. > > Sorry for coming with unspecific information (don't have time to track > down the details) but I noticed that my benchmark script written in Python, > and which computes the 20:th Ram

Re: Python-on-guile

2021-04-25 Thread Stefan Israelsson Tampe
for 3x speedwise, but it may hinder optimisations that may yield a speedup of that factor. On Sat, Apr 24, 2021 at 5:19 PM Stefan Israelsson Tampe < stefan.ita...@gmail.com> wrote: > Guile is 3x faster then fastest python-on-guile which is 2x faster then > python3 Cpython > > a

Re: Python-on-guile

2021-04-25 Thread Mikael Djurfeldt
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 'continu

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

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

Re: Python-on-guile

2021-04-24 Thread Stefan Israelsson Tampe
dy committed new code to the compiler, some of which >>> concerned skipping some arity checking. >>> >>> Also, Stefan meanwhile committed something called "reworked object >>> system" to his python-on-guile. >>> >>> Sorry for coming with un

Re: Python-on-guile

2021-04-24 Thread Stefan Israelsson Tampe
ned skipping some arity checking. >> >> Also, Stefan meanwhile committed something called "reworked object >> system" to his python-on-guile. >> >> Sorry for coming with unspecific information (don't have time to track >> down the details) but I notic

Re: Python-on-guile

2021-04-24 Thread Mikael Djurfeldt
me arity checking. > > Also, Stefan meanwhile committed something called "reworked object system" > to his python-on-guile. > > Sorry for coming with unspecific information (don't have time to track > down the details) but I noticed that my benchmark script written i

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/2

Re: Python-on-guile

2021-04-23 Thread Matt Wette
On 4/23/21 8:00 AM, Mikael Djurfeldt wrote: Hi, Yesterday, Andy committed new code to the compiler, some of which concerned skipping some arity checking. Also, Stefan meanwhile committed something called "reworked object system" to his python-on-guile. Sorry for coming with

Re: Python-on-guile

2021-04-23 Thread Linus Björnstam
d something called "reworked object > system" to his python-on-guile. > > Sorry for coming with unspecific information (don't have time to track > down the details) but I noticed that my benchmark script written in > Python, and which computes the 20:th Ramanujan number,

Re: Python-on-guile

2021-04-23 Thread Zelphir Kaltstahl
;reworked object system" > to his python-on-guile. > > Sorry for coming with unspecific information (don't have time to track down > the details) but I noticed that my benchmark script written in Python, and > which computes the 20:th Ramanujan number, now runs 60% faster

Python-on-guile

2021-04-23 Thread Mikael Djurfeldt
Hi, Yesterday, Andy committed new code to the compiler, some of which concerned skipping some arity checking. Also, Stefan meanwhile committed something called "reworked object system" to his python-on-guile. Sorry for coming with unspecific information (don't have time to

Re: Python on guile v1.2.3.7

2021-04-17 Thread Dr. Arne Babenhauserheide
/unittest/tests/test_case.py > > to see what's working and what's not working. > > I am also working on getting it to behave better and especially take > advantage > of guile's new reader to introduce python source code numbering instead of Thank you for your work! I

Re: Python on guile v1.2.3.7

2021-04-17 Thread Stefan Israelsson Tampe
nd especially take > advantage > of guile's new reader to introduce python source code numbering instead of > the generated scheme code's numbering. Note that in python on guile I only > modified the reader so that it reads python code and spit's out scheme > code.

Re: Python on guile v1.2.3.7

2021-04-17 Thread Stefan Israelsson Tampe
g and what's not working. I am also working on getting it to behave better and especially take advantage of guile's new reader to introduce python source code numbering instead of the generated scheme code's numbering. Note that in python on guile I only modified the reader so that it r

Re: Python on guile v1.2.3.7

2021-04-14 Thread Mikael Djurfeldt
Hi Stefan, Could it be that you have not committed the file: language/python/module/re/flag-parser.scm ? Best regards, Mikael On Sun, Apr 11, 2021 at 11:23 AM Stefan Israelsson Tampe < stefan.ita...@gmail.com> wrote: > Hi, > > I released a new tag of my python code that basically is a snapsho

Re: Python on guile v1.2.3.7

2021-04-11 Thread Dr. Arne Babenhauserheide
Maxim Cournoyer writes: > Hi Stefan, >> This release includes >> * pythons new match statement >> * dataclasses >> * Faster python regexps through caching and improved datastructures >> * Numerous bug fixes found while executing the python unit tests. That’s really cool! Thank you! Best wishes

Re: Python on guile v1.2.3.7

2021-04-11 Thread Maxim Cournoyer
Hi Stefan, Stefan Israelsson Tampe writes: > Hi, > > I released a new tag of my python code that basically is a snapshot of a > work in progress. > > This release includes > * pythons new match statement > * dataclasses > * Faster python regexps through caching and improved datastructures > * Nu

Python on guile v1.2.3.7

2021-04-11 Thread Stefan Israelsson Tampe
Hi, I released a new tag of my python code that basically is a snapshot of a work in progress. This release includes * pythons new match statement * dataclasses * Faster python regexps through caching and improved datastructures * Numerous bug fixes found while executing the python unit tests.

Re: Python on guile v1.2.3.6

2020-08-18 Thread Joshua Branson via General Guile related discussions
That's pretty awesome! -- Joshua Branson Sent from Emacs and Gnus

Python on guile v1.2.3.6

2020-08-06 Thread Stefan Israelsson Tampe
Hi, This is an interesting release as I'm starting to get the cpython's unit tests to work. Still remains a lot of work but much more is now working according to the CPython standard. Next up is getting all unit tests for the test framework to pass. Then to get as much as possible of the CPython

Re: Python on guile v1.2.3

2020-06-23 Thread Marius Bakke
Stefan Israelsson Tampe writes: > done, all now have tags 1.2.3 Incredible response time, thanks! :-) I have not been able to build stis-parser, because slask.scm is missing: https://gitlab.com/tampe/stis-parser/-/issues/2 Is it a bug, or am I doing something wrong? Thanks, Marius

Re: Python on guile v1.2.3

2020-06-23 Thread Marius Bakke
Stefan Israelsson Tampe writes: > Hi, > > I just tagged a minor release python on guile v1.2.3 that mainly is > bugfixes an implementation of pythons ctypes ontop of guiles ffi layer. Hi, thanks for this work! I don't see any tags in this repository: https://gitlab.co

Re: Python on guile v1.2.3

2020-06-23 Thread Stefan Israelsson Tampe
done, all now have tags 1.2.3 On Tue, Jun 23, 2020 at 2:54 PM Marius Bakke wrote: > Stefan Israelsson Tampe writes: > > > Hi, > > > > I just tagged a minor release python on guile v1.2.3 that mainly is > > bugfixes an implementation of pythons ctypes ontop of gu

Python on guile v1.2.3

2020-05-24 Thread Stefan Israelsson Tampe
Hi, I just tagged a minor release python on guile v1.2.3 that mainly is bugfixes an implementation of pythons ctypes ontop of guiles ffi layer. Happy Hacking!

python-on-guile 1.2.1

2020-04-28 Thread Stefan Israelsson Tampe
I just released a version of python on guile that I think i much more fast in execution of the attribute lookup than before and also I think that this is one of the more correct versions and decided to freeze it into a release. Not much more feature wise than just speedier and slots implemented

Re: Python on guile version 1.2

2020-04-26 Thread Stefan Israelsson Tampe
yes we can compile to module ast python-on-guile compiles to macros in scheme that can be used without compiling python from scheme. It targets good or excellent interoperability between scheme and python Yes works on guile 3.0. Also you need the most current dependencies see readme On Sat, Apr

Re: Python on guile version 1.2

2020-04-25 Thread zimoun
Dear, Thank you for this interesting work. On Fri, 10 Apr 2020 at 15:41, Stefan Israelsson Tampe wrote: > I'm pleased to announce python on guile 1.2. This version increases the > correctness of the parser as well as adding quite a number of system py > files that compiles as

Python on guile version 1.2

2020-04-10 Thread Stefan Israelsson Tampe
Hi I'm pleased to announce python on guile 1.2. This version increases the correctness of the parser as well as adding quite a number of system py files that compiles as an example the we can now generate python ast from the compiler. Also some work to improve speed have been done. Pyth

Re: Python on guile

2020-03-23 Thread Arne Babenhauserheide
Stefan Israelsson Tampe writes: > Now in corona times I'm working quite a lot with python-on-guile fixing > bugs in the parser and compiler. Trying to add and test more python > modules. My test case is to get IPython running on python on guile. You’re awesome! Thank you! It s

Python on guile

2020-03-22 Thread Stefan Israelsson Tampe
Hi all, Now in corona times I'm working quite a lot with python-on-guile fixing bugs in the parser and compiler. Trying to add and test more python modules. My test case is to get IPython running on python on guile. Some of the python library code is very advanced python so getting it worki

Re: Python on guile

2020-03-01 Thread Maxim Cournoyer
data was resent. Now most warnings that was spamming the > python session have been quited. quite a lot of bugs have been found in the > os module and fixed. > > With this I'm happy with the python on guile repo and just released a > version 1.1 > > Repo: > https:/

Python on guile

2020-02-28 Thread Stefan Israelsson Tampe
have been found in the os module and fixed. With this I'm happy with the python on guile repo and just released a version 1.1 Repo: https://gitlab.com/python-on-guile/python-on-guile/tree/master Happy hacking

Re: python-on-guile

2020-02-18 Thread david larsson
2" "/usr/share/guile/site/2.2" "/usr/share/guile/site" "/usr/share/guile") Now I hope Ill be able to update the Guix packages for python-on-guile, guile-persist, and stis-parser, using the same commits. Thanks again for your help! Regards, David On Tue, Fe

Re: python-on-guile

2020-02-18 Thread david larsson
d so you could try to pull and compile again Yep, now it works. guile-persist builds on commit 751c8834b401e81b6ea058a05861ebaf0b659f9d stis-parser builds on commit 8d49401e238ae703a466b5b98d3068e4fa974f2c It's just the python-on-guile that fails now, for commit: 226d33163e7

Re: python-on-guile

2020-02-12 Thread david larsson
751c8834b401e81b6ea058a05861ebaf0b659f9d stis-parser builds on commit 8d49401e238ae703a466b5b98d3068e4fa974f2c It's just the python-on-guile that fails now, for commit: 226d33163e7f1e305c0b6e2ada37209513377dff with: Makefile:1390: warning: overriding recipe for target 'python

Re: python-on-guile

2020-02-12 Thread david larsson
go] Error 1 make[2]: Leaving directory '/home/user1/VirtualHome/src/guile-persist' make[1]: *** [Makefile:519: all-recursive] Error 1 make[1]: Leaving directory '/home/user1/VirtualHome/src/guile-persist' make: *** [Makefile:399: all] Error 2 - The error

Re: python-on-guile

2020-02-12 Thread david larsson
e: On 2020-02-10 21:11, Stefan Israelsson Tampe wrote: I have now added the bytes constructor that was not working. Thanks! To compile from source please try use the git repository at: https://gitlab.com/python-on-guile/python-on-guile/ see readme for how to compile and what dependenc

Re: python-on-guile

2020-02-12 Thread Stefan Israelsson Tampe
rsist persistance) > make: *** [Makefile:1385: oop/pf-objects.go] Error 1 > > -- > > Regards, > David > > > > > > On Tue, Feb 11, 2020 at 8:17 AM david larsson > > wrote: > > > >> On 2020-02-10 21:11, Stefan Israelsson T

Re: python-on-guile

2020-02-12 Thread david larsson
e: On 2020-02-10 21:11, Stefan Israelsson Tampe wrote: I have now added the bytes constructor that was not working. Thanks! To compile from source please try use the git repository at: https://gitlab.com/python-on-guile/python-on-guile/ see readme for how to compile and what dependencies you

Re: python-on-guile

2020-02-11 Thread Stefan Israelsson Tampe
try use the git repository at: > > > > https://gitlab.com/python-on-guile/python-on-guile/ > > > > see readme for how to compile and what dependencies you have. > > I was able to build and install: >- guile-persist: commit ebeb

Re: python-on-guile

2020-02-11 Thread Stefan Israelsson Tampe
> On 2020-02-10 21:11, Stefan Israelsson Tampe wrote: > > I have now added the bytes constructor that was not working. > > Thanks! > > > > > To compile from source please try use the git repository at: > > > > https://gitlab.com/python-on-guile/python-on-g

Re: python-on-guile

2020-02-10 Thread david larsson
On 2020-02-10 21:11, Stefan Israelsson Tampe wrote: I have now added the bytes constructor that was not working. Thanks! To compile from source please try use the git repository at: https://gitlab.com/python-on-guile/python-on-guile/ see readme for how to compile and what dependencies you

Re: python-on-guile

2020-02-10 Thread Stefan Israelsson Tampe
I have now added the bytes constructor that was not working. To compile from source please try use the git repository at: https://gitlab.com/python-on-guile/python-on-guile/ see readme for how to compile and what dependencies you have. Regards Stefan On Mon, Feb 10, 2020 at 1:14 PM david

Re: python-on-guile

2020-02-10 Thread Stefan Israelsson Tampe
a recent version, but if you can share some > updated instructions, then I could perhaps help out with some occasional > testing. I have only managed to build from the old commit fc0d7a9 by > updating the current python-on-guile guix package locally. > > >> > >> netlib is

Re: python-on-guile

2020-02-10 Thread Stefan Israelsson Tampe
> (use-modules (a b c)) did not work for me, except to load modules > already shipped with python-on-guile repo; (language python module > python) etc. You need to specify a root to search for for guile modules, try using e.g. https://www.gnu.org/software/guile/manual/html_node/Load-P

Re: python-on-guile

2020-02-10 Thread david larsson
dating the current python-on-guile guix package locally. netlib is not included, you can test to add the python module file to a (language python module) directory What's been working for me so far is only (load "path/to/file.py") and (load-compiled "path/to/file.go"

Re: python-on-guile

2020-02-09 Thread david larsson
Thanks for your explanations, but unfortunately I still can't figure out how to use this except in the simplest of cases. I am using the guix package python-on-guile 0.1.0-3.00a51a2 - maybe thats outdated? The simple things I have managed to do, are like: (add-to-load-path (di

Re: python-on-guile

2020-02-09 Thread Stefan Israelsson Tampe
documentation is for the macro framework that enables you to work with python classes and idioms like python iteration. Hope this helps /Stefan On Sun, Feb 9, 2020 at 6:31 PM david larsson wrote: > Hi everyone, > I am trying to wrap my head around how to use the python-on-guile >

python-on-guile

2020-02-09 Thread david larsson
Hi everyone, I am trying to wrap my head around how to use the python-on-guile library, but Im struggling. Does anyone have example code that might help, and which isn't too advanced? All tips and suggestions appreciated! Best regards, David

python on guile, bytevectors

2019-07-23 Thread Stefan Israelsson Tampe
-on-guile you do have the python bytevector interface and almost all string functions are available. Furthermore I landed yesterday bytevector support for the python regexp module so that you can now intyerpret bytevectors with regexpes as well (use the ASCII flag). To note, I use a PEG parser to

Re: python-on-guile 1.0 and guile-persist 1.0

2019-07-09 Thread Nala Ginrut
Great work! Thanks Stefan! Stefan Israelsson Tampe 于 2019年7月10日周三 03:19写道: > With documentation in place and finishing the latest persistant tasks I now > release python-on-guile 1.0.0 and guile-persist 1.0.0 > > Source: > https://gitlab.com/python-on-guile/python-on-guile/

python-on-guile 1.0 and guile-persist 1.0

2019-07-09 Thread Stefan Israelsson Tampe
With documentation in place and finishing the latest persistant tasks I now release python-on-guile 1.0.0 and guile-persist 1.0.0 Source: https://gitlab.com/python-on-guile/python-on-guile/ Doc: http://www.c-lambda.se/python-on-guile/

python-on-guile

2019-07-09 Thread Stefan Israelsson Tampe
Latest developments on python on guile is to make python's generator deep copyable. This means copying delimited continuations and I'm happy to acknowledge to a certain degree this works. Both pcomming 3.0 works as well as current stable 2.4. There is a problem and that is it assumes

Re: python-on-guile

2019-06-26 Thread Nala Ginrut
Thanks for the work! I appreciate it! On Sat, Jun 15, 2019 at 3:05 AM Stefan Israelsson Tampe wrote: > > python on guile has reached quite far and now compiles a lot of the standard > python code base. The speed has not been of importance. Rather to get good > coopertion between

Re: python-on-guile

2019-06-22 Thread Arne Babenhauserheide
Stefan Israelsson Tampe writes: > python on guile has reached quite far and now compiles a lot of the > standard python code base. The speed has not been of importance. Rather to > get good coopertion between guile scheme and python programs. That sounds awesome! Thank you fo

python-on-guile

2019-06-14 Thread Stefan Israelsson Tampe
python on guile has reached quite far and now compiles a lot of the standard python code base. The speed has not been of importance. Rather to get good coopertion between guile scheme and python programs. But it also define a scheme interface to the python functionalites and i'm now tryi

Re: python on guile

2014-08-13 Thread Jan Wedekind
Hi, In the past I have looked at how Python's NumPy and Ruby's NArray are implemented. I then implemented Ruby multiarray (one of the HornetsEye libraries). The point is that ultimately you want a flexible library for umiform arrays with a JIT compiler to match the exressiveness of Guile/Scheme.

Re: python on guile

2014-08-12 Thread Nala Ginrut
On Sat, 2014-08-09 at 14:58 +0200, Federico Beffa wrote: > > On Fri, 2014-05-30 at 23:33 +0200, Stefan Israelsson Tampe wrote: > >> I would like to hijack the python2/3 community over to guile. > > Hi, I'm a user of python which would very much prefer to use Scheme :-) > > I just wanted to say th

python on guile

2014-08-09 Thread Federico Beffa
> On Fri, 2014-05-30 at 23:33 +0200, Stefan Israelsson Tampe wrote: >> I would like to hijack the python2/3 community over to guile. Hi, I'm a user of python which would very much prefer to use Scheme :-) I just wanted to say that the reason for which a lot of engineers/scientists are using pytho

Re: python on guile

2014-06-02 Thread Nala Ginrut
evelopment > and I can't parse much python code, but that will change soon. > > https://gitorious.org/python-on-guile > I confess I'm not a fan of Python, but I do appreciate that you can take it up. Maybe we can share something in frontend, in close future. ;-) Happy hacking! > Stay tuned! > > /Stefan

python on guile

2014-05-30 Thread Stefan Israelsson Tampe
currently none but me probably can use it atm but that will change. I'm very pleased with how the functional parser framework works. Currently it is in hefty development and I can't parse much python code, but that will change soon. https://gitorious.org/python-on-guile Stay tuned! /Stefan