[3.0.10] posix.test uses depcrecated tmpnam

2024-07-07 Thread Matt Wette
FYI, I'm not getting responses from bug-gu...@gnu.org With `--disable-tmpnam'  argument to configure, posix.test fails: missing `tmpnam`. I think this works.   It passes the test and using the let in the repl generated the intended result. patch attached ---

Re: [BUG] Eval sets incorrect runtime metainformation

2024-07-06 Thread Matt Wette
On 6/30/24 3:27 PM, Philip McGrath wrote: I hadn't realized that other languages in Guile might compile to Tree-IL directly instead of generating syntax objects. Is that common and/or encouraged? It seems like it would require the new language's compiler to do a lot of work that could

GRFI [was: The Guile junk drawer and a C plea]

2024-06-29 Thread Matt Wette
How about a GRFI site to deal with proposals to Guile?

wip: cdata module for dealing with C types in bytevectors

2024-06-22 Thread Matt Wette
code that generates, compiles and calls C code. Matt Introduction Matt Wette June 2024 Introduction The ‘cdata’ module, with its partner ‘arch-info’, provides a way to work with data and associated types originating from C libraries. It supports non-native machine

Re: GUILE_QUIET=1 guile → suppress REPL welcome message (fixed message format)

2024-05-03 Thread Matt Wette
On 3/11/24 6:50 AM, Matt Wette wrote: On 3/10/24 6:01 PM, Dr. Arne Babenhauserheide wrote: Hi, It’s been two months now, did anyone get to review this patch? It’s small and it gives an instant improvement when using Guile in Emacs orgmode babel sourceblocks that get evaluated on export. Best

Re: GUILE_QUIET=1 guile → suppress REPL welcome message (fixed message format)

2024-03-11 Thread Matt Wette
On 3/10/24 6:01 PM, Dr. Arne Babenhauserheide wrote: Hi, It’s been two months now, did anyone get to review this patch? It’s small and it gives an instant improvement when using Guile in Emacs orgmode babel sourceblocks that get evaluated on export. Best wishes, Arne I did look at it. 

speeding up Guile [was: Guix Mentor (paid) — including "speed up Guix"]

2023-12-27 Thread Matt Wette
On 12/27/23 8:17 AM, Dr. Arne Babenhauserheide wrote: Hafeez Bana writes: The kind of advice you would be giving is: … Alternatively, if there are sysadmin shops that are interested in doing this work - please contact me. 勺 Guix. Out of interest: Did you already receive applications for

guile support for multiple languages [was: [PATCH] add language/wisp to Guile?]

2023-10-02 Thread Matt Wette
On 10/2/23 7:59 AM, Christine Lemmer-Webber wrote: "Philip McGrath" writes: I've sort of alluded above to my pipe dream of a grand unified future for Racket-and-Guile-on-Chez, Guile-and-Racket-on-the-Guile-VM, and endless other possibilities. I wrote about it in more detail on the

pull requests for guile

2023-05-06 Thread Matt Wette
Hi All, Does the savannah git repo support `git-request-pull'?   And if so, would that make getting patches in more efficient?   It seems the guile project needs a way to get simple fixed, at least, merged in.  Would this help? Matt

ref manual errors in assembler insn descriptions

2023-03-11 Thread Matt Wette
Hi All, I'm pretty sure the instruction desciprtions shown below in the manual are in error.   Please let me know if my corrections are correct. Matt --- vm.texi-orig    2023-03-11 08:40:59.000388237 -0800 +++ vm.texi    2023-03-11 08:48:57.940061512 -0800 @@ -1468,8 +1468,8 @@  @var{obj}, and

Re: [PATCH] add language/wisp to Guile?

2023-02-26 Thread Matt Wette
On 2/26/23 10:03 AM, Dr. Arne Babenhauserheide wrote: Matt Wette writes: With respect to file extensions, guile does not use file extension: You can name a file containing Scheme code "foo.js" and "guile foo.js" will execute it. The module-system uses file extensions: If

Re: [PATCH] add language/wisp to Guile?

2023-02-26 Thread Matt Wette
With respect to file extensions, guile does not use file extension: You can name a file containing Scheme code "foo.js" and "guile foo.js" will execute it. The code in the wip-load-lang branch provides file-extension support: 1) Currently emacscript, with "js" extension, elisp, with "el"

Re: [PATCH] add language/wisp to Guile?

2023-02-24 Thread Matt Wette
On 2/24/23 3:51 PM, Maxime Devos wrote: On 25-02-2023 00:48, Maxime Devos wrote: (**) For compatibility with Racket, it's not like we couldn't implement both "#lang" and "-*- stuff: language -*-". TBC, I mean ‘only support #lang' for values of 'lang' that Racket supports’, or alternatively

Re: [PATCH] add language/wisp to Guile?

2023-02-18 Thread Matt Wette
On 2/18/23 7:58 AM, Maxime Devos wrote: On 18-02-2023 04:50, Philip McGrath wrote: I haven't read the patch or this thread closely, I'll assume you have read it non-closely. but R6RS has an answer to any concerns about compatibility with `#lang`. At the beginning of Chapter 4, "Lexical and

Re: [PATCH] add language/wisp to Guile?

2023-02-16 Thread Matt Wette
On 2/16/23 1:38 PM, Dr. Arne Babenhauserheide wrote: Matt Wette writes: You may be interested in the load-lang patch I generated a few years ago to allow file-extension based loading, in addition to '#lang elisp" type hooks. https://github.com/mwette/guile-contrib/blob/main/patch/3.0.8

Re: [PATCH] add language/wisp to Guile?

2023-02-14 Thread Matt Wette
You may be interested in the load-lang patch I generated a few years ago to allow file-extension based loading, in addition to '#land elisp" type hooks. https://github.com/mwette/guile-contrib/blob/main/patch/3.0.8/load-lang.patch Matt

Re: patch for mmap and friends

2023-01-14 Thread Matt Wette
On 1/14/23 2:42 PM, Maxime Devos wrote:     {   /* Use the fd of the port under clobber protection from concurrency. As scm_dynwind_acquire_port assumes that FILE is a port, check that first. */   SCM_VALIDATE_PORT (SCM_ARG5, file);   scm_dynwind_acquire_port

Re: patch for mmap and friends

2023-01-14 Thread Matt Wette
On 1/14/23 8:31 AM, Matt Wette wrote: On 1/14/23 7:18 AM, Maxime Devos wrote: \ Port objects should be accepted too, as previously asked on <https://lists.gnu.org/archive/html/guile-user/2022-06/msg00060.html>. As implied by later comments, using a raw fd causes problems with 'move

Re: patch for mmap and friends

2023-01-14 Thread Matt Wette
On 1/14/23 7:18 AM, Maxime Devos wrote: \ Port objects should be accepted too, as previously asked on . As implied by later comments, using a raw fd causes problems with 'move->fdes'.  For the remaining response, I'll assume

Re: patch for mmap and friends

2023-01-13 Thread Matt Wette
On 1/13/23 4:49 PM, Matt Wette wrote: Please consider this patch for adding mmap(), munmap() and msync()  to libguile/filesys.c.  Included is update for posix.texi and test file mman.test. Once included, feature 'mman should be #t. Matt Please add the attached file: test-suite/tests

patch for mmap and friends

2023-01-13 Thread Matt Wette
Please consider this patch for adding mmap(), munmap() and msync()  to libguile/filesys.c.  Included is update for posix.texi and test file mman.test. Once included, feature 'mman should be #t. Matt From 6c944174d35d43f87340c8199d47f3f088fa6ca7 Mon Sep 17 00:00:00 2001 From: Matt Wette Date

Re: Guile Developer Meetup at Guix days 2023

2022-12-28 Thread Matt Wette
On 12/27/22 4:42 PM, jgart wrote: Hi Guilers, I had mentioned on IRC a few weeks ago regarding meeting up to discuss ways that we can improve the Guile debugger, be it through better documentation tutorials, patches to the C or Scheme code, etc. People seemed to be interested in meeting up.

Re: patch to add support for mmap and friends

2022-12-21 Thread Matt Wette
On 12/20/22 5:21 PM, Matt Wette wrote: Please consider the atttached patch for mmap and friends. Includes mmap, mmap/shared, munmap, msync. \ I ran into a bug on this.  Not sure how it got there.  I was hoping to get into the 3.0.9 release.   Any idea when that might happen? Matgt

patch to add support for mmap and friends

2022-12-20 Thread Matt Wette
Guile Maintainers: Please consider the atttached patch for mmap and friends. Includes mmap, mmap/shared, munmap, msync. Matt From 306570beb3d1895abd03700593cc342282e4ccd1 Mon Sep 17 00:00:00 2001 From: Matt Wette Date: Tue, 20 Dec 2022 17:15:27 -0800 Subject: [PATCH] Add support for mmap

Re: mmap for guile

2022-06-26 Thread Matt Wette
Appologies: link is https://github.com/mwette/guile-contrib/blob/main/patch/3.0.8/mmap-api.patch On 6/26/22 8:37 AM, Matt Wette wrote: I have a candidate mmap implementation for guile (3.0.8) in github.com/mwette/guile-contrib/patch/3.0.8/mmap-api.patch It probably needs some review

mmap for guile

2022-06-26 Thread Matt Wette
I have a candidate mmap implementation for guile (3.0.8) in github.com/mwette/guile-contrib/patch/3.0.8/mmap-api.patch It probably needs some review and update. Maybe windows mmap-file would be nice. I'm not sure I updated the configure correctly but --disable-mmap-api should remove.

Re: new function

2021-09-19 Thread Matt Wette
On 9/19/21 7:41 AM, Matt Wette wrote: On 9/19/21 12:54 AM, Damien Mattei wrote: hello, i'm developing an extension to Scheme and i need a procedure or macro that define a variable only if it is not bind and if it is just set! it. I can not do it in Guile or any Scheme,and i'm desperately

Re: new function

2021-09-19 Thread Matt Wette
On 9/19/21 12:54 AM, Damien Mattei wrote: hello, i'm developing an extension to Scheme and i need a procedure or macro that define a variable only if it is not bind and if it is just set! it. I can not do it in Guile or any Scheme,and i'm desperately searching a way to do that. I finally

Re: more advanced bytevector => supervectors

2021-09-02 Thread Matt Wette
maybe guile could consider regexp's in scheme see  https://ds26gte.github.io/pregexp/index.html On 9/2/21 8:45 AM, Stefan Israelsson Tampe wrote: Hi guilers! My next project is to explore a more advanced bytevector structure than today's bytevectors. I think that having this infrastructure in

Re: Implementing ES6 on top of Guile

2021-07-06 Thread Matt Wette
On 7/5/21 3:52 AM, Ayush Jha wrote: The issue: I found an implementation of ECMAScript on Guile in the docs, and I was wondering if anyone is working on improving it/building an alternative. I would love to get started on it. What is the status of the ECMAScript implementation project as of

Re: riscv files for lightening

2021-01-30 Thread Matt Wette
On 1/29/21 11:13 AM, Matt Wette wrote: Andy, I took a stab at porting RISC-V from lightning to lightening. I have no riscv toolset or computer yet so these are untested. I copied files from sv/lightning for riscv to wingo/lightening. Patch attached. The changes are: 1) copy lightning

generating SXML trees in guile

2021-01-09 Thread Matt Wette
This is a FYI, not saying this is a bug. I'm digging into the sxml xpath procedures and came across a potential issue with using sxml in Guile. I believe I remember that Oleg's SXML code relies on the fact that no nodes a sxml tree are eq?.   For example, in the SXML tree     (define sx1 

compile-file execution time driven by `reap-pipes'

2020-04-06 Thread Matt Wette
I'm wanted to trace down why some of my "compile-file" w/ no optimization was tasking time. I was able to turn compile-file under statprof for one of the moderate sized .scm files, which has about 45,000 lines of code. It was interesting that the major execution time consumer was reap-pipes. I'm

Re: definitions in macros?

2020-03-22 Thread Matt Wette
On 3/22/20 12:07 PM, Han-Wen Nienhuys wrote: Hi there, in my quest to get lilypond working with GUILE 2+, I've hit another stumbling block. In order to make compilation with GUILE 2+ working, we have to move away from runtime symbol definition (ie. module-define! calls). In the code below, it

dynamic-link issue: does not always load

2020-03-20 Thread Matt Wette
There is an old bug report #21076 on dynamic-link: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21076 Say you have a file libyaml.0.so-2, dynamic-link can't load it     (dynamic-link "libyaml.0.so-2") => exception even if there is a file libyaml.so:   $ cat /usr/lib64/libyaml.so  

guile's (begin) vs syntax-rules

2020-03-01 Thread Matt Wette
Scheme requires begin forms to have at least one expression. Guile allows zero expressions, but ice-9/psyntax.scm reports a syntax error. Do I add something like (if #f #f) to my syntax transformer or report a "bug"?

Re: Logo baseline

2020-01-19 Thread Matt Wette
On 1/19/20 6:11 AM, Arne Babenhauserheide wrote: Ludovic Courtès writes: Other adjectives I proposed (fast, functional) don’t quite apply to these, though. Functional doesn’t apply to Guile much better than to CPython. I think "functional" is used in the formal sense. The term applies to

Re: Logo baseline

2020-01-18 Thread Matt Wette
On 1/18/20 6:08 AM, Ludovic Courtès wrote: Hello Guilers! The Guile logo has this “GNU extension language” baseline. As Guile 3 came out, this baseline felt odd to me, not quite corresponding to the way I see Guile. Clearly, Guile is still an extension language, with many great applications

Re: GNU Guile 2.9.8 Released [beta]

2020-01-02 Thread Matt Wette
On 1/2/20 5:36 AM, Andy Wingo wrote: We are pleased to announce GNU Guile release 2.9.8. This is the eighth and possibly final pre-release of what will eventually become the 3.0 release series. Compared to the previous prerelease (2.9.7), Guile 2.9.8 fixes a bug in libguile that caused

Re: GNU Guile 2.9.7 Released [beta]

2019-12-13 Thread Matt Wette
On 12/13/19 5:30 AM, Andy Wingo wrote: We are pleased to announce GNU Guile release 2.9.7. This is the seventh and hopefully next-to-last pre-release of what will eventually become the 3.0 release series. mwette$ uname -a Linux halibut 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02

Re: GNU Guile 2.9.6 Released [beta]

2019-12-07 Thread Matt Wette
On 12/6/19 5:14 AM, Andy Wingo wrote: We are pleased to announce GNU Guile release 2.9.6. This is the sixth pre-release of what will eventually become the 3.0 release series. Same error I get w/ 2.9.5, on Ubuntu 18.04:   BOOTSTRAP GUILEC system/vm/linker.go /bin/bash: line 6:  9159

2.9.5 build segfault on Ubuntu 18.04 [WAS: Nyacc and guile-nearly-3.0 (progress report)]

2019-12-02 Thread Matt Wette
On 12/2/19 6:28 AM, Matt Wette wrote: I'm building 2.9.5 now but running into errors (ubuntu 18.04): /bin/bash: line 6: 14657 Segmentation fault  (core dumped) GUILE_AUTO_COMPILE=0 ../meta/build-env guild compile --target="x86_64-pc-linux-gnu" -O1 -Oresolve-primitives -L &qu

missing word in "Building CPS" v 2.9.4

2019-09-05 Thread Matt Wette
The reference manual for 2.9.4, Section 9.4.4.3 titled "Building CPS", paragraph 2, has sentence starting: "Construction is handled by a set of mutually builder macros:" I think there is a missing word between "mutually" and "builder". No clue what it is. Matt

Re: GNU Guile 2.9.4 Released [beta]

2019-08-28 Thread Matt Wette
On 8/25/19 1:21 PM, Andy Wingo wrote: We are pleased to announce GNU Guile release 2.9.4. This is the fourth pre-release of what will eventually become the 3.0 release series. macOS 10.14.6: wrote `system/vm/frame.go'   BOOTSTRAP GUILEC system/vm/linker.go /bin/sh: line 1: 79336 Abort trap:

2.9.2: typo in lang/cps/

2019-06-02 Thread Matt Wette
typo in 2.9.2, lang/cps/slot-allocation.scm, line 355:     (($ $kargs _ _ ($ $continue k _($ $values args))) note lack of space between _ and (

Re: Coexistence of different Guile versions

2019-03-10 Thread Matt Wette
On 3/10/19 8:23 AM, Tommi Höynälänmaa wrote: Guile (at least the Debian version) is designed so that different versions (e.g. 2.0 and 2.2) can coexist in the same system. However, this is not so for packages guile-xxx-dev. Consequently, many software libraries (such as guile-gnome-platform) have

Re: FOSDEM 2019

2019-02-05 Thread Matt Wette
On 2/5/19 8:58 AM, Ludovic Courtès wrote: Hi, Amirouche Boubekki skribis: What does it mean in practice? What are the tasks that must dealt with? Like I wrote, an immediate task is to write a Racket importer for Guix¹ and to actually package things. Next, we could ensure the subset of

Re: FOSDEM 2019

2019-02-04 Thread Matt Wette
Thanks for filming.  It was great to follow and see you titans in action. -- Matt On 2/3/19 1:34 PM, Mikael Djurfeldt wrote: It was a great experience and joy for me to meet some of you at FOSDEM 2019. Thank you all!

Re: failed to create path for auto-compiled file

2019-01-17 Thread Matt Wette
On 1/15/19 5:59 PM, Matt Wette wrote: Hi All, I maintain an add-on package to Guile.  I have a user reporting the following WARNING: ;;; compiling /usr/share/guile/site/2.2/nyacc/lang/c99/ffi-help.scm ;;; WARNING: compilation of /usr/share/guile/site/2.2/nyacc/lang/c99/ffi-help.scm failed

failed to create path for auto-compiled file

2019-01-15 Thread Matt Wette
Hi All, I maintain an add-on package to Guile. I have a user reporting the following WARNING: ;;; compiling /usr/share/guile/site/2.2/nyacc/lang/c99/ffi-help.scm ;;; WARNING: compilation of /usr/share/guile/site/2.2/nyacc/lang/c99/ffi-help.scm failed: ;;; failed to create path for

working to update pointer->procedure

2018-11-30 Thread Matt Wette
Hi All, I'm starting to look into libguile/foreign.c to add support for libffi's variadic function calls. My thinking is that that pointer->procedure would accept '... as the last element of the arg list, and that on procedure calls one would pass a pair to for each unspecified argument.

Re: GNU Guile 2.9.1 Released [beta]

2018-10-20 Thread Matt Wette
On 10/10/18 2:31 AM, Andy Wingo wrote: We are pleased to announce GNU Guile release 2.9.1. This is the first pre-release of what will eventually become the 3.0 release series. configure, make, check all worked for me on macOS 10.12.6 (w/ gcc 7.3)

Re: [PATCH] debugger: Support generics. WIP.

2018-09-12 Thread Matt Wette
On 09/12/2018 04:44 AM, Jan Nieuwenhuizen wrote: Hi! I'm looking at the debugger again and have found a number of things*) that I would like to fix. My first attempt is for GOOPS support: I want ,break-at-source FILE LINE to also support breaking if LINE happens to be in a define-method. I

[ANN] nyacc version 0.86.0 released

2018-09-05 Thread Matt Wette
I have released nyacc version 0.86.0. This release includes the following: 1) I reworked the parser to behave with interactive use in Guile better. 2) I hacked on the example language compilers to operate at the Guile command line. (You can run "make install-nx-languages".) 3) I replaced use

Re: GObject Introspection and GTK3 way forward

2018-09-05 Thread Matt Wette
On 09/05/2018 10:29 AM, Mike Gran wrote: Hey all- So, I've decided to make a go at finishing the GObject Introspection and GTK3 story for Guile. I would very much like to have something running in time for Fosdem 2019. I've looked at the other two previous attempts: g-golf, and the older

patch for `(load "foo.js")'

2018-09-04 Thread Matt Wette
30094 @ debbugs got gnu dot org has a patch for adding support for extension languages The patch is against guile-2.2.4 mwette$ cat jsinc #lang ecmascript function js_inc(a) { return a + 1; } mwette$ cat jsdec.js function js_dec(a) { return a - 1; } mwette$ guile GNU Guile 2.2.4

Re: my emacs minor-mode for generating docstrings, v180902d

2018-09-03 Thread Matt Wette
On 09/02/2018 04:30 PM, Arne Babenhauserheide wrote: Matt Wette writes: Now if I load my scheme-texidoc minor mode, place the point just before `(define (' and hit [(control c) (control d)], I end up with a docstring generated by running the comments through `texi2any --plaintext'. ;; @deffn

my emacs minor-mode for generating docstrings, v180902d

2018-09-02 Thread Matt Wette
'eq. Here is scheme-texidoc.el: ;;; scheme-texidoc.el --- minor mode to make scheme doc-strings from texinfo ;; Copyright (C) 2018 Matthew R. Wette ;; Author: Matt Wette ;; Keywords: scheme, texinfo ;; This library is free software; you can redistribute it and/or ;; modify it under the terms of

Re: speedup of modifying return values

2018-08-29 Thread Matt Wette
On 08/29/2018 03:58 AM, Stefan Israelsson Tampe wrote: Hi all, I'm trying to make a python clone in guile. Currently the code is slow and one of  the reasons is the following, in my pythoon return 1,2 returns a (values 1 2) in order to get python and scheme to interoperate. but for

Re: FOSDEM 2019 - dev-room proposal

2018-08-27 Thread Matt Wette
On 08/27/2018 10:27 AM, Pjotr Prins wrote: . Manolis and I want to submit a plan for 'Minimalistic Languages - for big ideas' dev-room. Good examples that fit the room are - mes and reproducible builds - Guile and Guix - Guile JIT - Lua JIT - Lua for scriptable projects (example?) Anyone

handling alternative languages in Guile

2018-08-19 Thread Matt Wette
Hi All, Guile bug report 30094 is a wishlist request for adding support for alterantive languages. To that bug report I attached proposed code for allowing -from being generated from (1) #lang or (2) file extension. The essential change is to compile-file in (system base compile):

nyacc support for extension languages

2018-08-12 Thread Matt Wette
I am working on providing a module to add to the nyacc distribution for the purpose of generating extension languages, and putting together a few extensions for demo. So far I'm playing with javascript and matlab. These languages use a "nx-" prefix to designate them as "nyacc extension". One can

Re: Why is Guile unable to find libtool?

2018-07-26 Thread Matt Wette
On 07/26/2018 04:57 PM, Brett Gilio wrote: Bruce Korb writes:  $ ./configure . checking for libltdl... no configure: error: GNU libltdl (Libtool) not found, see README.  $ type libtool bash: type: libtool: not found  $ sudo apt install libtool Reading package lists... Done Building

ldconfig complaint about libguile...-gdb.scm

2018-07-20 Thread Matt Wette
Hi All, I run on Ubuntu and get the following. I assume it may appear for other OSes. This message anytime I update software or otherwise run ldconfig. /sbin/ldconfig.real: /usr/local/lib/libguile-2.2.so.1.3.0-gdb.scm is not an ELF file - it has the wrong magic bytes at the start. Has this

loading an ecmascript file

2018-07-15 Thread Matt Wette
Hi All, I was hoping to kludge together a procedure to load a file containing a non-Scheme extension language. I am not surprised that it doesn't work, given the complexity of the load/compile code in (ice-9 boot-9 (check load-in-vicinity) and (system base compile) (check compile-file). Any

tree-il begin deprecated?

2018-07-15 Thread Matt Wette
Hi All, I noticed that from 2.0 to 2.2 the reference manual section on compiling to tree-il replaced `begin' with `seq'.  Is `begin' going to be deprecated? Matt

Re: multi-lingual guile: language strictness

2018-07-14 Thread Matt Wette
On 07/14/2018 09:22 AM, Hans Åberg wrote: On 14 Jul 2018, at 15:53, William ML Leslie wrote: On 14 July 2018 at 12:57, Brett Gilio wrote: Is this possibility for making Guile multi-lingual a promised feature, or more of a wishlist type thing? I'll have to think about some ways that might be

multi-lingual guile: language strictness

2018-07-13 Thread Matt Wette
Hi All, I posed a question on #guile IRC last weekend asking for use cases for making Guile multi-lingual.  The use case that came up was the desire to use Guile as an extension that supports multiple languages for users.  To that end, I wonder how important it is to make these extension

Re: flow-analysis and Offner's notes

2018-06-09 Thread Matt Wette
On 06/09/2018 06:34 AM, Matt Wette wrote: On 06/08/2018 05:17 PM, Matt Wette wrote: Andy Windo's blog on flow-analysis in Guile references Offner's "Notes on Graph Algorithms Used in Optimizing Compilers"?  Anyone read this manuscript?  Lemma 2.2 says, in a flow-graph, if x&g

Re: flow-analysis and Offner's notes

2018-06-09 Thread Matt Wette
On 06/08/2018 05:17 PM, Matt Wette wrote: Andy Windo's blog on flow-analysis in Guile references Offner's "Notes on Graph Algorithms Used in Optimizing Compilers"?  Anyone read this manuscript?  Lemma 2.2 says, in a flow-graph, if x>>z and y>>z, then either x>>

flow-analysis and Offner's notes

2018-06-08 Thread Matt Wette
Hi All, Andy Windo's blog on flow-analysis in Guile references Offner's "Notes on Graph Algorithms Used in Optimizing Compilers"? Anyone read this manuscript? Lemma 2.2 says, in a flow-graph, if x>>z and y>>z, then either x>>y or y>>x. The proof uses the argument that the path from s, the

Re: Simple picture language

2018-03-27 Thread Matt Wette
On 03/27/2018 05:40 AM, Thompson, David wrote: 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

Re: Question: link to wrong library

2018-01-22 Thread Matt Wette
I think you need -Wl,-rpath=`pwd`/libguile/.libs On 01/22/2018 03:36 AM, Chaos Eternal wrote:  gcc  -pthread -I.  -Wl,-rpath -lguile-2.2  -lgc test.c On Mon, Jan 22, 2018 at 7:30 PM 陶青云 > wrote: some result ```

ffi-help: updated documentation

2018-01-19 Thread Matt Wette
explaining part of the design. (I have recently dumped my macbook w/ flaky keyboard for a ubuntu laptop. I am still adjusting. I am missing macports a little.) Matt FFI Helper for Guile Matt Wette January 2018 With NYACC Version 0.83.0 1 Introduction ** The acronym

Re: Website translations with Haunt

2017-12-12 Thread Matt Wette
The FFI Helper uses `gcc --print-search-dirs' to locate gcc directories. It also adds /usr/include. I don't understand why it is not finding them. It also uses `gcc -dM -E' to determine #defines. Even with that, on my macOS system, I need to make fixes. Can you determine if some gcc

Re: Website translations with Haunt

2017-12-10 Thread Matt Wette
> On Dec 10, 2017, at 11:21 AM, pelzflorian (Florian Pelz) > wrote: >>(fh-object-set! eh-struct 'error error-p) I was able to duplicate getting 0. The problem was the argument `error-p'. (The bytestructures i/f seems to be silent here about he incorrect

Re: Website translations with Haunt

2017-12-10 Thread Matt Wette
> On Dec 10, 2017, at 11:21 AM, pelzflorian (Florian Pelz) > <pelzflor...@pelzflorian.de> wrote: > > On Sun, Dec 10, 2017 at 07:22:55AM -0800, Matt Wette wrote: >> > Thank you. I’m sorry to say that it did not work. > > Actually it is not the “struct po

Re: Website translations with Haunt

2017-12-10 Thread Matt Wette
> On Dec 9, 2017, at 10:06 AM, pelzflorian (Florian Pelz) > wrote: > (define xerror-handler-struct > (make-struct-po_xerror_handler)) ; TODO SET HANDLERS: > ;; […] > First of all, FFI helper + Guile can't deal with this pattern: using varargs function members in

ffi-help: documentation

2017-12-06 Thread Matt Wette
what's going on. That is my approach here. Enjoy ... FFI Helper for Guile Matt Wette December 2017 With NYACC Version 0.00.0 1 Introduction ** The acronym FFI stands for "Foreign Function Interface". It refers to the Guile facility for binding

Re: GNU Guile 2.2.3 released.

2017-12-02 Thread Matt Wette
> On Dec 1, 2017, at 8:35 AM, Andy Wingo wrote: > > We are delighted to announce GNU Guile release 2.2.3, the third bug-fix > release in the 2.2 stable release series. One change from 2.2.2 to 2.2.3 I notice is that the ChangeLog has been zeroed out. Accident or what?

Re: GNU Guile 2.2.3 released.

2017-12-02 Thread Matt Wette
> On Dec 2, 2017, at 11:50 AM, Matt Wette <matt.we...@gmail.com> wrote: > > >> On Dec 1, 2017, at 8:35 AM, Andy Wingo <wi...@pobox.com> wrote: >> >> We are delighted to announce GNU Guile release 2.2.3, the third bug-fix >> release in the 2.2 s

Re: GNU Guile 2.2.3 released.

2017-12-02 Thread Matt Wette
> On Dec 1, 2017, at 8:35 AM, Andy Wingo wrote: > > We are delighted to announce GNU Guile release 2.2.3, the third bug-fix > release in the 2.2 stable release series. Builds fine (`make' and `make check') on MacOS 10.12.6. Builds fine (`configure

Re: guile 3 desires: guile-3-0, and debugging

2017-11-24 Thread Matt Wette
> On Nov 24, 2017, at 3:42 PM, Christopher Allan Webber > <cweb...@dustycloud.org> wrote: > > Matt Wette writes: > >> Here are a couple desires: >> >> 1) more cases for cond-expand, in case 3.2 has items 3.0 does not (e.g., >> srfi-199) >>

guile 3 desires: guile-3-0, and debugging

2017-11-22 Thread Matt Wette
Here are a couple desires: 1) more cases for cond-expand, in case 3.2 has items 3.0 does not (e.g., srfi-199) 2) better debugging. Maybe I'm not doing it right, but I struggle in this area: I mostly resort to printing. For example, add scheme level hook, or command arg, to turn off

Re: [ANN] nyacc 0.82.1 released

2017-11-11 Thread Matt Wette
> On Nov 11, 2017, at 6:27 AM, Jan Nieuwenhuizen <jann...@gnu.org> wrote: > > Matt Wette writes: > > Hey Matt, > >> Nyacc 0.82.1 has been released. > > Congrats! > > It's been a while but in 0.82.0 I found a regression of a bug that you > f

Re: ffi-help: status to 19 Aug 2017

2017-11-10 Thread Matt Wette
> On Nov 10, 2017, at 3:04 PM, Stefan Israelsson Tampe > wrote: > > I'm trying out the ffi help stuff. > > 1. It looks like 1.234f numeric constants is not lexed > 2. characters constants can be included in #if preprocessor steps it looks, > 3. character constants

Re: ffi-help: status to 19 Aug 2017

2017-11-09 Thread Matt Wette
> On Nov 9, 2017, at 11:10 AM, Roel Janssen wrote: > I wanted to try ffi-helper on htslib, but I am confused on how to get > started. Where does the "compile-ffi" subcommand for "guild" come from? > And not sure I answered this question as intended. The `guild' command looks

Re: ffi-help: status to 19 Aug 2017

2017-11-09 Thread Matt Wette
> On Nov 9, 2017, at 5:00 PM, Matt Wette <matt.we...@gmail.com> wrote: > >> On Nov 9, 2017, at 11:10 AM, Roel Janssen <r...@gnu.org> wrote: >>> ... >> >> Thanks for creating this! It seems to be very useful and powerful. >> >> I wan

Re: ffi-help: status to date

2017-10-24 Thread Matt Wette
> On Oct 22, 2017, at 11:31 AM, Matt Wette <matt.we...@gmail.com> wrote: > > Hi All, > > I am working on a ffi-helper (FH): a program that will read in a C dot-h file > and generate a Guile dot-scm file > which defines a module to provide hooks into the asso

Re: libguile-2.2.2 uses tmpnam

2017-10-24 Thread Matt Wette
> On Oct 24, 2017, at 4:47 AM, Jeffrey Walton wrote: > > On Sat, Oct 21, 2017 at 5:05 AM, Jeffrey Walton wrote: >> My apologies for writing about this. I found one previous thread that >> mentioned it, but it was working a clock_t problem. Cf., >>

ffi-help: status to date

2017-10-22 Thread Matt Wette
Hi All, I am working on a ffi-helper (FH): a program that will read in a C dot-h file and generate a Guile dot-scm file which defines a module to provide hooks into the associated C library. Since last report I have removed the un-hygienic macros: all names are passed to macros now. This

Re: Reduce/Reduce conflict errors

2017-10-21 Thread Matt Wette
> On Oct 21, 2017, at 12:43 AM, Jeffrey Walton wrote: > > Hi Everyone, > > I'm building GnuTLS 3.5.15 from sources, including its dependencies. > One of them is libguile, and I am using version 2.2.2 from > ftp.gnu.org. I'm working on Ubuntu 17, x86_64. > > The GnuTLS self

Re: Wisp as shipped language in Guile?

2017-09-17 Thread Matt Wette
> On Sep 17, 2017, at 4:22 PM, Arne Babenhauserheide <arne_...@web.de> wrote: > > > Matt Wette <matt.we...@gmail.com> writes: >> Looks promising, especailly if the footprint is small. >> Can someone post the sample guix specification? >> I could n

Re: Wisp as shipped language in Guile?

2017-09-17 Thread Matt Wette
Looks promising, especailly if the footprint is small. Can someone post the sample guix specification? I could not access from the gnunet log.

[ANN] nyacc 0.82.1 released

2017-09-16 Thread Matt Wette
Nyacc 0.82.1 has been released. This is a fix to 0.82.0, which has issues with running the FFI helper. I can now run the cairo ffi helper demo on Centos. To run the ffi helper cairo demo, check the file HACKING in the distribution. NYACC, for Not Yet Another Compiler Compiler!, is set of guile

Re: macro helpers

2017-09-12 Thread Matt Wette
> On Sep 12, 2017, at 11:09 AM, Stefan Israelsson Tampe > wrote: > > Writing efficient macros is a bit difficult. Let me explain by using an > example. The background > is that I maintaining a python compiler and python like object system and > would like to program

Re: [ANN] nyacc 0.82.0 released

2017-09-11 Thread Matt Wette
> On Sep 10, 2017, at 8:37 AM, Matt Wette <matt.we...@gmail.com> wrote: > > Nyacc 0.82.0 has been released Appologies if you have tried this and running into problems. I found a few bugs. I have been working on macos but now trying on Centos system. I will release a mino

Re: [ANN] nyacc 0.82.0 released

2017-09-10 Thread Matt Wette
> On Sep 10, 2017, at 8:37 AM, Matt Wette <matt.we...@gmail.com> wrote: > > Nyacc 0.82.0 has been released > > In this version I have cleaned up more of the FFI Helper. Note: > 1) In the distribution, you will see example .ffi files in examples/ffi/. > 2) use

[ANN] nyacc 0.82.0 released

2017-09-10 Thread Matt Wette
Nyacc 0.82.0 has been released In this version I have cleaned up more of the FFI Helper. Note: 1) In the distribution, you will see example .ffi files in examples/ffi/. 2) use of the FFI Helper required the bytestructures package, available from:

Re: ffi-help: #:use-ffi-module

2017-09-07 Thread Matt Wette
> On Sep 7, 2017, at 8:32 PM, Matt Wette <matt.we...@gmail.com> wrote: > > > Hi All, > > I am working on a ffi-helper: a program that will read in a C dot-h file and > generate a Guile dot-scm file > which defines a module to provide hooks into t

  1   2   >