Re: snarfing docstrings in c extensions

2018-04-09 Thread Samuel Barreto
> On Sat, Apr 07, 2018 at 08:59:32PM +0200, Samuel Barreto wrote: > >> So I do am able to generate the info files that I want. My two problems >> are: >> >> 1. how to use guile-snarf-docs portably ? (I have hardcoded them in my >>Makefile for now.) >

snarfing docstrings in c extensions

2018-04-07 Thread Samuel Barreto
Hi everyone, I'm trying to write a GSL wrapper in guile. I have written a lot of simple functions using SCM_DEFINE and documented them using the last SCM_DEFINE macro argument. Now I'd like to make those docstrings accessible from Scheme code. The way I do it for now is with this makefile instruc

Re: how to pipe the output of one process to another using guile ?

2017-09-06 Thread Samuel Barreto
Hi, Well thank you, I did not know about guile-lib (os process) nor sph-mn ! (tail-call-pipeline ...) seems to do the job for me. I'll let you know what I ended up with ! Thanks for your help :) Samuel tantalum writes: > hi > > (ice-9 popen) > https://www.gnu.org/software/guile/manual/html_nod

how to pipe the output of one process to another using guile ?

2017-09-04 Thread Samuel Barreto
Hi everyone, I was wondering how I could replicate the simple cat "my-toy-file.txt" | wc -l using Guile ? I have been reading the POSIX Pipes and Default Ports Guile manual entry very thoroughly but I could not wrap my head around it. (I am not familiar with POSIX and all I am afraid …)

emacs semantic error when guile-scripting

2017-06-29 Thread Samuel Barreto
Hi everyone, Emacs keeps throwing a semantic error at me everytime I use the Meta switch in a Guile script : ``Idle Parse Error: "# - Unmatched Text during Lexical Analysis"'' (The ``Meta switch'' is described here : https://www.gnu.org/software/guile/manual/guile.html#Guile-Scripting) Do you

good tutorial on extending a c++ project with Guile ?

2017-06-26 Thread Samuel Barreto
Hi everyone, I want to create a Guile extension to a big C++-based project called Bio++ (dedicated to bioinformatics and computational biology). However I failed to find a good and simple example on how to extend a C++ program with Guile. My idea was to create a shared library that can be called