unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* python on guile, bytevectors
@ 2019-07-23 11:14 Stefan Israelsson Tampe
  0 siblings, 0 replies; only message in thread
From: Stefan Israelsson Tampe @ 2019-07-23 11:14 UTC (permalink / raw)
  To: Guile User

Hi,

Sometimes people complain about guile string handling, that it is heavy and
that it does some interpretation of the characters. The answer is that you
should use bytevecors and then you hear that bytevectors containing char
codes does not have all the fetaures string has.

If you use python-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 manage the regular expressions and it's
slow. You can use the stis-paser directly and get some speedup using cuts
however. This to enable a maintainable and quick implementation. Any patch
that speeds the regexp engine is most welcome.

Happy hacking!


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-23 11:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-23 11:14 python on guile, bytevectors Stefan Israelsson Tampe

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).