Rob Browning
17281519df
srfi-1 append-reverse: move from C to Scheme
...
* libguile/srfi-1.c (scm_srfi1_append_reverse): delete.
* libguile/srfi-1.h (scm_srfi1_append_reverse): delete.
* module/srfi/srfi-1.scm: add append-reverse.
2024-07-30 19:11:34 -05:00
Rob Browning
c62d2962d4
srfi-1 concatenate concatenate!: move from C to Scheme
...
* libguile/srfi-1.c (scm_srfi1_concatenate, scm_srfi1_concatenate_x): delete.
* libguile/srfi-1.h (scm_srfi1_concatenate, scm_srfi1_concatenate_x): delete.
* module/srfi/srfi-1.scm: add concatenate and concatenate!.
2024-07-30 18:54:45 -05:00
Rob Browning
a816b2484b
srfi-1 delete delete!: move from C to Scheme
...
* libguile/srfi-1.c (scm_srfi1_delete, scm_srfi1_delete_x): delete.
* libguile/srfi-1.h (scm_srfi1_delete, scm_srfi1_delete_x): delete.
* module/srfi/srfi-1.scm: add delete and delete!.
2024-07-30 18:54:45 -05:00
Rob Browning
c5f26d4c27
srfi-1 remove!: move from C to Scheme
...
* libguile/srfi-1.c (scm_srfi1_remove_x): delete.
* libguile/srfi-1.h (scm_srfi1_remove_x): delete.
* module/srfi/srfi-1.scm: add remove!.
2024-07-30 18:54:45 -05:00
Rob Browning
03d4a3b5df
srfi-1 remove: move from C to Scheme
...
The Scheme implementation is an adapted version of the approach used by
delete-duplicates, which allows sharing any common tail.
* libguile/srfi-1.c (scm_srfi1_remove): delete.
* libguile/srfi-1.h (scm_srfi1_remove): delete.
* module/srfi/srfi-1.scm: add remove.
2024-07-30 18:54:45 -05:00
Rob Browning
aa44035ee8
srfi-1 list-copy: move from C to Scheme
...
* libguile/srfi-1.c (scm_srfi1_list_copy): delete.
* libguile/srfi-1.h (scm_srfi1_list_copy): delete.
* module/srfi/srfi-1.scm: add list-copy.
* test-suite/tests/srfi-1.test: ensure copied spine is independent.
2024-07-30 18:54:45 -05:00
Andy Wingo
6c5cdd73c9
refactor pcc. no functional change
2024-07-29 11:31:52 +02:00
Andy Wingo
22f5b44330
Docs docs
2024-07-27 22:34:43 +02:00
Andy Wingo
50e90a026a
Docs docs
2024-07-27 22:33:56 +02:00
Andy Wingo
3ce0899729
Docs docs
2024-07-27 22:32:08 +02:00
Andy Wingo
9b2677a57b
Docs docs
2024-07-27 22:30:42 +02:00
Andy Wingo
cc6b1c1fb5
typos
2024-07-27 22:28:55 +02:00
Andy Wingo
ab5071f97a
Rework docs
2024-07-27 22:26:24 +02:00
Rob Browning
6bd70136d9
Ensure GUILE-VERSION changes propagate to .version and Makefiles
...
Have .version depend on the Makefile, and move our
CONFIG_STATUS_DEPENDENCIES setting to an AC_SUBST, as recommended by the
automake info pages "Rebuilding Makefiles" section, so that changes to
GUILE-VERSION will update the VERSION, etc. in the generated Makefiles.
* Makefile.am (CONFIG_STATUS_DEPENDENCIES): drop.
($(top_srcdir/.version)): depend on Makefile.
* configure: add GUILE-VERSION to CONFIG_STATUS_DEPENDENCIES via
AC_SUBST.
2024-07-26 16:37:41 -05:00
Andy Wingo
3d4d4d047c
Fix BDW finalization; ensure pending set is marked
2024-07-24 10:01:16 +02:00
Andy Wingo
c7309a9657
Ensure fired finalizers are traced
2024-07-24 09:54:15 +02:00
Andy Wingo
068e0e5cdf
Add benchmark for finalizers
...
Doesn't quite work on BDW yet.
2024-07-24 09:51:56 +02:00
Andy Wingo
f6057184e1
Add finalizers
2024-07-23 22:33:29 +02:00
Richard Sent
8535682dda
doc: Mention how to remove namespaces in xml->sxml.
...
* doc/ref/sxml.texi (Reading and Writing XML): Document behavior of #f
namespace prefix.
This documents behavior discussed in
https://lists.gnu.org/archive/html/guile-user/2024-07/msg00013.html .
2024-07-23 08:23:43 +02:00
Ludovic Courtès
15a656a77a
guix: Run one cross-compilation build out-of-tree.
...
* .guix/manifest.scm (out-of-source-tree): New procedure.
(cross-builds): Use it.
2024-07-17 00:02:24 +02:00
Ludovic Courtès
c117f8edc4
build: Fix in-tree cross-compilation build.
...
Commit 57a889b728
fixed out-of-tree
cross-compilation builds but broke in-tree cross-compilation builds.
With this change, we should have both.
* libguile/Makefile.am (gen-scmconfig.$(OBJEXT)): Use ‘-iquote’ instead
of ‘-I’.
2024-07-17 00:00:00 +02:00
Rob Browning
ad1f56675b
test-hashing: support 32-bit
...
* test-suite/standalone/test-hashing.c (test_hashing): add expected
value for 32-bit architectures.
2024-07-12 17:49:45 -05:00
Rob Browning
d99ae68f88
define-meta-command: mention effects of a missing category
...
module/system/repl/command.scm: add comment.
2024-07-12 17:49:45 -05:00
Andy Wingo
9167dbb5f6
Fix returning partially allocated blocks that are actually full
2024-07-12 09:06:26 +02:00
Andy Wingo
64c7d73fa2
Add partially allocated block list.
...
Stopping a mutator or evacuator adds to this list.
2024-07-11 22:15:59 +02:00
Andy Wingo
c556dedb56
Add pcc collector to docs
2024-07-11 21:07:26 +02:00
Andy Wingo
d5ef140dfe
Add parallel copying collector
2024-07-11 15:54:15 +02:00
Andy Wingo
c226570a81
Fix parallel tracer to force workers to be stopped during pauses
2024-07-11 15:54:15 +02:00
Andy Wingo
5084730471
Add parallel root-tracing phase
2024-07-11 15:54:11 +02:00
Andy Wingo
ff1e1b1d44
whippet: avoid an atomic load when visiting already-marked objects
2024-07-10 11:50:08 +02:00
Andy Wingo
d50455ed1b
Add new gc_atomic_forward_object_size API
...
Also remove an unused function in whippet.c
2024-07-10 11:50:05 +02:00
Andy Wingo
247f9432a4
Tighten up typing of trace workers and trace worker data
2024-07-08 18:44:24 +02:00
Andy Wingo
5ff78f01c8
Add gc_trace_worker_call_with_data
...
Goal is to pass thread-local evacuation buffers.
2024-07-08 18:10:18 +02:00
Andy Wingo
ac5d546481
Remove heap_tracer; get to heap from tracer directly
2024-07-08 17:35:58 +02:00
Andy Wingo
ba9459ce56
Rework tracer API to pass tracer to all functions
2024-07-08 17:29:24 +02:00
Andy Wingo
921c012b51
Add gc_ prefix to tracer API
2024-07-08 17:15:00 +02:00
Andy Wingo
b4543ad641
Factor out tracer interface to own file
2024-07-08 14:38:15 +02:00
Andy Wingo
82afee8693
Break simple serial worklist out to its own file
2024-07-08 11:49:47 +02:00
Andy Wingo
4c6f1b6cef
Break local worklist out to its own file
2024-07-08 10:49:46 +02:00
Andy Wingo
dd3953ef1a
Factor trace deque out to shared-worklist.h
...
Also increase alignment to account for cache line prefetcher.
2024-07-08 10:42:58 +02:00
Andy Wingo
b4bf949df6
Add Guix manifest.scm
2024-07-03 10:38:55 +02:00
Maxim Cournoyer
522f368719
bug#71304: [PATCH] Add support for 'else' clause in R7RS cond-expand.
...
* module/ice-9/r7rs-libraries.scm (define-library)
<handle-cond-expand>: Add a pattern to match an 'else' clause.
Series-to: bug-guile@gnu.org
2024-07-01 23:38:01 +02:00
Andy Wingo
b2cc237a02
Fix distcheck problems with parallel tests
...
* test-suite/Makefile.am (EXTRA_DIST): Add (test-lib lib automake)
(TEST_LOG_DRIVER): Use srcdir.
2024-06-23 23:26:47 +02:00
Andy Wingo
b124f251fc
Bump version to 3.0.10.
...
* GUILE-VERSION (GUILE_MICRO_VERSION):
(LIBGUILE_INTERFACE_CURRENT):
(LIBGUILE_INTERFACE_AGE): Bump.
2024-06-23 22:30:49 +02:00
Andy Wingo
c97d037cfa
Add NEWS note about parallel tests
...
* NEWS: Add note.
2024-06-23 21:45:54 +02:00
Andy Wingo
b93dc62e03
Fix parallel test bug in r6rs-ports.test
...
* test-suite/tests/r6rs-ports.test (test-file): Use different file from
ports.test, to avoid problems during parallel tests.
2024-06-23 21:43:05 +02:00
Andy Wingo
1120efe375
Fix race in check-guile to make needless guile-procedures symlink
...
* check-guile.in (top_srcdir): Don't try to make guile-procedures.tx, as
this races with multiple checkers, and it's gross.
* meta/uninstalled-env.in (GUILE_DOCSTRINGS_PATH): Instead when
uninstalled, use this variable.
* module/ice-9/documentation.scm (documentation-files): Remove the
current directory from the search path for documentation files; this was
always a hack. Instead allow GUILE_DOCSTRINGS_PATH to override the
built-in search path.
2024-06-23 11:13:18 +02:00
Andy Wingo
d7ed457620
Ensure the signal-delivery thread is completely stopped before fork
...
* libguile/scmsigs.c: Use raw pthread_create / pthread_join instead of
Guile's scm_spawn_thread, to ensure that the thread is entirely stopped
before a fork.
* libguile/scmsigs.h (scm_i_is_signal_delivery_thread): New internal
procedure, replacing a manual check against scm_i_signal_delivery_thread.
* libguile/threads.c: Use the new procedure.
Based on a patch by Rob Browning. Thanks!
2024-06-21 11:11:46 +02:00
Rob Browning
0a8a1eb595
Document wait-condition-variable's spurious returns
2024-06-20 15:57:26 +02:00
Andy Wingo
2a4c095f79
Avoid stompling user TESTS_ENVIRONMENT var
...
* test-suite/standalone/Makefile.am (top_srcdir): Use
AM_TESTS_ENVIRONMENT.
2024-06-20 15:54:53 +02:00