Re: "cannot coerce inexact literal to fixnum"

2024-02-10 Thread Peter Bex
On Sat, Feb 10, 2024 at 04:07:12PM +0200, Al wrote: > On 2024-02-10 15:38, Peter Bex wrote: > > > That's because you're using fixnum mode. As I explained, using literals > > that might be too large for fixnums break the fixnum mode's premise that > > everything must

Re: "cannot coerce inexact literal to fixnum"

2024-02-10 Thread Peter Bex
On Sat, Feb 10, 2024 at 02:32:16PM +0200, Al wrote: > That would be fine but where does that happen? csc actually barfs on my > Scheme code (as per the subject line), instead of emitting C code to > encode/decode into a string at runtime, as you mention. That's because you're using fixnum mode.

Re: (declare (pure ...))

2024-02-10 Thread Peter Bex
On Sat, Feb 10, 2024 at 12:24:36PM +, Pietro Cerutti wrote: > This is not how I reason about referential transparency. It is a property of > functions applied to values, not variables. > The fact that you can define x to different values or even rebind it in the > scope of a let binding

Re: (declare (pure ...))

2024-02-10 Thread Peter Bex
On Sat, Feb 10, 2024 at 11:12:04AM +, siiky via wrote: > Hi Al, > > > On a practical level, I would be sad if vector-ref, for example, was > > "impure", and thus compiling a vector-ref invalidated all previously- > > checked globals for the current scope. Likewise, I would prefer to > >

Re: "cannot coerce inexact literal to fixnum"

2024-02-10 Thread Peter Bex
On Sat, Feb 10, 2024 at 08:12:38AM +0200, Al wrote: > On 2024-02-10 02:42, Al wrote: > > > ... if I enable fixnum, csc chokes on both the third and fourth > > display's with: "Error: cannot coerce inexact literal `2147483647' to > > fixnum". It compiles and runs fine if those lines are commented

Re: on the distribution of import.so files

2024-01-11 Thread Peter Bex
On Fri, Jan 12, 2024 at 02:37:03AM +0100, Erica Z wrote: > hello! i am packaging chicken for a linux distribution, and i have a > question about the libraries that end in import.so; what is their exact > role? under which circumstances are they loaded? would they need to be > available to a

Re: Deprecated current-milliseconds

2023-12-07 Thread Peter Bex
On Thu, Dec 07, 2023 at 12:48:34PM +0100, Vasilij Schneidermann wrote: > Hello, > > the openssl egg does no longer produce the warning in version 2.2.5 by either > importing the new or old identifier, depending on whichever is available. > Feel free to use that approach in the other egg and

Re: [PATCH] Re: Eggs not installing on msys-mingw32

2023-10-31 Thread Peter Bex
On Mon, Oct 30, 2023 at 05:45:28PM -0400, Matt Welland wrote: > Well, maybe there is a silver lining here, I can currently reliably > reproduce the problem! That's excellent! Do you have to do any special steps, or does it simply always happen? > One hypothesis I'm looking at is replacing calls

Re: Startup failure in Windows XP

2023-10-22 Thread Peter Bex
On Sat, Oct 21, 2023 at 09:12:08AM -0700, igors wrote: > Hello! > chicken 5.x under Windows XP when running, for example csi.exe, error: > function GetFinalPathNameByHandle not found, because it appeared in Windows > Vista. Is it possible to replace this function, for example with >

Re: Question about how to check a symbol is bound

2023-06-29 Thread Peter Bex
On Wed, Jun 28, 2023 at 09:32:36PM +0200, felix.winkelm...@bevuta.com wrote: > But I still think that keeping an expansion/compile-time registry and > accessing it using procedure macros (via "strip-syntax"ed identifiers > to drop all renaming artifacts) is a possible solution. I agree, that's

Re: Question about how to check a symbol is bound

2023-06-23 Thread Peter Bex
On Fri, Jun 23, 2023 at 04:01:40PM +0800, Pan Xie wrote: > For example, if I want to do things shown in following codes, it is useful to > get the > interned symbols from their names and also get their bound procedures: ...[code elided]... > I think it is a very common idiom in languages from

Re: Question about how to check a symbol is bound

2023-06-23 Thread Peter Bex
On Fri, Jun 23, 2023 at 03:32:38PM +0800, Pan wrote: > Ah, that make sense. It seems I can just use the '##sys#slot' procedure to > accomplish all that tasks. Please don't use ##sys#slot unless you know what you're doing - the procedure is unsafe and will cause segmentation faults when used on

Re: Different versions of syntax-rules

2023-04-20 Thread Peter Bex
On Thu, Apr 20, 2023 at 11:58:50PM +0200, felix.winkelm...@bevuta.com wrote: > > Is there a desire to stick to r5rs features only in the chicken-core > > expander, or is the intention to fold the R7RS / SRFI 46 features back > > into the chicken-core expander at some point in the future? > > I

Re: I'm missing something obvious about (chicken conditions)

2023-03-07 Thread Peter Bex
On Tue, Mar 07, 2023 at 04:40:15PM -0500, T. Kurt Bond wrote: > I've got two programs, edited down from other slightly larger programs > for clarity. They use condition-case to handle exceptions. I'm > interested in handling a (mine) condition and a (mine too) > differently. One of the program

Re: mingw32-make: *** [chicken-defaults.h] Error 1

2023-03-07 Thread Peter Bex
On Wed, Mar 08, 2023 at 01:50:24PM +0800, Patrickpwq wrote: > and here is my command: > ``` > C:\Program Files (x86)\chicken-5.3.0mingw32-make PLATFORM=mingw > PREFIX="C:\Program Files (x86)\chicken-5.3.0" > ``` > I wonder where is the problem, I'm a freshman studying CS in China, > appreciate

Re: New egg: CHICKEN Transducers

2023-01-04 Thread Peter Bex
On Wed, Jan 04, 2023 at 06:48:56PM -0700, Jeremy Steward wrote: > I've been somewhat bothered by the fragmentation in a certain aspect of > Scheme / Lisp: notably that there isn't really something akin to Rust's > Iterator trait in Scheme, and as a result working across various collections > and

Re: define-er-syntax* new egg

2022-10-28 Thread Peter Bex
On Fri, Oct 28, 2022 at 08:50:04AM +0200, Sandra Snan wrote: > Can any one add https://idiomdrottning.org/define-er-syntax.release-info to > egg-locations, please? > I know that the last three times I asked, I forgot to actually put any > releases in there. > I found them in my fridge next to

Re: http-client egg and authentication

2022-09-26 Thread Peter Bex
On Mon, Sep 26, 2022 at 12:15:10AM +0200, Christian Himpe wrote: > Dear All, > > so I found this recent StackOverflow issue: > https://stackoverflow.com/questions/72904388/how-do-i-use-http-basic-auth-with-http-client > based on which I tried to use `make-uri` and pass the URI record (including

Re: New Egg: TOML wrapper

2022-09-06 Thread Peter Bex
On Mon, Sep 05, 2022 at 09:53:11PM +0200, Daniel Ziltener wrote: > Hmm, right... I have never sent in an egg with a submodule. Seems like Gitea > cannot pack submodules so far. So what I did for now is to add a "generated > source" to the egg file that triggers a "git clone" of a hardcoded commit

Re: Bare-Metal Suitability

2022-06-25 Thread Peter Bex
On Fri, Jun 24, 2022 at 03:20:36PM -0600, Paul Whittington wrote: > I'm a total Chicken noob. Is Chicken suitable for use in bare-metal > applications? Hello Paul, I don't think it's very suitable - CHICKEN relies on libc and most of POSIX syscalls being present. Maybe an experienced CHICKEN

Re: Chicken 5 on Cygwin

2022-03-07 Thread Peter Bex
On Fri, Mar 04, 2022 at 01:07:21PM -0500, Claude Marinier wrote: > Allô, > > I see that Cygwin includes Chicken 4. This is not a problem at home where I > can compile from sources. At work, I am working on approval for Cygwin as a > whole. It would be nice if Cygwin included Chicken 5. > > Who

[ANN] CHICKEN 5.3.0 has been released

2021-11-17 Thread Peter Bex
Dear CHICKEN users, We are pleased to announce the immediate availability of CHICKEN 5.3.0 at the following URL: https://code.call-cc.org/releases/5.3.0/chicken-5.3.0.tar.gz This tarball has the following SHA256 checksum: c3ad99d8f9e17ed810912ef981ac3b0c2e2f46fb0ecc033b5c3b6dca1bdb0d76 This is

[ANN] CHICKEN 5.3.0 release candidate 4 available

2021-10-06 Thread Peter Bex
Hello all, The fourth release candidate for CHICKEN 5.3.0 is now available for download: https://code.call-cc.org/dev-snapshots/2021/10/06/chicken-5.3.0rc4.tar.gz The sha256sum of that tarball is: ba8da800e708c423c0e6e812fa2a93b947c731e52d115988b0c0f84406040e14 The list of changes since

[ANN] CHICKEN 5.3.0 release candidate 3 available

2021-09-20 Thread Peter Bex
Hello all, The third release candidate for CHICKEN 5.3.0 is now available for download: https://code.call-cc.org/dev-snapshots/2021/09/20/chicken-5.3.0rc3.tar.gz The sha256sum of that tarball is: 298ad5eab42ea56c3cc3fcc7343a510e0c41fc13d3b5bdd2f4b1a636458f8f67 The list of changes since

Re: Windows vs Linux Performance, windows host 4-6x slower than linux guest vm

2021-09-09 Thread Peter Bex
On Mon, Sep 06, 2021 at 01:26:26PM +0100, Mark Fisher wrote: > I'm seeing quite a difference in performance between the two; windows host > is running about ~4-6x slower than a VM that's running on the same machine. hm, that's odd indeed. Perhaps it's something to do with the different C calling

Re: Installing Chicken 5.2.0 on Windows - chicken-install -update-db hanging

2021-08-31 Thread Peter Bex
On Fri, Aug 27, 2021 at 08:00:22PM +0100, Mark Fisher wrote: > I have traced where my copy is crashing, but I don't know why. Hi Mark, Could you give 5.3.0rc2 a quick spin? In it, we've simply dropped the custom implementation of opendir and readdir. Also, since it is pre-translated to C, it

[ANN] CHICKEN 5.3.0 release candidate 2 available

2021-08-31 Thread Peter Bex
Hello all, The second release candidate for CHICKEN 5.3.0 is now available for download: https://code.call-cc.org/dev-snapshots/2021/08/31/chicken-5.3.0rc2.tar.gz The sha256sum of that tarball is: 1736f68006564c5690ce8f844f1c6052046b0bf15a6436aa2ec0d59534ae608b The list of changes since

Re: Installing Chicken 5.2.0 on Windows - chicken-install -update-db hanging

2021-08-26 Thread Peter Bex
On Thu, Aug 26, 2021 at 01:38:42PM +0100, Mark Fisher wrote: > I always ran clean/confclean between any builds to regenerate the > chicken-config file and would > watch for its generation when I built it, so I don't think it was that. > I'm pretty sure I never mixed and matched PLATFORM= values

Re: Installing Chicken 5.2.0 on Windows - chicken-install -update-db hanging

2021-08-26 Thread Peter Bex
On Wed, Aug 25, 2021 at 08:34:47PM +0100, Mark Fisher wrote: > I've finally been able to get chicken installed and working, but I had to > pretend to be cygwin. > I think there's errors in the mingw-msys Makefile, or my assumptions about > it are wrong. > I would expect: > - "Makefile.mingw" to

Re: Installing Chicken 5.2.0 on Windows - chicken-install -update-db hanging

2021-08-22 Thread Peter Bex
On Sat, Aug 21, 2021 at 12:14:51PM +0100, Mark Fisher wrote: > The compilation works fine, but when I run the install phase, the > "chicken-install -update-db" just hangs Hello Mark, I seem te remember something like this caused by Windows Defender (the virus scanner thing in Windows). If you

Re: [ANN] CHICKEN 5.3.0 release candidate available

2021-08-15 Thread Peter Bex
On Sat, Aug 14, 2021 at 08:25:21PM +0200, Sven Hartrumpf wrote: > Hi. > > The segmentation violation disappeared after cleaning my build script for > chicken. > (It contained an old "-mpreferred-stack-boundary=4" in > C_COMPILER_OPTIMIZATION_OPTIONS, > which I dropped now.) hm, I have to

Re: [ANN] CHICKEN 5.3.0 release candidate available

2021-08-13 Thread Peter Bex
On Fri, Aug 13, 2021 at 08:18:39AM +0200, Sven Hartrumpf wrote: > Hi. > > gcc 10.3.0, amd64, Ubuntu 21.04 > > I am getting a new "Error: segmentation violation", when I add (time .) > around my main function mf call: > (time (mf (cons (car (argv)) (command-line-arguments > The error happens

Re: [ANN] CHICKEN 5.3.0 release candidate available

2021-08-12 Thread Peter Bex
On Thu, Aug 12, 2021 at 09:44:11PM -0300, Ariela Wenner wrote: > > Hi all, I seem to be running into a weird issue with this rc when trying to > install the pigeon-hole egg (might happen with other eggs too, I tested a > bunch > and it only happened with pigeon-hole though). > > Link to log

[ANN] CHICKEN 5.3.0 release candidate available

2021-08-12 Thread Peter Bex
Hello everyone, We are happy to announce the first release candidate of the upcoming CHICKEN 5.3.0. CHICKEN 5.3.0rc1 is now available at this location: https://code.call-cc.org/dev-snapshots/2021/08/12/chicken-5.3.0rc1.tar.gz The SHA256 sum of that tarball is

Re: Chicken 5 compilation, coerced inexact literal number warning. What am I missing here?

2021-04-07 Thread Peter Bex
On Wed, Apr 07, 2021 at 10:42:39PM -0700, Matt Welland wrote: > There is a .h file in hostinfo and I didn't catch the error message. > Presumably that somehow put the compiler into fixnum mode. hm, if possible could you figure out what exactly did that? A C header file shouldn't change the

Re: port of xml-rpc to Chicken 5

2021-04-07 Thread Peter Bex
On Wed, Apr 07, 2021 at 06:41:30PM -0700, Chris Brannon wrote: > Mario Domenech Goulart writes: > > > Just double-checking to avoid misunderstandings: have you contacted > > Peter Bex (maintainer of the egg for CHICKEN 4) about taking over the > > maintenance of xml-r

Re: Chicken 5 compilation, coerced inexact literal number warning. What am I missing here?

2021-04-07 Thread Peter Bex
On Tue, Apr 06, 2021 at 09:37:32PM -0700, Matt Welland wrote: > This one I sort of understand but it does seem annoying: > > Warning: coerced inexact literal number `9e+99' to fixnum > 848859130765266355329578537025198862586562510896759102769772101980841694466750283776 I don't

Re: Segmentation Fault with IUP on chicken 5.2.0

2021-02-25 Thread Peter Bex
On Thu, Feb 25, 2021 at 05:04:14PM -0700, Jeff Moon wrote: > Any ideas what could be causing this, or what I could do to track > it down? Hi Jeff, This sounds like there might be a bug at the toplevel of IUP, which might explain why re-importing works (it shouldn't re-evaluate the toplevel).

Re: Adding deprecation notices to CHICKEN 4 egg docs?

2021-02-02 Thread Peter Bex
On Tue, Feb 02, 2021 at 02:45:58PM +, Diego wrote: > > This has now been done. Cheers, Peter > > Thanks! I was thinking relatedly that C5 search results should be preferred > over C4 results, and somewhat along the same line, maybe title matches for > searches should come up first. > > I'd

Re: Adding deprecation notices to CHICKEN 4 egg docs?

2021-02-02 Thread Peter Bex
On Tue, Jan 26, 2021 at 02:24:29PM +0100, Peter Bex wrote: > I'm thinking, maybe we should do something similar for CHICKEN 4 > documentation now. [...] > Also I noticed we didn't do this for the manual itself. I think it's > a good idea to that now, too. This has now been done. C

Adding deprecation notices to CHICKEN 4 egg docs?

2021-01-26 Thread Peter Bex
Hi all, I've noticed that the documentation for CHICKEN 3 eggs (and also for CHICKEN 2 eggs, where we have them) contain a "OUTDATED EGG" warning at the top, to warn people away from them. I'm thinking, maybe we should do something similar for CHICKEN 4 documentation now. CHICKEN 5 is now just

Re: freeBSD chicken port

2021-01-14 Thread Peter Bex
On Thu, Jan 14, 2021 at 08:42:04PM -0700, Duke Normandin wrote: > > You can see the binaries in /usr/local/bin. > > chicken5 csc5 and csi5. > > You can generalize begin using most FreeBSD packages. > > I discovered all of that already! But WHY change from csc and csi > to csc5 and csi5? So next

Re: static builds

2020-12-21 Thread Peter Bex
On Mon, Dec 21, 2020 at 12:24:10PM +0100, Henrik Holst wrote: > Hi Community > > I am trying to build a static build using the Chicken Scheme compiler. Is > it possible to do? Hi Henrik, This is possible indeed. The -static option will only statically link CHICKEN libraries and extensions (as

Re: Bad request error when using uri-common

2020-09-20 Thread Peter Bex
On Sun, Sep 20, 2020 at 04:16:55PM +, Brian Hughes wrote: > This first fragment throws an error: > > (form-urlencoded-separator "&") > (define foo (make-uri scheme: 'https > host: "graph.facebook.com" > path: `(,my-facebook-id) >

Re: Using a pipe in chicken 5

2020-08-06 Thread Peter Bex
On Thu, Aug 06, 2020 at 12:01:40PM +0100, Mark Fisher wrote: > Hi Chicken Users, > > I'm a new user of chicken, and am using it to learn scheme. Hello and welcome, Mark! > I've got an issue with using pipes. > >From various sources I've created the following example, but when run > I get an

Re: chicken.irregex bug with positive lookbehinds

2020-07-10 Thread Peter Bex
On Fri, Jul 10, 2020 at 09:21:37AM -0400, masukomi wrote: > Thanks Peter. > Is there a good/easy way to determine where the source repo is for various > `chicken.foo` pieces of code? Not really. Almost all of the core code is our own. There are some srfis which are taken from the reference

Re: chicken.irregex bug with positive lookbehinds

2020-07-10 Thread Peter Bex
On Thu, Jul 09, 2020 at 09:51:51PM -0400, masukomi wrote: > (If there's a ticketing system I've somehow missed please let me know and > I'll file this there) Hi Kay, Thanks for the report! I've filed it in the upstream repo for you: https://github.com/ashinn/irregex/issues/21 We'll also need

Re: openssl static compile issue

2020-05-12 Thread Peter Bex
On Tue, May 12, 2020 at 03:07:34PM -0400, nemo1...@gmail.com wrote: > csc -static filename.scm -L -lssl -L -lcrypto > > which removes all errors and allows the code to compile. However, when ran > the compiled code generates the following http-client egg error: > > "Unable to connect over HTTPS.

Re: CHICKEN 5.2.0 has been released

2020-03-05 Thread Peter Bex
On Wed, Mar 04, 2020 at 03:20:58PM -0600, Daniel Ortmann wrote: > make PLATFORM=linux PREFIX=/usr/local/chicken-5.2.0 install > $ cat /etc/oracle-release > Oracle Linux Server release 7.7 > $ cat /etc/redhat-release > Red Hat Enterprise Linux Server release 7.7 (Maipo) Hi Daniel, How is the home

CHICKEN 5.2.0 has been released

2020-02-29 Thread Peter Bex
Dear CHICKEN users, We are pleased to announce the immediate availability of CHICKEN 5.2.0 at the following URL: https://code.call-cc.org/releases/5.2.0/chicken-5.2.0.tar.gz This tarball has the following SHA256 checksum: 819149c8ce7303a9b381d3fdc1d5765c5f9ac4dee6f627d1652f47966a8780fa This is

[ANN] CHICKEN 5.2.0 release candidate 2 available

2020-02-16 Thread Peter Bex
Hello all, The second release candidate for CHICKEN 5.2.0 is now available for download: https://code.call-cc.org/dev-snapshots/2020/02/16/chicken-5.2.0rc2.tar.gz The sha256sum of that tarball is: 27d324b54aeda7163dbdb8a98d973752947e6f472336592435a788b3ba7daff2 The list of changes since

Re: csirc when transitioning from chicken 4 to 5

2020-01-15 Thread Peter Bex
On Wed, Jan 15, 2020 at 11:00:02AM -0700, Matt Welland wrote: > I have not been able to figure out how to make a .csirc that works for both > chicken 4 and 5. > > (import (chicken platform)) is not legal for chicken 4 but > (chicken-version) is not available in chicken 5 until you've done the >

Re: [ANN] CHICKEN 5.2.0 release candidate available

2020-01-14 Thread Peter Bex
On Wed, Jan 15, 2020 at 08:32:05AM +0100, Sven Hartrumpf wrote: > Hi. > > The RC1 generates uncompilable C code for my Scheme code. > This code worked for all previous Chicken versions (tested > today: 5.1.0). > If I use csc -O3 (-O2 is ok), I get 19 gcc errors, e.g. > > nallch.c:1395027: error:

Re: [ANN] CHICKEN 5.2.0 release candidate available

2020-01-13 Thread Peter Bex
On Sun, Jan 12, 2020 at 01:29:06PM +0100, Peter Bex wrote: > If you can, please let us know the following information about the > environment you tested the RC tarball on: I tested on FreeBSD again. Works with gcc: Operating system: FreeBSD 12.0 Hardware platform: x86-64 C Compiler: GCC

[ANN] CHICKEN 5.2.0 release candidate available

2020-01-12 Thread Peter Bex
Hello everyone, We are happy to announce the first release candidate of the upcoming CHICKEN 5.2.0. CHICKEN 5.2.0rc1 is now available at this location: https://code.call-cc.org/dev-snapshots/2020/01/12/chicken-5.2.0rc1.tar.gz The SHA256 sum of that tarball is

Re: Missing Eggs in Chicken 5

2020-01-05 Thread Peter Bex
On Fri, Jan 03, 2020 at 09:02:10AM +0100, Peter Bex wrote: > I'll give porting crypt a shot this weekend. The build is rather custom > which can complicate things a bit. Hi again, I've ported the egg. It should be available as version 1.0 of crypt. Cheers, Peter signature.asc Descr

Re: Missing Eggs in Chicken 5

2020-01-03 Thread Peter Bex
On Thu, Jan 02, 2020 at 11:46:31PM -0700, Jeff Moon wrote: > Update: We'll be updating the dbi repo. What do we need to do to get it > recognized by the chicken 5 eggs system? Same as for CHICKEN 4: send a message to the list with the release-info file and someone can add it to the coop.

Re: Missing Eggs in Chicken 5

2020-01-03 Thread Peter Bex
On Thu, Jan 02, 2020 at 04:49:34PM -0700, Jeff Moon wrote: > Matt Welland and I are porting some existing code to chicken 5. We ran > into some eggs that we are using that we would like in chicken 5: > > csv-xml > crypt Hi Jeff, I'll give porting crypt a shot this weekend. The build is rather

Re: Gosling: This year's CHICKEN event

2019-12-22 Thread Peter Bex
On Thu, Dec 12, 2019 at 07:58:33AM +0100, Kristian Lein-Mathisen wrote: > Hi everyone! > > I've decided to try to host another Chicken even, and I'm hoping you will > attend! Please see the wiki for information: > > http://wiki.call-cc.org/event/gosling-2020 I just booked my ticket! Looking

Re: How to solve this import in an eval problem?

2019-11-12 Thread Peter Bex
On Mon, Nov 11, 2019 at 10:43:44PM -0700, Matt Welland wrote: > I'm working toward porting my various projects to chicken 5 and for one > project I first want to convert a bunch of compilation units to modules. > This has mostly gone well but I'm stuck on exposing module code in an eval. > Without

Re: Why has the language reference been removed?

2019-11-03 Thread Peter Bex
On Sun, Nov 03, 2019 at 07:59:09PM +0100, Kristian Lein-Mathisen wrote: > Hi Cleverson, > > Oh your're right - I didn't realize there is no > http://wiki.call-cc.org/man/4/The%20R5RS%20standard equivalent for C5. The > core team can probably clarify why this is (moving towards R7RS?). The reason

Re: [Chicken-users] Debian 9 amd64 chicken-bin 4.11.0-1 cannot import from undefined module process-context

2019-09-18 Thread Peter Bex
On Tue, Sep 17, 2019 at 11:00:17PM -0700, David Christensen wrote: > The current release of Chicken appears to be 5.1.0: > > https://code.call-cc.org/ Correct. > I do not see a Debian backport: > > https://packages.debian.org/search?keywords=chicken=names=all=stretch-backports Yeah, Debian...

Re: [Chicken-users] on generating types files for compound libraries of multiple modules

2019-08-14 Thread Peter Bex
On Wed, Aug 14, 2019 at 08:23:51AM +0200, Marco Maggi wrote: > Ciao, > > I see there is no declaration specifier for "-emit-types-file", is > there a reason?I would appreciate something similar to > "emit-import-library". I don't know, but it might be just a matter of

Re: [Chicken-users] retrieving a structure's symbol name

2019-07-25 Thread Peter Bex
On Thu, Jul 25, 2019 at 07:36:04AM +0200, Marco Maggi wrote: > I am writing a library that mimics R6RS records. Every R6RS record-type > can be associated to a unique identifier (UID), which is a symbol. > Defining the same record-type in multiple modules is fine, under the > correct

Re: [Chicken-users] retrieving a structure's symbol name

2019-07-24 Thread Peter Bex
On Wed, Jul 24, 2019 at 07:22:45PM +0200, Marco Maggi wrote: > Mh. If I understand correctly this is to avoid collisions for the > record printers, and stuff like that. It is to avoid collisions for all accessors and predicates. If I define a record type X of 2 slots in module A, and in

Re: [Chicken-users] retrieving a structure's symbol name

2019-07-24 Thread Peter Bex
On Wed, Jul 24, 2019 at 03:49:13PM +0200, Marco Maggi wrote: > Ciao, > > I know that it is dirty, but is it possible to retrieve the symbol > name of a structure from the block object? If I create a structure > with: > >(define (make-it) > (##sys#make-structure 'spiffy)) >

Re: [Chicken-users] Easiest way to find origin repos of Chicken eggs

2019-07-23 Thread Peter Bex
On Tue, Jul 23, 2019 at 04:54:14PM +0300, Lassi Kortela wrote: > Is there a global index (one file or web page) that links to the git/hg > origin repo of every Chicken egg? The master list used by our mirrors is https://bugs.call-cc.org/browser/release/5/egg-locations This is trawled by

Re: [Chicken-users] how the second argument to ERROR is handled

2019-07-21 Thread Peter Bex
On Sun, Jul 21, 2019 at 09:03:33AM +0200, Marco Maggi wrote: > Ciao, > > with CHICKEN 5.1.0, is the following correct: > > (import (scheme) (chicken base) (chicken condition)) > > (call/cc > (lambda (escape) > (with-exception-handler > (lambda

Re: [Chicken-users] wrong number of arguments to continuation when escaping?

2019-07-18 Thread Peter Bex
On Thu, Jul 18, 2019 at 08:13:53AM +0200, Marco Maggi wrote: > Not sure if I understand. The problem lies in the context in which the > call to DOIT is performed? Yes, exactly. > it expects any number of values in: > >(call-with-values >doit > (lambda args (apply values

Re: [Chicken-users] wrong number of arguments to continuation when escaping?

2019-07-17 Thread Peter Bex
On Thu, Jul 18, 2019 at 06:43:06AM +0200, Marco Maggi wrote: > I do not understand why some place expects 1 argument. The problem goes > away if I replace: > >(escape) > > with: > >(escape 1) Hi Marco, This is a known "issue", see #1390 and #1601. Improving this so that such

Re: [Chicken-users] importing a syntactic binding for level -1

2019-07-13 Thread Peter Bex
On Sat, Jul 13, 2019 at 02:12:48PM +0200, Marco Maggi wrote: > Peter Bex wrote: > > > This won't work. "rename" is operating in the syntactic environment > > of the transformer. You can pass it as a procedure to some other module, > > but that won't change its

Re: [Chicken-users] importing a syntactic binding for level -1

2019-07-13 Thread Peter Bex
On Sat, Jul 13, 2019 at 08:26:56AM +0200, Marco Maggi wrote: > I would like to write such macro as: > > (import (scheme) > (chicken fixnum)) > (import-for-syntax (scheme) >(only (chicken syntax) > er-macro-transformer) >

Re: [Chicken-users] thoughts on alternate "posits" / "unums" instead of traditional floats?

2019-07-09 Thread Peter Bex
On Tue, Jul 09, 2019 at 12:25:12PM -0500, Daniel Ortmann wrote: > I am probably the last to run across this alternate floating point > format ... but now I am curious. > > If these posits were implemented in Chicken, what sort of work would be > required? > Would they replace the traditional

Re: [Chicken-users] Segmentation violation with chicken 5.1.0

2019-06-23 Thread Peter Bex
On Sun, Jun 23, 2019 at 02:33:10PM +0200, Peter Bex wrote: > [panic] Low-level type assertion > C_blockp((C_word)C_VAL1(C__PREV_TMPST.n1))=#t failed at chickenprob3.c:93488 > - execution terminated Here's a minimal reproducible testcase: (define (test-it) (let loop ((done #f))

Re: [Chicken-users] Segmentation violation with chicken 5.1.0

2019-06-23 Thread Peter Bex
On Sat, Jun 22, 2019 at 05:50:30PM +0200, Sven Hartrumpf wrote: > Hello. > > I have a strange problem with legacy code that works in many > other Schemes and Chicken 5 csi, but the binary compiled with Chicken 5 > crashes. It looks like the bug happens in lookup_prob in the let*. (value (or

Re: [Chicken-users] [ANN] CHICKEN 5.1.0 has been released

2019-06-20 Thread Peter Bex
On Thu, Jun 20, 2019 at 01:33:24PM +0200, Jörg F. Wittenberger wrote: > Dear CHICKENers, > On Jun 18 2019, Peter Bex wrote: > > > The other important new features are the new cond-expand, c-object and > > object forms in .egg files. > > The last two forms did not mak

[Chicken-users] [ANN] CHICKEN 5.1.0 has been released

2019-06-18 Thread Peter Bex
Dear CHICKEN users, We are pleased to announce the immediate availability of CHICKEN 5.1.0 at the following URL: https://code.call-cc.org/releases/5.1.0/chicken-5.1.0.tar.gz This tarball has the following SHA256 checksum: 5c1101a8d8faabfd500ad69101e0c7c8bd826c68970f89c270640470e7b84b4b The most

Re: [Chicken-users] [ANN] CHICKEN 5.1.0 release candidate available

2019-06-14 Thread Peter Bex
Hi all, I tested on my old Debian/Hurd image. Operating system: Debian/Hurd 0.9 Hardware platform: x86 C Compiler: gcc 8.2.0 Installation works?: yes Tests work?: yes Installation of eggs works?: yes Cheers, Peter signature.asc Description: PGP signature

Re: [Chicken-users] [ANN] CHICKEN 5.1.0 release candidate available

2019-06-14 Thread Peter Bex
Hi all, I've tested on Haiku. Everything worked, except for the fact that the timestamps of extracted files from tarballs are still messed up. So, I had to occasionally touch(1) a few .c files in order to avoid it trying to call "chicken" to recompile some Scheme files. This is a known issue

Re: [Chicken-users] [ANN] CHICKEN 5.1.0 release candidate available

2019-06-11 Thread Peter Bex
Hi all, Tested on FreeBSD: Operating system: FreeBSD-11.2 Hardware platform: x86-64 C Compiler: clang 6.0.0 Installation works?: yes Tests work?: yes Installation of eggs works?: yes Operating system: FreeBSD-11.2 Hardware platform: x86-64 C Compiler: gcc 8.2.0 Installation works?: yes Tests

Re: [Chicken-users] [ANN] CHICKEN 5.1.0 release candidate available

2019-06-10 Thread Peter Bex
On Sun, Jun 09, 2019 at 10:23:14PM -0400, John Cowan wrote: > The output of "make test" was over 20,000 lines, some of which do have the > string "fail" in them. I've posted it at > if anyone wants to take a look. Hi John, That's normal. There are many

Re: [Chicken-users] [ANN] CHICKEN 5.1.0 release candidate available

2019-06-09 Thread Peter Bex
On Sun, Jun 09, 2019 at 11:15:59PM +0200, ipc...@arcor.de wrote: > Hi, > > I failed to build 5.1.0rc1. > > log: > > http://paste.call-cc.org/paste?id=049edb2b007bd9a1859362a6e99818a282aa5201 > > I know I forgot to set the LINKER flag, but setting it doesn't change > anything. Likewise, using

Re: [Chicken-users] [ANN] CHICKEN 5.1.0 release candidate available

2019-06-09 Thread Peter Bex
On Sat, Jun 08, 2019 at 03:07:34PM +0200, Peter Bex wrote: > Please give it a test and report your findings to the mailing list. I've done some testing on Windows 7. Operating system: Windows 7 mingw-msys under mingw32 Hardware platform: x86 C Compiler: gcc Installation works?: yes Tests w

Re: [Chicken-users] file-exists? is missing

2019-06-08 Thread Peter Bex
On Sat, Jun 08, 2019 at 07:48:54PM +, Mathieu wrote: > Hi Schemers, > > Just noticed that the following : > > (import (chicken file)) > (file-exists? "anything") > > Gives the following error at runtime : > > unbound variable: chicken.file#file-exists? > > Using csc5 under

[Chicken-users] [ANN] CHICKEN 5.1.0 release candidate available

2019-06-08 Thread Peter Bex
Hello everyone, We are happy to announce the first release candidate of the upcoming CHICKEN 5.1.0. CHICKEN 5.1.0rc1 is now available at this location: https://code.call-cc.org/dev-snapshots/2019/06/08/chicken-5.1.0rc1.tar.gz The SHA256 sum of that tarball is

Re: [Chicken-users] matchable egg: error while reporting error?

2019-06-03 Thread Peter Bex
On Mon, Jun 03, 2019 at 09:25:51AM +0200, Marco Maggi wrote: > I understand this. But the problem looks like MATCH-SYNTAX-ERROR is > used with an invalid syntax by the "matchable" internals themselves. > What I expected is an error during the expansion of MATCH, not during > the

Re: [Chicken-users] matchable egg: error while reporting error?

2019-06-03 Thread Peter Bex
On Mon, Jun 03, 2019 at 06:21:56AM +0200, Marco Maggi wrote: > Ciao, > > with CHICKEN 5.0.0 this form using MATCH from "matchable" (updated > right now): > > (match '(#:a #:b c d) > (((? keyword? k*) ... (? symbol? s*) ...) >(pretty-print k*) >(pretty-print s*)) > (_ >

Re: [Chicken-users] A Thank You to all the chicken-scheme contributors

2019-05-26 Thread Peter Bex
On Sun, May 26, 2019 at 01:09:08PM +0100, Richard Huxton wrote: > I'm unlikely to ever become a scheme guru or even make a living writing it. > > I am however enjoying exploring chicken scheme and have found it to be a > clean, practical distribution with well thought out tools and suprisingly >

Re: [Chicken-users] for those who have interest in procedure objects decoration

2019-05-22 Thread Peter Bex
On Wed, May 22, 2019 at 03:05:44PM +0200, Marco Maggi wrote: > Peter Bex wrote: > > This looks pretty cool! One request though: could you please add some > > blatant warnings that this stuff is not meant to be relied upon in user > > code? These are internals inste

Re: [Chicken-users] for those who have interest in procedure objects decoration

2019-05-22 Thread Peter Bex
On Wed, May 22, 2019 at 10:59:17AM +0200, Marco Maggi wrote: > Ciao, > > I'm composing unofficial documentation for CHICKEN internals that are > usable from client code. As part of this I have added a section about > decorating procedure objects: > >

Re: [Chicken-users] what does "##core#check" do?

2019-05-14 Thread Peter Bex
On Tue, May 14, 2019 at 07:05:41AM +0200, Marco Maggi wrote: > Ciao, > > in the "record-variants" egg there is: > >(##core#check (##sys#check-structure x ',original-name)) > > I understand what: > >(##sys#check-structure x ',original-name) > > does, but what is the

Re: [Chicken-users] Defining defmacro using define-syntax

2019-05-13 Thread Peter Bex
On Mon, May 13, 2019 at 07:11:40PM +0100, Martin Ward wrote: > Chicken scheme does not appear to have defmacro or define-macro > but does have define-syntax. > > Is there a way to define defmacro using define-syntax? This is of course highly discouraged (because defmacro is inherently

Re: [Chicken-users] on the usage of the unsafe operations ##sys##slot and similar

2019-05-12 Thread Peter Bex
On Sun, May 12, 2019 at 11:10:51AM +0200, Marco Maggi wrote: > Ciao, > > sorry for peeking under the skirt; I'm trying to get a basic > understanding of the core usage and memory layout of Scheme values Hi Marco, If you're interested in this, perhaps you find this blog post of

Re: [Chicken-users] Is it possible to change the list of included modules when compiling Chicken?

2019-05-12 Thread Peter Bex
On Sat, May 11, 2019 at 08:28:23PM -0300, Jeronimo Pellegrini wrote: > Hello, > > I was wondering if it is possible to remove or add modules to > the list of default included modules that come with Chicken. > > I am compiling it for wireless routers, and so far I could not yet > package csc --

Re: [Chicken-users] Statically compiling with additional eggs in Chicken 5

2019-05-08 Thread Peter Bex
On Tue, May 07, 2019 at 01:06:09PM -0700, Jeff Moon wrote: > I'm using chicken 5.0.0. I've used it to create a handful of apps that I > have distributed as static binaries, and it seems to be working very well. > However, when I try to include certain eggs, the static builds do not seem > to

Re: [Chicken-users] is it possible to define expand-time values?

2019-05-05 Thread Peter Bex
On Sat, May 04, 2019 at 09:06:08PM +0200, Marco Maggi wrote: > That example just shows the mechanism, and it is not really a good > example (I wrote it). What I am thinking of, as reference scenario, is > an infix-to-prefix macro with infrastructure that allows to define new > binary

Re: [Chicken-users] is it possible to define expand-time values?

2019-05-04 Thread Peter Bex
On Sat, May 04, 2019 at 03:56:12PM +0200, Marco Maggi wrote: > ... in CHICKEN 5.0.0 or in a future release? I can find nothing > relevant on the CHICKEN Wiki. Here what they should do: > > > > it would open a

[Chicken-users] [ANN] Development snapshot 5.0.2 now available

2019-05-02 Thread Peter Bex
Hi all! A new development snapshot (5.0.2) is now available: https://code.call-cc.org/dev-snapshots/2019/05/02/chicken-5.0.2.tar.gz This is the second snapshot in the 5.x release series. The most important change is that this version completes the previous change of how "qualified" symbols are

Re: [Chicken-users] Anyone know why I can't split with an empty string in (chicken irregex)?

2019-05-02 Thread Peter Bex
On Wed, May 01, 2019 at 11:18:31PM -0500, joshua wrote: > I can't seem to figure out how to split a string into individual characters. Hi Joshua, The canonical way to do that would be string->list. > I could swear this worked before, in Chicken 4. > I'm now using Chicken 5.0.0 running on Void

Re: [Chicken-users] Print asymmetry with coops

2019-04-26 Thread Peter Bex
On Fri, Apr 26, 2019 at 09:11:02AM +, EfraimVagner wrote: > Hi, > > I've started to work on a small project for fun in scheme, and I wanted to > use a class for one thing. I saw that there is the coops extension, that does > what I want, but my problem is that when printing an object i get

  1   2   3   4   5   6   7   8   9   10   >