Re: A Guile debugger workgroup?

2023-03-03 Thread Jan Nieuwenhuizen
Janneke Nieuwenhuizen writes: Fixing typos in peek-error. >From bf0f03090d73ea87f1be772010d6209b4372e78b Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Fri, 3 Mar 2023 11:26:34 +0100 Subject: [PATCH] Add peek-error, pke. Debuging using `pk' is popular in Guile, but not reall

Re: [PATCH 0/3] Add '-Wunused-module'

2023-02-12 Thread Jan Nieuwenhuizen
Ludovic Courtès writes: Hello, > The new ‘-Wunused-module’ warning is enabled at ‘-W2’ only. The main > reason for not enabling it at ‘-W1’ is that in the case of modules used > at macro-expansion time only, such as (srfi srfi-26), it cannot > determine whether a module is definitely unused. In

Re: GNU Guile 3.0.9rc1 available for testing!

2023-01-21 Thread Jan Nieuwenhuizen
``` Yeah, you need at least 76950b428 Support for x86_64-w64-mingw32. or something similar, or another approach for addressing the SIZEOF_LONG==4 issue on MinGW. And compile with --disable-jit, AFAIK nobody got that to work just yet. > Thanks for all the hard work on the release! +1 Greetings, Janneke -- Jan Nieuwenhuizen | GNU LilyPond https://lilypond.org Freelance IT https://JoyOfSource.com | Avatar® https://AvatarAcademy.com

Re: wip-mingw with x86_64 support updated for 3.0.8

2022-05-16 Thread Jan Nieuwenhuizen
Jan Nieuwenhuizen writes: Hello again, > I've reset and updated wip-mingw onto latest main: > > https://git.savannah.gnu.org/cgit/guile.git/log/?h=wip-mingw If you tried this with a recent Guix, you probably got a segfault. I finally found that compiling with -flto (--enabl

wip-mingw with x86_64 support updated for 3.0.8

2022-05-11 Thread Jan Nieuwenhuizen
MinGW to 'windows always: (let ((target (or "mingw" "FIXME" ((@ (system base target) target-type) Ugh. Ideas for a proper fix much appreciated! Other than that, guile-mingw can still be built by doing GUIX_PACKAGE_PATH=guix guix build guile-mingw Greetings

[PATCH v3] DRAFT Support for x86_64-w64-mingw32.

2021-03-21 Thread Jan Nieuwenhuizen
Jan Nieuwenhuizen writes: > Andy Wingo started a new discussion on libguile/bytevectors.c: > > 810 810static inline void > 811 811twos_complement (mpz_t value, size_t size) > 812 812{ > 813 - unsigned long bit_count; >813 +

[PATCH v2] DRAFT Support for x86_64-w64-mingw32.

2021-03-20 Thread Jan Nieuwenhuizen
Jan Nieuwenhuizen writes: Hello, > To get around this, the x86-64-MinGW port now requires the use of > mini-gmp. Mini-gmp has been changed to use mp_long and mp_ulong that > are defined to long long and unsigned long long on this platform. > > Because we do not always use mini-

[PATCH] DRAFT Support for x86_64-w64-mingw32.

2021-03-17 Thread Jan Nieuwenhuizen
Hi! On x86-64-MinGW the size of LONG is 4. As LONG is used for SCM_FIXNUM_BIT, that would mean incompatible .go files, and waste of cell space. So we would like to use LONG LONG, but the GMP interface uses LONG. To get around this, the x86-64-MinGW port now requires the use of mini-gmp. Mini-g

[PATCH wip-mingw-guile-2.2] mingw: Support for x86_64-w64-mingw32.

2020-08-14 Thread Jan Nieuwenhuizen
00) #x1fffFFFF)) -(else (error "unexpected word size" +(else (error "unexpected fixnum-size:" + (asm-fixnum-size asm) (lambda (fixnum-min fixnum-max) (and (<= fixnum-min x fixnum-max) (let ((fixnum-bits (if (negative? x) -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

Re: unhandled constant?

2020-02-02 Thread Jan Nieuwenhuizen
es () ...); see the manual. Combined with cond-expand, maybe that could work? janneke -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

Re: Logo baseline

2020-01-19 Thread Jan Nieuwenhuizen
and Python. When I look at GNU projects like Glibc or GCC moving from awk/sed/perl to Python for scripts instead of Guile I can't help thinking: Oh my, they are where I was 20 years ago; what a long path we still have before us. Greetings, janneke -- Jan Nieuwenhuizen | GNU LilyP

Re: [PATCH] Add string-replace-substring to (ice-9 string-fun)

2020-01-05 Thread Jan Nieuwenhuizen
hen I needed something like it. Would it be too much to ask for some documentation to go with it, so that we will be able to find it? Greetings, janneke -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

Guile and Mes [WAS: conflicts in the gnu project now affect guile]

2019-10-19 Thread Jan Nieuwenhuizen
next big target for Mes should be to remove define-macro support from eval_apply and load Guile's psyntax-pp.scm. Probably best to start playing with Guile stable-2.0 and first reduce psyntax.scm to the bare minimum, regenerate psyntax-pp.scm and get a easier success and work from that. Greeting

Re: conflicts in the gnu project now affect guile

2019-10-17 Thread Jan Nieuwenhuizen
ith the Guix bootstrap. Thank you for that! I am happy you have decided to come back. Greetings, jannneke -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

Re: FOSDEM 2019

2019-02-04 Thread Jan Nieuwenhuizen
ed :-), that was so amazing, thank you all! janneke -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

Re: Compiling guile-2.2.4 for mingw

2018-11-20 Thread Jan Nieuwenhuizen
t; 1) 0003-winsock-compat.mingw.patch > 2) 0004-start_child.mingw.patch What is the relation with or status of the wip-mingw-guile branch on savannah? http://git.savannah.gnu.org/cgit/guile.git/log/?h=wip-mingw-guile-2.2 Does this build on top of that, what would be needed to get wip-mingw-guile merg

[PATCH] debugger: Support generics. WIP.

2018-09-12 Thread Jan Nieuwenhuizen
- also find source locations in files that were compiled using (compile-file ... 'absolute) - have ,frame and ,backtrace use GNU style error messages (I worked on this long ago but only have an ugly solution) - have procedure parameters show up in ,locals - get Emacs GUD int

Re: [ANN] nyacc version 0.86.0 released

2018-09-08 Thread Jan Nieuwenhuizen
age, I found this one test (out of 102 tests) to fail: --8<---cut here---start->8--- int main () { int a = 0b11; } --8<---cut here---end--->8--- It works fine with 0.80.4* janneke -- Jan Nieuwenhuizen | GNU Lily

Re: c99 support

2018-06-24 Thread Jan Nieuwenhuizen
.e., less C code and perhaps a BOOTSTRAP define to remove all non-essential features and possibly target bootstrapping it before bootstrapping gcc or even tcc. I see C99 more as a feature than a problem. Nyacc supports C99, hardly any recent software can be built without it. Greetings,

Re: wip-bootstrap updated

2018-05-03 Thread Jan Nieuwenhuizen
x27;ll be looking at the tcc and MesCC compiler again. >> The plan is to replace the mes.M1 seed with mes.M2 > Exciting. Yes, and it's so much fun over at #bootstrappable. M2-Planet just got anonymous structs and function pointers -- that should be enough for mes.c :-)

Re: [ANN] nyacc 0.82.1 released

2017-11-11 Thread Jan Nieuwenhuizen
-bwl.c" parse-c99) (unknown):1: parse failed at state 89, on input "DEF_BWL" (unknown):1: C99 parse error $2 = #f Greetings, janneke def-bwl.c Description: Binary data -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

Re: Recovering from a bad installation

2017-08-05 Thread Jan Nieuwenhuizen
Ricardo Wurmus writes: > If you forgot to set the file system label for the root file system to the > label you specified in the operating system configuration file then you won't > be able to boot. What about adding a check if / can be mounted before installing Grub? ja

#if __GNUC__ > 2 ..

2017-06-18 Thread Jan Nieuwenhuizen
, like 8cc, pcc and Guile's eval.c-- without much success ATM--, changing and editing lots of things like these defines but it is getting hairy now. Greetings, janneke -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com

Re: srfi-1 take and drop seriously broken

2016-11-19 Thread Jan Nieuwenhuizen
rt->8--- scheme@(guile-user)> (use-modules (srfi srfi-1)) scheme@(guile-user)> (take '(list 1 2 3) 4) $1 = (list 1 2 3) scheme@(guile-user)> (drop '(list 1 2 3) 4) $2 = () --8<---cut here---end--->8--- Greetings, Jan -- J

[PATCH 1/2] PRELIMINARY: psyntax: Remove uses of syntax-session-id.

2016-11-02 Thread Jan Nieuwenhuizen
From: Mark H Weaver This is an attempted fix for , but I'm not yet confident in its correctness. * module/ice-9/boot-9.scm (module-generate-unique-id!): New procedure. (module): Add 'next-unique-id' field. (the-root-module): Inherit 'next-unique-id' value from

[PATCH 2/2] psyntax: fix gen-label for unset module.

2016-11-02 Thread Jan Nieuwenhuizen
* module/ice-9/boot-9.scm (generate-unique-id!): New function. (module-generate-unique-id!): Use it. * module/ice-9/psyntax.scm (gen-label): Use it to cater for unset module. * module/ice-9/psyntax-pp.scm: Regenerate. --- module/ice-9/boot-9.scm | 3 ++- module/ice-9/psyntax-pp.scm | 2 +-

Re: bug#20272: Support reproducible builds

2016-11-02 Thread Jan Nieuwenhuizen
Hi! I have rebased Mark's patch to master and added a fix on top of that, needed on 2.1 to pass make check. Also, I found that to pass make check these patches depend on (yesterday's) latest master commit Use atomics for async interrupts that patch seems to depend on (at least git rebase-wi

Re: Setting up CI for Guile

2016-10-06 Thread Jan Nieuwenhuizen
rg/archive/html/guix-devel/2016-09/threads.html#01338 patches are in Cuirass now and anyone is much encouraged to play. > I think this is a wonderful idea that could use a new implementation. > Thanks for getting the ball rolling with the proof-of-concept! Yes! Greetings, Jan

[PATCH] Initial GUD integration support.

2016-09-25 Thread Jan Nieuwenhuizen
umn . 30) (filename . gud-break.scm)):leaving... ((line . 51) (column . 31) (filename . gud-break.scm)):goodbye world scheme@(gud-break)> Greetings, Jan >From 0b220974b0288a0de1d892b7111165ce609033b1 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Tue, 5 Aug 2014 12:34:09 +02

[PATCH] Allow websocket over http by adding fallback.

2016-08-16 Thread Jan Nieuwenhuizen
server) because it lacks hooks for such use. What do you think, would you like to help clean this up on the Guile side? Greetings, Jan >From 1d4cead12c0451ef1d35a1610701aa010f82aa03 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Tue, 16 Aug 2016 16:59:21 +0200 Subject: [PATCH] Al

[PATCH] tests-suite: resurrect invoking check-guile --coverage.

2016-06-28 Thread Jan Nieuwenhuizen
tings, Jan >From dc55bda8314aca5a77b25d0b7521e907a98ee368 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Tue, 28 Jun 2016 15:16:13 +0200 Subject: [PATCH] tests-suite: resurrect invoking check-guile --coverage. * test-suite/guile-test (main): remove (the-vm) from with-code-cover

Re: Two people try to get lilypond for 2.0.12, but hit a roadblock

2016-05-12 Thread Jan Nieuwenhuizen
bit easier and possibly help this go forward a bit. Greetings, Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

Re: anyone define port types?

2016-03-30 Thread Jan Nieuwenhuizen
t wondering. Greetings, Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

Re: [PATCH] Append effective version to GUILE_LOAD[_COMPILED]_PATH

2016-03-19 Thread Jan Nieuwenhuizen
ave submitted a patch for, to skip invalid .go files. Greetings, Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

Re: [PATCH v4] Skip invalid compiled file found, continue searching path.

2016-03-14 Thread Jan Nieuwenhuizen
Jan Nieuwenhuizen writes: The previous version v3 works for skipping modules after guile has booted, this v4 also handles skipping any wrong `eval.go'. I have included some error feedback when you set GUILE_DEBUG_GO=1 mainly to inspect and review the functionality, I suggest to ge

Re: [PATCH v3] Skip invalid compiled file found, continue searching path.

2016-03-13 Thread Jan Nieuwenhuizen
Jan Nieuwenhuizen writes: That was a copy of the old one again, here is the updated v3. Jan Only after rebuilding world, I found this morning that the previous patch did not exactly work as intended. Find version 3 of this patch attached. Instead of having scm_call_0 possibly throw and

Re: [PATCH] Skip invalid compiled file found, continue searching path.

2016-03-13 Thread Jan Nieuwenhuizen
David Kastrup writes: Hi David, > Shouldn't we worry about switching _to_ guile-2.0 first? Are you asking for help on this? In any case, I am sure that running guix with nicely coexisting guile-2.0, guile-2.0++ and guile-next versions can be of great help here. Greetings, Jan

[PATCH v3] Skip invalid compiled file found, continue searching path.

2016-03-13 Thread Jan Nieuwenhuizen
this to stable-2.0 and rebuilding world again, twice. Greetings, Jan >From f4f53b48c1d5ff42ecc66279c3b1cfcfb09d6757 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Fri, 11 Mar 2016 14:58:09 +0100 Subject: [PATCH] Skip invalid compiled file found, continue searching path. * libguile/vm.c

[PATCH] Skip invalid compiled file found, continue searching path.

2016-03-11 Thread Jan Nieuwenhuizen
rom f4f53b48c1d5ff42ecc66279c3b1cfcfb09d6757 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Fri, 11 Mar 2016 14:58:09 +0100 Subject: [PATCH] Skip invalid compiled file found, continue searching path. * libguile/vm.c (load_compiled_with_vm_catch_handler, do_try_scm_call_0): New static funct

[PATCH] Append effective version to GUILE_LOAD[_COMPILED]_PATH

2016-03-04 Thread Jan Nieuwenhuizen
d terminated with signal 6 [Afgebroken] Throw without catch before boot: Aborting. and then I juggle installed guile versions and/or manually modify GUILE_LOAD_COMPILED_PATH. >From 81c8b35752235aeb26058c0baadd0ea58046f640 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Th

Re: guile-json: simple alist to json

2016-02-23 Thread Jan Nieuwenhuizen
e. Sorry. Please find a new patch set attached. Greetings, Jan >From 518feb26237080a3af61eafa650f3452ac24 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Wed, 5 Aug 2015 08:21:13 +0200 Subject: [PATCH 1/2] builder: convert symbols to string. * json/builder.scm (->string):

Re: What is needed in guildhall to include it in Guile?

2016-02-22 Thread Jan Nieuwenhuizen
of (os process) / (run-with-pipe) in Guile itself. Also, I think that Guix has some nice functions that would be great to have split-off into a Guildhall package, e.g. substitute* and others in guix/build/utils.scm. Greetings, Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance

guile-json: simple alist to json

2016-02-18 Thread Jan Nieuwenhuizen
76eeb7d680c6d189dab0cd8c272f3b Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Wed, 5 Aug 2015 08:21:13 +0200 Subject: [PATCH 1/2] builder: convert symbols to string. * json/builder.scm (->string): New function. * json/builder.scm (json-build-string): Use it. --- json/builder.scm | 6

Re: guile-gnome: devel branch - 5 patches - Prepare 2.16.3

2015-08-17 Thread Jan Nieuwenhuizen
edback to get this integrated. Greetings, Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

Re: Musings on performance, 2.2 and GOOPS (found factor 30)

2015-05-23 Thread Jan Nieuwenhuizen
Jan Nieuwenhuizen writes: > I have an application of about 10.000 LOC using Guile/GOOPS with > performance problems. I found a way (thanks Ludo!) to run it with > and without GOOPS, and gained a factor of 30 in performance. See > details below. I just found out about Andy's w

Re: [PATCH] Avoid GOOPS in (system foreign-object)?

2015-05-23 Thread Jan Nieuwenhuizen
Ludovic Courtès writes: > time for i in `seq 1 30` ; do guile -c '(use-modules (oop goops))' ; done Have you looked at --and tried this with-- Wingo's wip-goops-refactor branch? I just did and although I found some minor problems, performance is amazing. Greetings, Jan --

Musings on performance, 2.2 and GOOPS (found factor 30)

2015-05-17 Thread Jan Nieuwenhuizen
read-ast 0.00 0.02 0.00 module/gaiag/gom/util.scm:443:0 --- Sample count: 494 Total time: 8.344575114 seconds (0.805487149 seconds in GC) -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

Re: [PATCH] Add GNU-style error location for failing tests in test-suite. v3

2014-12-07 Thread Jan Nieuwenhuizen
p lines to 80 columns max? Are those rethorical questions? Find updated version attached. Greetings, Jan. >From 322ebdc43806a95270fb98a1505d3fff49a3fce9 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Tue, 23 Sep 2014 18:37:44 +0200 Subject: [PATCH] Add GNU-style error location for failing

Re: [PATCH] Add GNU-style error location for failing tests in test-suite. v3

2014-10-05 Thread Jan Nieuwenhuizen
Jan Nieuwenhuizen writes: Changes in v3: * fix source-line/user-source-line confusion in srfi-64 * better conforming commit message >From 2776b305b1b81ccebbb94ae4ef83ae83996a5253 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Tue, 23 Sep 2014 18:37:44 +0200 Subject: [PATCH] Add

Re: Bison-like source locations in LALR-parser -- upstream update

2014-10-05 Thread Jan Nieuwenhuizen
Dominique. Greetings, Jan >From a6aac9d20d9d64f475780b59011c1e7e0cb1670a Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 5 Oct 2014 12:07:03 +0200 Subject: [PATCH 1/3] LALR-parser: No more unexpected shift-reduce conflicts with LR driver. --- module/system/base/lalr.upstre

[PATCH] test-suite: show backtrace when exception is thrown during test.

2014-10-05 Thread Jan Nieuwenhuizen
. Greetings, Jan >From a11e28037d3d5d14d01df38f1dfae6e176bb3dd8 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 5 Oct 2014 11:42:09 +0200 Subject: [PATCH] test-suite: show backtrace when exception is thrown during test. 2014-10-05 Jan Nieuwenhuizen * test-suite/test-su

Re: [PATCH] Add GNU-style error location for failing tests in test-suite. v2

2014-10-05 Thread Jan Nieuwenhuizen
Jan Nieuwenhuizen writes: Hi, New version adds * test-suite/tests/srfi-64.test (guile-test-runner): Update callers. Thanks to Mark Weaver, who also suggested this function might better be moved to test-suite/lib.scm. Greetings, Jan PS: please have a look at my GUD and Guile-Gnome

[PATCH] Add GNU-style error location for failing tests in test-suite.

2014-09-23 Thread Jan Nieuwenhuizen
rom: Jan Nieuwenhuizen Date: Tue, 23 Sep 2014 18:37:44 +0200 Subject: [PATCH] Add GNU-style error location for failing tests in test-suite. 2014-09-23 Jan Nieuwenhuizen * test-suite/test-suite/lib.scm (run-test): Add location parameter; display GNU style error location for failing test. * te

[PATCH] debugger: Initial GUD integration support v2

2014-09-02 Thread Jan Nieuwenhuizen
001 From: Jan Nieuwenhuizen Date: Tue, 5 Aug 2014 12:34:09 +0200 Subject: [PATCH] Initial GUD integration support. * examples/gud-break.scm: New example; showing initial GUD integration. * module/system/repl/debug.scm (debug-prompt): New procedure; gdb-like de

Re: Bison-like source locations in LALR-parser

2014-08-13 Thread Jan Nieuwenhuizen
arently. Sometimes that is not enough, and you can use @1 ... @n to set the source location explicitly. > Besides, note that lalr.upstream.scm is a copy of the upstream lalr-scm, > hosted at <http://code.google.com/p/lalr-scm/>. Yes...that's looks quit dead. Isn't it?

Re: [PATCH] Initial Guile REPL (guiler) debugger support for GUD.

2014-08-09 Thread Jan Nieuwenhuizen
ing variables > buffer-locally. New patch attached. Greetings, Jan >From 3db1acfeb281f6fbbc8df19164b7f313e37b81ee Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Mon, 4 Aug 2014 11:15:59 +0200 Subject: [PATCH] Initial Guile REPL (guiler) debugger support for GUD. * lisp/progmodes/

Re: [PATCH] Support Guile backtraces in compilation mode.

2014-08-09 Thread Jan Nieuwenhuizen
next-error,previous-error easier for me. > Other than that, it looks OK, so if someone wants to install it, > go ahead. Thanks, updated version attached. Greetings, Jan >From 7193c30c89868b27d610cd9cc7fa63136d4db44c Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Fri, 8 Aug 2

Re: Initial GUD integration for Guile

2014-08-08 Thread Jan Nieuwenhuizen
Jan Nieuwenhuizen writes: After chatting with davexunit and seeing a remark from Andy, here's a somewhat less clueless version. Worries about sources-alist, *last-source* etc remain... Greetings, Jan >From 7ce14e739ba2ada7bc1e46a9821ae6c83871b14c Mon Sep 17 00:00:00 2001 F

Use GNU standard for displaying backtraces?

2014-08-08 Thread Jan Nieuwenhuizen
info: 1038: 1 [main . _] 1032: 0 [stderr _ . _] however, I like to step down all lines of a backtrace with next-error/previous-error, so haven't done that. Greetings, Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

[PATCH] Use GNU standard for displaying backtraces. Allows Emacs integration.

2014-08-08 Thread Jan Nieuwenhuizen
tingp = 1; } scm_puts_unlocked (":\n", port); -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

[PATCH] Support Guile backtraces in compilation mode.

2014-08-08 Thread Jan Nieuwenhuizen
@@ +2014-08-08 Jan Nieuwenhuizen + + * compilation.txt (file): Add Guile backtrace example. + 2014-07-21 Dmitry Antipov * TODO: remove frame height remark. diff --git a/etc/compilation.txt b/etc/compilation.txt index e835c57..84da6b9 100644 --- a/etc/compilation.txt +++ b/etc

compilation-mode support for Guile backtrace; v2 much simplified

2014-08-08 Thread Jan Nieuwenhuizen
e can have Guile-2.2 use GNU-standard error messages in backtraces, but either way we'll probably have to live with current guile backtraces for quite some time. Greetings, Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

[PATCH] Initial Guile REPL (guiler) debugger support for GUD.

2014-08-05 Thread Jan Nieuwenhuizen
a/lisp/ChangeLog b/lisp/ChangeLog index b6f16ea..b3da957 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-08-05 Jan Nieuwenhuizen + + * progmodes/gud.el (guiler): New function. Starts the Guile REPL; + add Guile debugger support for GUD. + 2014-08-03 Paul

[PATCH] Initial GUD integration support.

2014-08-05 Thread Jan Nieuwenhuizen
this is what we have now. diff --git a/module/system/repl/error-handling.scm b/module/system/repl/error-handling.scm index 94a9f2a..1777854 100644 --- a/module/system/repl/error-handling.scm +++ b/module/system/repl/error-handling.scm @@ -80,7 +80,8 @@ (begin (forma

Initial GUD integration for Guile

2014-08-05 Thread Jan Nieuwenhuizen
>From Jan Nieuwenhuizen # This line is ignored. Subject: Initial GUD support for Guile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi, Here is an experimental patch for Guile to support GUD integration. It features a more friendly (more gdb-l

[PATCH 2/2] LALR-parser: transparent source locations using source-proprerties.

2014-08-02 Thread Jan Nieuwenhuizen
state) @@ -2000,7 +2007,7 @@ (set! *parses* (cons parse *parses*))) - (define (push delta new-category lvalue stack) + (define (push delta new-category lvalue stack tok) (let* ((stack (drop stack (* delta 2))) (state (car stack)) (new-state (cdr (

[PATCH 1/2] LALR-parser: provide bison-like location constructs @1 ... @n.

2014-08-02 Thread Jan Nieuwenhuizen
for Scheme ;;; +;; Copyright 2014 Jan Nieuwenhuizen ;; Copyright 1993, 2010 Dominique Boucher ;; ;; This program is free software: you can redistribute it and/or @@ -17,7 +18,7 @@ ;; along with this program. If not, see <http://www.gnu.org/licenses/>. -(define *lalr-scm-version*

Bison-like source locations in LALR-parser

2014-08-02 Thread Jan Nieuwenhuizen
Hi, I am using these patches to provide Bison-like source locations that we need for error messages and the like. The output of the parser is a plain scheme tree, now transparently annotated with source locations that match the parsed input file. What do you think? Greetings, Jan -- Jan

,break-at-source ?

2014-07-04 Thread Jan Nieuwenhuizen
en required, for integration into IDEs like GUD or Eclipse. Greetings, Jan break.scm Description: Binary data -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

cannot compile: srfi-10 define-reader-ctor 'hash '#,(

2014-07-04 Thread Jan Nieuwenhuizen
if no one else is using this, please enlighten me? Greetings, Jan hash.scm Description: Binary data -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

Resolved: ! often means may, not will [WAS: Re: take! 0==1?]

2013-07-12 Thread Jan Nieuwenhuizen
whether it's safe to modify in place? Greetings, Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

take! 0==1?

2013-07-12 Thread Jan Nieuwenhuizen
and set!/list-set! also seems a bit clumsy. Greetings, Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

Re: Guile 2.0.x for cygwin, debian, ubuntu

2011-10-19 Thread Jan Nieuwenhuizen
Noah Lavine writes: > I don't know anything about cygwin. My plan is to package cygwin when the lilypond guile-2.0 branch has been merged. Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

Re: [PATCH 4/5] [mingw]: Delete existing target file before attempting rename.

2011-05-20 Thread Jan Nieuwenhuizen
t this behavior. Yes, that's interesting. Now what's broken here, the documentation, the implementation, some specific implementation, the one windows box that I tested on? Greetings, Jan. -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

Re: [PATCH 5/5] [mingw]: Use $LOCALAPPDATA as a possible root for cachedir.

2011-05-20 Thread Jan Nieuwenhuizen
k a windows guru for that. Greetings, Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

Re: [PATCH 3/5] [mingw]: Do not export opendir, readdir etc., as dirents differ.

2011-05-20 Thread Jan Nieuwenhuizen
Andy Wingo writes: > If mingw defines variants of these routines, why are we not using them > directly? Good question. That may well be a better approach. Jan. -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

Re: [PATCH 1/5] [mingw]: Add implementation of canonicalize_file_name.

2011-05-20 Thread Jan Nieuwenhuizen
lib of the necessity of the patch, writing tests, writing, talking, rewriting a new patch. It's my estimate that it will only take two to four working days to get this in gnulib. I'm not planning to do that without sponsoring, sorry. Greetings, Jan -- Jan Nieuwenhuizen | G

Re: [PATCH 2/5] [mingw]: Have compiled-file-name produce valid names.

2011-05-20 Thread Jan Nieuwenhuizen
e that makes guile run on mingw right now. Greetings, Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

Re: Guile with win32 cross compiling

2011-05-20 Thread Jan Nieuwenhuizen
ecs/guile.py https://github.com/janneke/gub/tree/guile-2.0/patches Jan Greetings, Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

Re: [PATCH 4/5] Inline the effect of am/pre-inst-guile

2011-03-22 Thread Jan Nieuwenhuizen
t; -l "$(srcdir)/$(snarf_doc).scm" -c " > \ > + "$(top_builddir_absolute)/meta/guile" -l "$(srcdir)/$(snarf_doc).scm" > \ > + -c " > \ How do you suggest this works during cross compiling?

Re: problems solved by AC_LIB_HAVE_LINKFLAGS [was: cross building 1.9.14 for mingw]

2011-03-20 Thread Jan Nieuwenhuizen
7;s library search path? If we'd look in /usr last, $DESTDIR builds would most probably not even need this --with-sysroot option and all would be happy? Greetings, Jan. -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

Re: problems solved by AC_LIB_HAVE_LINKFLAGS [was: cross building 1.9.14 for mingw]

2011-03-20 Thread Jan Nieuwenhuizen
brary search path, the impact on $DESTDIR builds would be smaller: only --without-libFOO would have to be specified. It would be nicer still if looking in /usr at compile/build time could be turned off (from your use cases that seems to be possible), or be turned off for $DESTDIR builds. Tha

build error: race problem in mkdir?

2011-03-16 Thread Jan Nieuwenhuizen
re mkdir: ERROR: In procedure mkdir: File exists make[2]: *** [oop/goops.go] Error 1 make[2]: *** Waiting for unfinished jobs -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

stable-2.0: In procedure module-lookup: Unbound variable: for-each

2011-03-16 Thread Jan Nieuwenhuizen
m:10:0: In procedure module-lookup: Unbound variable: for-each [1]14:18:10 janneke@vuurvlieg:~/vc/schikkers-list $ Greetings, Jan. -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl (define-module (run

Re: Cross-compiling Guile 2.0

2011-03-16 Thread Jan Nieuwenhuizen
/patches and te recipe https://github.com/janneke/gub/blob/guile-2.0/gub/specs/guile.py > (The target is my Openmoko Freerunner phone.) Ah, GUB used to have arm architectures, not sure how up to date they are. Jan. -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freela

Re: on second/.go-cached run: ERROR: Unbound variable: for-each - simplified

2011-02-25 Thread Jan Nieuwenhuizen
Greetings, Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

Re: cross building 1.9.14 for mingw

2011-02-24 Thread Jan Nieuwenhuizen
considered a good trade-off to induce a maintenance burden to cross builders because it would help users and upstream. > I appreciate the work that you are doing on MinGW. It will be nice for > the oppressed denizens of Microsoft to have Guile relief. So, ánimo, > peregrino: we'll

on second/.go-cached run: ERROR: Unbound variable: for-each - simplified

2011-02-23 Thread Jan Nieuwenhuizen
Jan Nieuwenhuizen schreef op do 03-02-2011 om 21:20 [+0100]: This morning I've spend some time to reduce this problem into a single scheme file, see attached. Again, here's what happens when I run it twice, starting from a clean cache. First run 12:47:07 janneke@vuur

mingw runtime patches

2011-02-15 Thread Jan Nieuwenhuizen
ng is still the relocation patch which we discussed. That needs more work to be used outside of our cross build system (GUB). Greetings, Jan. -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

[PATCH 5/5] [mingw]: Use $LOCALAPPDATA as a possible root for cachedir.

2011-02-15 Thread Jan Nieuwenhuizen
From: Jan Nieuwenhuizen 2011-02-15 Jan Nieuwenhuizen * libguile/load.c (scm_init_load_path) [MINGW32]: Use $LOCALAPPDATA to avoid having a NULL cachedir, while still allowing override by using $XDG_CACHE_HOME. --- libguile/load.c |4 1 files changed, 4

[PATCH 3/5] [mingw]: Do not export opendir, readdir etc., as dirents differ.

2011-02-15 Thread Jan Nieuwenhuizen
From: Jan Nieuwenhuizen Without this patch, libguile exports symbols such as opendir, readdir, which expect and use guile's struct dirent that differs from mingw's dirent. Linking to libguile when using mingw's dirent gives unexpected results. 2011-02-15 Ja

[PATCH 2/5] [mingw]: Have compiled-file-name produce valid names.

2011-02-15 Thread Jan Nieuwenhuizen
From: Jan Nieuwenhuizen 2011-02-04 Jan Nieuwenhuizen * module/system/base/compile.scm (compiled-file-name): Add directory separator and remove colon for Mingw. Fixes compilation on Windows. --- module/system/base/compile.scm |9 +++-- 1 files changed, 7 insertions(+), 2

[PATCH 4/5] [mingw]: Delete existing target file before attempting rename.

2011-02-15 Thread Jan Nieuwenhuizen
From: Jan Nieuwenhuizen 2011-02-15 Jan Nieuwenhuizen * libguile/filesys.c [MINGW32] (my_rename): Add implementation that deletes target if it exists. Fixes rename behaviour. --- libguile/filesys.c | 24 +--- 1 files changed, 21 insertions(+), 3

[PATCH 1/5] [mingw]: Add implementation of canonicalize_file_name.

2011-02-15 Thread Jan Nieuwenhuizen
From: Jan Nieuwenhuizen It does not look like this will be fixed any time soon in gnulib. 2011-02-04 Jan Nieuwenhuizen * libguile/filesys.h: * libguile/filesys.c (mingw_canonicalize_file_name)[__MINGW32__]: Add minimal implementation of canonicalize_file_name for Mingw

Re: New problem with Windows port

2011-02-15 Thread Jan Nieuwenhuizen
> C:/msys/home/Carlo/guile/libguile/../../guile-1.9.15/libguile/socket.c:439: > undefined reference to `socket_used_without_requesting_gnulib_module_socket' See my cross building 1.9.14 for mingw patches, you'll have to run gnulib-tools again to include "socket" and p

Re: cross building 1.9.14 for mingw

2011-02-15 Thread Jan Nieuwenhuizen
Ludovic Courtès schreef op za 29-01-2011 om 22:34 [+0100]: > > From 4aeb4bb48423d87001b598030afed0a2dc03e747 Mon Sep 17 00:00:00 2001 > > From: Jan Nieuwenhuizen > > Date: Sat, 29 Jan 2011 19:42:46 +0100 > > Subject: [PATCH 2/4] Use AC_CHECK_LIB rather than AC_LIB_HAV

Re: cross building 1.9.14 for mingw

2011-02-15 Thread Jan Nieuwenhuizen
/guile-1.9.15/libguile/socket.c:439: undefined reference to `_socket_used_without_requesting_gnulib_module_socket' collect2: ld returned 1 exit status Greetings, Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.nl

Re: implicitly using existing function as generic fails in 1.9

2011-02-11 Thread Jan Nieuwenhuizen
Andy Wingo schreef op vr 11-02-2011 om 18:48 [+0100]: > On Wed 02 Feb 2011 15:02, Jan Nieuwenhuizen writes: > > > WARNING: (use): `remove!' imported from both (remove) and (srfi srfi-1) > > As far as I can tell, it never worked to merge generics between a > regul

Re: goops method defined only in derived classes fails to become generic?

2011-02-11 Thread Jan Nieuwenhuizen
Andy Wingo schreef op vr 11-02-2011 om 16:39 [+0100]: > On Wed 02 Feb 2011 14:34, Jan Nieuwenhuizen writes: > Do you have a test case? It was in the attached tarball, I'm attaching the individual files. Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freela

Subject: on second/.go-cached run: ERROR: Unbound variable: for-each

2011-02-03 Thread Jan Nieuwenhuizen
/music.scm: 332: 2 [# # ...] In module/ice-9/boot-9.scm: 115: 1 [# unbound-variable ...] In unknown file: ?: 0 [catch-closure unbound-variable "module-lookup" ...] ERROR: In procedure module-lookup: ERROR: Unbound variable: for-each [1]15:22:07

  1   2   >