Re: [Chicken-users] Furry paws...

2009-09-02 Thread Eduardo Cavazos


On Sep 2, 2009, at 10:13 PM, Eduardo Cavazos wrote:


... is sooo frickin amazing.

Is there an interactive interpreter/repl for FP somewhere?


Kon Lovett wrote:


Doesn't "fp -i" enter interactive mode?


Hello Kon!

Hmmm... I don't have an 'fp' binary here. Just 'fpc'.

Ed


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Furry paws...

2009-09-02 Thread Kon Lovett


On Sep 2, 2009, at 10:13 PM, Eduardo Cavazos wrote:


... is sooo frickin amazing.

Is there an interactive interpreter/repl for FP somewhere?


Doesn't "fp -i" enter interactive mode?



Ed


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Best Wishes,
Kon




___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Scheme pre-processor

2009-09-02 Thread Kon Lovett


On Sep 2, 2009, at 2:38 PM, Angerer Christoph wrote:


Hi,

I was wondering if chicken scheme has some kind of command-line pre  
processor that 'normalizes' a scheme source file (and outputs it to  
STD out or another file)? By 'normalizing' I mean expanding all  
macros as well as special forms such as quotes and unquotes into the  
equivalent pure s-expressions.


I searched the available ressources and didn't find anything; so  
sorry if I missed somethig!


Maybe http://chicken.wiki.br/man/4/Using%20the%20compiler#extending-the-compiler 
 user-pass would help.




Thanks,
Christoph




___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Best Wishes,
Kon





___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Furry paws...

2009-09-02 Thread Eduardo Cavazos

... is sooo frickin amazing.

Is there an interactive interpreter/repl for FP somewhere?

Ed


___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Scheme pre-processor

2009-09-02 Thread Angerer Christoph

Hi,

I was wondering if chicken scheme has some kind of command-line pre  
processor that 'normalizes' a scheme source file (and outputs it to  
STD out or another file)? By 'normalizing' I mean expanding all macros  
as well as special forms such as quotes and unquotes into the  
equivalent pure s-expressions.


I searched the available ressources and didn't find anything; so sorry  
if I missed somethig!


Thanks,
Christoph




___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] srfi-29 on 4.1.7

2009-09-02 Thread Kon Lovett

Hi,

srfi-29:2.0.0 is released.

I am working on srfi-19 but this will not be available until Fri.

"module unresolved" means chicken cannot figure out all the  
identifiers in the module.


Best Wishes,
Kon




___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] srfi-29 on 4.1.7

2009-09-02 Thread David N Murray
Kon, thanks for the help on the previous issues.  Many thanks.

I'm making progress on srfi-19.

~# chicken-install srfi-29
retrieving ...
connecting to host "chicken.kitten-technologies.co.uk", port 80 ...
[snip download and stuff that worked]
changing current directory to /tmp/chicken-install-285.tmp/srfi-29
  /usr/local/bin/csi -bnq -e "(require-library setup-api)" -e "(import
setup-api)" -e "(extension-name-and-version '(\"srfi-29\" \"\"))"
/tmp/chicken-install-285.tmp/srfi-29/srfi-29.setup

Error: unbound variable: require-extension-version

Call history:

setup-api.scm: 707  ->string
setup-api.scm: 707  string-split-fields
map
setup-api.scm: 706  string->number
setup-api.scm: 706  string->number
setup-api.scm: 706  string->number
setup-api.scm: 716  loop
setup-api.scm: 738  extension-name-and-version
<--
Error: shell command terminated with nonzero exit code
17920
"/usr/local/bin/csi -bnq -e \"(require-library setup-api)\" -e \"(import
setup-a...
~#


I fixed this, patch attached (required-extension-version, not require-).

Now,

~/srfi-29# chicken-install
retrieving ...
checking dependencies for `srfi-29' ...
install order:
("srfi-29")
installing srfi-29: ...
changing current directory to .
  /usr/local/bin/csi -bnq -e "(require-library setup-api)" -e "(import
setup-api)" -e "(extension-name-and-version '(\"srfi-29\" \"\"))"
srfi-29.setup
  mkdir -p /usr/local/lib/chicken/4/srfi-29-bundles
  /usr/local/bin/csc -feature compiling-extension   srfi-29.scm -shared
-optimize-level 2 -debug-level 1 -output-file srfi-29.so
-emit-import-library srfi-29

Warning: reference to possibly unbound identifier: intersperse

Warning:   suggesting: `(import data-structures)'

Warning: reference to possibly unbound identifier: conc

Warning:   suggesting one of:
Warning: `(import utf8)'
Warning: `(import data-structures)'


Warning: reference to possibly unbound identifier: format

Warning:   suggesting one of:
Warning: `(import format)'
Warning: `(import extras)'


Warning: reference to possibly unbound identifier: %locale-item?

Warning: reference to possibly unbound identifier: ->string

Warning:   suggesting one of:
Warning: `(import utf8)'
Warning: `(import data-structures)'

Error: module unresolved: srfi-29

Error: shell command terminated with non-zero exit status 256:
/usr/local/bin/chicken srfi-29.scm -output-file srfi-29.c -dynamic
-feature chicken-compile-shared -feature compiling-extension
-optimize-level 2 -debug-level 1 -output-file srfi-29.so
-emit-import-library srfi-29

Error: shell command failed with nonzero exit status
256
"/usr/local/bin/csc -feature compiling-extension   srfi-29.scm -shared
-optimize-level 2 -debug-level 1 -output-file srfi-29.so
-emit-import-library srfi-29"

Call history:

setup-api.scm: 249  run-verbose
display
display
write-char/port
##sys#flush-output
setup-api.scm: 250  $system
setup-api.scm: 788  system
setup-api.scm: 793  error   <--
Error: shell command terminated with nonzero exit code
17920
"/usr/local/bin/csi -bnq -e \"(require-library setup-api)\" -e \"(import
setup-a...
~/srfi-29#

I have no idea what "module unresolved" means.

Thoughts?

TIA,
Dave--- srfi-29.setup.~1~   Wed Sep  2 22:40:09 2009
+++ srfi-29.setup   Wed Sep  2 23:02:48 2009
@@ -4,7 +4,7 @@
 
 (verify-extension-name "srfi-29")
 
-(require-extension-version
+(required-extension-version
   'check-errors   "1.3.0")
 
 (create-directory/parents (make-repository-pathname "srfi-29-bundles"))
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] 4.1.7 lookup-table egg

2009-09-02 Thread David N Murray
Still trying to install locale (ultimate goal is to install srfi-19).
lookup-table fails with the following error:

installing lookup-table: ...
changing current directory to .
  /usr/local/bin/csi -bnq -e "(require-library setup-api)" -e "(import
setup-api)" -e "(extension-name-and-version '(\"lookup-table\" \"\"))"
lookup-table.setup
  /usr/local/bin/csc -feature compiling-extension   lookup-table.scm
-shared -optimize-level 2 -debug-level 1 -output-file lookup-table.so
-emit-import-library lookup-table -prelude '(define-constant MAGIC-LIMIT
12)'
lookup-table.c:3145: error: redefinition of `f_2178'
lookup-table.c:2537: error: `f_2178' previously defined here
lookup-table.c:3163: error: redefinition of `f_2181'
lookup-table.c:2555: error: `f_2181' previously defined here
lookup-table.c:3265: error: redefinition of `f_2178'
lookup-table.c:3145: error: `f_2178' previously defined here
lookup-table.c:3283: error: redefinition of `f_2181'
lookup-table.c:3163: error: `f_2181' previously defined here


I have no clue where to even begin to look for this problem.  I checked
lookup-table.c and see:

(2536)
/* k2176 in k3627 in lookup-table#dict->alist in k3440 in k1982 in k1979
in k1976 in k1973 in k1970 in k1967 in k1964 in k1961 in k1958 in k1955 in
k1952 */
static void C_ccall f_2178(C_word c,C_word t0,C_word t1){
C_word tmp;
C_word t2;

Repeated verbatim @ 3145, 3265.

(2554)
/* k2179 in k2176 in k3627 in lookup-table#dict->alist in k3440 in k1982
in k1979 in k1976 in k1973 in k1970 in k1967 in k1964 in k1961 in k1958 in
k1955 in k1952 */
static void C_ccall f_2181(C_word c,C_word t0,C_word t1){
C_word tmp;
C_word t2;

Repeated verbatim @ 3163, 3283.

This was built with 4.1.7 from the current release/4/lookup-table/trunk.

Thanks,
Dave




___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] srfi-19

2009-09-02 Thread Kon Lovett


On Sep 2, 2009, at 1:50 PM, David N Murray wrote:


On Sep 2, Christian Kellermann scribed:


find a patch for the srfi-19 egg attached to this email. When applied
to the trunk of the chicken3 egg it will happily install on chicken
4. This has been sent to Kon for review, so don't consider this one
blessed by the original author. Maybe Kon will get around to commit
this soon.



Thanks Christian.

Is it possible to browse the eggs svn repository?  The egg I have for
srfi-19 doesn't match the patch.  Also, in order to properly build  
this, I

need srfi-29 (apparently not converted yet since chicken-install can't
find it) and locale (which needs lookup-table which won't build  
because

it's missing some html files and conditions.import.so, and
'chicken-install conditions' doesn't find anything, either).


There shouldn't be any errors generated from missing ". html" files,  
however warnings are expected.


The posted "lookup-table" egg had a compile bug (fixed in Rel 1.9.1).  
(How I released with this I do not know.)


The "locale:1.3.1" egg has an explicit requirement for this version.



Thanks,
Dave



___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Best Wishes,
Kon




___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] 4.1 check-errors

2009-09-02 Thread Kon Lovett


On Sep 2, 2009, at 3:17 PM, David N Murray wrote:


I'm trying to chicken-install locale and it requires check-errors.
check-errors fails to build because it tries to import srfi-12 (the
require is commented out, but the egg won't install).  I removed  
srfi-12
from the import list of conditions.scm (patch attached) and the  
tests all

ran fine.


Fixed in svn repo. Imports for the SRFIs were added in a later Chicken  
version. Sorry.




Cheers,
Dave
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Best Wishes,
Kon




___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] 4.1 check-errors

2009-09-02 Thread David N Murray
I'm trying to chicken-install locale and it requires check-errors.
check-errors fails to build because it tries to import srfi-12 (the
require is commented out, but the egg won't install).  I removed srfi-12
from the import list of conditions.scm (patch attached) and the tests all
ran fine.

Cheers,
Dave
--- conditions.scm.~1~  Wed Sep  2 17:57:16 2009
+++ conditions.scm  Wed Sep  2 17:58:21 2009
@@ -20,7 +20,7 @@
   (make-condition-predicate condition-predicate*)
   (make-condition-property-accessor condition-property-accessor*))
 
-(import scheme chicken (only srfi-1 alist-cons) srfi-12 type-checks)
+(import scheme chicken (only srfi-1 alist-cons) type-checks)
 (require-library srfi-1 #;srfi-12 type-checks)
 
 ;;
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] srfi-19

2009-09-02 Thread David N Murray
On Sep 2, Christian Kellermann scribed:

> find a patch for the srfi-19 egg attached to this email. When applied
> to the trunk of the chicken3 egg it will happily install on chicken
> 4. This has been sent to Kon for review, so don't consider this one
> blessed by the original author. Maybe Kon will get around to commit
> this soon.
>

Thanks Christian.

Is it possible to browse the eggs svn repository?  The egg I have for
srfi-19 doesn't match the patch.  Also, in order to properly build this, I
need srfi-29 (apparently not converted yet since chicken-install can't
find it) and locale (which needs lookup-table which won't build because
it's missing some html files and conditions.import.so, and
'chicken-install conditions' doesn't find anything, either).

Thanks,
Dave



___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] latest (rev 15708) build on OpenBSD

2009-09-02 Thread David N Murray
Hi,

Should this go to chicken-devel?

I just checked out the latest via subversion and was trying to build it on
an OpenBSD AMD64 box.  It built fine, but runtests.sh fails:

 library tests ...

Error: unbound variable: +inf.

Call history:

(not (rational? +inf.))
(rational? +inf.)
(##core#undefined)
(##sys#error (##core#immutable (quote
"assertion failed")))
(##core#immutable (quote "assertion
failed"))
(quote "assertion failed")
  (not (rational? +inf.))
  (rational? +inf.)   <--

Thanks,
Dave



___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] srfi-19

2009-09-02 Thread Christian Kellermann
Hi Dave,

find a patch for the srfi-19 egg attached to this email. When applied
to the trunk of the chicken3 egg it will happily install on chicken
4. This has been sent to Kon for review, so don't consider this one
blessed by the original author. Maybe Kon will get around to commit
this soon.

Kind regards,

Christian
Index: srfi-19.meta
===
--- srfi-19.meta(revision 15226)
+++ srfi-19.meta(working copy)
@@ -6,7 +6,7 @@
  (author "Kon Lovett")
  (egg "srfi-19.egg")
  (license "BSD")
- (needs numbers miscmacros locale misc-extn lookup-table srfi-29)
+ (needs numbers miscmacros locale lookup-table srfi-29)
  (doc-from-wiki)
  (files
   "tests"
Index: srfi-19-io.scm
===
--- srfi-19-io.scm  (revision 15226)
+++ srfi-19-io.scm  (working copy)
@@ -26,8 +26,15 @@
 ;; IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
 ;; INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
 ;; MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+(module srfi-19-io
+( format-date
+  scan-date
+  ;; SRFI-19
+  date->string
+  string->date)
 
-(eval-when (compile)
+(import chicken scheme)
+
   (declare
 (not usual-integrations
   + - * /
@@ -53,9 +60,9 @@
   scan-date
   ;; SRFI-19
   date->string
-  string->date) ) )
+  string->date) )
 
-(use srfi-1 srfi-13 srfi-29 locale numbers srfi-19-core)
+(use srfi-1 srfi-13 srfi-29 locale numbers srfi-19-core ports data-structures)
 
 ;;;
 
@@ -699,4 +706,4 @@
   newdate ) ) )
 
 (define (string->date src . template-string)
-  (scan-date src (optional template-string (%item@ LOCALE-DATE-TIME-FORMAT))) )
+  (scan-date src (optional template-string (%item@ LOCALE-DATE-TIME-FORMAT))) 
) )
Index: srfi-19-core.scm
===
--- srfi-19-core.scm(revision 15226)
+++ srfi-19-core.scm(working copy)
@@ -81,8 +81,182 @@
 ;; IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
 ;; INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
 ;; MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+(module srfi-19-core
+( ; SRFI-19
+  time-tai
+  time-utc
+  time-monotonic
+  time-thread
+  time-process
+  time-duration
+  time-gc
+  current-date
+  current-julian-day
+  current-modified-julian-day
+  current-time
+  time-resolution
+  make-time time?
+  time-type
+  time-nanosecond
+  time-second
+  set-time-type!
+  set-time-nanosecond!
+  set-time-second!
+  copy-time
+  time<=?
+  time=?
+  time>?
+  time-difference
+  time-difference!
+  add-duration
+  add-duration!
+  subtract-duration
+  subtract-duration!
+  make-date
+  date?
+  date-nanosecond
+  date-second
+  date-minute
+  date-hour
+  date-day
+  date-month
+  date-year
+  date-zone-offset
+  leap-year? ; Actually part of SRFI 19 but not in original document
+  date-year-day
+  date-week-day
+  date-week-number
+  date->julian-day
+  date->modified-julian-day
+  date->time-monotonic
+  date->time-tai
+  date->time-utc
+  julian-day->date
+  julian-day->time-monotonic
+  julian-day->time-tai
+  julian-day->time-utc
+  modified-julian-day->date
+  modified-julian-day->time-monotonic
+  modified-julian-day->time-tai
+  modified-julian-day->time-utc
+  time-monotonic->date
+  time-monotonic->julian-day
+  time-monotonic->modified-julian-day
+  time-monotonic->time-tai
+  time-monotonic->time-tai!
+  time-monotonic->time-utc
+  time-monotonic->time-utc!
+  time-tai->date
+  time-tai->julian-day
+  time-tai->modified-julian-day
+  time-tai->time-monotonic
+  time-tai->time-monotonic!
+  time-tai->time-utc
+  time-tai->time-utc!
+  time-utc->date
+  time-utc->julian-day
+  time-utc->modified-julian-day
+  time-utc->time-monotonic
+  time-utc->time-monotonic!
+  time-utc->time-tai
+  time-utc->time-tai!
+  ; Extensions
+  ONE-SECOND-DURATION
+  ONE-NANOSECOND-DURATION
+  time-type?
+  make-duration
+  divide-duration
+  divide-duration!
+  multiply-duration
+  multiply-duration!
+  srfi-19:current-time
+  srfi-19:time?
+  time->srfi-18-time
+  srfi-18-time->time
+  time-max
+  time-min
+  time-negative?
+  time-positive?
+  time-zero?
+  time-abs
+  time-abs!
+  time-negate
+  time-negate!
+  seconds->time/type
+  seconds->date/type
+  time->nanoseconds
+  nanoseconds->time
+  nanoseconds->seconds
+  read-leap-second-table
+  time->milliseconds
+  milliseconds->time
+  milliseconds->seconds
+  time->date
+  make-timezone-locale
+  timezone-locale?
+  timezone-locale-name
+  timezone-locale-offset
+  timezone-locale-dst?
+  local-timezone-locale
+  utc-timezone-locale
+  default-date-clock-type
+  date-zone-name
+  date-dst?
+  copy-date
+  date->time
+  date-difference
+  date-add-duration
+  date-subtract-duration
+  date=?
+  date>?
+  date=?
+  date<=?
+  time->julian-day
+  time->modified-julian-day
+  date-compare
+