Felix | 1 Jan 2011 15:46

happy new year...

...to ye'all!

I wish everybody a successfull and rewarding new year 2011.

cheers,
felix
Arthur Maciel | 1 Jan 2011 18:04
Picon

Re: happy new year...

Happy new year too you all!

I believe this is a great opportunity to once more congratulate everyone of the Chicken Team for the excellent work done in the past year!

Best wishes,
Arthur

Date: Sat, 01 Jan 2011 15:46:51 +0100 (CET)
From: Felix <felix <at> call-with-current-continuation.org>
Subject: [Chicken-users] happy new year...
To: chicken-users <at> nongnu.org
Message-ID:
       <20110101.154651.189706126.felix <at> call-with-current-continuation.org>
Content-Type: Text/Plain; charset=us-ascii

...to ye'all!

I wish everybody a successfull and rewarding new year 2011.


cheers,
felix

_______________________________________________
Chicken-users mailing list
Chicken-users <at> nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users
Sven Hartrumpf | 2 Jan 2011 18:17
Picon

Re: Problems Installing the lookup-table Egg

Fri, 10 Dec 2010 09:36:24 -0800, klovett wrote:

> Sorry, I suspect this is caused by the use of backwards incompatible module syntax on my part.
> Specifically the "string as body" feature for textual inclusion.
> 
> I will fix this and release a new version.

Is the lookup-table egg supposed to be fixed noew?

I am asking because I see the following error (using the experimental chicken branch):

> chicken-install lookup-table                                                                                                                                                    
retrieving ...
resolving alias `kitten-technologies' to: http://chicken.kitten-technologies.co.uk/henrietta.cgi
connecting to host "chicken.kitten-technologies.co.uk", port 80 ...
requesting "/henrietta.cgi?name=lookup-table&mode=default" ...
reading response ...
HTTP/1.1 200 OK
Date: Sun, 02 Jan 2011 16:35:50 GMT
Server: Apache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain
reading chunks ...
reading files ...
  ./lookup-table.scm
  ./lookup-table-unsafe-synch.scm
  ./lookup-table-synch.scm
  ./lookup-table.meta
  ./lookup-table-body.scm
  ./lookup-table.setup
  ./chicken-primitive-object-inlines.scm
  ./lookup-table-unsafe.scm
 lookup-table located at /tmp/temp9428/lookup-table
checking platform for `lookup-table' ...
checking dependencies for `lookup-table' ...
install order:
("lookup-table")
installing lookup-table: ...
changing current directory to /tmp/temp9428/lookup-table
  /programs/free/chicken-svn/bin/csi -bnq -setup-mode -e "(require-library setup-api)" -e "(import
setup-api)" -e "(setup-error-handling)" -e "(extension-name-and-version '(\"lookup-table\"
\"\"))" /tmp/temp9428/lookup-table/lookup-table.setup
  /programs/free/chicken-svn/bin/csc -feature compiling-extension -setup-mode    lookup-table.scm
-shared -optimize-leaf-routines -inline -output-file lookup-table.so -emit-import-library
lookup-table -prelude "(define-constant MAGIC-LIMIT 12)" -disable-interrupts -fixnum-arithmetic
-local -inline-limit 50 -no-procedure-checks -debug-level 1

Warning: reference to possibly unbound identifier `MAGIC-LIMIT' in:
Warning:    g641
Warning:    g613
Warning:    g526

Error: module unresolved: lookup-table

Error: shell command terminated with non-zero exit status 256:
/programs/free/chicken-svn/bin/chicken lookup-table.scm -output-file lookup-table.c -dynamic
-feature chicken-compile-shared -feature compiling-extension -setup-mode
-optimize-leaf-routines -inline -output-file lookup-table.so -emit-import-library lookup-table
-prelude "\\(define-constant\\ MAGIC-LIMIT\\ 12\\)" -disable-interrupts -fixnum-arithmetic
-local -inline-limit 50 -no-procedure-checks -debug-level 1

Error: shell command failed with nonzero exit status 256:

  /programs/free/chicken-svn/bin/csc -feature compiling-extension -setup-mode    lookup-table.scm
-shared -optimize-leaf-routines -inline -output-file lookup-table.so -emit-import-library
lookup-table -prelude "(define-constant MAGIC-LIMIT 12)" -disable-interrupts -fixnum-arithmetic
-local -inline-limit 50 -no-procedure-checks -debug-level 1

Error: shell command terminated with nonzero exit code
17920
"csi -bnq -setup-mode -e \"(require-library setup...
Christian Kellermann | 2 Jan 2011 18:32
Gravatar

Re: Problems Installing the lookup-table Egg

HI Sven,

I have filed a bug for this today:
 http://bugs.call-cc.org/ticket/468

The workaround is to (define-constant MAGIC-LIMIT 12)
in lookup-table-body.scm before the use of it.

It seems that the -prelude parameter does no longer work as expected
in this setup. Let's see what Kon says to it.  I hope this will get
you going...

Kind regards and a happy new year,

Christian

* Sven Hartrumpf <hartrumpf <at> gmx.net> [110102 18:18]:
> Fri, 10 Dec 2010 09:36:24 -0800, klovett wrote:
> 
> > Sorry, I suspect this is caused by the use of backwards incompatible module syntax on my part.
> > Specifically the "string as body" feature for textual inclusion.
> > 
> > I will fix this and release a new version.
> 
> Is the lookup-table egg supposed to be fixed noew?
> 
> I am asking because I see the following error (using the experimental chicken branch):
> 
> > chicken-install lookup-table                                                                                                                                                    
> retrieving ...
> resolving alias `kitten-technologies' to: http://chicken.kitten-technologies.co.uk/henrietta.cgi
> connecting to host "chicken.kitten-technologies.co.uk", port 80 ...
> requesting "/henrietta.cgi?name=lookup-table&mode=default" ...
> reading response ...
> HTTP/1.1 200 OK
> Date: Sun, 02 Jan 2011 16:35:50 GMT
> Server: Apache
> Connection: close
> Transfer-Encoding: chunked
> Content-Type: text/plain
> reading chunks ...
> reading files ...
>   ./lookup-table.scm
>   ./lookup-table-unsafe-synch.scm
>   ./lookup-table-synch.scm
>   ./lookup-table.meta
>   ./lookup-table-body.scm
>   ./lookup-table.setup
>   ./chicken-primitive-object-inlines.scm
>   ./lookup-table-unsafe.scm
>  lookup-table located at /tmp/temp9428/lookup-table
> checking platform for `lookup-table' ...
> checking dependencies for `lookup-table' ...
> install order:
> ("lookup-table")
> installing lookup-table: ...
> changing current directory to /tmp/temp9428/lookup-table
>   /programs/free/chicken-svn/bin/csi -bnq -setup-mode -e "(require-library setup-api)" -e "(import
setup-api)" -e "(setup-error-handling)" -e "(extension-name-and-version '(\"lookup-table\"
\"\"))" /tmp/temp9428/lookup-table/lookup-table.setup
>   /programs/free/chicken-svn/bin/csc -feature compiling-extension -setup-mode    lookup-table.scm
-shared -optimize-leaf-routines -inline -output-file lookup-table.so -emit-import-library
lookup-table -prelude "(define-constant MAGIC-LIMIT 12)" -disable-interrupts -fixnum-arithmetic
-local -inline-limit 50 -no-procedure-checks -debug-level 1
> 
> Warning: reference to possibly unbound identifier `MAGIC-LIMIT' in:
> Warning:    g641
> Warning:    g613
> Warning:    g526
> 
> Error: module unresolved: lookup-table
> 
> Error: shell command terminated with non-zero exit status 256:
/programs/free/chicken-svn/bin/chicken lookup-table.scm -output-file lookup-table.c -dynamic
-feature chicken-compile-shared -feature compiling-extension -setup-mode
-optimize-leaf-routines -inline -output-file lookup-table.so -emit-import-library lookup-table
-prelude "\\(define-constant\\ MAGIC-LIMIT\\ 12\\)" -disable-interrupts -fixnum-arithmetic
-local -inline-limit 50 -no-procedure-checks -debug-level 1
> 
> Error: shell command failed with nonzero exit status 256:
> 
>   /programs/free/chicken-svn/bin/csc -feature compiling-extension -setup-mode    lookup-table.scm
-shared -optimize-leaf-routines -inline -output-file lookup-table.so -emit-import-library
lookup-table -prelude "(define-constant MAGIC-LIMIT 12)" -disable-interrupts -fixnum-arithmetic
-local -inline-limit 50 -no-procedure-checks -debug-level 1
> 
> 
> Error: shell command terminated with nonzero exit code
> 17920
> "csi -bnq -setup-mode -e \"(require-library setup...
> 
> _______________________________________________
> Chicken-users mailing list
> Chicken-users <at> nongnu.org
> http://lists.nongnu.org/mailman/listinfo/chicken-users
Sven Hartrumpf | 2 Jan 2011 19:24
Picon

Re: Problems Installing the lookup-table Egg

Hi Christian.

Sun, 2 Jan 2011 18:32:14 +0100, ckeen wrote:
> The workaround is to (define-constant MAGIC-LIMIT 12)
> in lookup-table-body.scm before the use of it.

Thanks for your quick help. Works for me too.

Now I was able to solve another issue for the experimental branch:
You need to replace getenv by get-environment-variable
in locale-timezone.scm and locale-posix.scm of the "locale" egg.
Who can fix this in the official egg?

Happy new year & happy coding
Sven
Christian Kellermann | 2 Jan 2011 21:57
Gravatar

Re: Problems Installing the lookup-table Egg

* Sven Hartrumpf <hartrumpf <at> gmx.net> [110102 19:30]:
> Hi Christian.
> 
> Sun, 2 Jan 2011 18:32:14 +0100, ckeen wrote:
> > The workaround is to (define-constant MAGIC-LIMIT 12)
> > in lookup-table-body.scm before the use of it.
> 
> Thanks for your quick help. Works for me too.
> 
> Now I was able to solve another issue for the experimental branch:
> You need to replace getenv by get-environment-variable
> in locale-timezone.scm and locale-posix.scm of the "locale" egg.
> Who can fix this in the official egg?

There are probably more eggs that need this rewnaming, I have found
a couple already. Locale would be Kon's egg I think. You might want
to file a bug for this, so we won't forget about it.

Thanks!

Christian
Nick Gasson | 2 Jan 2011 22:31
Picon

SLIME and Chicken

Hi all,

I've been working on a SLIME backend for Chicken Scheme. If you haven't
used it before, SLIME is an Emacs-based development environment for
Common Lisp - http://common-lisp.net/project/slime/. The Chicken port
has gotten to the state where it's usable for development so it might
be interesting too other people too.

It currently supports the following:
 - Compile region (C-c C-c) and load file (C-c C-l)
 - Various eval commands: interactive (C-c :), region (C-c C-r), defun
   (C-M-x), pretty-print (C-c C-p)
 - The SLIME REPL
 - Simple tab completion and parameter hints (eldoc)
 - Describe symbol (C-c C-d d) and apropos (C-c C-d a) using chicken-doc
 - Very basic SLDB support - it displays the call chain on error

There's some more information in these posts:
  http://www.doof.me.uk/2010/12/12/using-slime-with-chicken-scheme/
  http://www.doof.me.uk/2011/01/01/update-to-chicken-swank-server/

If you're interested in trying it the git repository is here:
  https://github.com/nickg/swank-chicken
Setup instructions are in the README file.

Lots of SLIME features are unimplemented unfortunately, but hopefully
I've covered most of the common ones. The debugger in particular is
quite lacking. One SLIME feature I'd really like to have is M-. (jump
to definition), but I can't see a way to extract the required file/line
information from Chicken. Does anyone know if this is possible?

Thanks,

Nick
Mehmet Köse | 4 Jan 2011 00:24
Picon
Gravatar

UTF8 egg case conversion problem

Hi everyone,

utf8-string-downcase cannot convert "Latin Letter With Dot Above"
correctly. (U-0130, only Turkish has this letter afaik.) This one-line
patch fixes the problem for me:

--- utf8-case-map.scm.orig	2011-01-04 00:08:10.559095845 +0200
+++ utf8-case-map.scm	2011-01-04 00:28:16.022095891 +0200
 <at>  <at>  -267,7 +267,7  <at>  <at> 
      ((#x00CD) (and (lang? opt "lt") dotted-small-i/acute))
      ((#x0128) (and (lang? opt "lt") dotted-small-i/tilde))
      ;; Turkish and Azeri
-     ((#x0130) (if (lang? opt "tr" "az") #\I dotted-small-i))
+     ((#x0130) (if (lang? opt "tr" "az") #\i dotted-capital-i))
      ((#x0307) (and (lang? opt "tr" "az") ""))
      ((#x0049) (and (lang? opt "tr" "az") dotless-small-i))
      (else #f))

I also tried to understand what this dotted-small-i (U-0307) does with no luck.
Here is what we use for our "two distinct letters instead of I and i" problem,
in practice:

small: i (U-0069)  capital: İ (U-0130)
small: ı (U-0131)  capital: I (U-0049)

Mehmet Kose.
Alex Shinn | 4 Jan 2011 03:37
Picon

Re: UTF8 egg case conversion problem

On Tue, Jan 4, 2011 at 8:24 AM, Mehmet Köse <mehmet.kose <at> gmail.com> wrote:
>
> utf8-string-downcase cannot convert "Latin Letter With Dot Above"
> correctly. (U-0130, only Turkish has this letter afaik.) This one-line
> patch fixes the problem for me:

Teşekkür ederim!  I think this was an error from using the
same code for upcase and downcase.

> -     ((#x0130) (if (lang? opt "tr" "az") #\I dotted-small-i))
> +     ((#x0130) (if (lang? opt "tr" "az") #\i dotted-capital-i))

This is char-downcase, so both #\I and dotted-capital-i
are wrong.  I think it should be

  ((#x0130) (if (lang? opt "tr" "az") #\i dotted-small-i))

That is, in Turkish the dotted capital I always downcases
to normal i.  In other locales, dotted capital I isn't even a
character, so it should follow the rules for the Unicode
locale independent lowercasing, which require "dotted-small-i"
to preserve canonical equivalence.  "dotted-small-i"
is just small i with a combining dot above, which when
uppercased becomes capital I with combining dot above
(without the combining dot it uppercases to normal capital I,
losing the dot).

I'll double check some of these cases and release a new
version shortly.

--

-- 
Alex
Christian Kellermann | 4 Jan 2011 12:08
Gravatar

Re: UTF8 egg case conversion problem

Dear Alex,

* Alex Shinn <alexshinn <at> gmail.com> [110104 03:38]:
> I'll double check some of these cases and release a new
> version shortly.

While you are at the code, can you change the one 'noop' symbol to
'void' since noop has been deprecated in newer chickens.

Changing that makes it work for me and the one word change does not
seem to be worth a ticket.

Thank you!

Christian

Gmane