Lasse Kliemann | 17 Nov 08:35 2014
Picon

telling 'raise' to return?

Greetings,

the documentation says that 'raise' can return. Maybe I'm not
understanding this right or I haven't looked hard enough -- but I
cannot find out how to do this. I'd like to say, in the exception
handler, that for certain conditions, 'raise' shall return. Generally
this would be the case if the exception is not considered being
serious enough to abort whatever the caller was doing. I think Common
Lisp has something like that (called "restart"); I read about it years
ago and found the concept compelling for certain cases.

Thanks a lot for a hint!
Lasse
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Gauche-devel mailing list
Gauche-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gauche-devel
Seth Alves | 2 Nov 17:23 2014

srfis in r7rs

In Gauche r7rs programs,  identifiers from imported srfis often aren't 
available.

This works fine (non r7rs):

#! /bin/sh
#| -*- scheme -*-
exec gosh $0 "$ <at> "
|#
(import srfi-2)
(display (and-let* ((x 5)) x))
(newline)

This fails with "ERROR: unbound variable: x":

#! /bin/sh
#| -*- scheme -*-
exec gosh -r7 $0 "$ <at> "
|#
(import (scheme base)
         (scheme write)
         (srfi 2))
(display (and-let* ((x 5)) x))
(newline)

This works, but requires a tangle of extra files and cond-expands 
throughout the (portable) code:

#! /bin/sh
#| -*- scheme -*-
(Continue reading)

Lasse Kliemann | 29 Sep 15:37 2014
Picon

display vs write-char

Hi, can there be any difference in the resulting string when using
display vs. using write-char on each character of a string str, like so:

;; using display
(call-with-output-string
  (lambda (res)
    (display str res)))

;; using write-char
(call-with-output-string
  (lambda (res)
    (for-each (lambda (c) (write-char c res)) (string->list str))))

I would suspect the latter being the most "faithful" way to copy str
into the string port. However, for example regexp-replace when called
with a function as the replacement uses display to insert the actual
replacement string. Are there any pitfalls associated with display when
I just want an exact copy of a string being inserted?

Thank you!

--

-- 
Dr. Lasse Kliemann
E-Mail: lasse.kliemann <at> gmail.com
OpenPGP Key: 0x4296A3E08903D018
Phone: +49 162 66 88 468
Address: Westring 269, 24116 Kiel, Germany

(Continue reading)

Jason Hemann | 4 Sep 05:36 2014
Picon

[ANN] *Extended Deadline* CFP for 2014 Scheme and Functional Programming Workshop

The paper submission deadline has been extended one week, to Friday,
Sept. 12 23:59 (UTC-12).

[Apologies for duplication from cross-postings.]

NEW DEADLINE: 12 September 2014, 23:59 (UTC-12)
WEBSITE: http://homes.soic.indiana.edu/jhemann/scheme-14/
LOCATION: Washington, DC (co-located with Clojure/conj)
DATE: 19 November 2014

The 2014 Scheme and Functional Programming Workshop is calling for submissions.

Submissions related to Scheme and functional programming are welcome
and encouraged. Topics of interest include but are not limiteThe paper
submission deadline has been extended one week, to Friday, Sept. 12
23:59 (UTC-12).

[Apologies for duplication from cross-postings.]

NEW DEADLINE: 12 September 2014, 23:59 (UTC-12)
WEBSITE: http://homes.soic.indiana.edu/jhemann/scheme-14/
LOCATION: Washington, DC (co-located with Clojure/conj)
DATE: 19 November 2014

The 2014 Scheme and Functional Programming Workshop is calling for submissions.

Submissions related to Scheme and functional programming are welcome
and encouraged. Topics of interest include but are not limited to:

- Program-development environments, debugging, testing
(Continue reading)

Shiro Kawai | 20 Jul 10:45 2014
Picon

Gauche 0.9.4

Finally.

Tarball:
http://prdownloads.sourceforge.net/gauche/Gauche-0.9.4.tgz
http://prdownloads.sourceforge.net/gauche/Gauche-0.9.4.tgz.asc (signature)

Windows installer (including Gauche-gl):
http://prdownloads.sourceforge.net/gauche/Gauche-mingw-0.9.4.msi
http://prdownloads.sourceforge.net/gauche/Gauche-mingw-0.9.4.msi.asc (signature)

Release notes:
- English:  http://practical-scheme.net/gauche/gmemo/?Release%200.9.4
- Japanese: http://practical-scheme.net/gauche/gmemo/?%A5%EA%A5%EA%A1%BC%A5%B9%200.9.4

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
Jason Hemann | 1 Jul 17:23 2014
Picon

2014 Scheme Workshop

The 2014 Scheme and Functional Programming Workshop will be held in
Washington, DC on November 19th, co-located again with Clojure/conj
(http://clojure-conj.org). A call for papers will be sent out shortly,
but I'm sending out this note so folk can save the date and begin
thinking about topics or results for submission. Going by the previous
workshops, it should be a useful and fun day for just about anyone
with an interest in Scheme or functional programming languages.

Jason Hemann

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Gauche-devel mailing list
Gauche-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gauche-devel
Shiro Kawai | 28 Jun 23:51 2014
Picon

0.9.4 rc2

I packaged rc2.  The issues raised in rc1 should been addressed.
GC is updated to 7.4.2.

http://practical-scheme.net/vault/Gauche-0.9.4-rc2.tgz
http://practical-scheme.net/vault/Gauche-mingw-0.9.4-rc2.msi

--shiro

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
Lasse Kliemann | 24 Jun 16:23 2014
Picon

Terminating a Job in a Thread Pool

Hi, how can I terminate a job which has been added to a thread pool
(created with 'make-thread-pool') with 'add-job!'? I coudn't find it in
the documentation, maybe I missed something. Currently, I'm helping
myself using 'terminate-all!', which is good enough for my use case, but
certainly not intended for this purpose since the next step in my
program is to create a new thread pool with 'make-thread-pool' just to
replace the one that has been invalidated by the call to 'terminate-all!".

Thank you!
Lasse

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Gauche-devel mailing list
Gauche-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gauche-devel
Seth Alves | 19 Jun 16:27 2014

srfi 42 bug?


This line from the srfi-42 test suite:

(list-ec (:while (:vector x (index i) '#(1 2 3 4 5)) (< x 10)) x)

returns '(1 2 3 4 5) in the reference implementation but causes an
index-out-of-range error when run with Gauche's implementation. Is this
a bug in the test suite or in Gauche's srfi-42?

     -seth

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
Stephen Lewis | 13 Jun 09:07 2014
Picon

Gauche-0.9.4-rc1 on PowerPC64

Shiro,

I tried Gauche-0.9.4-rc1 on a Gentoo PowerPC64 system
and although it compiles and appears to run OK
it fails 'make check' in the src/gc directory
which causes the make to abort and the other tests are not run

...
PASS: cordtest
PASS: gctest
PASS: leaktest
PASS: middletest
PASS: smashtest
PASS: hugetest
PASS: realloc_test
PASS: staticrootstest
PASS: threadleaktest
PASS: threadkey_test
PASS: subthreadcreate_test
PASS: initsecondarythread_test
FAIL: disclaim_test
PASS: disclaim_bench
============================================================================
Testsuite summary for gc 7.4.0
============================================================================
# TOTAL: 14
# PASS:  13
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to gc <at> linux.hpl.hp.com
============================================================================
make[4]: *** [test-suite.log] Error 1
make[3]: *** [check-TESTS] Error 2
make[2]: *** [check-am] Error 2
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 1

As a test I patched the Makefile to skip the gc tests like this:
diff -Naur Makefile{-,}
--- Makefile-	2014-06-12 23:46:12.000000000 -0700
+++ Makefile	2014-06-12 23:56:47.000000000 -0700
 <at>  <at>  -15,6 +15,7  <at>  <at> 
 datarootdir = ${prefix}/share

 SUBDIRS = gc src lib ext doc
+TESTDIRS = src lib ext doc
 SRIDBUS = doc ext lib src gc
 LIBATOMICDIR = gc/libatomic_ops
 MKINSTDIR = ./mkinstalldirs
 <at>  <at>  -42,7 +43,7  <at>  <at> 

 check: all
 	 <at> rm -f $(TESTRECORD)
-	set -e; for d in $(SUBDIRS); do (cd $$d; $(MAKE) check); done
+	set -e; for d in $(TESTDIRS); do (cd $$d; $(MAKE) check); done
 	 <at> cd src; $(MAKE) test2
 	 <at> cat $(TESTRECORD)
 	 <at> cd src; $(MAKE) test-summary-check

then ran 'make check' and I get:
Total: 14716 tests, 14716 passed,     0 failed,     0 aborted.

I see some discussion of the gc problem and a resolution here:
https://github.com/ivmai/bdwgc/issues/42

I tried bdwgc 0.7.5 from 'git' here:
git clone git://github.com/ivmai/bdwgc.git
and it passes all its own tests on PowerPC64
though I have not yet tried it with Gauche

So I think there is a good chance that using bdwgc 0.7.5 version instead of 0.7.4
would fix things for PowerPC64 and miscellaneous SPARC64 also.

Stephen Lewis

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
Sven Hartrumpf | 12 Jun 15:55 2014
Picon
Picon

enable-multibyte none

Hi all.

Is --enable-multibyte=none still supported?

I am asking because the make step fails as follows:

 make[2]: Entering directory '/var/tmp/Gauche-0.9.4-rc1/ext/gauche'
../../src/gosh -ftest ../../src/precomp -e -P -o gauche--collection ../../libsrc/gauche/collection.scm
libgauche ABI version mismatch: libgauche 0.9,utf8,pthreads, expected 0.9,none,pthreads
Makefile:35: recipe for target 'gauche--collection.c' failed
make[2]: *** [gauche--collection.c] Error 1
make[2]: Leaving directory '/var/tmp/Gauche-0.9.4-rc1/ext/gauche'
Makefile:37: recipe for target 'gauche' failed
make[1]: *** [gauche] Error 2
make[1]: Leaving directory '/var/tmp/Gauche-0.9.4-rc1/ext'
Makefile:37: recipe for target 'all' failed
make: *** [all] Error 1

Ciao
Sven

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems

Gmane