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 you use -Wall

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

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

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

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: 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 could keep

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_CLOEXEC

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. Oops! Sorry

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 converted to real.

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 #procedure symbol args But

Re: What new libraries or functionality does Guile need?

2008-07-18 Thread dsmich
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: 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

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 the library

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 your problem

Re: role of guile-lib

2008-12-25 Thread dsmich
Andy Wingo wi...@pobox.com wrote: On Wed 24 Dec 2008 22:14, Julian Graham jool...@gmail.com 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 neiljer...@googlemail.com 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

Re: why guile is so slow?

2009-12-26 Thread dsmich
Chengqi Song son...@gmail.com 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

Re: get procedure?

2010-02-17 Thread dsmich
Thomas Thiriez tho...@twistedwave.com 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);

Re: Converting s-expressions to XML

2010-06-17 Thread dsmich
Josef Wolf j...@raven.inka.de 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 j...@raven.inka.de 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 spk...@yahoo.com 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

Re: Installing scheme only programs

2011-03-10 Thread dsmich
nalaginrut nalagin...@gmail.com 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

Re: file magic

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

Re: guile macros and binary API

2012-03-08 Thread dsmich
Alexei Matveev alexei.matv...@gmail.com 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)

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 issued complaining about the

Re: install fails

2013-03-24 Thread dsmich
Andreas Röhler andreas.roeh...@easy-emacs.de 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

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

2013-08-25 Thread dsmich
Klaus Schilling schilling.kl...@web.de wrote: From: Matt Wette mwe...@alumni.caltech.edu 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

Re: guile-2.0 on mingw: the sequel

2013-08-25 Thread dsmich
Mark H Weaver m...@netris.org wrote: Eli Zaretskii e...@gnu.org writes: From: Mark H Weaver m...@netris.org 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

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

2013-08-26 Thread dsmich
mark.d.wit...@gmail.com wrote: Alex Sassmannshausen alex.sassmannshau...@gmail.com 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

Re: Load external scm files

2013-12-04 Thread dsmich
Lovis Suchmann panlo...@aol.com 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

Re: Welcome Mark as new co-maintainer

2014-05-28 Thread dsmich
Ludovic Courtès l...@gnu.org 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

Re: Shell-escape a string

2015-03-06 Thread dsmich
Mark A. Hershberger m...@nichework.com 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

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

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

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

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

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

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

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

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

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

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

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.

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

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