Re: How do you earn money with Guile?

2016-06-03 Thread Tristan Colgate
If you are adaptable, interested, and productive, you can earn money. Frankly, if you learn a language because of its industry position on any given day, you're going to have a very narrow view of your craft. To play the game a bit, I earned money writing guile, or rather, I wrote guile to earn mo

Re: Guile 1.8 / Viper System Interface

2015-06-29 Thread Tristan Colgate
Could this be moved off to a more appropriate, non-guile, and non-FSF list please. On Mon, 29 Jun 2015 09:59 Michael Tiedtke wrote: > On 29/06/2015 09:55, David Kastrup wrote: > > Marco Maggi writes: > > > >> Michael Tiedtke wrote: > >> > >>> Today the first successful clean room build of Viper

Guile-SNMP 0.2.3

2012-04-03 Thread Tristan Colgate
ASN-OBJECT-ID varbinds * Support ASN-FLOAT and ASN-DOUBLE * Some more OID related routines: oid? predicate oid-length retrieves length of an oid (/ oid1 oid2) is oid2 a prefix of oid1 * Various bug fixes for automated oid resolution --

Filter IO through an external command

2012-02-23 Thread Tristan Colgate
(if (not (eof-object? line)) (begin (write-line line) (loop (read-line)) "sed" "s/World/Planet/") Hello Planet! $4 = (3892 . 0) > -- Tristan Colgate-McFarlane   "You can get all your daily vitamins from 52 pints of guiness, and a glass of milk"

Re: Anouncing guile-snmp

2012-02-21 Thread Tristan Colgate
be able to support stand alone agents, smux, agentx and dynamically loaded agents embedded directly into net-snmp. I also don't have to worry about implementing the wire protocols (which side steps most of the bits I'd be most scared of). -- Tristan Colgate-McFarlane   "You can g

Anouncing guile-snmp

2012-02-21 Thread Tristan Colgate
working on the docs I intend attaching agent support to allow extending any guile enabled app with an snmp agent. -- Tristan Colgate-McFarlane   "You can get all your daily vitamins from 52 pints of guiness, and a glass of milk"

Re: [Swig-user] swig guile2

2011-04-07 Thread Tristan Colgate
compile). The big gap at the moment is documentation, and the linkage options (which I don't fully understand yet). I will keep you posted on my progress. On 25 March 2011 20:14, William S Fulton wrote: > On 22/03/11 08:16, Tristan Colgate wrote: >> >> On 21 March 2011 2

Re: [Swig-user] swig guile2

2011-03-22 Thread Tristan Colgate
than I could bare. I'm not sure that there is going to be enormous support for this within the guile community either really. Guile 2 ships with a new FFI and using that is, obviosuly, of more interest to them. I've struggled wrapping legacy APIs with it though and SWIG really is rather g

swig guile2

2011-03-19 Thread Tristan Colgate
rrently on github, and I would welcome feedback. It is a bit rough and ready, and my knowledge of SWIG internals is pretty rudimentary, so I'd welcome comment and advise (and patches), from all sides. http://github.com/tcolgate/swig-guile2 Be sure to check out the guile2 branch. --

Re: Installing scheme only programs

2011-03-10 Thread Tristan Colgate-McFarlane
I use the following trick to get things into the guile site directory (and still pass a make distcheck). In configure.ac GUILE_PROGS GUILE_FLAGS GUILE_SITE_DIR GUILE_PREFIX=`$GUILE_CONFIG info prefix` AC_SUBST(GUILE_PREFIX) In src/Makefile.am: SUFFIXES = .scm .go .scm.go: $(top_srcdir)/b

make-c-struct type support

2010-10-26 Thread Tristan Colgate
Hi all, Does make-c-struct support poitners, long-integer and integer types? A brief grok of the code suggests not. How would one go about supporting it in a 32/64 bit agnostic manner? I'm trying to use the ffi to access a fairly heavy duty struct (from net-snmp). Cheers, -- Tr

Re: Possible Memory Leak with stream-for-each

2010-07-21 Thread Tristan Colgate
r 2.0 (soon!). > >> 4. I noticed that streams in guile (ice-9 streams) were not >> implemented in the SICP way. In-fact they were implemented in a way >> that makes recursive definitions impossible. Was this intentional? > > I don't know TBH. SICP streams do have a p

Re: Does anyone have an applicable struct example

2010-06-28 Thread Tristan Colgate
1) etc... This plays nice with write and display method overrides too (which is what I was after). On 25 June 2010 10:14, Tristan Colgate wrote: > Hi all, > >  I'd like to make use of the applicable structs feature but am > running into problems. > > From what I can gather

Does anyone have an applicable struct example

2010-06-25 Thread Tristan Colgate
riable': ERROR: In procedure module-lookup: ERROR: Unbound variable: set-object-procedure! I tried using a generic instead but it didn't make much difference. What am I doing wrong? -- Tristan Colgate-McFarlane "You can get all your daily vitamins from 52 pints of guiness, and a glass of milk"

srfi-34 and raise

2010-06-04 Thread Tristan Colgate
Hi, Using srfi-34 causes a warning indicating that it overrides core binding "raise". It doesn't cause any problems but is a bit irritating. What is the correct way to silence this warning. Cheers -- Tristan Colgate-McFarlane "You can get all your daily vitam

Re: duplicate-handlers issue

2010-01-06 Thread Tristan Colgate
I've subsequently fixed this, set-module-duplicates-handlers! takes a list of procedures, not the names used by #:duplicates. Perhaps the naming convention is a little iffy here (handlers/procedures), but I don't think it's really a public interface anyway. Cheers 2010/1/5 Tristan

duplicate-handlers issue

2010-01-05 Thread Tristan Colgate
on, delete cache, and run it, it doesn't work either. I've reduced it down to the attached files. run $ guile -L . test.scm then run it again any help would be very much appreciated. -- Tristan Colgate-McFarlane "You can get all your daily vitamins from

srfi-18 horse racing

2009-11-07 Thread Tristan Colgate
result (display (race-each (lambda(value) (format #t "In thread~%") (thread-sleep! (seconds->time (+ (time->seconds (current-time)) value))) value) '(3 5 8 9 2))) -- Tristan Colgate-McFarlane "You can get all your daily vitamins from 52 pints of guiness, and a glass of milk"

racing srfi-18 threads

2009-11-06 Thread Tristan Colgate
))) (display (race-each (lambda(value) (format #t "In thread~%") (thread-sleep! (seconds->time (+ (time->seconds (current-time)) value))) value) '(3 5 8 9 2))) -- Tristan Colgate-McFarlane "You can get all your daily vitamins from 52 pints of guiness, and a glass of milk"