unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* python on guile
@ 2014-05-30 21:33 Stefan Israelsson Tampe
  2014-06-03  6:28 ` Nala Ginrut
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Israelsson Tampe @ 2014-05-30 21:33 UTC (permalink / raw)
  To: guile-devel, guile-user@gnu.org

[-- Attachment #1: Type: text/plain, Size: 585 bytes --]

I would like to hijack the python2/3 community over to guile. A first step
is a parser, it
is ontop of guile-log so you might disslike it, but that can be changed
later. I do need to develop the guile-log parser framework further so it is
logical to use it because of that. This means that 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

[-- Attachment #2: Type: text/html, Size: 756 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: python on guile
  2014-05-30 21:33 python " Stefan Israelsson Tampe
@ 2014-06-03  6:28 ` Nala Ginrut
  0 siblings, 0 replies; 4+ messages in thread
From: Nala Ginrut @ 2014-06-03  6:28 UTC (permalink / raw)
  To: Stefan Israelsson Tampe; +Cc: guile-user@gnu.org, guile-devel

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.

Oh~I could be your accomplice~ ;-P

>  A first step
> is a parser, it
> is ontop of guile-log so you might disslike it, but that can be changed
> later. 

I've rewritten guile-lua with LALR based on Guile-2.2 backend, and
passed several tests. There're few ambiguous conflicts now, but the work
is still continuing:
https://github.com/NalaGinrut/guile-lua-rebirth/blob/master/language/lua/parser.scm

Frankly, I wish I can write it with PEG. The conflicts in LALR drove me
mad, PEG would be better, in principle.
But I didn't have the chance when I started guile-lua-rebirth. Now we
have it in master!
Anyway it doesn't matter, I'll use PEG for next language front-end,
maybe Ruby, or maybe fix Ecmascript with ES6...

> I do need to develop the guile-log parser framework further so it is
> logical to use it because of that. This means that 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
> 

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Python on guile
@ 2020-03-22 21:28 Stefan Israelsson Tampe
  2020-03-23 16:54 ` Arne Babenhauserheide
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Israelsson Tampe @ 2020-03-22 21:28 UTC (permalink / raw)
  To: guile-devel, Guile User

[-- Attachment #1: Type: text/plain, Size: 1141 bytes --]

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 working is a
great test case. My latest addition is to generate AST from python code. I
have an AST of my own but the translation is quite transparent. I also
managed to get the python typing.py module compiling and running. That was
quite a challenge as it is quite a lot af meta programming that was hard to
get working. I also have been working hard to get autocompilation of python
code working for guile 3.0.0 and are quite happy now with it. I also
sielenced a lot of variable warnings that was wrong. So no usually those
warnings are spot on and very helpful. I will continue to work on getting
better feedback in the compiler to detect errors. I also want to see if I
can do anything with the ctypes package as well. I think the gule ffi is
comparable to ctypes. Else I will continue to see what I can do with the
ipython package.

Happy Hacking

[-- Attachment #2: Type: text/html, Size: 1218 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Python on guile
  2020-03-22 21:28 Python on guile Stefan Israelsson Tampe
@ 2020-03-23 16:54 ` Arne Babenhauserheide
  0 siblings, 0 replies; 4+ messages in thread
From: Arne Babenhauserheide @ 2020-03-23 16:54 UTC (permalink / raw)
  To: guile-devel; +Cc: Guile User


Stefan Israelsson Tampe <stefan.itampe@gmail.com> 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 sounds like the time could be coming to actually test the speed.
Maybe you can look into the pypy benchmarks for that:

https://speed.python.org/
https://speed.python.org/about/ — with link to the code

Those would give the first truly comparable test of the speed of Guile
vs. a non-Scheme — and a practical path into improving performance based
on higher level usage patterns.

Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein
ohne es zu merken



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-23 16:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-22 21:28 Python on guile Stefan Israelsson Tampe
2020-03-23 16:54 ` Arne Babenhauserheide
  -- strict thread matches above, loose matches on Subject: below --
2014-05-30 21:33 python " Stefan Israelsson Tampe
2014-06-03  6:28 ` Nala Ginrut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).