Re: Pipes and processes, stdin, stdout and stderr

2015-04-14 Thread Christopher Allan Webber
Thanks Vladimir! I will look through this. Vladimir Zhbanov writes: Hi, Chris. In geda-gaf, I modified open-pipe* to solve a similar issue. See the procedure code and comments in attachment. Cheers, Vladimir

Re: Pipes and processes, stdin, stdout and stderr

2015-04-16 Thread Christopher Allan Webber
Thien-Thi Nguyen writes: () Christopher Allan Webber cweb...@dustycloud.org () Mon, 13 Apr 2015 19:17:41 -0500 It might be really nice if there was a way to access stdin, stdout, and stderr as separate ports. I might be willing to write some code for it, if someone could point me

Re: FOSDEM call for Guile related talks

2015-11-09 Thread Christopher Allan Webber
Unfortunately, I had put up a couple of talk proposals on the wiki, but things have happened between now and then, and I'm not sure if I can manage to budget the time / funds to make that trip. I really wish I could go... this is the #1 devroom for me this year! To anyone else who can make it,

Re: [ANN] Sly 0.1 released

2015-11-13 Thread Christopher Allan Webber
Great job, David! Sly is one of the reasons I joined the Guile community. I'm thrilled to see Sly 0.1 go out the door!

Re: FOSDEM call for Guile related talks

2015-11-12 Thread Christopher Allan Webber
Christopher Allan Webber writes: > Unfortunately, I had put up a couple of talk proposals on the wiki, but > things have happened between now and then, and I'm not sure if I can > manage to budget the time / funds to make that trip. I really wish I > could go... this is the #1 de

Squee!! guile-squee brings postgresql bindings for guile via the FFI

2015-09-24 Thread Christopher Allan Webber
Hello all! I started a little experimental project recently called guile-squee... it's presently vey simple: https://notabug.org/cwebber/guile-squee It's postgres bindings via the FFI. This was originally for my own purposes because I need something to serialize json data in and out of

Re: GNU Guile unit test framework

2015-12-03 Thread Christopher Allan Webber
Amirouche Boubekki writes: > Le 2015-12-03 14:54, Jan Synáček a écrit: >> Hello, >> >> does a unit test framework for GNU Guile exist? Something like >> "unittest" for Python for example. > > The unit test framework is srfi-64 [0]. You can find an example use in > 8sync [1]. Mind the fact that

Re: Fixing "stringly typed" data structures in Artanis (Was: Learning Guile web. Stuck on returning an image.)

2015-12-11 Thread Christopher Allan Webber
Speaking of expressiveness and investigating these things, I've found no better series than the ones by Peter Bex: http://www.more-magic.net/posts/lispy-dsl-scss.html http://www.more-magic.net/posts/lispy-dsl-sxml.html http://www.more-magic.net/posts/lispy-dsl-sre.html

Re: Named parameters to format?

2015-12-15 Thread Christopher Allan Webber
he similar thing. > > If you're interested in it, you may easily port it from Artanis. But you > need irregex as well. > https://github.com/NalaGinrut/artanis/blob/master/artanis/utils.scm#L411 > > > > On Mon, 2015-12-14 at 22:52 -0600, Christopher Allan Webber wrote: >> He

Named parameters to format?

2015-12-14 Thread Christopher Allan Webber
Hello all, I've been thinking about what I'm going to do once I hit the need for gettext support. I'm not really sure for things that have multiple variables in their string. In python land, I'd do something like: gettext("foo %(bar) %(baz)") % {"bar": "bleh",

Re: Named parameters to format?

2015-12-15 Thread Christopher Allan Webber
Mark H Weaver writes: > Christopher Allan Webber <cweb...@dustycloud.org> writes: > >> I've been thinking about what I'm going to do once I hit the need for >> gettext support. I'm not really sure for things that have multiple >> variables in their string. In pyth

Re: Named parameters to format?

2015-12-15 Thread Christopher Allan Webber
Ludovic Courtès writes: > Hi! > > ‘format’ is an implementation of the historical Common Lisp (I think?) > thing. > > The Better Approach™ is probably . An > entirely different but IMO nicer approach (again, real EDSL instead of > stringy DSL.) > > Ludo’. I've

Re: nyacc 0.65.0 released

2015-12-30 Thread Christopher Allan Webber
Matt Wette writes: > On Dec 30, 2015, at 6:35 AM, Ludovic Courtès wrote: >>> Demo: >>> Use C parser and pretty printer to clean up C expressions (e.g., remove >>> unneeded paren’s): >> >> The demo is already quite impressive! > > Thanks. I agree. Holy damn, this looks

Re: list of guile related projects

2015-11-26 Thread Christopher Allan Webber
Pjotr Prins writes: > On Wed, Nov 25, 2015 at 08:33:46AM -0600, Christopher Allan Webber wrote: >> tantalum writes: >> >> > here is a list of projects with code that guile can run and projects that >> > use guile: >> > >> > http://sph.m

Re: list of guile related projects

2015-11-25 Thread Christopher Allan Webber
tantalum writes: > here is a list of projects with code that guile can run and projects that use > guile: > > http://sph.mn/content/3e73 > > i made this list and would be interested in hearing about projects i have > missed. Might be nice to have 8sync on there, but admittedly there's not a

Re: Embedding Guile with sandboxing

2015-11-25 Thread Christopher Allan Webber
Antimony looks really cool! I agree that Guile doesn't provide a silver bullet here. Again, I think it can be done... though I think it'll require a lot of yak hair traversal to get to that point :) Good luck, have fun, and happy hacking!

Re: Embedding Guile with sandboxing

2015-11-22 Thread Christopher Allan Webber
Matthew Keeter writes: > I’m currently embedding Python in a C / C++ application that evaluates > user-provided scripts. > > Obviously, this is terribly unsafe: user-provided scripts can execute > arbitrary malicious actions, and there’s no good way to sandbox Python > in a desktop context. > >

Re: FOSDEM call for Guile related talks

2015-11-22 Thread Christopher Allan Webber
Alex Sassmannshausen writes: > Are we still looking for talks at FOSDEM? And if so, would people be > interested in a talk on this project? Yes! Submit the talk!

Re: Potluck time!

2016-02-10 Thread Christopher Allan Webber
Ludovic Courtès writes: > Hello Guilers! > > As you may know, it’s that time of the year where we are all invited to > prepare dishes and to bring them to the Guile birthday potluck. This > has become a tradition to celebrate the release of Guile 2, which took > place on Feb. 16th¹, 5 years ago!

Re: Fwd: [ANN] An impudent introduction to Guile

2016-02-05 Thread Christopher Allan Webber
Panicz Maciej Godek writes: > I see you're an expert, so perhaps you could explain to me what would the > implications be. > My original intent was to publish the software that comes along with the > book under GPL v3, because AFAIK GPL regards software, but if there's more > to it, then it would

Re: [ANN] An impudent introduction to Guile

2016-02-04 Thread Christopher Allan Webber
Panicz Maciej Godek writes: > Hi, > I am pleased to announce that I just finished my booklet titled > > A Pamphlet against R > Computational Intelligence with Guile Scheme > > The pamphlet introduces (in a truly impertinent manner) a set of libraries > that I have been developing over the last

Re: FOSDEM 2016 was awesome!

2016-02-02 Thread Christopher Allan Webber
Alex Sassmannshausen writes: > Hello, > > Ludovic Courtès writes: > >> Hi there! >> >> I just came back from FOSDEM where we had an awesome Guile devroom with >> nice people and great talks! > > I really want to echo Ludo's sentiments. I had a great time in our dev > room and it was really nice

Re: guile-scsh

2016-03-14 Thread Christopher Allan Webber
sidhu1f writes: >> The awk stuff anf regexp stuff is not implemented as far as I know. > > While Olin Shivers' regex DSL (RX SRE syntax) is quite interesting, I'm not > very > interested in that, only in awk.scm with normal guile regexp support. If you're using Guix, I've packaged Irregex,

GNU 8sync 0.1.0 released!

2016-04-22 Thread Christopher Allan Webber
us out yourself! In that case, please join us! 8sync is young, and now is a great time to get involved and explore. Happy hacking! - Christopher Allan Webber [0] http://www.gnu.org/software/8sync/news/hello-world.html

Re: 8sync tutorial part 1

2016-04-24 Thread Christopher Allan Webber
Marko Rauhamaa writes: > Christopher Allan Webber <cweb...@dustycloud.org>: > >> http://dustycloud.org/tmp/8sync-tutorial-part1.html >> >> It gets into the basics of the agenda, using delays to keep things >> simple. > > Comments: > > * A typo: T

Re: FOSDEM 2017 what a success!!

2017-02-07 Thread Christopher Allan Webber
Ludovic Courtès writes: > It confirmed my feeling that one of the greatest things about Guile and > Guix is the people. Thanks for the great talks and the good time we’ve > had! +1. The Guile/Guix devroom has been some of the most fun I've ever had at a conference. I'm sure 2018 will be great

Re: guile-user Digest, Vol 171, Issue 14

2017-02-14 Thread Christopher Allan Webber
Cecil McGregor writes: > My first problem lies in the lack of a decent debugger. (I can hear > the screams of more enlightened Guilers already!) The stack traces > seldom provide filenames and line numbers to hint where a problem > might hide. While I've read advice to allow the appearance of >

Re: Stack traces

2017-02-15 Thread Christopher Allan Webber
Ludovic Courtès writes: > Hello, > > Cecil McGregor skribis: > >> My first problem lies in the lack of a decent debugger. >> (I can hear the screams of more enlightened Guilers >> already!) The stack traces seldom provide filenames >> and line numbers to hint where a

r7rs libraries (or, Fwd: fmt for Guile)

2017-01-16 Thread Christopher Allan Webber
altogether? Will it depend on people stepping forward, or is there a strong maintainer position either way? > Alex Shinn writes: > >> Hi Chris! >> >> On Sun, Jan 15, 2017 at 1:40 AM, Christopher Allan Webber < >> cweb...@dustycloud.org> wrote: >> >>>

Re: [ANN] guile-commonmark 0.1 (A markdown parser)

2016-08-04 Thread Christopher Allan Webber
Erik Edrosa writes: > Hello everyone, > > Awhile back for the potluck I posted a CommonMark[0] parser I written in > pure Guile Scheme which outputs SXML. Today I have decided to release > version 0.1, it currently supports parsing almost the entire CommonMark > spec besides block and inline

Re: [HELP] a search engine in GNU Guile

2016-09-09 Thread Christopher Allan Webber
Amirouche Boubekki writes: > Héllo, > > > I'd like to share with you a mini-project on the road of Culturia 0.1 > [0] which is a boolean keyword search engine (similar in principle to > xapian, lucene and whoosh (with less polish and features)). ... and I didn't read this until after I wrote my

Re: [HELP] a search engine in GNU Guile

2016-09-09 Thread Christopher Allan Webber
Amirouche Boubekki writes: > - port whoosh/lucene to guile to improve text search This is something I'd love to see generally. It would be nice to have an indexing library, either by writing bindings to Xapian (which unfortunately couldn't use the FFI since it's C++), or natively porting

Re: Sufficiently safe random information for security-critical Guile applications

2016-08-27 Thread Christopher Allan Webber
Josh Datko writes: > On Fri, 2016-08-26 at 14:59 -0500, Christopher Allan Webber wrote: >> Hello!So, as some of you know, I'm working on a federation >> implementation in Guile.This needs a few things: >> >> - Random tokens which won't collide, for various purp

Guile security vulnerability w/ listening on localhost + port (with fix)

2016-10-11 Thread Christopher Allan Webber
The Guile team has just pushed out a new commit on the Guile stable-2.0 branch addressing a security issue for Guile. There will be a release shortly as well. The commit is 08c021916dbd3a235a9f9cc33df4c418c0724e03, or for web viewing purposes:

Re: Guile security vulnerability w/ listening on localhost + port (with fix)

2016-10-16 Thread Christopher Allan Webber
Lizzie Dixon writes: > Hi, > > On 10/11, Christopher Allan Webber wrote: >> The default in Guile has been to expose a port over localhost to which >> code may be passed. The assumption for this is that only a local user >> may write to localhost, so it should be

GOOPS functional setter

2017-01-13 Thread Christopher Allan Webber
. == ;; By Christopher Allan Webber, LGPLv3+; adapted from shallow-clone in GOOPS (use-modules (oop goops)) (define-method (slot-fset (self ) slot-name value) "Return a new copy of SELF, with all slots preserved except SLOT-NAME set to VALUE." (let* ((class (class-of self)) (clone (allocat

Re: GOOPS functional setter

2017-01-13 Thread Christopher Allan Webber
to...@tuxteam.de writes: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Fri, Jan 13, 2017 at 01:09:57PM -0600, Christopher Allan Webber wrote: >> I guess I never sent this to this list. Here's a functional setter for >> GOOPS classes. >> >> Maybe nob

Re: GOOPS functional setter

2017-01-14 Thread Christopher Allan Webber
-rms) $13 = 60 scheme@(guile-user)> (.street (.address rms)) $14 = "Franklin Street" scheme@(guile-user)> (.street (.address new-rms)) $15 = "Temple Place" ... not bad, eh? Updated copy of goops-functional-setter.scm attached! What do other people think? Shou

The relationship between 8sync and Fibers, in (literal) theory!

2017-01-03 Thread Christopher Allan Webber
Hello all! Some of you have been following the growth of both 8sync and Fibers, at least from some distance. I'm happy to say that I've unearthed some clarity on thei relationship. I added a commit to the 8sync manual (or, what will become the new 8sync manual) to that effect:

GNU 8sync 0.4 released!

2017-01-08 Thread Christopher Allan Webber
Greetings, all! I'm pleased to announce 8sync 0.3! 8sync is a library for GNU Guile which provides an asynchronous event loop and which uses the actor model as its primary concurrency synchronization mechanism. - Release: ftp://ftp.gnu.org/gnu/8sync/8sync-0.4.0.tar.gz - Announcement:

GNU 8sync 0.4.1, fixes 0.4.0 packaging

2017-01-08 Thread Christopher Allan Webber
It turns out there was a bug in 8sync 0.4.0's packaging... it installed to Guile 2.0's load path, whereas 8sync is for Guile 2.2 only. This is fixed. Full announcement: https://www.gnu.org/software/8sync/news/8sync-0-4-1-released.html

Re: Prevent SQL Injection in DBI

2017-03-27 Thread Christopher Allan Webber
Jakub Jankiewicz writes: > Hi all, > > I want to use guile-dbi with unsafe user input. I have code like this: > > (dbi-query db-obj (string-append "SELECT * FROM users WHERE username = '" > username > "'")) > > How can I escape

Re: guix is the guildhall that we always wanted!

2017-03-17 Thread Christopher Allan Webber
Andy Wingo writes: > On Thu 16 Mar 2017 23:01, Mark H Weaver writes: > >> If [Guix] starts encouraging a decentralized approach, that would >> result in strong pressure on us to freeze our API, which includes even >> such details as which module each package is exported from.

Gush: A stack based language eventually for genetic programming

2017-04-06 Thread Christopher Allan Webber
Hello all! I'd like to announce that I've been working on a stack based language written on top of Guile called "Gush", heavily inspired by the Push/PushGP stack based language and genetic programming system (but with some important differences): https://gitlab.com/dustyweb/gush That page

Re: How to make GNU Guile more successful

2017-03-13 Thread Christopher Allan Webber
Vítor De Araújo writes: > First, I think it would be nice to have a Guile wiki, in the likes of > cliki.net. A publicly-editable reference place where people can share > knowledge about Guile and Guile libraries and projects. Sure, having a > centralized package manager/repository would be nice,

Re: squee

2017-04-18 Thread Christopher Allan Webber
Catonano writes: > Ok, I was just confused, it works like a charm > > Sorry for the noise Ah! No worries about the noise. I'm happy to see someone using squee. It hasn't gotten much love in the last couple of years. I intend to return to using it in the not too distant future. If you're

?-suffix for booleans... good-idea? or bad-idea?

2017-04-24 Thread Christopher Allan Webber
Hello everyone! Here's a little bikeshed for us to paint. I've noticed that it's common in Guile modules to use "foo?" for variable names involving booleans. It's tempting, because this looks an awful lot like you're asking a question... and it's also common for this even to be keyword

Re: Mes 0.9 released

2017-07-27 Thread Christopher Allan Webber
Jan Nieuwenhuizen writes: > I am pleased to announce the release of Mes 0.9, representing 107 > commits over 5 weeks. Mescc now compiles to a surprisingly readable > stage0 M1 macro assembler output format. Also, mescc can now compile a > modified TinyCC into a running [mostly segfaulting]

Re: guile-sjson's first public release (v0.2)!

2017-04-25 Thread Christopher Allan Webber
Mark Oteiza writes: > Christopher Allan Webber <cweb...@dustycloud.org> writes: > >> Hello all! I'm happy to announce the first public release of >> guile-sjson! > > Congratulations! > >> What's guile-sjson? Well, it's basically the previous work David >

Re: guile-sjson's first public release (v0.2)!

2017-04-25 Thread Christopher Allan Webber
Marko Rauhamaa writes: > Christopher Allan Webber <cweb...@dustycloud.org>: > >> In sum though, it has a nice s-expression based syntax: >> >> scheme@(guile-user)> (define a-horse >> '(@ ("name" &qu

Re: guile-sjson's first public release (v0.2)!

2017-04-26 Thread Christopher Allan Webber
Marko Rauhamaa writes: > Christopher Allan Webber <cweb...@dustycloud.org>: >> ((name . "buttercup") >>(age . 6) >>(animal . "horse") >>(food . #("carrot" "oats")) >>(mood-noises >> (

guile-sjson's first public release (v0.2)!

2017-04-24 Thread Christopher Allan Webber
Hello all! I'm happy to announce the first public release of guile-sjson! What's guile-sjson? Well, it's basically the previous work David Thompson did on (ice-9 json), but since that seemed to sit without being merged for a while and I needed it for several projects, I went ahead and turned it

Re: Presenting Schmutz, easy C++ bindings for Guile

2017-07-28 Thread Christopher Allan Webber
Juan Pedro Bolivar Puente writes: > Hi Christofer, > >> Very cool. I don't have time to investigate it at the moment, but I >> wonder if this could be used to make general Guile bindings to Xapian? >> That's something I've long wanted. > > Thanks! I just took a quick look at how Xapian does

Re: Presenting Schmutz, easy C++ bindings for Guile

2017-07-27 Thread Christopher Allan Webber
Juan Pedro Bolivar Puente writes: > Hi y'all! Hi Juan! > I would to present Schmutz, a new library I am working on. This > library makes it easy to write Scheme bindings for C++ code. > Something like Boost.Python or LuaBind, but for Guile: > > https://sinusoid.es/schmutz >

New release of guile-sjson

2017-05-08 Thread Christopher Allan Webber
Hello! I've made a new release of guile-sjson, a schemey json reading/writing library based on David Thompson's work on (ice-9 json). This does very little other than switch the `null' value in javascript to be read as 'null. That's something we discussed on the list here. With that said you

Re: 2.2 git users should switch to stable-2.2 branch

2017-05-11 Thread Christopher Allan Webber
Andy Wingo writes: > Hello Guilefolk, > > As we did with Guile 1.8 and 2.0, I just pushed a stable-2.2 branch. > This is the branch for Guile 2.2 development -- the branch that keeps > a stable API and ABI during the 2.2.x series. It's the one you want to > be using unless you are doing

CHAMP implementation / port to Guile

2017-06-21 Thread Christopher Allan Webber
eter Schuck authorize Guile and / or Christopher Allan Webber to copy my > lean map work (https://github.com/bendyworks/lean-map) and relicense it as > they see fit. > > If you need any help with understanding the implementation feel free to ask > me questions. > > ​Peter Schuck

Re: Stack traces

2017-05-18 Thread Christopher Allan Webber
Amirouche writes: > Le 27/02/2017 à 21:23, Andy Wingo a écrit : >> On Sat 18 Feb 2017 20:59, Amirouche writes: >> >>> How do you access variables in the REPL? >> ,locals >> >> Andy > It doesn't display something that I can use. (Returning to this few-months-old

Re: Compilation to JS

2017-06-06 Thread Christopher Allan Webber
Mike Gerwitz writes: > On Mon, Jun 05, 2017 at 17:11:35 +0100, Ian Price wrote: >> This summer I am following up on the work of two years ago to compile >> Guile to JS. As some of you may remember from irc back then, I was >> making good progress until personal circumstances intervened. This >>

Re: Mes 0.5 released

2017-04-30 Thread Christopher Allan Webber
Jan Nieuwenhuizen writes: > Arne Babenhauserheide writes: > >> Wow! Congratulation on full bootstrapping of mes! > > Thanks, Arne! > >> So we can now build mes.c with mescc driven by Guile and then use mes to >> run mescc again to build mes.c? > > Yes, that's correcct. mes.c can be compiled with

Re: Goops: Setting Immutible Classes?

2017-10-06 Thread Christopher Allan Webber
Mark H Weaver writes: > Christopher Howard writes: > >> Hi, is the a way I could use goops such that I the classes are non- >> mutating, but have setters that simply return a new instance of the >> class (instead of modifying the original)? > > We provide such a

Re: Summer of Code Recap

2017-08-28 Thread Christopher Allan Webber
Thanks again Ian for all your work on this; I've been very proud to be your mentor. Great work, and look forward to seeing this land in Guile proper :)

Re: Summer of Code Recap

2017-08-28 Thread Christopher Allan Webber
Amirouche writes: >>This would allow us to minimise the amount of code that >>needs to be sent over the network, which is very important to web >>developers. > > You seem concerned by javascript web developers but not about > me in particular. As the maintainer of the only Scheme

Re: Are symbols garbage collected?

2017-10-23 Thread Christopher Allan Webber
David Kastrup writes: > Christopher Allan Webber <cweb...@dustycloud.org> writes: > >> I thought they weren't but now I'm not really sure where I got that >> idea from. Does anyone know for sure? > > They are garbage-collected. This is not overly relevant outside

Re: Are symbols garbage collected?

2017-10-23 Thread Christopher Allan Webber
Marko Rauhamaa writes: > Christopher Allan Webber <cweb...@dustycloud.org>: > >> I thought they weren't but now I'm not really sure where I got that >> idea from. Does anyone know for sure? > > I don't think the language spec says anything about any particular

Are symbols garbage collected?

2017-10-23 Thread Christopher Allan Webber
I thought they weren't but now I'm not really sure where I got that idea from. Does anyone know for sure?

Re: Any suggestions for a project?

2017-11-17 Thread Christopher Allan Webber
Daniele writes: > Hello, I need to make my bachelor thesis in CS and was looking for > ideas for a project to do in Scheme. Do you have any suggestions? Is > there something that needs to be done in Guile? I'm actually not very > experience and I am learning Scheme right now so it shouldn't be >