unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#49440] [PATCH core-updates]: Compile bdw-gc with support for disclaim procedures
@ 2021-07-06 15:00 Maxime Devos
  2021-07-09 19:12 ` Maxime Devos
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Maxime Devos @ 2021-07-06 15:00 UTC (permalink / raw)
  To: 49440


[-- Attachment #1.1: Type: text/plain, Size: 421 bytes --]

Hi guix,

Disclaim procedures do not seem to be used in the wild,
but seem useful for implementing ephemerons in Guile
(to be investigated), hence this patch.

Guile seems to start building fine when using a bdw-gc packave
with "--enable-disclaim" added (I'm using (package (inherit ...) ...),
but that was on master. I'll verify on core-updates, but building
things will take some time.

Greetings,
Maxime.

[-- Attachment #1.2: Type: text/x-patch, Size: 1294 bytes --]

From 34f32618f8f9099eabbd7734337f455aa1c7e150 Mon Sep 17 00:00:00 2001
From: Maxime Devos <maximedevos@telenet.be>
Date: Tue, 6 Jul 2021 16:50:39 +0200
Subject: [PATCH core-updates] gnu: bdw-gc: Compile with support for disclaim
 procedures.

Disclaim procedures do not seem to be used in the wild,
but seem useful for implementing ephemerons in Guile
(to be investigated).

* gnu/packages/bdw-gc.scm
  (libgc)[arguments]<#:configure-flags>: Add --enable-disclaim.
---
 gnu/packages/bdw-gc.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/bdw-gc.scm b/gnu/packages/bdw-gc.scm
index 0d82889bac..dfa9a61101 100644
--- a/gnu/packages/bdw-gc.scm
+++ b/gnu/packages/bdw-gc.scm
@@ -4,6 +4,7 @@
 ;;; Copyright © 2016, 2018 Leo Famulari <leo@famulari.name>
 ;;; Copyright © 2017 Rene Saavedra <rennes@openmailbox.org>
 ;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -47,6 +48,9 @@
        ;; Install gc_cpp.h et al.
        "--enable-cplusplus"
 
+       ;; Support GC_finalized_malloc and disclaim procedures.
+       "--enable-disclaim"
+
        ;; Work around <https://github.com/ivmai/bdwgc/issues/353>.
        "--disable-munmap"
 
-- 
2.32.0


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* [bug#49440] [PATCH core-updates]: Compile bdw-gc with support for disclaim procedures
  2021-07-06 15:00 [bug#49440] [PATCH core-updates]: Compile bdw-gc with support for disclaim procedures Maxime Devos
@ 2021-07-09 19:12 ` Maxime Devos
  2021-07-21 14:30 ` Ludovic Courtès
  2022-09-06 11:51 ` bug#49440: " Maxime Devos
  2 siblings, 0 replies; 5+ messages in thread
From: Maxime Devos @ 2021-07-09 19:12 UTC (permalink / raw)
  To: 49440

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

Maxime Devos schreef op di 06-07-2021 om 17:00 [+0200]:
> Hi guix,
> 
> Disclaim procedures do not seem to be used in the wild,
> but seem useful for implementing ephemerons in Guile
> (to be investigated), hence this patch.
> 
> Guile seems to start building fine when using a bdw-gc packave
> with "--enable-disclaim" added (I'm using (package (inherit ...) ...),
> but that was on master. I'll verify on core-updates, but building
> things will take some time.

FWIW, I ran "./pre-inst-env guix build guile" and it succeeded.

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* [bug#49440] [PATCH core-updates]: Compile bdw-gc with support for disclaim procedures
  2021-07-06 15:00 [bug#49440] [PATCH core-updates]: Compile bdw-gc with support for disclaim procedures Maxime Devos
  2021-07-09 19:12 ` Maxime Devos
@ 2021-07-21 14:30 ` Ludovic Courtès
  2021-07-21 19:07   ` Maxime Devos
  2022-09-06 11:51 ` bug#49440: " Maxime Devos
  2 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2021-07-21 14:30 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 49440

Hi Maxime,

Maxime Devos <maximedevos@telenet.be> skribis:

> Disclaim procedures do not seem to be used in the wild,
> but seem useful for implementing ephemerons in Guile
> (to be investigated), hence this patch.
>
> Guile seems to start building fine when using a bdw-gc packave
> with "--enable-disclaim" added (I'm using (package (inherit ...) ...),
> but that was on master. I'll verify on core-updates, but building
> things will take some time.

I have a slight preference for delaying ‘--enable-disclaim’ until we
have software that actually needs it.

WDYT?

Thanks,
Ludo’.




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

* [bug#49440] [PATCH core-updates]: Compile bdw-gc with support for disclaim procedures
  2021-07-21 14:30 ` Ludovic Courtès
@ 2021-07-21 19:07   ` Maxime Devos
  0 siblings, 0 replies; 5+ messages in thread
From: Maxime Devos @ 2021-07-21 19:07 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 49440

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

Ludovic Courtès schreef op wo 21-07-2021 om 16:30 [+0200]:
> I have a slight preference for delaying ‘--enable-disclaim’ until we
> have software that actually needs it.
> 
> WDYT?

Makes sense to me.  I'll send a ping if (when?) I actually patch
Guile to use disclaim procedures.

The idea was to use ‘disclaim procedures’ for implementing ephemeral
hash tables (apparently ephemeral (not merely weak) hash tables are
required in ‘Spritely Goblins’, which currently only supports Racket
but Christopher Lemmer Webber intends to port to Guile at some point
or so I've understood).

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* bug#49440: [PATCH core-updates]: Compile bdw-gc with support for disclaim procedures
  2021-07-06 15:00 [bug#49440] [PATCH core-updates]: Compile bdw-gc with support for disclaim procedures Maxime Devos
  2021-07-09 19:12 ` Maxime Devos
  2021-07-21 14:30 ` Ludovic Courtès
@ 2022-09-06 11:51 ` Maxime Devos
  2 siblings, 0 replies; 5+ messages in thread
From: Maxime Devos @ 2022-09-06 11:51 UTC (permalink / raw)
  To: 49440-done


[-- Attachment #1.1.1: Type: text/plain, Size: 152 bytes --]

wingo has been working on a new GC for guile that supports ephemerals, 
so I don't think this patch will be necessary anymore.

Closing,
Maxime.


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

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

end of thread, other threads:[~2022-09-06 13:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-06 15:00 [bug#49440] [PATCH core-updates]: Compile bdw-gc with support for disclaim procedures Maxime Devos
2021-07-09 19:12 ` Maxime Devos
2021-07-21 14:30 ` Ludovic Courtès
2021-07-21 19:07   ` Maxime Devos
2022-09-06 11:51 ` bug#49440: " Maxime Devos

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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