Re: Which is the best way to collect lists?

2013-08-10 Thread Chaos Eternal
IMHO, you need to think scheme way, say (filter (lambda (x) (> x 10)) orig-list) BTW, scheme is not old languages. On Sat, Aug 10, 2013 at 8:45 PM, 康桥 wrote: > We often process a list into another one in LISP. > For example: > (define (filter-a l) > (if (null? l) '() > (let ((n (car

Re: is there any guile windows binary distribution available?

2013-08-13 Thread Chaos Eternal
use cygwin please On Mon, Aug 12, 2013 at 1:35 PM, Yagnesh Raghava Yakkala wrote: > > Hello Guilers, > > I like to install guile on windows. is there any "ready to use"™ binary > available.? > > Thanks. > -- > ఎందరో మహానుభావులు అందరికి వందనములు. > YYR > >

initial announcement of guile-termite

2013-08-20 Thread Chaos Eternal
Termite is an erlang-style concurrent programming framework oringinally developed on Gambit-C scheme. the guile-termite is a port of the framework to gnu guile. currently finished the thread-mailbox part. the code is accessible https://github.com/ChaosEternal/guile-termite It is licensed under LG

Re: pretty-print for 1+

2013-09-17 Thread Chaos Eternal
yet there is another interesting thing: (symbol? 'a) => #t (symbol? '+a) => #t (symbol? '-a) => #t (symbol? 'b) => #t (symbol? '+b) => #t (symbol? '-b) => #t BUT: (symbol? 'i) => #t (symbol? '+i) => #f (symbol? '-i) => #f In guile-scsh, user would like the guile recognize -i as symbols rather t

Re: spawn call

2014-04-27 Thread Chaos Eternal
why not use guile-scsh? guile-scsh is a port of scsh (scheme shell) to guile. guile-scsh can be used to do most shell script's task . guile-scsh provides a lot of syntaxes and procs for use with os processes. for example: run run/port run/file run/collecting check it out here: https://gitorious.o

Re: spawn call

2014-04-28 Thread Chaos Eternal
m, > doh! > English is such a limited language :) alternatives exists I'll always choose > those. > > 27.04.2014 10:08, Chaos Eternal пишет: >> why not use guile-scsh? guile-scsh is a port of scsh (scheme shell) to guile. >> guile-scsh can be used to do most shell script&#x

Re: [ANN] Artanis-0.0.1 released

2014-12-31 Thread Chaos Eternal
nala, congrats! On Wed, Dec 31, 2014 at 7:14 PM, Nala Ginrut wrote: > Hi folks! > I'm pleased to announce Artanis-0.0.1 here. > http://web-artanis.com > > Download: > http://web-artanis.com/artanis-0.0.1.tar.gz > > Manual: > http://web-artanis.com/manual-0.0.1.html > > Artanis is a new web applic

Re: request for help with module build/install

2015-07-02 Thread Chaos Eternal
Hi, The project guile-scsh has a simple install script, hope that helps. https://github.com/ChaosEternal/guile-scsh On Thu, Jul 2, 2015 at 8:56 AM, Matt Wette wrote: > Hi Folks, > > I have developed a set of guile modules. I'd like to be able to generate a > package hosted on, say, github.com

Re: nyacc version 0.71.0 released

2016-06-21 Thread Chaos Eternal
Hi, I met with this message when I want to parse UnixODBC's header file: but guile version is 2.0.11 $ ./cxp -Ilang/c99/ -I/usr/include /usr/include/sql.h Backtrace: In ice-9/boot-9.scm: 4052: 19 [#] In unknown file: ?: 18 [load-compiled/vm "/home/chaos/.cache/guile/ccache/2.0-LE-8-2.0/home/ch

Re: nyacc version 0.71.0 released

2016-06-22 Thread Chaos Eternal
and, for FFI purpose, I think just CPP output is enough :) On Wed, Jun 22, 2016 at 2:12 AM Matt Wette wrote: > > > On Jun 21, 2016, at 7:55 AM, Ludovic Courtès wrote: > > Matt Wette skribis: > > > >> nyacc version 0.71.0 is released as beta > >> > >> nyacc is a LALR parser generator written fr

Re: Announcement: Theme-D programming language

2016-07-24 Thread Chaos Eternal
Looks it is implemented using guile. On Mon, Jul 25, 2016 at 5:24 AM Max wrote: > Could you perhaps briefly summarize what this have to do with Guile? > > 23.07.2016 13:29, Tommi Höynälänmaa пишет: > > Some properties of Theme-D language are: > > * Static type system > > * A simple object system

Re: Passing objects between threads

2016-09-10 Thread Chaos Eternal
As part of my (dont know when to finish) guile-termite project, I have a thread-mailbox impletement. https://github.com/ChaosEternal/guile-termite/tree/master/thread-mailbox On Sat, Sep 10, 2016 at 6:36 PM Diogo F. S. Ramos wrote: > > Hi, > > is there any easy way to create a channel (queue) tha

Re: guile can't find a chinese named file

2016-11-27 Thread Chaos Eternal
Seems that UTF-8 encoded string has been converted to unicode before calling `open', but on filesystem the filename is utf8 string On Sun, Nov 27, 2016 at 7:58 PM Thomas Morley wrote: > Hi all, > > a chinese user came up with a weird problem. > > He wants to process the string retrieved by (c

Re: nyacc 0.73.0 released

2017-01-10 Thread Chaos Eternal
This small code does not work with example/cxp: /*Begin C Code*/ #if defined __HAB__ #define __HAB__ #endif #define A 1 int a = A; /*end C code*/ cxp output: $ ./cxp kk2.h (unknown):1: bad CPP defined kk2.h:1: CPP error kk2.h: #f On Mon, Dec 26, 2016 at 12:06 PM Matt Wette wrote: > NYACC, fo

Re: The status of JIT compiler of Guile (was: Guile benchmark)

2017-03-02 Thread Chaos Eternal
赞(+1) On Thu, Mar 2, 2017 at 3:49 PM Nala Ginrut wrote: > Hi folks! > It's been a long time for me to be inactive here. ;-) > > I saw there's thread to discuss Guile benchmark, I think it's better > to mention the JIT compiler of Guile. It exists and real, and of > course, very fast. > > Thanks

Re: [ANN] Release GNU Artanis-0.2 (stable)

2017-05-10 Thread Chaos Eternal
congratulations On Wed, May 10, 2017 at 11:15 PM Nala Ginrut wrote: > > I'm pleased to announce the first stable version artanis-0.2 here. > > GNU Artanis is a web application framework(WAF) written in Guile Scheme. > http://web-artanis.com > > It is designed to support the development of dynami

Re: Python-style doctests in Guile (implemented, please comment)

2017-07-31 Thread Chaos Eternal
Great job! I have a new idea using s-exps to define tests: simple way: (define-syntax define-examples (syntax-rules () ((_ e ...) (quote (e ...) then we can simply (read the-file) then (match e ((define-examples e ...)) (do-test e)) On Mon, Jul 31, 2017 at 3:35 AM Arne Babenhauserheide wr

Re: Python-style doctests in Guile (implemented, please comment)

2017-07-31 Thread Chaos Eternal
t be extracted with just s-exp reader. on the other hand, the s-exp is the ultimate way to represent structures, and it shall be adopted whenever possible. On Tue, Aug 1, 2017 at 1:46 AM Arne Babenhauserheide wrote: > > Chaos Eternal writes: > > > Great job! > > > > I

Re: scsh or similar?

2017-08-27 Thread Chaos Eternal
Stefan Israelsson Tampe have some efforts on porting scsh to guile: https://gitlab.com/guile-scsh/guile-scsh And I made some bug fixes and a little improvement to it: https://github.com/ChaosEternal/guile-scsh/tree/master/scsh I am using it as script languages, for examle, a couple of scripts mana

[ANN] guile-scsh 0.2

2013-05-05 Thread Chaos Eternal
I here by announce the 0.2 version of guile-scsh, which is ported to guile-2.x and now available. you can get it from: https://gitorious.org/guile-scsh/guile-scsh Scsh, the scheme shell, a Unix Shell using scheme syntaxes, and much more powerful than bourne shell. Scsh is seized development for m

Re: [ANN] guile-scsh 0.2

2013-05-06 Thread Chaos Eternal
. I will ask Olin whether he is ok to change license. On Mon, May 6, 2013 at 11:27 PM, Mark H Weaver wrote: > Chaos Eternal writes: > >> I here by announce the 0.2 version of guile-scsh, which is ported to >> guile-2.x and now >> available. >> >> you can get

Re: [ANN] guile-scsh 0.2

2013-05-06 Thread Chaos Eternal
hi all, Fortunately, I found the same file in newest release of scsh has changed licensing statement to GPL. I will port that file here. On Tue, May 7, 2013 at 11:12 AM, Chaos Eternal wrote: > hi Mark > I found this file is originally from savannah CVS repository: > http://cvs.savanna

Re: [ANN] guile-scsh 0.2

2013-05-06 Thread Chaos Eternal
hi all, ported and pushed. On Tue, May 7, 2013 at 11:19 AM, Chaos Eternal wrote: > hi all, > > Fortunately, I found the same file in newest release of scsh has > changed licensing statement to GPL. I will port that file here. > > On Tue, May 7, 2013 at 11:12 AM, Chaos Eternal

un-determined behavior of asyncs

2013-05-20 Thread Chaos Eternal
hi gurus, I wrote a short code to inspect the behavior of asyncs, and find that neither the running time nor the order of execution is determined, in fact , i find that the execution order of asyncs are random. I just want to understand whether this random execution order of asyncs is designed or

Re: The equivalent of racket's break-thread in guile?

2013-05-31 Thread Chaos Eternal
IMHO, that means if you send a signal other than SIGSTOP SIGCONT SIGKILL or SIGTERM, the signal will not affect the whole process. also, SIGSTOP/SIGCONT and SIGKILL are un-catchable signals, they are not offten used. according the pthread_kill(3), you can send arbitrary signal to a thread and, acco

Re: xmlish

2013-07-15 Thread Chaos Eternal
http://en.wikipedia.org/wiki/SXML On Mon, Jul 15, 2013 at 11:12 PM, Stefan Israelsson Tampe wrote: > Hi all, > > At work we needed to handle xml schema documents with java and > C#. There are pretty good support there, but as a schemer I was > wondering if we could support this as well. > > My ta

Re: asynchronous socket library

2013-07-16 Thread Chaos Eternal
i think there is a nio branch for guile? nio means non-blocking io On Tue, Jul 16, 2013 at 3:02 PM, Aleix Conchillo Flaqué wrote: > On Mon, Jul 15, 2013 at 11:15 PM, Javier Sancho wrote: >> Aleix Conchillo Flaqué wrote: >>> I was wondering if there is (or someone is working on) an asynchronous >

Re: asynchronous socket library

2013-07-16 Thread Chaos Eternal
http://git.savannah.gnu.org/gitweb/?p=guile.git;a=shortlog;h=refs/heads/wip-ethreads should be this one On Tue, Jul 16, 2013 at 11:24 PM, Aleix Conchillo Flaqué wrote: > On Tue, Jul 16, 2013 at 12:36 AM, Chaos Eternal > wrote: >> i think there is a nio branch for guile? >