Guile documentation overhaul (was Re: What's to be considered on-topic for Guile mailing lists?)

2023-10-18 Thread Matt
On Thu, 06 Jul 2023 13:37:09 +0300 Blake wrote --- > I'm sorry, I'm the one supposed to be working on a rehaul of the > documentation, but the review process has slowed this down. I started > integrating > everyones suggestions for the revamped map section after it was proposed in > Janu

Re: 2.2.0 release plan

2017-03-14 Thread Matt Wette
> On Mar 14, 2017, at 8:50 AM, Andy Wingo wrote: > > On Tue 14 Mar 2017 16:25, Greg Troxel writes: > >> Andy Wingo writes: >> >>> However! Even though the code says 2.2.0 and the tag says 2.2.0, the >>> release is not until Thursday. I will not upload the tag yet. >> >> I have just barely

Re: 2.2.0 release plan

2017-03-14 Thread Matt Wette
> On Mar 14, 2017, at 5:35 PM, Matt Wette wrote: > >> >> On Mar 14, 2017, at 8:50 AM, Andy Wingo wrote: >> >> On Tue 14 Mar 2017 16:25, Greg Troxel writes: >> >>> Andy Wingo writes: >>> >>>> However! Even though the cod

Re: 2.2.0 release plan

2017-03-15 Thread Matt Wette
> On Mar 14, 2017, at 7:59 PM, Matt Wette wrote: > > >> On Mar 14, 2017, at 5:35 PM, Matt Wette > <mailto:matt.we...@gmail.com>> wrote: >> >>> >>> On Mar 14, 2017, at 8:50 AM, Andy Wingo >> <mailto:wi...@pobox.com>>

Re: 2.2.0 release plan

2017-03-15 Thread Matt Wette
> On Mar 15, 2017, at 6:07 AM, Matt Wette wrote: > > >> On Mar 14, 2017, at 7:59 PM, Matt Wette > <mailto:matt.we...@gmail.com>> wrote: >> >> >>> On Mar 14, 2017, at 5:35 PM, Matt Wette >> <mailto:matt.we...@gmail.com>>

Re: GNU Guile 2.2.0 released

2017-03-17 Thread Matt Wette
FYI, 2.2.0 has already been placed into MacPorts distribution (though still some minor hiccups wrt macport checksums.) root# port upgrade outdated ... ---> Computing dependencies for guile ---> Fetching distfiles for guile ---> Attempting to fetch guile-2.2.0.tar.gz from https://distfiles.mac

Re: GNU Guile 2.2.0 released

2017-03-17 Thread Matt Wette
> On Mar 17, 2017, at 7:19 AM, Matt Wette wrote: > > FYI, 2.2.0 has already been placed into MacPorts distribution (though still > some minor hiccups wrt macport checksums.) > > root# port upgrade outdated > ... > ---> Computing dependencies for guile > ---&

Re: GNU Guile 2.2.2 released

2017-05-13 Thread Matt Wette
> On Apr 21, 2017, at 7:41 AM, Andy Wingo wrote: > > We sheepishly announce GNU Guile release 2.2.2, a quick bug-fix to the > recent 2.2.1 release. The FreeBSD section in README is not quite correct IMO. Here are suggested changes: FreeBSD 11.0: - For a build supporting threads, please `

Re: ffi helper

2017-05-13 Thread Matt Wette
> On Apr 17, 2017, at 7:26 PM, Matt Wette wrote: > > >> On Mar 21, 2017, at 3:40 PM, Matt Wette wrote: >>> On Mar 19, 2017, at 10:23 AM, Matt Wette wrote: >>>> On Mar 13, 2017, at 5:53 PM, Matt Wette wrote: >>>>> On Mar 8, 2017, at 6:06 PM

make install-examples ???

2017-05-17 Thread Matt Wette
include the target directory. Matt

Tree-IL on let

2017-05-30 Thread Matt Wette
In Tree-IL there is let, letrec and letrec* but not let*. Any reason why? I guess I should use (let () (let () …, right? — Matt

ffi helper: enums

2017-06-17 Thread Matt Wette
num_t; typedef enum { OK = 0, ERROR = 1 } foo_status_t; foo_status_t bar(foo_enum_t flag) then the guile un-wrapper/wrapper will convert symbols<=>ints to allow users code to look like (bar ‘ABC) => ‘OK Optionally, the un-wrappers could be coded tolerate integers.

ffi-helper: modules and guild

2017-06-17 Thread Matt Wette
x bs:) ) (define bs:struct bs:bs:struct) (define bs:union bs:bs:union) (define lib-link (dynamic-link #f)) (define (lib-func name) (dynamic-func name lib-link)) ;; here will be ~1000 lines of autogenerated code (define my-cairo-hack () (first '(("hello" ;; --- last line — Matt

Re: #if __GNUC__ > 2 ..

2017-06-18 Thread Matt Wette
With patch below, this looks to be working. I will update and release later today. — Matt diff --git a/module/nyacc/lang/c99/cpp.scm b/module/nyacc/lang/c99/cpp.scm index 7ea57f7..511553a 100644 --- a/module/nyacc/lang/c99/cpp.scm +++ b/module/nyacc/lang/c99/cpp.scm @@ -230,7 +230,7

[ANN] nyacc 0.80.3 released

2017-06-18 Thread Matt Wette
NYACC V0.80.3 is released. This release has work on the ffi-helper and numerous bug fixes: 1) use 0 for undefined identifiers in CPP conditional expressions 2) fixed lex routine make-ident-like-p to check for zero-length strings 3) fixed bug in c99/util2.smc that added comments in struct cleanup 4

ffi-help: handling types

2017-06-27 Thread Matt Wette
matrix_t)) scheme@(guile-user)> mx $3 = # scheme@(guile-user)> (pointer-to mx) $4 = scheme@(guile-user)> (cairo_get_font_matrix cr (pointer-to mx)) scheme@(guile-user)> Matt

ffi-help: documentation

2017-07-03 Thread Matt Wette
: https://www.nongnu.org/nyacc/ Matt

download link from guile project page is busted

2017-07-07 Thread Matt Wette
ng: “404 not found" I was thinking this is the best place to report. Matt

ffi-helper: status

2017-07-07 Thread Matt Wette
st under /usr/include. However, the above generates 397 FFI declarations into a cairo.scm file which is about 6000 lines long. I’m not sure if I want to start testing this code or start converting suggestions and have guile-users do some testing. Matt P.S. Here is some sample code from

Re: ffi-helper: status

2017-07-07 Thread Matt Wette
> On Jul 7, 2017, at 5:18 PM, Matt Wette wrote: > However, the above generates 397 FFI declarations into a cairo.scm file which > is about 6000 lines long. I’m not > sure if I want to start testing this code or start converting suggestions and > have guile-users do some test

Re: ffi-helper: status

2017-07-10 Thread Matt Wette
> On Jul 7, 2017, at 5:31 PM, Matt Wette wrote: > > >> On Jul 7, 2017, at 5:18 PM, Matt Wette wrote: >> However, the above generates 397 FFI declarations into a cairo.scm file >> which is about 6000 lines long. I’m not >> sure if I want to start test

Re: New object system?

2017-08-01 Thread Matt Wette
he > execution path and so that dynamically if specifically requested nothing will > mutate and only new data structure will be created someting like > > (define newobj (do-not-mutate thunk)) > > But that's for the future. > > Have fun! So no generics? Looks cool. Matt

ffi varargs support

2017-08-13 Thread Matt Wette
libffi will have support for varargs in the future. How could the syntax in Guile be handled? How about ellipsis symbol in pointer->procedure and a pair for each va-arg: type in car and value in car? > (define p (dynamic-func “printf” (dynamic-link))) > (define f (pointer->procedure int p (lis

ffi-help: status to 19 Aug 2017

2017-08-19 Thread Matt Wette
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 the associated C library. Goal is to release something in Oct 2017 but that date is likely to slip. Current shortcomings: 1) Guile do

Re: feature request: simple hashbang for executable scripts

2017-08-24 Thread Matt Wette
> For example, it is quite common to put a shell script between #! and !# > that ends by running Guile on the same file. It is also quite common to > put "-*- scheme -*-" on the second line to that Emacs will recognize the > type of the file. I hadn't thought of this. Pretty cool. mwette$ c

Re: Auto compile from many different languages that interoperates with guile

2017-09-02 Thread Matt Wette
> On Sep 1, 2017, at 1:45 PM, Stefan Israelsson Tampe > wrote: > > Hi, > > I am maintaining a prolog->scheme compiler and a python->scheme compiler. The > nice thing with those implementation is that they work well with the guile > module system and are proper scheme functions and variables

Re: Auto compile from many different languages that interoperates with guile

2017-09-02 Thread Matt Wette
> On Sep 2, 2017, at 6:00 AM, Matt Wette wrote: > > >> On Sep 1, 2017, at 1:45 PM, Stefan Israelsson Tampe >> wrote: >> >> Hi, >> >> I am maintaining a prolog->scheme compiler and a python->scheme compiler. >> The nice thing

ffi-help: #:use-ffi-module

2017-09-07 Thread Matt Wette
o -rw-r--r-- 1 mwette staff 1672685 Sep 7 18:43 gobject.scm.go -rw-r--r-- 1 mwette staff 2018653 Sep 7 20:17 libgit2.scm.go -rw-r--r-- 1 mwette staff 766205 Sep 7 20:17 sqlite3.scm.go Matt

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

2017-09-07 Thread Matt Wette
> On Sep 7, 2017, at 8:32 PM, Matt Wette 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 the associated C library. Goal > is to

[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: https://github.com/TaylanUB/scheme-bytestr

Re: [ANN] nyacc 0.82.0 released

2017-09-10 Thread Matt Wette
> On Sep 10, 2017, at 8:37 AM, Matt Wette 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 of the FFI Helper required the b

Re: [ANN] nyacc 0.82.0 released

2017-09-11 Thread Matt Wette
> On Sep 10, 2017, at 8:37 AM, Matt Wette 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 minor update by end of the coming week

Re: macro helpers

2017-09-12 Thread Matt Wette
is not done by macro? My guess is you are looking for a clean pattern for efficient execution of python for-loops. Why not start with a list of possible implementations, try them out, and then work to develop your syntax-pattern? You could try prompts or continuations maybe. I make :( when I see set! in your pattern, BTW. Matt CC to guile-user as this may be of interest there.

[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: 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.

Re: Wisp as shipped language in Guile?

2017-09-17 Thread Matt Wette
> On Sep 17, 2017, at 4:22 PM, Arne Babenhauserheide wrote: > > > Matt Wette writes: >> Looks promising, especailly if the footprint is small. >> Can someone post the sample guix specification? >> I could not access from the gnunet log. > > Do you me

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 tests are failing. A

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 ma

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., >> https://lists.gnu.org/archive/html/bug-guile/20

Re: ffi-help: status to date

2017-10-24 Thread Matt Wette
> On Oct 22, 2017, at 11:31 AM, Matt Wette 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 associated C library. > > I wa

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: > > > Matt Wette writes: > >> 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 provi

Re: ffi-help: status to 19 Aug 2017

2017-11-09 Thread Matt Wette
> On Nov 9, 2017, at 5:00 PM, Matt Wette wrote: > >> On Nov 9, 2017, at 11:10 AM, Roel Janssen wrote: >>> ... >> >> Thanks for creating this! It seems to be very useful and powerful. >> >> I wanted to try ffi-helper on htslib, but I am confu

Re: ffi-help: status to 19 Aug 2017

2017-11-09 Thread Matt Wette
d' command looks for a scm file with basename of the first argument in a subdirectory scripts/ in LOAD_PATH. So `guild compile-ffi foo.ffi' will execute `scripts/compile-ffi.scm' with argument `foo.ffi'. Matt

Re: ffi-help: status to 19 Aug 2017

2017-11-10 Thread Matt Wette
er constants seam to follow L?'(\\.|[^\\'])+' I believe these are fixed in commit fb03d613. Thanks. I was not using the C readers in the CPP lexer. Matt

Re: [ANN] nyacc 0.82.1 released

2017-11-11 Thread Matt Wette
> On Nov 11, 2017, at 6:27 AM, Jan Nieuwenhuizen 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 > fixed earlier, I think in

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 opti

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 > 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) >> >> 2) better debugging.

Re: GNU Guile 2.2.3 released.

2017-12-02 Thread Matt Wette
aded) 3) for threads, install package `boehm-gc-threaded' and `./configure --with-bdw-gc=bdw-gc-threaded' else 4) for no threads,install package `boehm-gc' and `./configure --without-threads' Matt

Re: GNU Guile 2.2.3 released.

2017-12-02 Thread Matt Wette
> On Dec 2, 2017, at 11:50 AM, Matt Wette wrote: > > >> 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 (`m

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?

ffi-help: documentation

2017-12-06 Thread Matt Wette
show 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 b

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 structs. This would require

Re: Website translations with Haunt

2017-12-10 Thread Matt Wette
> On Dec 10, 2017, at 11:21 AM, pelzflorian (Florian Pelz) > 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_error_handler” but the > “struct p

Re: Website translations with Haunt

2017-12-10 Thread Matt Wette
Please try instead the following: (fh-object-set! eh-struct 'error (ffi:pointer-address error-p)) Matt

Re: Website translations with Haunt

2017-12-12 Thread Matt Wette
ne if some gcc command, via `gcc --print-search-dirs' will find the correct includes? Maybe I should add a `--with-gcc' command line argument. Thanks, Matt

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: 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 ``` ~/code/guile-2.2 $ LDFLAGS=-Wl,-

Re: Simple picture language

2018-03-27 Thread Matt Wette
renderer in order to have a picture language. This is a great hack! Read Andy Wingo's paper on tree fold (mentioned in the Guile Manual). I also use sxml for svg but never realized images could be rendered with Geiser. Pretty sweet. Matt

flow-analysis and Offner's notes

2018-06-08 Thread Matt Wette
uses the argument that the path from s, the start, to z has to include both x and y. I'm not seeing that. Consider a graph s->x, s->y, x->z and y->z. What am I missing? (another example, in figure 2.1 C>>K and B>>K but C and B are not ordered.) Ref: http://www.cs.umb.edu/~offner/files/flow_graph.pdf Matt

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&

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

multi-lingual guile: language strictness

2018-07-13 Thread Matt Wette
Guile name these extension languages according to what they attempt to mimic (e.g., javascript), or rather rename to something that has a similar sounding name (e.g., guavascript), or, as another option, rename with an extension monicker (e.g., javascriptx)? 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

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

loading an ecmascript file

2018-07-15 Thread Matt Wette
user) [1]> ,bt 2 (primitive-load-path "nyacc/lang/javascript/,zz.js") In ice-9/eval.scm: 223:20 1 (proc #) In unknown file: 0 (%resolve-variable (7 . var) #) ecmascript@(guile-user) [1]> scheme@(guile-user)> (load ",zz.js") ERROR: In procedure %resol

ldconfig complaint about libguile...-gdb.scm

2018-07-20 Thread Matt Wette
been reported as a "bug"? It is not a problem, but could lead to numerous bug reports in the future. I think ldconfig looks at all files of the form lib* in searched lib dirs. Matt

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 dep

nyacc support for extension languages

2018-08-12 Thread Matt Wette
le-user)> c $1 = 6 nx-matlab@(guile-user)> d $2 = 1 nx-matlab@(guile-user)> e $3 = 2 I am working in the nxdev branch of git://git.savannah.nongnu.org/nyacc.git. Matt

handling alternative languages in Guile

2018-08-19 Thread Matt Wette
to #:opts ! (cons* #:to-file? #t opts)) !port))) ! file) ! comp))) Matt

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 a

Re: speedup of modifying return values

2018-08-29 Thread Matt Wette
should be "marking" functions with a property to indicate what the source language is. The property could be 'language. (If no language assume 'scheme.) Matt

my emacs minor-mode for generating docstrings, v180902d

2018-09-02 Thread Matt Wette
7;'lt', ''gt', ''eq' or '#f'. Note: PO may not a true partial order as we can have a a=b. For example, (prece a a po) => 'eq. Here is scheme-texidoc.el: ;;; scheme-texidoc.el --- minor mode to make scheme doc-strings from

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

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 Copy

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 gui

[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: [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 h

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)

working to update pointer->procedure

2018-11-30 Thread Matt Wette
specified argument. The car of the pair is the ffi type (e.g., int) and the car is the value. (use (system foreign)) (define scm-printf (pointer->procedure int (dynamic-func "printf") ('* '...))) (scm-printf (string->pointer "ans=%d\n") (cons int 4)) Comments? Matt

failed to create path for auto-compiled file

2019-01-15 Thread Matt Wette
be reported as a bug? Matt

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

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: 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 th

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

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: 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: 6

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

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

Re: GNU Guile 2.9.6 Released [beta]

2019-12-07 Thread Matt Wette
/vm/linker.go" "../module/system/vm/linker.scm" Makefile:1930: recipe for target 'system/vm/linker.go' failed make[2]: *** [system/vm/linker.go] Error 139 I tried to get the guild-compile running under meta/gdb-uninstalled-guile but failed. Matt

Re: GNU Guile 2.9.7 Released [beta]

2019-12-13 Thread Matt Wette
wette/proj/guile/guile-2.9.7/module" -L "/home/mwette/proj/guile/guile-2.9.7/guile-readline" -o "system/vm/linker.go" "../module/system/vm/linker.scm" wrote `system/vm/linker.go' In the second case I removed "-Oresolve-primitives".  I could not trace down further. Matt

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 wri

Re: Logo baseline

2020-01-18 Thread Matt Wette
s out, though I don't think this is that good either: Guile is GNU's functional, high-performance, systems programming implementation. FWIW, I still look to guile for tool extension and integration. Matt

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

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"?

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   INPUT(liby

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

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

generating SXML trees in guile

2021-01-09 Thread Matt Wette
x2 '()) (sx2 (cons '(a "1") sx2)) (sx2 (cons '(a "1") sx2)) (sx2 (cons '*TOP* sx2))) (eq? (list-ref sx2 1) (list-ref sx2 2))) => #t In my sandbox, I'm using copy-tree which seems to be changing the #t to #f, so at least that works. Matt

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

Re: Implementing ES6 on top of Guile

2021-07-06 Thread Matt Wette
/examples/nyacc/lang/javascript I stopped at implementing objects, because I wanted to have a uniform implementation.   The above does have functions and control structures. Matt

  1   2   >