Re: Writing to closed network port causes guile to exit with error 141, not error message

2024-03-23 Thread Chris Vine
On Fri, 22 Mar 2024 19:00:43 -0400 Ryan Raymond wrote: > Thank you, Thomas. > I do wonder if this is good behavior to have in Guile. I feel like we > should replace that signal with an error. It's not good for programs to > exit without an explanation. > > However, thank you for your help. >

Re: escaping from a recursive call

2022-11-10 Thread Chris Vine
On Wed, 09 Nov 2022 12:55:42 -0500 Olivier Dion via General Guile related discussions wrote: > On Wed, 09 Nov 2022, Damien Mattei wrote: > > but in the general case , i want a macro that can do it on any function > > (i'm not sure it can be done because the continuation have to be captured > >

Re: Question about an error with ports

2022-03-11 Thread Chris Vine
On Sat, 12 Mar 2022 00:10:36 + Chris Vine wrote: > On Fri, 11 Mar 2022 20:49:53 +0100 > Maxime Devos wrote: > > Chris Vine schreef op vr 11-03-2022 om 18:13 [+]: > > > code has changed.  I have yet to re-equip my tests to test the write and > > > disp

Re: Question about an error with ports

2022-03-11 Thread Chris Vine
On Fri, 11 Mar 2022 20:49:53 +0100 Maxime Devos wrote: > Chris Vine schreef op vr 11-03-2022 om 18:13 [+]: > > code has changed.  I have yet to re-equip my tests to test the write and > > display procedures, > > Those aren't rewritten in Scheme (yet?). I believ

Re: Question about an error with ports

2022-03-11 Thread Chris Vine
On Fri, 11 Mar 2022 17:26:50 + Chris Vine wrote: > Notable procedures which it appears remain as non-suspendable are > get-bytevector-all, get-string-n, read, write and display, but to be > sure about the first two of those I would also need to read the source > again. A few yea

Re: Question about an error with ports

2022-03-11 Thread Chris Vine
On Fri, 11 Mar 2022 09:58:59 -0500 Olivier Dion wrote: > On Fri, 11 Mar 2022, Chris Vine wrote: [snip] > > Avoid using get-bytevector-n!, get-bytevector-some and > > get-bytevector-all if you are going to use something like fibers or > > some other asynchronous i/o

Re: Question about an error with ports

2022-03-11 Thread Chris Vine
On Thu, 10 Mar 2022 18:46:34 -0500 Olivier Dion via General Guile related discussions wrote: > On Thu, 10 Mar 2022, Zelphir Kaltstahl wrote: > > > Just one question: Why is get-bytevector-some better than > > get-bytevector-n and specifying a number of bytes? > > I haven't check the

Re: Ideas for making Guile easier to approach

2022-02-09 Thread Chris Vine
On Wed, 09 Feb 2022 10:18:27 -0500 Christine Lemmer-Webber wrote: > - Racket also separates the "Guide" from the "Reference". Well that's >sensible! Guile actually has a very good "reference manual", maybe >what it needs is a *companion* in terms of the "Guile Guide". I think that is

Re: Newbie thoughts on Guile Hall + Guix

2022-02-08 Thread Chris Vine
On Tue, 08 Feb 2022 19:19:06 +0700 Blake Shaw wrote: > Vijay Marupudi writes: > > I don't think it's fair to say that using packages in Guile just as > > easy/hard as other languages. Python / Javascript make this incredibly > > easy, and their ecosystem is evidence for that success. Their

Re: Fibers 1.1.0 released

2022-02-01 Thread Chris Vine
On Mon, 31 Jan 2022 20:09:36 +0100 Vivien wrote: > Le lundi 31 janvier 2022 à 10:27 -0800, Aleix Conchillo Flaqué a > écrit : > > On behalf of the Fibers team, I am very excited to announce Fibers > > 1.1.0. > Thank you. Fibers is a very important piece in the guile ecosystem. I > wish it were

Re: understanding guile-gi

2022-01-16 Thread Chris Vine
On Sun, 16 Jan 2022 20:39:47 + Zelphir Kaltstahl wrote: > Thanks for the example link and the explanations! I'll try to learn from the > example. > > Best regards, > Zelphir > > On 1/16/22 5:45 PM, Luis Felipe wrote: > > On Sunday, January 16th, 2022 at 1:37 PM, Zelphir Kaltstahl > >

Re: understanding guile-gi

2022-01-16 Thread Chris Vine
On Sun, 16 Jan 2022 13:37:02 + Zelphir Kaltstahl wrote: > Hello Guile Users! > > I would like to understand guile-gi better, hopefully at some point I will be > able to create GTK applications using Guile. But perhaps my understanding is > wrong, so I want to ask a few things: > > guile-gi

Re: guile_gi-0.3.2 released

2021-12-30 Thread Chris Vine
On Wed, 29 Dec 2021 21:40:56 -0800 Andy Tai wrote: > Curious if this covers all the common GNOME APIs on GNOME 3? > > Also is there plan to cover gtk 4? guile-gi should work with any library that has a gobject-introspection typelib installed, including gtk4 if you have that one installed. The

Re: Difficulty integrating with Swift/Objective-C

2021-09-06 Thread Chris Vine
On Mon, 06 Sep 2021 20:26:53 +1000 paul wrote: > Hey Chris, > > On 2021-09-05 at 20:56 AEST, quoth Chris Vine > : > > You appear to want to run scheme code as an extension language, > > via the > > guile VM, in a program written for MacOS in the Swift langua

Re: Difficulty integrating with Swift/Objective-C

2021-09-05 Thread Chris Vine
On Sun, 05 Sep 2021 16:03:24 +1000 paul wrote: > Good day, > > I have an existing app which is written in Swift and runs on macOS > 10.15. I would like to provide users a way of customising the app > (initially just simple things like modifying keybindings for > example, later hopefully

Re: Read characters from without newline

2021-08-28 Thread Chris Vine
On Sat, 28 Aug 2021 14:09:52 + Zelphir Kaltstahl wrote: > Hello Guile users, > > I am trying to find a way to read a character from command line or REPL, > without > having to enter a newline, confirming the input. > > For example I found this for Python:

Re: Guile 3.0.7 compile cache messages

2021-06-02 Thread Chris Vine
On Wed, 2 Jun 2021 21:52:15 + Zelphir Kaltstahl wrote: [snip] > I think the assumption is that I was installing my project in any way. > However, > I am merely running its Guile code, without installing it anywhere in Guix or > my > system. I still think you may be misunderstanding what I

Re: Guile 3.0.7 compile cache messages

2021-06-02 Thread Chris Vine
On Wed, 2 Jun 2021 12:20:48 + Zelphir Kaltstahl wrote: > Hi Chris! > On 6/2/21 12:30 PM, Chris Vine wrote: > > On Wed, 2 Jun 2021 08:52:54 + > > Zelphir Kaltstahl wrote: > >> On 6/2/21 8:00 AM, Adriano Peluso wrote: > >>> Il giorno mar, 01/06/

Re: Guile 3.0.7 compile cache messages

2021-06-02 Thread Chris Vine
On Wed, 2 Jun 2021 08:52:54 + Zelphir Kaltstahl wrote: > On 6/2/21 8:00 AM, Adriano Peluso wrote: > > Il giorno mar, 01/06/2021 alle 08.14 -0400, Olivier Dion via General > > Guile related discussions ha scritto: > >> On Mon, 31 May 2021, Zelphir Kaltstahl > >> wrote: > >>> Hello Guile

Re: Calling back scheme from C

2020-09-22 Thread Chris Vine
On Tue, 22 Sep 2020 12:36:15 +0200 divoplade wrote: > Hello, > > Le mardi 22 septembre 2020 à 10:50 +0100, Chris Vine a écrit : > > This may not be your issue. I offer it as something I had to deal > > with > > in code of my own to prevent incorrect collection fo

Re: Calling back scheme from C

2020-09-22 Thread Chris Vine
On Tue, 22 Sep 2020 08:25:25 +0200 divoplade wrote: > Hello guile, > > I am having a hard time understanding what I do wrong when trying to > pass a guile function as a C callback (from C). > > You should be able to trigger the bug by saving the 3 attached files > and running: > > guix

Re: guile fibers - looking for adivce

2020-09-08 Thread Chris Vine
On Mon, 7 Sep 2020 17:25:38 -0700 Aleix Conchillo Flaqué wrote: [snip] > To be honest, I've never used GOOPS so things might be a bit more > complicated there, I don't know. But it sounds like you have two options: > > - Create a fiber with the object and pass data from the object using >

Re: guile fibers - looking for adivce

2020-09-06 Thread Chris Vine
On Sun, 6 Sep 2020 02:47:57 +0200 Jan Wielkiewicz wrote: > Hello, > > I'm still on my way of integrating Guile Fibers and GOOPS, but I > encountered some weird behavior. > Say I have an object with with one slot being a vector and two methods > accessing the vector concurrently/parallelly. The

Re: GOOPS and fibers - need help understanding what's wrong, bug in fibers/guile?

2020-07-22 Thread Chris Vine
On Wed, 22 Jul 2020 12:54:20 +0100 Chris Vine wrote: > On Wed, 22 Jul 2020 01:56:53 +0200 > Jan Wielkiewicz wrote: > > Hello, > > > > I started writing my project in Guile with GOOPS and fibers (I'll > > release it once it stops being a shame and starts wo

Re: GOOPS and fibers - need help understanding what's wrong, bug in fibers/guile?

2020-07-22 Thread Chris Vine
On Wed, 22 Jul 2020 01:56:53 +0200 Jan Wielkiewicz wrote: > Hello, > > I started writing my project in Guile with GOOPS and fibers (I'll > release it once it stops being a shame and starts working!), but I > encountered a problem: > > The example from fibers' manual doesn't work: > > (lambda

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-14 Thread Chris Vine
On Tue, 14 Jul 2020 12:32:46 +0200 Catonano wrote: > Il giorno dom 12 lug 2020 alle ore 21:33 Chris Vine > ha scritto: > > On Sun, 12 Jul 2020 20:14:23 +0100 > > Chris Vine wrote: > > [snip] > > > Secondly, if the handler returns and #:unwind? is set t

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-13 Thread Chris Vine
On Sat, 11 Jul 2020 23:39:18 +0100 Chris Vine wrote: > On Sat, 11 Jul 2020 14:20:22 -0400 > John Cowan wrote: > > Is the intention to provide `guard` in Guile 3.x? > > It's been in guile for as long as I can remember (at least since 2.0). By the way, guile-3.0's version

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-12 Thread Chris Vine
On Sat, 11 Jul 2020 21:52:17 -0400 John Cowan wrote: > On Sat, Jul 11, 2020 at 7:10 PM Chris Vine wrote: > > So when you said "continuable and non-continuable in Scheme are exactly > > like CL [signal] and error (and its variants)" are you then saying that > >

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-12 Thread Chris Vine
On Sun, 12 Jul 2020 20:14:23 +0100 Chris Vine wrote: [snip] > Secondly, if the handler returns and #:unwind? is set to #f then > raise-continuable will return with the value returned by the handler. > So this: > > (with-exception-handler > (lambda (x) (+ x 3)) >

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-12 Thread Chris Vine
On Sun, 12 Jul 2020 18:08:33 +0200 Catonano wrote: > Il giorno sab 11 lug 2020 alle ore 12:14 Chris Vine > ha scritto: > > > On Sat, 11 Jul 2020 02:19:43 +0200 > > Zelphir Kaltstahl wrote: > > [snip] > > > I would be glad, if any non-optimal example was

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-11 Thread Chris Vine
On Sat, 11 Jul 2020 18:41:34 -0400 John Cowan wrote: > On Sat, Jul 11, 2020 at 6:39 PM Chris Vine wrote: > > On Sat, 11 Jul 2020 14:20:22 -0400 > > John Cowan wrote: > > > On Sat, Jul 11, 2020 at 6:14 AM Chris Vine > > wrote: > > > > > > >

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-11 Thread Chris Vine
On Sat, 11 Jul 2020 14:20:22 -0400 John Cowan wrote: > On Sat, Jul 11, 2020 at 6:14 AM Chris Vine wrote: > > > (To answer the question in your > > following email, continuable exceptions are in some sense analogous to > > common lisp restarts.) > > Continuable

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-11 Thread Chris Vine
On Sat, 11 Jul 2020 02:34:22 +0200 Zelphir Kaltstahl wrote: > The comments about exception handling also reminded me of the following > blog post: > > https://blog.sulami.xyz/posts/common-lisp-restarts/ > > Pretty cool concept as well. > > If there anything like it in Guile or is something

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-11 Thread Chris Vine
On Sat, 11 Jul 2020 02:19:43 +0200 Zelphir Kaltstahl wrote: [snip] > I would be glad, if any non-optimal example was extended or updated by a > more knowledgeable person or I was told what I could improve in some > example. The examples in the repository are only, what I was able to > understand

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-10 Thread Chris Vine
On Fri, 10 Jul 2020 12:15:55 + Christopher Lam top posted: > With respect to looking for guile examples, I've seen examples whereby > LISPers would run some code, dynamically changing the code while running in > production, and immediately the new code would be replaced in-memory. Not > sure

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-10 Thread Chris Vine
On Fri, 10 Jul 2020 10:49:37 +0200 Catonano wrote: > Il giorno mer 8 lug 2020 alle ore 20:22 Zelphir Kaltstahl < > zelphirkaltst...@gmail.com> ha scritto: > > > Hi Simen! > > > > On 7/8/20 6:00 PM, guile-user-requ...@gnu.org wrote: > > > Hi, I'm new to scheme/lisp, so I'm trying to find out how

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-08 Thread Chris Vine
On Wed, 08 Jul 2020 09:38:28 +0200 Simen Endsjø wrote: > Hi, I'm new to scheme/lisp, so I'm trying to find out how to do > things the "lisp > way". On the other hand, I like things from other ecosystems too, > and I'm having > problems finding this for Guile. It might be because there's no >

Re: GNU Guile 3.0.3 released

2020-06-23 Thread Chris Vine
On Tue, 23 Jun 2020 10:05:51 +0200 Ludovic Courtès wrote: > Hi Chris, > > Chris Vine skribis: > > > On Sun, 21 Jun 2020 23:04:03 +0200 > > Ludovic Courtès wrote: > >> We are delighted to announce GNU Guile release 3.0.3, the third bug-fix > >

Re: GNU Guile 3.0.3 released

2020-06-22 Thread Chris Vine
On Sun, 21 Jun 2020 23:04:03 +0200 Ludovic Courtès wrote: > We are delighted to announce GNU Guile release 3.0.3, the third bug-fix > release of the new 3.0 stable series. This release represents 170 > commits by 17 people since version 3.0.2. See the NEWS excerpt that > follows for full

Re: emulate "sum type" pattern matching?

2020-03-12 Thread Chris Vine
On Thu, 12 Mar 2020 15:56:47 +0100 Ricardo Wurmus wrote: > Chris Vine writes: > > On Wed, 11 Mar 2020 19:58:04 + > > Sam Halliday wrote: > >> Hi all, > >> > >> I have read the Guile manual as my introduction to Guile. I am very

Re: emulate "sum type" pattern matching?

2020-03-12 Thread Chris Vine
On Wed, 11 Mar 2020 19:58:04 + Sam Halliday wrote: > Hi all, > > I have read the Guile manual as my introduction to Guile. I am very > impressed at how mature this project is and was overwhelmed by the > feature set, which seems to be on-par with heavily invested technologies > like Java and

Re: Limiting parallelism using futures, parallel forms and fibers

2020-01-10 Thread Chris Vine
On Fri, 10 Jan 2020 01:43:18 +0100 Zelphir Kaltstahl wrote: > Hi Chris! > > On 1/8/20 12:44 PM, Chris Vine wrote: > > On Wed, 8 Jan 2020 08:56:11 +0100 > > Zelphir Kaltstahl wrote: > > [snip] > >> So my questions are: > >> > >> - Is

Re: Limiting parallelism using futures, parallel forms and fibers

2020-01-08 Thread Chris Vine
On Wed, 8 Jan 2020 08:56:11 +0100 Zelphir Kaltstahl wrote: [snip] > So my questions are: > > - Is there a default / recommended way to limit parallelism for > recursive calls to parallel forms? > > - Is there a better way than a global counter with locking, to limit the > number of futures

Re: GNU Guile 2.9.5 Released [beta]

2020-01-06 Thread Chris Vine
On Mon, 06 Jan 2020 21:34:59 +0100 Andy Wingo wrote: > On Mon 06 Jan 2020 00:26, Chris Vine writes: > > I have a 'try' macro which adopts the approach that if an exception > > arises, the macro unwinds from the dynamic environment of the code > > where the exception

Re: Guile fibers return values

2020-01-06 Thread Chris Vine
On Mon, 6 Jan 2020 20:42:17 +0100 Zelphir Kaltstahl wrote: [snip] > In Racket the futures have some limitations, where one needs to use a > different number type to enable them in some cases to run in parallel – > wait, I am looking for the link … here: >

Re: GNU Guile 2.9.5 Released [beta]

2020-01-05 Thread Chris Vine
On Sun, 05 Jan 2020 21:15:52 +0100 Andy Wingo wrote: > On Sun 01 Dec 2019 21:41, Chris Vine writes: > > Is this rewrite, and the new with-exception-handler procedure, an > > opportunity to think about standardization of guile's implementation of > > the R6RS/R7RS 'guard' fo

Re: Guile fibers return values

2020-01-05 Thread Chris Vine
On Sun, 5 Jan 2020 19:22:14 +0100 Zelphir Kaltstahl wrote: > I think the decision tree calculations, which I want to parallelize, are > not I/O related. However, I am not quite sure I understand the whole > suspendable port thing, but here is what I think it is: > > When some I/O happens in a

Re: Guile fibers return values

2020-01-05 Thread Chris Vine
On Sun, 5 Jan 2020 13:58:24 +0100 Zelphir Kaltstahl wrote: > Thank you for the detailed explanation! > > By "process" I meant only "sequence of steps performed", the main thunk > in run-fibers, separate from the steps that are run in the spawned > fiber, not really OS process or thread. > > I

Re: Guile fibers return values

2020-01-05 Thread Chris Vine
On Sun, 5 Jan 2020 02:30:06 +0100 Zelphir Kaltstahl wrote: [snip] > This way of communication between the fiber and the main process seems > in the style of Racket's places. Except that I can send normal > procedures / lambdas to the fiber, which is great on a single machine, > while I need to

Re: GNU Guile 2.9.5 Released [beta]

2019-12-01 Thread Chris Vine
Sorry, a resend to guile-user - the copy to that mailing list was misaddressed. -- On Fri, 22 Nov 2019 16:22:39 +0100 Andy Wingo wrote: > We are pleased to announce GNU Guile release 2.9.5. This is the fifth > pre-release of what will eventually become the 3.0

Re: Diversification [ branched from Re: conflicts in the gnu project now affect guile]

2019-10-23 Thread Chris Vine
On Wed, 23 Oct 2019 15:43:26 +0200 wrote: > On Wed, Oct 23, 2019 at 11:37:24AM +0100, Chris Vine wrote: > > "pelzflorian (Florian Pelz)" wrote: > > [...] > > > > I would prefer eventually having a forum/bulletin board-like Web > > > interface

Re: Diversification [ branched from Re: conflicts in the gnu project now affect guile]

2019-10-23 Thread Chris Vine
On Wed, 23 Oct 2019 08:48:13 +0200 "pelzflorian (Florian Pelz)" wrote: > On Wed, Oct 23, 2019 at 08:16:34AM +0200, Amirouche Boubekki wrote: > > Regarding the mailling list, many projects (among GNOME) have or will > > adopt https://www.discourse.org/. It has a per-user mailling list mode > > but

Re: Diversification [ branched from Re: conflicts in the gnu project now affect guile]

2019-10-22 Thread Chris Vine
On Tue, 22 Oct 2019 21:23:32 +0200 Zelphir Kaltstahl wrote: [snip] > The reason however, why I have only ever used Riot with one person is, > surprise surprise, that most people are not willing to sacrifice the > tiniest bit of comfort, for enhanced security. This one person I used it > with

Re: Threading / Pipe Macro (Chris Vine, Mark H Weaver)

2019-07-09 Thread Chris Vine
On Tue, 09 Jul 2019 11:40:02 +0200 Linus Björnstam wrote: > Sorry, I didn't see that macro. I was referring to my macro that Erik > linked to [1], which is a syntax rules macro that also allows for <> > argument placeholders: > > (~> 1 1+ (/ 10 <>) iota (+ <...>)) => 10 > > It defaults to left

Re: Threading / Pipe Macro (Chris Vine, Mark H Weaver)

2019-07-09 Thread Chris Vine
On Tue, 09 Jul 2019 08:01:01 +0200 Linus Björnstam wrote: > On Tue, 9 Jul 2019, at 01:02, Chris Vine wrote: > > On Mon, 8 Jul 2019 23:10:28 +0200t > > Zelphir Kaltstahl wrote: > > > Hello Chris and hello Mark, > > > > > > Thank you both for posting y

Re: Threading / Pipe Macro (Chris Vine, Mark H Weaver)

2019-07-08 Thread Chris Vine
On Mon, 8 Jul 2019 23:10:28 +0200t Zelphir Kaltstahl wrote: > Hello Chris and hello Mark, > > Thank you both for posting your macros! This is really useful and I am > looking forward to using this in the next situation where there would be > deep nesting or where it seems appropriate in other

Re: Threading / Pipe Macro

2019-07-07 Thread Chris Vine
exp) > ((-> exp ... (op args ...)) > (op args ... (-> exp ...) > scheme@(guile-user)> (let ((t 'inner-t)) >(foo t)) > [t=global-t] inner-t > $2 = #t > scheme@(guile-user)

Re: Threading / Pipe Macro

2019-07-07 Thread Chris Vine
On Sun, 7 Jul 2019 21:16:13 +0100 Chris Vine wrote: > I need to think more about this and/or reproduce this later. > > This is with guile-2.2.6 by the way. OK, I did set up the test of your macro incorrectly (the one using syntax-rules): tested properly, as you say it produces [t

Re: Threading / Pipe Macro

2019-07-07 Thread Chris Vine
On Sun, 07 Jul 2019 15:30:36 -0400 Mark H Weaver wrote: > Hi Chris, > > Chris Vine writes: > > > I have a pipeline macro which sort-of mimics ML's |> pipeline operator > > which I use a lot: > > > > (define-syntax -> > > (lambda (x) >

Re: Threading / Pipe Macro

2019-07-07 Thread Chris Vine
On Sun, 7 Jul 2019 19:32:59 +0100 Chris Vine wrote: [snip] Text munge by the editor This: (list (loop (car rest) (cdrrest)))]) ^ should be: (list

Re: Threading / Pipe Macro

2019-07-07 Thread Chris Vine
On Sun, 7 Jul 2019 12:42:03 +0200 Zelphir Kaltstahl wrote: > Hi Guile Users! > > I recently looked at some online course about Elixir and saw an elegant > use of pipes (the operator `|>` in Elixir). Then I remembered, that in > Racket there are so called threading macros, which seem to

Re: fibers on a unix socket

2019-01-31 Thread Chris Vine
On Thu, 31 Jan 2019 17:43:42 +0100 Catonano wrote: > Hello > > in Fibers there's an example of a client connecting to a server > > I'd like to do the same thing BUT in my case the server provides a unix > socket. > > It's a unix socket provided by Postgresql. On Ubuntu it's here >

Re: GUI Framework Options

2018-10-14 Thread Chris Vine
On Fri, 12 Oct 2018 19:38:35 -0300 David Pirotte wrote: > Hi again, > > > ... > > No I didn't. I do remember we talked about this, but I can't find the > > emails we've > > exchanged about this, nor could I find a snipset to reproduce it (I must > > have lost > > these emails): with absolutely

Re: GUI Framework Options

2018-10-08 Thread Chris Vine
On Mon, 8 Oct 2018 16:12:53 -0300 David Pirotte wrote: > Hello, > > > > Is there somewhere a list of all GUI frameworks one can use with Guile > > > 2.2.3 or 2.2.4 (I think 2.2.4 is latest stable)? > > As Mike said, nothing usable at the moment if you 'are looking for and > 'absolutely > need'

Re: c99 support

2018-06-23 Thread Chris Vine
On Sat, 23 Jun 2018 22:12:39 +0200 Andy Wingo wrote: > Hi, > > Is there anyone who compiles Guile with a compiler that does not support > C99? If so, please give platform and compiler. > > I think my questions are limited to, in decreasing order of importance: > > * Is there any system that

Re: How to notice abrupt tcp connection losses in server/client?

2018-06-23 Thread Chris Vine
On Fri, 22 Jun 2018 22:17:51 +0200 Zelphir Kaltstahl wrote: [snip] > ... it returns 0 for end of file (what is the difference between this > and end of file object? R6RS states that "The end-of-file object is returned by various I/O procedures when they reach end of file". It can be obtained by

Re: How to notice abrupt tcp connection losses in server/client?

2018-06-22 Thread Chris Vine
On Fri, 22 Jun 2018 09:27:30 +0300 Eli Zaretskii wrote: > > Date: Fri, 22 Jun 2018 00:09:16 +0100 > > From: Chris Vine > > > > I think you will need to use recv! with windows, because you cannot > > read from sockets in windows using POSIX read(). > > Wha

Re: How to notice abrupt tcp connection losses in server/client?

2018-06-21 Thread Chris Vine
On Fri, 22 Jun 2018 00:19:49 +0200 Zelphir Kaltstahl wrote: > On 21.06.2018 18:00, guile-user-requ...@gnu.org wrote: > > From: Chris Vine [snip] > > The POSIX recv() function returns 0 on end of file (connection closed) > > so I expect the scheme recv! procedure does the sam

Re: How to notice abrupt tcp connection losses in server/client?

2018-06-21 Thread Chris Vine
On Thu, 21 Jun 2018 08:22:36 +0200 Zelphir Kaltstahl wrote: > Hello Guile users, > > I wrote some TCP server and client in Guile which I have uploaded here: > > https://gitlab.com/zelphir-kaltstahl-projects/guile-scheme-tutorials-and-examples/raw/dev/network-programming/tcp-client.scm > > and

Re: Using open-input-output-pipe

2018-01-22 Thread Chris Vine
> On 01/21/2018 12:31 PM, Edwin Watkeys wrote: > > > Hi all, > > > > I'm trying to write a procedure that processes some input through a > > unix utility. Open-input-output-pipe returns a bidirectional pipe > > that I can both read and write to. However, there is no way that I > > can figure out

Re: guile parser

2017-12-13 Thread Chris Vine
On Wed, 13 Dec 2017 14:07:18 + Chris Vine <vine.ch...@gmail.com> wrote: > Hi, > > The documentation for the LALR parser provided as part of guile in the > (system base lalr) module, formerly at > https://code.google.com/archive/p/lalr-scm/, is now unavailable with > th

guile parser

2017-12-13 Thread Chris Vine
Hi, The documentation for the LALR parser provided as part of guile in the (system base lalr) module, formerly at https://code.google.com/archive/p/lalr-scm/, is now unavailable with the closure of google code. Does anyone know of an alternative location for the documentation? Chris

Re: GC thread performance

2017-12-02 Thread Chris Vine
On Sat, 02 Dec 2017 10:50:29 +0200 Marko Rauhamaa wrote: > Linas Vepstas : > > I cannot speak to GC, but I freuqently encounter situations in guile > > where using the parallel constructs e.g. par-for-each, end up > > running slower than the

Re: Repeat syntax

2017-11-25 Thread Chris Vine
On Fri, 24 Nov 2017 20:05:26 -0900 Christopher Howard wrote: > Hi list, I want to have a function > > (repeat n exp exp* ...) > > That calls the expressions n times for side effect, like for-each, but > without the bother of dealing with a list. It seems like

Re: http response: can't read body

2017-10-23 Thread Chris Vine
On Mon, 23 Oct 2017 05:29:54 -0700 Matt Wette <matt.we...@gmail.com> wrote: > > On Oct 23, 2017, at 2:36 AM, Chris Vine <vine35792...@gmail.com> > > wrote: > > > > On Sun, 22 Oct 2017 15:25:54 -0700 > > Matt Wette <matt.we...@gmail.com> wrote: &g

Re: http response: can't read body

2017-10-23 Thread Chris Vine
On Sun, 22 Oct 2017 15:25:54 -0700 Matt Wette wrote: > I'm using Guile 2.2.2 web api and I can't get the body. > > I'm getting a response from (http-get ). > The (response-code resp) is 200. > The value I get back from (response-body-port resp) says #t for port? > and

Re: Guile bugs

2017-09-19 Thread Chris Vine
On Tue, 19 Sep 2017 21:18:40 +0100 Chris Vine <vine35792...@gmail.com> wrote: > ... Ports are also not thread safe (rightly so in my view), and I > believe that extends to the global stdout and stdin ports. By that I mean that any one port object is not thread safe against concurren

Re: Guile bugs

2017-09-19 Thread Chris Vine
On Tue, 19 Sep 2017 19:04:21 +0800 Linas Vepstas wrote: > On Fri, Sep 15, 2017 at 3:56 PM, Ludovic Courtès wrote: [snip] > > That said, if you run a REPL server in a separate thread and mutate > > the global state of the program, you could possibly crash

Re: Compiling - won't use from site-dir?

2017-09-13 Thread Chris Vine
On Tue, 12 Sep 2017 20:05:54 -0800 Christopher Howard wrote: > Hi, as reading in guile manual section "Modules and the File System", > I installed my-module.scm to %site-dir and then my-module.go to %site- > dir. But when I run guile interpreter and use-modules

Re: Comparison operators for strings /and/ numbers?

2017-08-24 Thread Chris Vine
On Wed, 23 Aug 2017 22:05:37 -0800 Christopher Howard wrote: > Hi, in another lisp I have been working with, it has <, >, and == > (structure equality) operators which can take string arguments, number > arguments, or a mixture of both. But it seems in guile that

Re: Guile bugs

2017-07-21 Thread Chris Vine
On Fri, 21 Jul 2017 09:15:28 +0300 Marko Rauhamaa wrote: > Mark H Weaver : > > > Marko Rauhamaa writes: > > > >> l...@gnu.org (Ludovic Courtès): > >> > >>> libgc knows which regions it must scan and mmap’d regions like > >>> this are not

Re: dynamic-wind

2017-07-09 Thread Chris Vine
On Sun, 9 Jul 2017 11:09:25 -0300 Vítor De Araújo <vbuara...@sapo.pt> wrote: > On 09/07/2017 09:59, Chris Vine wrote: > > On Sun, 09 Jul 2017 00:34:13 +0300 > > Marko Rauhamaa <ma...@pacujo.net> writes: > >> Hm. Python's try/finally has several

Re: dynamic-wind

2017-07-09 Thread Chris Vine
On Sun, 09 Jul 2017 00:34:13 +0300 Marko Rauhamaa writes: > Hm. Python's try/finally has several uses in virtually every > program. > > Trouble is, Scheme's continuations make it impossible to know when > something is really final. > > In fact, implementing coroutines and

Re: dynamic-wind

2017-07-02 Thread Chris Vine
On Sun, 2 Jul 2017 08:00:58 +0200 Catonano wrote: > 2017-06-30 23:48 GMT+02:00 Panicz Maciej Godek > : > > It's very simple (at least from the point of view of a user) > > When it is tempting to write something like > > > > (define (within-context

Re: good tutorial on extending a c++ project with Guile ?

2017-06-26 Thread Chris Vine
On Mon, 26 Jun 2017 14:45:06 +0200 Samuel Barreto wrote: > Hi everyone, > > I want to create a Guile extension to a big C++-based project called > Bio++ (dedicated to bioinformatics and computational biology). > > However I failed to find a good and simple example on

Re: segmenation fault

2017-06-09 Thread Chris Vine
On Fri, 9 Jun 2017 10:17:18 +0200 Catonano wrote: > 2017-06-09 10:00 GMT+02:00 Amirouche Boubekki > : > > > It's something like (bytevector->pointer (make-vector)) there is a > > make-double-pointer procedure in guile git > > Thank you !! > >

Re: question about atomics

2017-05-26 Thread Chris Vine
On Fri, 26 May 2017 13:42:39 +0200 joa...@verona.se wrote: > Chris Vine <vine35792...@gmail.com> writes: > > > On Fri, 26 May 2017 12:37:47 +0200 > > joa...@verona.se wrote: > >> Hello, > >> > >> I'm making a simple program that pro

Re: question about atomics

2017-05-26 Thread Chris Vine
On Fri, 26 May 2017 12:37:47 +0200 joa...@verona.se wrote: > Hello, > > I'm making a simple program that processes a lot of mail in separate > guile threads. > > I would like a counter of how many messages have been processed so I > made an attempt with atomics. > > first: > (define

Re: Guile benchmark

2017-02-28 Thread Chris Vine
On Tue, 28 Feb 2017 11:28:32 +0100 Arne Babenhauserheide <arne_...@web.de> wrote: > Chris Vine <ch...@cvine.freeserve.co.uk> writes: > > > On Mon, 27 Feb 2017 21:00:54 +0100 > > Andy Wingo <wi...@pobox.com> wrote: > >> Hi, > >> > >>

Re: Guile benchmark

2017-02-27 Thread Chris Vine
On Mon, 27 Feb 2017 21:00:54 +0100 Andy Wingo wrote: > Hi, > > On Thu 26 Jan 2017 09:39, Rchar writes: > > > I wanted to compare Guile scheme to other scheme implementations > > and I found > > this:https://ecraven.github.io/r7rs-benchmarks/benchmark.html

Re: guile can't find a chinese named file

2017-02-15 Thread Chris Vine
On Wed, 15 Feb 2017 13:41:24 +0100 wrote: [snip] > What I don't like about the fluid is that it still doesn't give you > an escape hatch in hard cases (your USB stick example). The program would just have to document that any mount point must have a path in a character set (eg

Re: guile can't find a chinese named file

2017-02-15 Thread Chris Vine
On Wed, 15 Feb 2017 10:18:32 +0100 <to...@tuxteam.de> wrote: > On Tue, Feb 14, 2017 at 10:19:14PM +0000, Chris Vine wrote: [snip] > > Filenames and locales are not necessarily related. When you access > > a networked file system, you get the filename encoding you are > &

Re: guile can't find a chinese named file

2017-02-14 Thread Chris Vine
On Tue, 14 Feb 2017 21:52:01 + (UTC) Mike Gran wrote: [snip] > > In particular, filenames are *not*, nor can they be mapped to, > > Unicode > > > strings in Linux. > > True. Linux should follow OpenBSD and make all locales UTF-8. Filenames and locales are not

Re: Help formatting a UTC Timestamp

2017-02-14 Thread Chris Vine
On Tue, 14 Feb 2017 12:27:16 + Guy Baumann wrote: > I am trying to format a timestamp from an api. It is sent in the > format "2011-03-24T20:30:47Z" > > what I want to output is something like this > (strftime "%d %b %g " (localtime (current-time)) ) > > However I am

Re: Can't use dynamic-link with any shared object file

2016-12-26 Thread Chris Vine
On Mon, 26 Dec 2016 09:25:00 -0800 saffronsn...@hushmail.com wrote: > Hello, > I am working on a project that involves writing some core > functionality in C/C++ and composing behavior in Guile (as I > understand it, this one of the ways that Guile was intended to be > used). However, I cannot

Re: Passing objects between threads

2016-09-12 Thread Chris Vine
On Mon, 12 Sep 2016 21:58:02 +0200 Panicz Maciej Godek wrote: [snip] > Hah, both look rather complicated. I eventually followed Chris' > advice and > developed "my own" queues, which turned out to be a bit simplified > variant of his code: > > (use-modules (ice-9

Re: Passing objects between threads

2016-09-10 Thread Chris Vine
On Sat, 10 Sep 2016 22:16:22 +0200 Panicz Maciej Godek wrote: > I agree, it is a simple concept, and easily implementable using > condition variables. However, it would probably be nicer if guile > provided some standard solution, instead of forcing every programmer > to

Re: Modules and GOOPS

2016-07-31 Thread Chris Vine
On Fri, 29 Jul 2016 21:00:42 +0300 Marko Rauhamaa wrote: [snip] > More generally, take a look at http://www.delorie.com/gnu/docs/guile/guile-tut_10.html> and how > MAKE-CELL has been defined. That's true OOP without classes or slots. For that simple kind of use you might as

Re: anyone define port types?

2016-06-23 Thread Chris Vine
On Thu, 23 Jun 2016 09:36:48 +0200 Andy Wingo wrote: [snip] > Excellent. Though I think that eventually we will want to bless one > of these concurrency patterns as the default one, we're a long way > away from that, and even if we do bless one I think we will always > want to

Re: anyone define port types?

2016-06-22 Thread Chris Vine
On Mon, 20 Jun 2016 10:01:57 +0100 Chris Vine <ch...@cvine.freeserve.co.uk> wrote: > On Mon, 20 Jun 2016 09:34:26 +0200 > Andy Wingo <wi...@pobox.com> wrote: > [snip] > > I must not be communicating clearly because this is definitely not > > what I am propo

  1   2   >