RE: GNU Guile 2.9.9 Released [beta]

2020-01-14 Thread dsmich
> We are pleased to announce GNU Guile release 2.9.9. When attempting to build on a Debian Jessie 32bit arm system, gcc (Debian 4.9.2-10+deb8u2) 4.9.2 I'm working on updating this system to Debian Stable, but it might require wiping it and doing a fresh install.

RE: vector-last / vector-ref with negative indices?

2020-12-20 Thread dsmich
Maybe sort the vector in the other direction and access with index 0 instead? -Dale -From: "Aleix Conchillo Flaqué" To: "guile-user" Cc: Sent: Sunday December 20 2020 1:59:04AM Subject: vector-last / vector-ref with negative indices? Hi, This

RE: #guile libera.chat

2021-05-29 Thread dsmich
Greetings Matt, You also must register your nick with nickserv before you can speak in the channel. -Dale

Re: return macro

2021-09-30 Thread dsmich
From: "adriano" > (import (ice-9 control)) > > (define (test x) > (let/ec return > (cond > ((= x 3) (return 7)) > ((= x 2) (return 5) > What does this return (defined with let/ec) do ? > In the orevious versions I could see the call to call/cc so I could > (somewhat) figure out the

Re: Newbie thoughts on Guile Hall + Guix

2022-02-06 Thread dsmich
From: "Mikael Djurfeldt" To: "Aleix Conchillo Flaqué" Cc: "guile-user" Sent: Sunday February 6 2022 8:15:06AM Subject: Re: Newbie thoughts on Guile Hall + Guix > I also think that there is a need for something light-weight and cross > platform. I think, e.g., that PyPI is one of the main reasons

RE: Module dependencies

2022-03-19 Thread dsmich
> From: "Jérémy Korwin-Zmijowski" > > I would like to visualize all the modules a given module depend on. > > How do you achieve that ? > > Any existing tool ? Maybe this from the guile sources: module/scripts/use2dot.scm -Dale

RE: Wiki && Re: [feature request] merge sxml->html from (haunt html) into guile?

2022-06-28 Thread dsmich
> From: "Blake Shaw" > Subject: Wiki && Re: [feature request] merge sxml->html from (haunt html) into guile? > > Since getting feedback on my presentation for Guix Days, where I think a > lot of good criticism was raised, I've been thinking about ways to organize > contributions to the docs. An

RE: Fibers web server: use multiple server sockets

2022-11-02 Thread dsmich
> From: "Vivien Kraus" > To: "guile-user" > Sent: Wednesday November 2 2022 12:38:05PM > Subject: Fibers web server: use multiple server sockets > Fibers is a library that I would very much like to use. It provides a > nice web server. However, as I recently discovered, in a standard > GNU/Linux

Re: [ANN] Guile-Parallel 1.0.0 released

2023-01-03 Thread dsmich
> From: "Olivier Dion via General Guile related discussions" > On Mon, 02 Jan 2023, Olivier Dion via General Guile related discussions wrote: > On Mon, 02 Jan 2023, Greg Troxel wrote: > > Hmm from a description I see on Guix, libev has relative timers. I > > don't know if it's portable like li

Re: Guile-GDBM 1.1.0 available

2013-08-15 Thread dsmich
"Ludovic Courtès" wrote: > Hi, > > Thien-Thi Nguyen skribis: > > > Guile-GDBM is a Guile module that provides Scheme bindings to the > > GNU dbm library. It was originally written by Martin Grabmüller > > and is now released under the GNU General Public License (GPL) > > version

Re: [ANN] Guile-WM 0.1/Guile XCB 1.1

2013-08-25 Thread dsmich
Klaus Schilling wrote: > From: Matt Wette > Subject: Re: [ANN] Guile-WM 0.1/Guile XCB 1.1 > Date: Sat, 24 Aug 2013 16:40:18 -0700 > > > FYI, there is also "sawfish" : http://sawfish.wikia.com/wiki/Main_Page > > > > I used sawfish (aka sawmill?) many years ago > > > > On Aug 24, 2013, a

Re: guile-2.0 on mingw: the sequel

2013-08-25 Thread dsmich
Mark H Weaver wrote: > Eli Zaretskii writes: > > >> From: Mark H Weaver > >> Cc: godek.mac...@gmail.com, guile-user@gnu.org > >> Date: Sun, 25 Aug 2013 15:56:53 -0400 > >> > >> Remember that Guile is a library, not just an executable. So argv[0] > >> could point to any arbitrary execu

Re: [ANN] Guile-WM 0.1/Guile XCB 1.1

2013-08-26 Thread dsmich
mark.d.wit...@gmail.com wrote: > Alex Sassmannshausen writes: > > When I start guile up, the variable %load-path is the list '("./" > "/usr/share/guile/2.0" "/usr/share/guile/site/2.0" > "/usr/share/guile/site" "/usr/share/guile"). Beware! You really should not have "." in your %load-pat

Re: Load external scm files

2013-12-04 Thread dsmich
Lovis Suchmann wrote: > Hello everyone, > > I'm working with Guile Scheme (with the LilyPond music engraver > software, if someone knows this), and atm I have the problem that I > would like to load an external scheme file in the current environment, like > > ; external.scm > (define x 3

Re: Welcome Mark as new co-maintainer

2014-05-28 Thread dsmich
"Ludovic Courtès" wrote: > Hello Guilers, > > I’m happy to announce that Mark H. Weaver has now been officially > appointed as Guile co-maintainer by the GNU Project overseers, along > with Andy and myself. > > Mark has been doing excellent work on Guile for several years, > tirelessly lo

Re: Shell-escape a string

2015-03-06 Thread dsmich
"Mark A. Hershberger" wrote: > > Is there a piece of standard code or a library that I can use to escape > a string so it is safe to pass to bash? > > Specifically, I have submitted this bit[1] to add deletion of duplicate > messages to a guile script included with mu (maildir utils) and

Re: [RFC] Guile project generator

2015-09-14 Thread dsmich
David Thompson wrote: > Hello Guilers, > > Following a conversation on #guile about making it easier to generate > boilerplate for new Guile projects and reduce the need to snarf and/or > monkey type build system configs from other projects, I would like to > throw out an idea for a new gu

Re: Guile-SQLite3 - Guile-SQLite

2015-11-24 Thread dsmich
David Pirotte wrote: > Hello Guilers, > > I would like to work on and submit a GNU eval request for GNU Guile-SQLIte > but 2 quizz first: > > 1] > > The current name is Guile-SQLite3 and I would like to drop the 3 from the > name, > precisely not to have the API version in the name, rat

Re: Guile-SQLite3 - Guile-SQLite

2015-11-24 Thread dsmich
David Pirotte wrote: > Hi Dale, > > > > However, Andy Wingo [the original author of Guile-SQLite3 binding] > > > mentioned on > > > irc that a guile-sqlite project previously existed maybe? I can't find > > > it and > > > would like, if this is accurate, the author or anyone who would b

Re: Simulating rational number addition/subtraction

2016-02-24 Thread dsmich
Lawrence Bottorff wrote: > With guile (and a few other Schemes/Lisps) you can directly add fractions > or rational numbers: > > (+ 1/2 1/12) > => 7/12 > > It's like magic, no? Anyway, I'm trying -- for educational purposes -- to > reproduce this functionality. But right out of the blocks

Re: failed make: "'aclocal-1.14' is missing on your system"

2016-05-21 Thread dsmich
Thomas Morley wrote: > Hi all, > > I cloned the guile-git-repository in my home-directory and tried to > compile a local branch called `my-v2-second-try` (derived from > `remotes/origin/stable-2.0`). > > Following the steps listed in INSTALL I did > ./configure The INSTALL instruction are

Re: Solid modeling in Guile

2016-08-18 Thread dsmich
Matthew Keeter wrote: > Hi Guile-folks, > > I wrote a computer-aided design (CAD) tool that you may find interesting. > > It’s a solid modeling tool that uses Guile scripts to define objects (and > constructive solid geometry + functional representations under the hood). > > Project page

Re: Multiple values passed as single argument to procedure

2017-06-13 Thread dsmich
Mark H Weaver wrote: > David Kastrup writes: > > > Mark H Weaver writes: > >ument > >> I'm sorry David, but _everything_ that you wrote below is incorrect. > > > > Well, let me try again. It's not all that easy to understand. > > You're obviously quite intelligent and knowledgeable, so

Re: Building Guile from git sources stuck during make

2018-03-24 Thread dsmich
Jeremy Korwin-Zmijowski wrote: > Dears, > > I am trying to build Guile from git sources (master branch) but when I > issue make command, the process is stuck here : > > GEN guile-procedures.texi > make[3]: Leaving directory `/home/jeko/Builds/guile/libguile' > make[2]: L

Re: scm_gc_malloc() function parameters

2018-12-23 Thread dsmich
Stephen Scheck wrote: > Per https://www.gnu.org/software/guile/manual/guile.html#Memory-Blocks - > the scm_gc_malloc() function takes a const char * for the second parameter: > > void * scm_gc_malloc (size_t size, const char *what) > > However, the docs do not explain what it is for,

Re: compiling and linking a trivial guile example

2006-04-05 Thread dsmich
Chusslove Illich <[EMAIL PROTECTED]> wrote: > > [: Ido Yehieli :] > > return scm_str2string (getenv ("HOSTNAME")); > > [...] > > /tmp/ccerLXy4.o: In function `my_hostname':simple-guile.c:(.text+0x16): > > undefined reference to `scm_str2string' > > scm_str2string doesn't seem to exist. If yo

Re: docstrings and snarfing

2006-07-15 Thread dsmich
Kevin Ryde <[EMAIL PROTECTED]> wrote: > "Dave Griffiths" <[EMAIL PROTECTED]> writes: > > > > I tried running the example through the C preprocessor, and it seems > > the docstring is lost anyway: > > There's some magic with a "-DSCM_MAGIC_SNARF_DOCS" to get them, then > the scripts/snarf-che

Re: docstrings and snarfing

2006-07-15 Thread dsmich
Kevin Ryde <[EMAIL PROTECTED]> wrote: > "Dave Griffiths" <[EMAIL PROTECTED]> writes: > > > > I tried running the example through the C preprocessor, and it seems > > the docstring is lost anyway: > > There's some magic with a "-DSCM_MAGIC_SNARF_DOCS" to get them, then > the scripts/snarf-che

Re: saving and restoring the error stack trace

2006-08-28 Thread dsmich
Neil Jerram <[EMAIL PROTECTED]> wrote: > Neil Jerram <[EMAIL PROTECTED]> writes: > > > Thanks; I expect to have some draft text for you by end tomorrow. > > Draft text is below; please let me know your thoughts on it - most > importantly, of course, whether it answers your question! > 5.21

Re: guile and XML (mixp)

2006-11-22 Thread dsmich
Paul Emsley <[EMAIL PROTECTED]> wrote: > > Anyone using mixp and can help out here? > > > $ [configure/make/make install all clean] > $ cd test > $ guile-expat test-mixp.scm > /xxx/guile/1.6/ice-9/syncase.scm:130:16: In procedure scm-error in expression > (scm-error (quote misc-error) who

Re: modules and C

2007-03-21 Thread dsmich
David Fang <[EMAIL PROTECTED]> wrote: > Hi, > I'm having a bit of trouble using a symbol I defined in C from a > module: > What do I need to do to export my scm_c_define_gsubr'd > functions to the module? Must I wrap them into another module in C, and > use-module it? (Would I

Re: debugging guile test failure and segfault.

2007-06-13 Thread dsmich
"Ludovic Courtès" <[EMAIL PROTECTED]> wrote: > Hi, > > Greg Troxel <[EMAIL PROTECTED]> writes: > > > I have this patch lying around from adding pkgconfig support long ago; I > > think I sent it and there wasn't much interest then. > > FWIW, I'm all in favor of applying such a patch. We c

Re: (fcntl fd F_GETLK ...) from Guile

2007-08-31 Thread dsmich
Kaloian Doganov <[EMAIL PROTECTED]> wrote: > Is there a way to use fcntl's F_GETLK command from Guile? According > to the docs [1], only the following commands are available: > > F_DUPFD > F_GETFD > F_SETFD > F_GETFL > F_SETFL > F_GETOWN > F_SETOWN > FD_CLOE

Re: (fcntl fd F_GETLK ...) from Guile

2007-09-01 Thread dsmich
Kevin Ryde <[EMAIL PROTECTED]> wrote: > Kaloian Doganov <[EMAIL PROTECTED]> writes: > > > > Neighter F_GETLK nor F_SETLK is there. > > Yep, not there. It'd need something for "struct flock" (and "struct > flock64" when available), they're not plain integers like the other > fcntl commands.

Re: bug in read?

2007-09-23 Thread dsmich
Andy Wingo <[EMAIL PROTECTED]> wrote: > Hi, > > Since it's a week later now and no one's answered: > > On Mon 17 Sep 2007 23:49, "Luigi Semenzato" <[EMAIL PROTECTED]> writes: > > > Is this a reader bug? Hash marks following > > an integer are interpreted as zeros, and the > > number is c

Re: Beginner question: where is defstruct?

2007-10-11 Thread dsmich
Josef Wolf <[EMAIL PROTECTED]> wrote: > Thanks for the explanation, Ludovic! I'll go and try to read/understand > srfi-9. > > BTW: Why do people teach newbies non-portable things in their tutorials? In this case, I think that tutorial predates the srfi. -Dale __

Re: finding procedure definitions

2008-02-29 Thread dsmich
"Scott N. Walck" <[EMAIL PROTECTED]> wrote: > Guile folks, > > Is there a way to ask for the definition of a procedure or to find the > source code for a procedure? Yes. > For example, "symbol" is a guile procedure. I can see that by typing > its name. > > guile> symbol > # > > But how

Re: Debian guile-1.8 and ttn guile-pg

2008-03-31 Thread dsmich
Greg Troxel <[EMAIL PROTECTED]> wrote: > [guile-pg and guile 1.8] > > I was hoping his guile-pg would work because it doesn't explicity > state that a 1.4.x guile is required like some of his other packages > do. > > It works fine under 1.6. What it needs is the feature, deprecate

Re: freenode channel empty?

2008-05-03 Thread dsmich
David Pirotte <[EMAIL PROTECTED]> wrote: > Hi everyone, > > As the freenode #guile channel talk been removed ? When I connect, > it's empty, I feel lownly :-) No problems for me. -Dale

Re: What new libraries or functionality does Guile need?

2008-07-18 Thread dsmich
> if this is of any help, but even a simpler interface would be nice. Hmm. I have a small wrapper that I have been using in sneek (the #guile channel bot on freende) for years. It just provides open, close, and exec. I think it's still at http://users.adelphia.net/~dsmich/guile-sqlite-0.4.tar.gz -Dale

Re: What new libraries or functionality does Guile need?

2008-07-18 Thread dsmich
Andre Kuehne <[EMAIL PROTECTED]> wrote: > 2) Displaying the signature/parameters of the function around point in the > message-line of emacs > would be helpful too. Yes. There ought to be a way of adding this to gds. I think we just need some hooks for eldoc-mode, right? -Dale

Re: X11 bindings and shell bindings

2008-09-18 Thread dsmich
Ishan Arora <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for the reply. I tried system. It calls the code synchronously, and > returns a number for success or failure of the command. Is there a way such > that the stdout output of the command is returned as a string? Thanks again. Try open-i

Re: guile-db

2008-10-20 Thread dsmich
Clinton Ebadi <[EMAIL PROTECTED]> wrote: > (define-module (pg whatever) > #:export (guile-pg symbols ...)) > > (load-extension "libwhateverpg" "guile_pg_init") > > Is roughly what you need. Assuming that there is an init function in > guile-pg that creates all of bindings for th

Re: Dynamic variable binding

2008-11-12 Thread dsmich
"Ludovic Courtès" <[EMAIL PROTECTED]> wrote: > Sebastian Tennant <[EMAIL PROTECTED]> writes: > > What exactly happens when you 'define' a symbol? > > But, just like "`eval' is evil", run-time symbol definition doesn't > sound right. Surely, there are other ways that you could use to solve >

Re: role of guile-lib

2008-12-25 Thread dsmich
Andy Wingo wrote: > > On Wed 24 Dec 2008 22:14, "Julian Graham" writes: > > > Evan Prodromou's (net http) > > I haven't seen this code, but I want it! :) If you can't find this anymore (I can't), I have a copy. -Dale

Re: Killing off scm_init_guile for Guile 2.0 ?

2009-01-16 Thread dsmich
Neil Jerram wrote: > scm_init_guile has always been a bit problematic, as it requires lots > of heuristic and OS-dependent code to try to determine where the base > of the stack is. It's never been formally deprecated, but we have > always advised people to use scm_boot_guile or scm_with_gu

Re: why guile is so slow?

2009-12-26 Thread dsmich
Chengqi Song wrote: > the reference is here: > http://www.littlewingpinball.com/contents/en/ypsilon_1g.html > > just for your reference > > lars > Why? "System information: Guile 1.8.3 " Guile 1.8 and earlier is an interpreter. 2.0 (and the current 1.9.x) compiles to a vm a

Re: get procedure?

2010-02-17 Thread dsmich
Thomas Thiriez wrote: > Hi Paul, > > Here is what you should use for xxx: > > SCM FindFunc(const char *funcName) > { >SCM funcSymbol = scm_c_lookup(funcName); > >if (!funcSymbol) > // undefined symbol > return 0; > >return scm_variable_ref(funcSymbol); > } Oi!

Re: logical shift operators in guile?

2010-06-09 Thread dsmich
Andy Wingo wrote: > Hi Steve, > > On Wed 09 Jun 2010 06:04, steve tell writes: > > > Does guile (1.8.x, or any version) have the integer logical shift > > operators, like C's << and >> ? > > We have ash (arithmetic shift) but not lsh (logical shift). I admit I am > somewhat ignorant reg

Re: Converting s-expressions to XML

2010-06-17 Thread dsmich
Josef Wolf wrote: > Hello, > > I am trying to write a (simple) function to convert s-expressions to XML. Guile 1.9/2.x has sxml modules. So (use-modules (sxml simple)) (define (sexp->xml s) (sxml->xml s)) Ought to get you pretty close. (untested) -Dale

Re: Converting s-expressions to XML

2010-06-17 Thread dsmich
Josef Wolf wrote: > Hello, > > I am trying to write a (simple) function to convert s-expressions to XML. Guile 1.9/2.x has sxml modules. So (use-modules (sxml simple)) (define (sexp->xml s) (sxml->xml s)) Ought to get you pretty close. (untested) -Dale

Re: C module problem

2011-02-28 Thread dsmich
Mike Gran wrote: > On Linux (the kernel), to see if this is the case (and I'm going > from memory here, so forgive me if this isn't perfect) you can > run guile as > > "LD_DEBUG=all LD_DEBUG_OUTPUT=tmp.txt guile" > > and then try to load your extension. > > Then after your run, it shoul

Re: Installing scheme only programs

2011-03-10 Thread dsmich
nalaginrut wrote: > > I wonder if there is a tool to, say, strip all comments from the > > "binary", so it could be smaller. I guess such tool would not be that > > hard to write, but I don't know. > > I think it's not a big deal if you just want to get rid of comments.I > always do it lik

file magic

2011-11-01 Thread dsmich
Greetings Guilers, The other day I happened to run the file command on some .go files, and they show up as the rather unhelpful "data". So I added some bits to my /etc/magic file: 0 string GOOF Guile Object >8 string LE little endian >8 string BE big endian >11

Re: file magic

2011-11-02 Thread dsmich
"Ludovic Courtès" wrote: > Neat! What about submitting it upstream? :-) (smacks head) Great idea! Done. -Dale

Re: About gh.h

2011-11-09 Thread dsmich
"Germán Arias" wrote: > I'm trying to update an old gnustep library that uses guile. But it > requieres gh.h header. > As I can see this header don't exist. So, which header should I use > instead it? The new interface has a new header, it's libguile.h The old gh interface was deprecate

Re: guile macros and binary API

2012-03-08 Thread dsmich
Alexei Matveev wrote: > As a background, Fortran allows you to declare "foreign" functions, for > example, > like this: > > type, public, bind(c) :: scm_t >private >integer(c_intptr_t) :: do_not_ever_use > end type scm_t > > interface > function scm_symbol_p (obj) result (yes)

Re: guile 2.0.7 installation problems: configure issues libltdl error

2012-12-07 Thread dsmich
msemat...@myopera.com wrote: > On Thu, Dec 6, 2012, at 08:24 PM, Mark H Weaver wrote: > > msemat...@myopera.com writes: > > > Last line of configure output: > > > > > > ... > > > ... > > > ... > > > checking for libltdl... no > > > > > > and an error is issue

Re: install fails

2013-03-24 Thread dsmich
"Andreas Röhler" wrote: > Hi, > > Emacs install from > > http://git.hcoop.net/?p=bpt/emacs.git;a=shortlog > > fails with > > configure: error: Library requirements (guile-2.0) not met; consider > adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a > nonstanda