Re: Curiosity: Microkernel implemented in Guile ?

2022-06-23 Thread Paul Emsley
On 23/06/2022 14:30, Dr. Arne Babenhauserheide wrote: Ognen Duzlevski writes: Matias Jose Seco Baccanelli writes: Isn't a cool mix the functional approach of Guile and the modular one of Microkernel ? (and loads of more features i suppose!) What I think would be easier to do is embed Sche

G-Golf - Getting started

2021-04-12 Thread Paul Emsley
Hi G-Golfers, >From here: https://www.gnu.org/software/g-golf/manual/g-golf.html GNU G-Golf can be obtained from the following archive site http://ftp.gnu.org/gnu/g-golf/. The file will be named g-golf-version.tar.gz. The current version is 0.1.0, so the file you should grab is: ht

Re: Guile + SWIG

2021-04-08 Thread Paul Emsley
When scripts with load-extension are compiled, the compiler does not know > what symbols are defined in the extension so you may get warnings. Are you > getting an error or just the warning? > > On 4/5/21 10:44 AM, Paul Emsley wrote: > > Hi Linas, > > > > Thanks for

Re: Guile + SWIG

2021-04-05 Thread Paul Emsley
oot-p) > > > In your example, you never explained how "enhanced-ligand-coot-p" > magically showed up in your environment. > > When a module is defined, it starts with a new environment. The module > cannot access stuff you've defined previously; you would have to

Guile + SWIG

2021-04-05 Thread Paul Emsley
Hi, I am bringing my swigged Gtk2 + guile 1.8.8 + guile-gtk application up to date and I'd like some help please. My SWIG usage wraps many function, including enhanced_coot_ligand_p(). I am confused between the difference between functions that are available from C/C++ and those from a scheme s

Guile + SWIG

2021-04-05 Thread Paul Emsley
Hi, I am trying to bring my swigged Gtk2 + guile 1.8.8 + guile-gtk application up to date and I'd like some help please. My SWIG usage wraps many function, including enhanced_coot_ligand_p(). I am confused between the difference between functions that are available from C/C++ and those from a s

Compiling guile-2.0.12

2016-08-11 Thread Paul Emsley
$ ./configure --prefix=$HOME/guile-2 --with-libltdl-prefix=$HOME/guile-2 checking for dlopen... no checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... yes checking whether stripping libraries is

Re: getting started writing desktop applications

2016-07-17 Thread Paul Emsley
On 17/07/2016 17:38, Christopher M. Hobbs wrote: Is there a recommended library for building desktop applications? Maybe some GTK (or maybe Tk, as old as it is) tie-ins or something to that effect? There's guile-gnome: https://www.gnu.org/software/guile-gnome/ P.

Re: simple example to evaluate strings

2013-12-21 Thread Paul Emsley
On 21/12/13 03:57, Josh Stratton wrote: I'm completely new to guile and am trying to find a simple example of evaluating a string inside C with some kind of context. I want to execute small self-contained strings provided by a user. I've looked at various examples, but everything I've seen se

Re: Extending a GTK+ Application with Guile

2012-05-25 Thread Paul Emsley
On 24/05/12 20:11, Kevin J.Fletcher wrote: Hello Guilers. My intent is to add guile as a method of [optionally, at build time] extending a GTK+ application. With the addition of being able to run guile scripts I hope to provide a guile-shell to give real-time interactive power. Very good. Th

Re: execlp

2011-11-23 Thread Paul Emsley
uot;") will access. Since the second parameter is optional, scm_execlp doesn't handle exec_argv unbounded situation. On Wed, Nov 23, 2011 at 12:06 AM, Paul Emsley mailto:paul.ems...@bioch.ox.ac.uk>> wrote: Hi, I am trying to see if there is a way to determine if a progra

execlp

2011-11-22 Thread Paul Emsley
Hi, I am trying to see if there is a way to determine if a program is in the path (i.e. a bit like "which"), returning a #t or #f answer. I was looking execl and execlp. The documentation for execl says: > Executes the file named by path as a new process image what is path ? I'm guessing

Re: Problem to compile g-wrap

2011-10-12 Thread Paul Emsley
On 03/10/11 23:58, Germán Arias wrote: I found the problem. the configuration say: checking size of size_t... 4 checking size of ssize_t... 4 checking for guile... /usr/local/bin/guile checking for guile-config... /usr/local/bin/guile-config checking for guile-tools... /usr/local/bin/guile-tools

Re: --with-libgmp-prefix

2011-06-28 Thread Paul Emsley
On 28/06/11 13:45, Paul Emsley wrote: Hi, I don't understand how the --with-libgmp-prefix is supposed to work. In fact, I'd go as far as saying that it's broken. ./configure --with-libgmp-prefix=/opt in configure additional_includedir and additional_libdir get set co

--with-libgmp-prefix

2011-06-28 Thread Paul Emsley
Hi, I don't understand how the --with-libgmp-prefix is supposed to work. In fact, I'd go as far as saying that it's broken. ./configure --with-libgmp-prefix=/opt in configure additional_includedir and additional_libdir get set correctly but in config.log, I see: configure:36897: checking fo

Re: map, for-each

2010-08-26 Thread Paul Emsley
On 26/08/10 12:17, Eric J. Van der Velden wrote: Hello, I don't understand what the manual says about when there are more then two arguments to map or for-each. With two arguments, the last one must be a list, so OK is (for-each display '(1 3)) But the following are ERR, (for-each display

Re: get procedure?

2010-02-17 Thread Paul Emsley
Paul Emsley wrote: I don't understand what xxx is. Can you help? (Bit of a noob question, I feel). SCM rest = SCM_EOL; SCM arg_list = SCM_EOL; arg_list = scm_cons(SCM_MAKINUM(4), arg_list); arg_list = scm_cons(SCM_MAKINUM(1), arg_list); SCM func = xxx("-&qu

get procedure?

2010-02-17 Thread Paul Emsley
I don't understand what xxx is. Can you help? (Bit of a noob question, I feel). SCM rest = SCM_EOL; SCM arg_list = SCM_EOL; arg_list = scm_cons(SCM_MAKINUM(4), arg_list); arg_list = scm_cons(SCM_MAKINUM(1), arg_list); SCM func = xxx("-"); SCM v = scm_apply_1(func, arg_list, rest

Re: strange behaviour of (floor .)

2009-12-28 Thread Paul Emsley
gu...@mails.selgrad.org wrote: Hej all :) I'm a little confused by the results of (floor .) in a simple computation to get the fractional part of a monetary value. Maybe someone can comment on this, as especially in the last test case below the results seem very strange to me... The starting

Re: calling scheme procedures by name from C

2009-08-02 Thread Paul Emsley
Richard Shann wrote: SCM proc = gh_str2scm("d-UploadRoutine", strlen("d-UploadRoutine")); // proc = scm_string_to_symbol("d-UploadRoutine"); // proc = scm_string_to_symbol( gh_str2scm("d-UploadRoutine", strlen("d-UploadRoutine"))); SCM arg1 = gh_str2scm("hello", strlen("hello")); SCM arg2 =

guile and libtool

2009-08-01 Thread Paul Emsley
$ ./configure [snip] checking for lt_dlinit in -lltdl... no configure: error: libltdl not found. See README. I'd like guile to have a libtool argument, say --libtool=DIR that specifies where guile should find ltdl. Is it inelegant to have to fiddle with LIBS environment variable. Would you

Re: GNU Guile 1.9.0 released (alpha)

2009-06-22 Thread Paul Emsley
Ludovic Courtès wrote: We are pleased to announce GNU Guile release 1.9.0. I don't think that we thank the guile developers enough on this list. So I for one would like to thank you for your work. I enjoy using Guile, it works nicely in my project and am looking forward to using the new rel

Re: mod_lisp for apache?

2009-04-13 Thread Paul Emsley
Paul Emsley wrote: Knowing next to nothing about it, I thought I'd try out using guile with apache/mod_lisp for educational purposes. I can't find documentation/tutorials for this - even the fractal concept page is broken/out of date - however I did find that you can get mod

mod_lisp for apache?

2009-04-13 Thread Paul Emsley
Knowing next to nothing about it, I thought I'd try out using guile with apache/mod_lisp for educational purposes. I can't find documentation/tutorials for this - even the fractal concept page is broken/out of date - however I did find that you can get mod_lisp.xx.c from here: http://www.

Re: Valgrind warnings with -1.8.6

2009-04-08 Thread Paul Emsley
Ludovic Courtès wrote: Hello, Neil Jerram writes: That is fundamentally true; however, we have recently addressed some genuine Valgrind warnings in the 1.8.x development branch. These were Helgrind warnings, not Memcheck warnings, right? There's a suppression file there: http://

guile-dbi for Oracle?

2009-02-03 Thread Paul Emsley
Hi (Linas), A user of my (guile-embedding) program has an Oracle database and asked me if it was possible to interact with it (the database) in interesting ways from my program (i.e. guile really). Is that possible or hopeless? Thanks, Paul.

Re: Greg testing framework

2009-02-03 Thread Paul Emsley
Ludovic Courtès wrote: Hi, Paul Emsley writes: However, Greg is great. This is Greg's Home: http://home.gna.org/greg/ I made some fixes that didn't make it into stable release, I get the fixed up Greg from here: http://www.ysbl.york.ac.uk/~emsley/software/extras/greg-2.0.0

Re: more debugging info needed.

2009-02-02 Thread Paul Emsley
Neil Jerram wrote: Paul Emsley writes: I did read the manual. Still I have the same problem, but now it seems clearer to me that I can't catch anything because Greg eats it first. Greg has the unfortunate characteristic of being ungooglable... so I can't immediately tell if it&#

Re: more debugging info needed.

2009-02-01 Thread Paul Emsley
Neil Jerram wrote: Paul Emsley writes: Hi Guilers, I'd like more more debugging info, I currently get something like: Exception: (wrong-type-arg #f Wrong type (expecting ~A): ~S (pair D) (D)) I have (turn-on-debugging) in my begin.grg file. I'd like to see the line number too

more debugging info needed.

2009-02-01 Thread Paul Emsley
Hi Guilers, I'd like more more debugging info, I currently get something like: Exception: (wrong-type-arg #f Wrong type (expecting ~A): ~S (pair D) (D)) I have (turn-on-debugging) in my begin.grg file. I'd like to see the line number too. Is that possible? Thanks, Paul.

Re: X11 bindings and shell bindings

2008-09-18 Thread Paul Emsley
Ishan Arora wrote: Hi, Is there a procedure to get mouse position. I guess there may be a way via X11, but it is not clear to me. What you might want to be doing is knowing the coordinates of a click in a canvas, which is not the same thing (and easier). And is there a procedure to synchro

Re: scheme -> (X)HTML

2008-03-31 Thread Paul Emsley
Julian Graham wrote: On Tue, Mar 25, 2008 at 3:37 PM, Paul Emsley <[EMAIL PROTECTED]> wrote: Dear Guilers, I have in mind to write a little script that makes a web page about the state of various files. I'd like to use some schemey way of doing this. s-expression ->

scheme -> (X)HTML

2008-03-25 Thread Paul Emsley
Dear Guilers, I have in mind to write a little script that makes a web page about the state of various files. I'd like to use some schemey way of doing this. s-expression -> HTML perhaps. What is the thinking guile-user's way of approaching this? Cheers, Paul.

guile and XML (mixp)

2006-11-22 Thread Paul Emsley
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 ...): /xxx/share/guile/1.6/ice-9/syncase.scm:130:16: invalid s

Re: [ANN] New greg versions

2006-11-09 Thread Paul Emsley
On Mon, 2006-09-25 at 15:30 +0200, Maurizio Boriani wrote: > Hi all, >new major version of greg is release :) > > -- > The simplicity of the Greg framework makes it easy to write tests for > any program, but it was specifically written for use with GNUstep-Guile > to permit direct testing of t

Re: compiling 1.8.0

2006-08-07 Thread Paul Emsley
On Sat, 2006-08-05 at 11:08 +0200, Claes Wallin wrote: > Paul Emsley wrote: > > Dear Guile users, > > > > I have a problem compiling/running 1.8.0: > > > > $ ./configure --prefix=$pfx > > $ make > > $ make install > > $ cd $pfx/bi

compiling 1.8.0

2006-08-04 Thread Paul Emsley
Dear Guile users, I have a problem compiling/running 1.8.0: $ ./configure --prefix=$pfx $ make $ make install $ cd $pfx/bin ?$ ./guile Backtrace: In unknown file: ... ?: 123 [list apply ... ?: 124* [list lambda (syntmp-dummy-3 syntmp-name-4 syntmp-rules-5) ... ?: 125* [syntmp-

Re: potential memory leak in do loop

2006-05-03 Thread Paul Emsley
I suspect you need valgrind. valgrind rocks. You will need the standard guile suppressions. Paul. On Wed, May 03, 2006 at 09:32:54AM -0400, stephane chatigny wrote: > Thanks Kevin, > > Does a Unix command like "pmap PID" could help me to determine if there > is a memory leak in the process? >

Re: Guile 1.8.0 has been released.

2006-02-24 Thread Paul Emsley
On Tue, 2006-02-21 at 00:03 +0200, Marius Vollmer wrote: > We are pleased to announce the release of Guile 1.8.0. It can be > found here: > > ftp://ftp.gnu.org/gnu/guile/guile-1.8.0.tar.gz Dear Marius, Well, I at least think congratulations are in order: Yahoo, hooray, woop! I've been wa