Re: The Guile junk drawer and a C plea

2024-06-29 Thread Thompson, David
Hi Mikael, On Sat, Jun 29, 2024 at 3:38 AM Mikael Djurfeldt wrote: > > Your two points sound good. > > However, I personally hope that Guile will continue to be friendly towards > those using it as an embedded language. There, a C API is important. There > *is* a downside in moving to Scheme fr

Re: The Guile junk drawer and a C plea

2024-06-29 Thread Thompson, David
Hi Richard, On Sat, Jun 29, 2024 at 3:02 PM Richard Sent wrote: > > I see my little patch has ignited a comparatively oversized firestorm. > Oops. ;) I wasn't sure if my email would get 0 replies or a lot of replies... but the latter happened. I just want to be clear that this is *not* a judgeme

The Guile junk drawer and a C plea (was: [PATCH] Add nondestructive delq1, delv1, and delete1.)

2024-06-28 Thread Thompson, David
Hi Richard and all other Guilers, too, What follows is not code review, but your patch felt like an opportunity to provide some commentary about the trajectory of Guile development that I've wanted to share for awhile. First, I think Guile's default environment is a total mess. It's the very def

Re: Guile 64-bit Windows support, redux

2024-03-29 Thread Thompson, David
On Sat, Mar 23, 2024 at 11:09 AM Jonas Hahnfeld wrote: > > On Wed, 2024-03-20 at 16:40 -0400, Thompson, David wrote: > > On Wed, Mar 20, 2024 at 4:29 PM Jonas Hahnfeld wrote: > > > So I can confirm that JIT indeed doesn't work right now on 64-bit > > > Min

Re: Guile 64-bit Windows support, redux

2024-03-20 Thread Thompson, David
On Wed, Mar 20, 2024 at 4:29 PM Jonas Hahnfeld wrote: > > So I can confirm that JIT indeed doesn't work right now on 64-bit > MinGW, but it's relatively easy to fix (first patch). In essence > lightening was getting the calling convention wrong. Wow! Have you seen the JIT do its thing (via GUILE_

Re: Guile 64-bit Windows support, redux

2024-02-07 Thread Thompson, David
On Wed, Feb 7, 2024 at 3:19 PM Jonas Hahnfeld wrote: > > On Wed, 2024-02-07 at 09:19 -0500, Thompson, David wrote: > > On Thu, Jan 4, 2024 at 5:40 AM Jonas Hahnfeld via Developers list for > > Guile, the GNU extensibility library wrote: > > > > > > On T

Re: Guile 64-bit Windows support, redux

2024-02-07 Thread Thompson, David
On Thu, Jan 4, 2024 at 5:40 AM Jonas Hahnfeld via Developers list for Guile, the GNU extensibility library wrote: > > On Tue, 2023-11-28 at 22:04 +0100, Jonas Hahnfeld wrote: > > > > Ping, any comments on this approach? I built binaries for LilyPond > > 2.25.10 using these patches applied on top o

Re: The message chain with an happy ending

2023-07-05 Thread Thompson, David
On Wed, Jul 5, 2023 at 6:43 AM Blake Shaw via Developers list for Guile, the GNU extensibility library wrote: > > I think the guile mailing list has come to suffer seriously from a policing > of what is appropriate for discussion. When I first started getting into > guile at the beginning of 202

[EXT] Guile 64-bit Windows support, redux

2023-06-06 Thread Thompson, David
Hi Mike, On Tue, Jun 6, 2023 at 4:51 PM Mike Gran wrote: > > Hello Guile, > > There have been a few times where I made Guile work on > MinGW -- usually the 32-bit, unthreaded variety -- because I wanted it > for my own entertainment. Often around the time of the Lisp Game Jam. > The Game Jam jus

Re: Functional datatypes in Guile

2023-02-28 Thread Thompson, David
Hi pukkamustard, On Tue, Feb 28, 2023 at 3:34 AM pukkamustard wrote: > > > I've been using SRFI-146 > (https://srfi.schemers.org/srfi-146/srfi-146.html) for functional > mappings. There's a Guile port: > https://inqlab.net/git/guile-srfi-146.git/ (also in Guix - > guile-srfi-146). Your Guile por

Re: GNU Guile 3.0.9rc1 available for testing!

2023-01-20 Thread Thompson, David
Hi Ludo, On Fri, Jan 20, 2023 at 10:58 AM Ludovic Courtès wrote: > > Please report any issues you may find. I’m particularly interested in > portability regressions (NetBSD and other BSDs, macOS, MinGW, as well as > architectures other than x86_64). I was curious about the MinGW build, so I use

Re: [EXT] Re: [PATCH] Add 'bytevector-slice'.

2023-01-11 Thread Thompson, David
On Wed, Jan 11, 2023 at 12:34 PM Ludovic Courtès wrote: > > What could be convenient though is ‘bytevector-copy’ (no bang), which > would combine ‘make-bytevector’ + ‘bytevector-copy!’. 'bytevector-copy' already exists, or do you mean some different implementation of it? - Dave

Re: [PATCH] Add 'bytevector-slice'.

2023-01-11 Thread Thompson, David
Hi Ludovic, On Wed, Jan 11, 2023 at 10:00 AM Ludovic Courtès wrote: > > +@node Bytevector Slices > +@subsubsection Bytevector Slices > + > +@cindex subset, of a bytevector > +@cindex slice, of a bytevector > +@cindex slice, of a uniform vector > +As an extension to the R6RS specification, the @co

Re: Relaxing the copyright assignment policy

2022-10-06 Thread Thompson, David
Hi Ludovic and Andy, Great news! Thanks for lowering the barrier to entry for new contributors! - Dave

Re: [EXT] (ice-9 base64)?

2022-08-16 Thread Thompson, David
+1 to that. I do the same thing in my own projects. Guix does it, too. - Dave On Tue, Aug 16, 2022 at 12:11 PM Aleix Conchillo Flaqué < aconchi...@gmail.com> wrote: > Hi, > > In many projects I've been copying Göran Weinholt's base64 implementation > and I've also seen it in other projects, woul

Re: guile 3 update, halloween edition

2019-10-30 Thread Thompson, David
On Wed, Oct 30, 2019 at 4:55 PM Andy Wingo wrote: > > Thoughts welcome! Also: should these structured error objects be named > exceptions or conditions? SRFI-35, R6RS, and R7RS say "conditions", but > racket and my heart say "exceptions"; wdyt? I think "exceptions" is a better name for the reas

Re: conflicts in the gnu project now affect guile

2019-10-18 Thread Thompson, David
On Fri, Oct 18, 2019 at 9:33 AM Christopher Lemmer Webber wrote: > > Mark H Weaver writes: > > > [resending with fixed headers, for proper threading] > > > > Hi Christopher, > > > > Christopher Lemmer Webber wrote: > >> I think *RMS's* action of unilaterally re-appointing Mark without > >> notify

Re: conflicts in the gnu project now affect guile

2019-10-16 Thread Thompson, David
On Wed, Oct 16, 2019 at 9:14 AM Andy Wingo wrote: > > Perhaps this moment is an opportunity, to see where the Guile community > stands. In that spirit I invite Guile community members to weigh in on > the issue. What do you think about Guile's continued relationship with > GNU? What about its r

Re: [ANN] Guile-SDL2 0.4.0 released

2019-06-02 Thread Thompson, David
Apologies! Meant to send to guile-user. :(

[ANN] Guile-SDL2 0.4.0 released

2019-06-02 Thread Thompson, David
I'm happy to announce that Guile-SDL2 0.4.0 has been released! Guile-SDL2 provides bindings for the SDL2 game programming library. The bindings are written in pure Scheme using Guile's foreign function interface. This release features several new bindings: * SDL_BlitScaled * SDL_BlitSurface * SDL

unboxing floats in libguile procedures that always return floats?

2018-12-04 Thread Thompson, David
Hello all, Guile's current floating point unboxing optimizations are great and have helped me immensely, but they still leave something to be desired. I often find myself often calling libguile procedures such as sin, cos, and random:uniform. These procedures always return floats, yet Guile alway

Re: Guile 3 update, August edition

2018-08-24 Thread Thompson, David
On Mon, Aug 20, 2018 at 10:27 AM, Andy Wingo wrote: > In this particular example, the JITted code runs about 3x faster than > the interpreted code. The JIT doesn't do register allocation; not sure > precisely how to do that. A future topic. For the moment I want to > consolidate what we have an

Re: Simple picture language

2018-03-27 Thread Thompson, David
On Mon, Mar 26, 2018 at 5:51 PM, Ricardo Wurmus wrote: > Hi Guilers, > > I wrote a simple SVG-based picture language. Wow! I never would have thought to use sxml to generate svg files. I always thought we would have to use cairo or some custom renderer in order to have a picture language. This is

Re: Website translations with Haunt

2017-12-14 Thread Thompson, David
Hey everyone! On Thu, Dec 14, 2017 at 4:16 AM, Ludovic Courtès wrote: > Hi! > > "pelzflorian (Florian Pelz)" skribis: > >> I want to ask for your thoughts on my new solution since translations >> are probably important to many Haunt users. In particular, I believe >> there was some discussion o

Re: What's required to include sxml->html?

2017-09-08 Thread Thompson, David
>From what I can tell, this is more-or-less my (haunt html) module [0] with the import/export syntax changed and a hack to special-case

Re: [PATCH] Add unboxed floating point comparison instructions.

2017-01-12 Thread Thompson, David
Hi Andy, On Mon, Jan 9, 2017 at 4:23 PM, Andy Wingo wrote: > On Mon 09 Jan 2017 02:09, "Thompson, David" writes: > >> + /* br-if-f64= a:12 b:12 invert:1 _:7 offset:24 > > Missing - before the =. > >> + /* br-if-f64< a:12 b:12 invert:1 _:7 offset:24 >

Re: [PATCH] Add unboxed floating point comparison instructions.

2017-01-09 Thread Thompson, David
Hi Andy, On Mon, Jan 9, 2017 at 4:23 PM, Andy Wingo wrote: > On Mon 09 Jan 2017 02:09, "Thompson, David" writes: > >> + /* br-if-f64= a:12 b:12 invert:1 _:7 offset:24 > > Missing - before the =. > >> + /* br-if-f64< a:12 b:12 invert:1 _:7 offset:

Re: [PATCH] Add unboxed floating point comparison instructions.

2017-01-08 Thread Thompson, David
Hi Andy, Thanks for the feedback. I believe this new patch addresses everything you asked me to fix. Am I in time for 2.1.6? ;) - Dave From bfd7b4f343c5f5cc8761c8d1fed1f61ba564a5dd Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 12 Dec 2016 22:46:08 -0500 Subject: [PATCH] Add unboxed fl

Re: [PATCH] Add unboxed floating point comparison instructions.

2017-01-04 Thread Thompson, David
Hello Andy and Mark, Thanks for taking the time to review this patch and bearing with me as a I stumble around the compiler. I've attached a new patch and have some additionally commentary below: On Wed, Dec 21, 2016 at 4:12 PM, Mark H Weaver wrote: > Andy Wingo writes: > >> I think &min/0 sho

Re: [PATCH] Add unboxed floating point comparison instructions.

2016-12-14 Thread Thompson, David
Here is an updated patch. All of the code is the same but I added docs in doc/ref/vm.texi. - Dave From 7d8017812a77489f362c2b9b97ee0988e5d3d7bc Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 12 Dec 2016 22:46:08 -0500 Subject: [PATCH] Add unboxed floating point comparison instructions.

Re: Slow compilation of guile-2.1.x

2016-11-28 Thread Thompson, David
On Mon, Nov 28, 2016 at 3:47 AM, Jan Synáček wrote: > On Fri, Nov 25, 2016 at 9:36 AM, wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On Fri, Nov 25, 2016 at 08:31:23AM +0100, Jan Synáček wrote: >>> Hello, >>> >>> while building guile-2.1.4 for Fedora, I noticed that the compil

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

2016-10-12 Thread Thompson, David
On Wed, Oct 12, 2016 at 11:49 AM, Nala Ginrut wrote: > But maybe we should provide both just like what php-fpm does? And let users > choose which one to use, localhost:port or unix socket. This is what Guile already does. - Dave

Re: Setting up CI for Guile

2016-10-06 Thread Thompson, David
On Thu, Oct 6, 2016 at 12:26 AM, Wilfred Hughes wrote: > Hi folks > > I'm a big fan of CI (automated testing), and maybe you are too. I'd > love to have CI for reviewing patches of Guile. This is a good idea. > So, I decided to set it up! This isn't something that's available on > GNU Savannah,

Re: fork pipe dup2 exec

2016-08-17 Thread Thompson, David
On Wed, Aug 17, 2016 at 9:35 AM, Tobias Reithmaier wrote: > Hello, > > is there a way to program a Inter Process Communication (IPC) in guile like > you do it with the Linux-Libc-API with the combo fork, pipe, dup2 and exec? > If you use the popen-module it's not the same because you have to wait

Re: Attempting to unbox struct fields

2016-02-29 Thread Thompson, David
On Mon, Feb 29, 2016 at 12:43 PM, Mark H Weaver wrote: > "Thompson, David" writes: > >>> The first thing I noticed is that the patch assumes that doubles are the >>> same size as pointers. Obviously this is not the case on 32-bit >>> systems. What&

Re: Attempting to unbox struct fields

2016-02-29 Thread Thompson, David
Hi Mark, On Sun, Feb 28, 2016 at 10:56 PM, Mark H Weaver wrote: > Hi David, > > "Thompson, David" writes: >> Here's a patch I came up with to enable (and fix where necessary) the >> support for signed integer and double struct fields. > > Great, thank

Re: Attempting to unbox struct fields

2016-02-28 Thread Thompson, David
Here's a patch I came up with to enable (and fix where necessary) the support for signed integer and double struct fields. Am I on the right track here? Thanks, - Dave From 8bde5c7018fde91cc7140777107bacfb3febb170 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 28 Feb 2016 16:11:35 -05

Re: random is not random

2016-02-13 Thread Thompson, David
On Sat, Feb 13, 2016 at 4:30 PM, Matt Wette wrote: > Every time I execute > $ guile -c '(simple-format #t "~S\n" (random 100))’ > I get the same result. > > Is this a bug? No. You need to initialize the random number generator with a different seed if you want different results. See 6.6.2.14 Ra

Re: Contributions to Guile

2016-02-08 Thread Thompson, David
On Mon, Feb 8, 2016 at 4:28 PM, Chad Albers wrote: > On Mon, Feb 8, 2016 at 2:05 PM, Christopher Allan Webber > wrote: >> Ludovic Courtès writes: >> >>> Christopher Allan Webber skribis: >>> Chad Albers writes: >>> >>> [...] >>> > b. More robust documentation system - texinfo is not the

Re: Guix as a Guile package manager

2016-01-09 Thread Thompson, David
On Sat, Jan 9, 2016 at 5:35 AM, Fabio Pesari wrote: > Package managers have been immensely successful in increasing the > popularity of programming languages - think about Perl's CPAN or Ruby's > Gem. But Guile doesn't a package manager, and that in my opinion slows > down its adoption. Many of u

Re: Reading data from a file descriptor

2015-11-15 Thread Thompson, David
On Sun, Nov 15, 2015 at 6:09 AM, Jan Synáček wrote: > On Fri, Nov 13, 2015 at 9:45 PM, Thompson, David > wrote: >> On Fri, Nov 13, 2015 at 3:41 PM, Jan Synáček wrote: >>> >>> I have an open fd to a unix socket and I want to read data from it. I >>> know th

Re: Reading data from a file descriptor

2015-11-13 Thread Thompson, David
On Fri, Nov 13, 2015 at 3:41 PM, Jan Synáček wrote: > > I have an open fd to a unix socket and I want to read data from it. I > know that the data is going to be only strings, but I don't know the > length in advance. The good thing about using read-string!/partial is, > that I don't have to speci

Re: [PATCH] Added Artanis info to new main page

2015-11-04 Thread Thompson, David
On Wed, Nov 4, 2015 at 4:27 PM, Mathieu Lirzin wrote: > On a more general topic, IIUC Artanis is not an “application” but a > library so maybe it is not a good idea to include it in (index-page) > since it uses the term “applications using Guile“ (The same problem will > apply to Sly I guess). W

Re: New logo and website design proposal

2015-10-10 Thread Thompson, David
On Fri, Oct 9, 2015 at 6:24 PM, Luis Felipe López Acevedo wrote: > On 2015-09-23 11:18, Luis Felipe López Acevedo wrote: >> >> >> With the feedback so far, I'm planning to make a revision of the >> mockup this weekend to include the suggested changes. >> > > Hi, > > I just finished an implementati

Re: New logo and website design proposal

2015-09-17 Thread Thompson, David
On Thu, Sep 17, 2015 at 10:59 AM, Luis Felipe López Acevedo wrote: > On 2015-09-16 03:19, Alex Sassmannshausen wrote: >> >> Beautiful! >> >> Like Chris, I love the demographically agnostic, yet incredibly inviting >> drawings. I also love the overall crisp and modern feel to the whole >> site inc

Re: [PATCH] web: http: Accept blank Content-Type headers.

2015-07-27 Thread Thompson, David
Apologies for the previous email. I seriously botched some keystrokes. On Mon, Jul 27, 2015 at 5:05 PM, Mark H Weaver wrote: > David Thompson writes: > >> I encountered a bug in the HTTP header parsing bug when trying to >> download a file via Guix. The response had a Content-Type header, but

Re: [PATCH] web: http: Accept blank Content-Type headers.

2015-07-27 Thread Thompson, David
On Mon, Jul 27, 2015 at 5:05 PM, Mark H Weaver wrote: > David Thompson writes: > >> I encountered a bug in the HTTP header parsing bug when trying to >> download a file via Guix. The response had a Content-Type header, but >> with no value, like so: >> >> Content-Type: >> >> From reading the

Re: Add support for record types in GOOPS methods?

2014-10-21 Thread Thompson, David
On Tue, Oct 21, 2014 at 11:37 AM, Panicz Maciej Godek wrote: > > Hi! > As I managed to find out, the (define-record-type t ...) also introduces a > GOOPS class named . Following your example, you'd need to define your > method in the following way: > > (define-method (foobar (foo <>)) > (foo-b

Simple hash table macro

2014-10-07 Thread Thompson, David
Hello Guile hackers, In the last release, a procedure called 'alist->hash-table' was introduced to provide a convenient way to convert an alist into a hash table. (use-modules (ice-9 hash-table)) (define myhash (alist->hash-table '(("parrots" . "nuts") ("monkeys" . "bananas")

Re: Use GNU standard for displaying backtraces?

2014-08-08 Thread Thompson, David
On Fri, Aug 8, 2014 at 2:22 PM, Jan Nieuwenhuizen wrote: > Trying to get Emacs's compilation-mode to support stepping down Guile > backtraces, I wrote some elisp code to determine the absolute file > name for incomplete relative files that come from Guile's load path, > e.g., ice/boot-9.scm. > [s

Re: [PATCH] Test for weak pairs in hash-for-each

2014-03-12 Thread Thompson, David
On Wed, Mar 12, 2014 at 2:45 AM, Mark H Weaver wrote: > David Thompson writes: > >> * libguile/hashtab.c (hash-for-each): Test for deleted weak pairs. > > Instead of (hash-for-each), it should be > (scm_internal_hash_for_each_handle). > > I went ahead and pushed it, with that change. > >Thank

Fwd: PATCH - Add cooperative REPL server module

2014-01-20 Thread Thompson, David
Forgot to CC the list about my updated patch. Forwarding instead. My apologies. - Dave -- Forwarded message -- From: David Thompson Date: Mon, Jan 20, 2014 at 6:31 PM Subject: Re: PATCH - Add cooperative REPL server module To: Mark H Weaver Mark H Weaver writes: > That mean

Re: [PATCH] Add procedures to convert alists into hash tables

2013-11-19 Thread Thompson, David
On Mon, Nov 18, 2013 at 11:06 PM, Mark H Weaver wrote: > David Thompson writes: >> Fixed texi docs and docstrings. > > Pushed to stable-2.0. Many thanks! :) > > Mark Yay! Thanks for reviewing.

Re: [PATCH] Add procedures to convert alists into hash tables

2013-11-06 Thread Thompson, David
On Wed, Nov 6, 2013 at 7:54 AM, Ludovic Courtès wrote: > David: would you be willing to do that? Apologies for my late comment, > and for the extra work involved. Your contributions are appreciated! Yes, I will do that. I agree that it would be for the best. Thanks, - Dave

Re: [PATCH] Add procedures to convert alists into hash tables

2013-10-30 Thread Thompson, David
On Tue, Oct 29, 2013 at 8:38 AM, Ludovic Courtès wrote: > I think it would make sense to implement them in Scheme, say in > ice-9/hash-table.scm, which could be either a separate module or a file > included from boot-9.scm. > > WDYT? Does anyone else feel that this is a better approach? My patch

Re: Guile talks at the GNU Hackers Meeting?

2013-06-24 Thread Thompson, David
I don't think using Skype would go over so well at a GNU hackers meeting. On Mon, Jun 24, 2013 at 2:16 PM, Shane Celis wrote: > Hi Luca, > > I'd be happy to give a talk regarding the Emacsy[1] GSoC project (video > here[2]). The travel costs, however, are a bit prohibitive for me (I'm a > Ph.D