New egg: SRFI-94: Type-Restricted Numerical Functions

2020-11-21 Thread noosphere
I would like to submit a new egg for publication:

  SRFI-94: Type-Restricted Numerical Functions

Its documentation is here:

  https://wiki.call-cc.org/eggref/5/srfi-94

Its release-info is here:

  https://github.com/diamond-lizard/srfi-94/raw/main/release-info

test-new-egg gives it a clean bill of health.

  --Sergey



Re: New egg: SRFI-87: => in case clauses

2020-11-21 Thread noosphere
On Sat 21 Nov 2020 09:28:10 PM +01, Mario Domenech Goulart wrote:
>
> The support for `=>' in cond clauses has been added [to CHICKEN 4.9.0]
> to conform to R7RS, not exactly to support SRFI-87, as far as I can
> tell.  It is documented in
> http://wiki.call-cc.org/man/5/Module%20scheme#derived-expression-types
> (look for the documentation of `case')

I have some questions about this.

First, when packaging up the SRFI-87 egg, I ported over the SRFI-87
documentation over to svnwiki syntax and posted it on the Chicken wiki:

  http://wiki.call-cc.org/eggref/5/srfi-87

Because of that, it's now possible to find SRFI-87 and related search
terms in a search of the Chicken wiki.

Should we keep this documentation?

If we do, of course I can take myself out of the credits for packaging
up SRFI-87 as there'll be no SRFI-87 egg, and take out the Version
history section, and I could put in a note that SRFI-87 is supported in
Chicken core with a link to the page you linked to above.  Finally, if
we do keep it I can link to that page from our Supported Standards and
Chicken SRFI Support pages.  If we don't keep it, then I could just link
directly to:

  https://wiki.call-cc.org/man/5/Module%20scheme#derived-expression-types

The other questions I have regard my investigation of SRFI-87 support in
Chicken.  When you mentioned that Chicken had SRFI-87 support, I tried
importing SRFI-87 in csi and succeded, tried uninstalling it (which also
succeeded), and the tried installing it again (which failed).

If SRFI-87 is not an egg and if there's no explicit support of SRFI-87
in chicken, how was I able to (import srfi-87) and uninstall it, and why
couldn't I reinstall it?

Here's a log of what I did:

%  csi
CHICKEN
(c) 2008-2020, The CHICKEN Team
(c) 2000-2007, Felix L. Winkelmann
Version 5.2.0 (rev 317468e4)
linux-unix-gnu-x86-64 [ 64bit dload ptables ]

Type ,? for help.
#;1> (import srfi-87)
; loading 
/home/me/apps/chicken/overlayfs/merged-chicken/lib/chicken/11/srfi-87.import.so 
...
; loading 
/home/me/apps/chicken/overlayfs/merged-chicken/lib/chicken/11/chicken.platform.import.so
 ...

Note: re-importing already imported syntax: case
; loading 
/home/me/apps/chicken/overlayfs/merged-chicken/lib/chicken/11/srfi-87.so ...
#;2>
%  chicken-uninstall srfi-87
About to delete the following extensions:

  srfi-87

Do you want to proceed? (yes/no) yes
removing srfi-87
%  chicken-install srfi-87
Server error:

Error: [Server] no such extension or version
"srfi-87"
#f
Server error:

Error: [Server] no such extension or version
"srfi-87"
#f

Error: extension or version not found: "srfi-87"
%  csi
CHICKEN
(c) 2008-2020, The CHICKEN Team
(c) 2000-2007, Felix L. Winkelmann
Version 5.2.0 (rev 317468e4)
linux-unix-gnu-x86-64 [ 64bit dload ptables ]

Type ,? for help.
#;1> (import srfi-87)

Error: (import) during expansion of (import ...) - cannot import from undefined 
module: srfi-87

Call history:

  (import srfi-87)  <--
#;1>



New egg: SRFI-132: Sort Libraries

2020-11-21 Thread noosphere
I would like to submit a new egg for publication:

  SRFI-132: Sort Libraries

Its documentation is here:

  https://wiki.call-cc.org/eggref/5/srfi-132

Its release-info is here:

  https://github.com/diamond-lizard/srfi-132/raw/main/release-info

test-new-egg gives the egg a clean bill of health.

  --Sergey



Re: New egg: SRFI-87: => in case clauses

2020-11-21 Thread Mario Domenech Goulart
On Sat, 21 Nov 2020 08:18:54 -0800  wrote:

> On Sat 21 Nov 2020 12:14:29 PM +01, Mario Domenech Goulart wrote:
>>
>>
>> Thanks.  I'm afraid SRFI-87 is already supported by CHICKEN core, isn't
>> it?  Am I missing something?
>
> Hmm... it wasn't listed on the Supported Standards page[1]
>
> megane in #chicken alsays said:
>
> "yep, there's => support for case in core already"
>
> If I knew this SRFI was already supported, I wouldn't have bothered
> packaging it.
>
> Oh well, it was a quick and easy one.. so no big deal..  I guess you can
> just ignore my egg.
>
> However, is there somewhere on the wiki I could link to where it
> mentions that SRFI-87 support is in core?
>
>   --Sergey
>
> [1] - https://wiki.call-cc.org/supported-standards

The support for `=>' in cond clauses has been added [to CHICKEN 4.9.0]
to conform to R7RS, not exactly to support SRFI-87, as far as I can
tell.  It is documented in
http://wiki.call-cc.org/man/5/Module%20scheme#derived-expression-types
(look for the documentation of `case')

All the best.
Mario
-- 
http://parenteses.org/mario



Re: New egg: unveil

2020-11-21 Thread Wolfgang Corcoran-Mathe
On 2020-11-21 12:21 +0100, Mario Domenech Goulart wrote:
> Assuming this egg is OpenBSD-specific, please consider adding
> 
> (platform openbsd)
> 
> to the .egg file.

Thanks, I missed this and will add it shortly.

Best regards,

-- 
Wolfgang Corcoran-Mathe  

"In the presence of the unknown all have an equal right to
think." --Robert G. Ingersoll, "Individuality"



Re: Cannot install SRFI-207 egg

2020-11-21 Thread noosphere
Hello,

Could you please open an issue about this on the issue tracker for this egg:

  https://github.com/diamond-lizard/srfi-207/issues

In that issue, please include the log you posted here along with some
information about the version of Chicken you're using and what operating
system this is on.

I just reran test-new-egg on srfi-207, uninstalled and reinstalled it on
my system and could not reproduce this issue.  But I've only tested this
egg on Chicken 5.2.0, so conceivably it could have problems on other
versions.

If you're not using Chicken 5.2.0, I would recommend giving it a try.

  --Sergey

On Sat 21 Nov 2020 11:12:26 AM -03, Jeronimo Pellegrini via wrote:

> Hello,
>
> with the latest checkout from git
> (41a1decf5762c1178a9da2250df39a28badbb736)
>
> I get unbound variable: ##sys#core-library-modules:
>
>
> chicken-install srfi-207
> building srfi-207
>/home/jeronimo/pkg/scheme/chicken/ROOT-git/bin/csc-git -host -D 
> compiling-extension -J -s -regenerate-import-libraries -setup-mode -I 
> /home/jeronimo/.cache/chicken-install/srfi-207 -C 
> -I/home/jeronimo/.cache/chicken-install/srfi-207 -O2 -d1 srfi-207.scm -o 
> /home/jeronimo/.cache/chicken-install/srfi-207/srfi-207.so
>
> Error: during expansion of (include ...) - during expansion of 
> (define-library ...) - unbound variable: ##sys#core-library-modules
>
>   Call history:
>
> (##core#begin (include "srfi/207.sld"))
> (include "srfi/207.sld")  <--
>
> Error: shell command terminated with non-zero exit status 17920: 
> '/home/jeronimo/pkg/scheme/chicken/ROOT-git/bin/chicken-git' 'srfi-207.scm' 
> -output-file '/home/jeronimo/.cache/chicken-install/srfi-207/srfi-207.c' 
> -dynamic -feature chicken-compile-shared -feature compiling-extension 
> -emit-all-import-libraries -regenerate-import-libraries -setup-mode 
> -include-path /home/jeronimo/.cache/chicken-install/srfi-207 -optimize-level 
> 2 -debug-level 1
>
> Error: shell command terminated with nonzero exit code
> 256
> "sh /home/jeronimo/.cache/chicken-install/srfi-207/srfi-207.build.sh"
>
>
> Since the latest commit seems to be related to that, I tried the
> previous one (1ab4f97722d8e8d829f2cc8fa08696c94bbbed8e), but got the
> same error.
>
> Am I missing something? Some dependency?
>
> Thanks,
> J.



Re: New egg: SRFI-87: => in case clauses

2020-11-21 Thread Lassi Kortela
 currently doesn't mention 
SRFI 87.




Re: New egg: SRFI-87: => in case clauses

2020-11-21 Thread noosphere
On Sat 21 Nov 2020 12:14:29 PM +01, Mario Domenech Goulart wrote:
>
>
> Thanks.  I'm afraid SRFI-87 is already supported by CHICKEN core, isn't
> it?  Am I missing something?

Hmm... it wasn't listed on the Supported Standards page[1]

megane in #chicken alsays said:

"yep, there's => support for case in core already"

If I knew this SRFI was already supported, I wouldn't have bothered
packaging it.

Oh well, it was a quick and easy one.. so no big deal..  I guess you can
just ignore my egg.

However, is there somewhere on the wiki I could link to where it
mentions that SRFI-87 support is in core?

  --Sergey

[1] - https://wiki.call-cc.org/supported-standards



Re: Issue installing some packages with nixpkgs

2020-11-21 Thread Blake Sweeney
Hi,

On Sat, Nov 21, 2020 at 01:18:59PM +0100, Mario Domenech Goulart wrote:
> Maybe the cache created by chicken-install [1]?
> 
> If you don't want it to use a directory in the user home directory, you
> can configure the CHICKEN_EGG_CACHE environment variable to point to
> another directory.

Thanks for the pointer, it made me realize that chicken-install is trying to
fetch a package, which it shouldn't do in nix. Turns out that egg2nix doesn't
extract the llrb-syntax dependency that is required to build llrb-tree. Making
llrb-syntax a dependency in nix fixes the issue. Thanks! Thanks to everyone
who's worked on chicken, I really enjoyed working with it!


Kind Regards,
Blake Sweeney



Cannot install SRFI-207 egg

2020-11-21 Thread Jeronimo Pellegrini via
Hello,

with the latest checkout from git
(41a1decf5762c1178a9da2250df39a28badbb736)

I get unbound variable: ##sys#core-library-modules:


chicken-install srfi-207
building srfi-207
   /home/jeronimo/pkg/scheme/chicken/ROOT-git/bin/csc-git -host -D 
compiling-extension -J -s -regenerate-import-libraries -setup-mode -I 
/home/jeronimo/.cache/chicken-install/srfi-207 -C 
-I/home/jeronimo/.cache/chicken-install/srfi-207 -O2 -d1 srfi-207.scm -o 
/home/jeronimo/.cache/chicken-install/srfi-207/srfi-207.so

Error: during expansion of (include ...) - during expansion of (define-library 
...) - unbound variable: ##sys#core-library-modules

Call history:

  (##core#begin (include "srfi/207.sld"))
  (include "srfi/207.sld")  <--

Error: shell command terminated with non-zero exit status 17920: 
'/home/jeronimo/pkg/scheme/chicken/ROOT-git/bin/chicken-git' 'srfi-207.scm' 
-output-file '/home/jeronimo/.cache/chicken-install/srfi-207/srfi-207.c' 
-dynamic -feature chicken-compile-shared -feature compiling-extension 
-emit-all-import-libraries -regenerate-import-libraries -setup-mode 
-include-path /home/jeronimo/.cache/chicken-install/srfi-207 -optimize-level 2 
-debug-level 1

Error: shell command terminated with nonzero exit code
256
"sh /home/jeronimo/.cache/chicken-install/srfi-207/srfi-207.build.sh"


Since the latest commit seems to be related to that, I tried the
previous one (1ab4f97722d8e8d829f2cc8fa08696c94bbbed8e), but got the
same error.

Am I missing something? Some dependency?

Thanks,
J.



Re: Issue installing some packages with nixpkgs

2020-11-21 Thread Mario Domenech Goulart
Hi Blake,

On Sat, 21 Nov 2020 12:09:22 + Blake Sweeney  wrote:

> I'm trying to install some packages using nixpkgs on osx using egg2nix and ran
> into a strange issue with llrb-tree. It cannot be installed because of failure
> to create a strange path. Other packages like srfi-69, list-utils, etc can be
> installed though. Below is a snippet of trying to install llrb-tree:
>
> these derivations will be built:
>   /nix/store/88v0h58kdj8jlyp4r40f9ppkjhr6drz1-chicken-llrb-tree-0.3.8.drv
> building 
> '/nix/store/88v0h58kdj8jlyp4r40f9ppkjhr6drz1-chicken-llrb-tree-0.3.8.drv'...
> unpacking sources
> unpacking source archive 
> /nix/store/2gaq2jwbg6788dkvfq200947d6x461qy-chicken-llrb-tree-export
> source root is chicken-llrb-tree-export
> patching sources
> configuring
> no configure script, doing nothing
> building
> no Makefile, doing nothing
> installing
>
> Error: (create-directory) cannot create directory - Permission denied: 
> "/homeless-shelter"
> builder for 
> '/nix/store/88v0h58kdj8jlyp4r40f9ppkjhr6drz1-chicken-llrb-tree-0.3.8.drv' 
> failed with exit code 70
> error: build of 
> '/nix/store/88v0h58kdj8jlyp4r40f9ppkjhr6drz1-chicken-llrb-tree-0.3.8.drv' 
> failed
>
> Attached is a shell.nix that can reproduce the issue. Note that on osx, you 
> will
> need a very up-to-date nix as chicken was just marked as working on osx.
>
> I'm guessing that at some point chicken-install wants to create a path in 
> $HOME,
> which is set to /homeless-shelter by nix during a build. Nix already sets
> CHICKEN_INSTALL_PREFIX and CHICKEN_INSTALL_REPOSITORY, but is there any other
> path that needs to be set/created? Thanks for any help!

Maybe the cache created by chicken-install [1]?

If you don't want it to use a directory in the user home directory, you
can configure the CHICKEN_EGG_CACHE environment variable to point to
another directory.

[1] 
https://code.call-cc.org/cgi-bin/gitweb.cgi?p=chicken-core.git;a=blob;f=library.scm;h=d1b6ad229f2e9d3444973345c7778319b30a9c54;hb=HEAD#l6619

All the best.
Mario
-- 
http://parenteses.org/mario



Issue installing some packages with nixpkgs

2020-11-21 Thread Blake Sweeney
Hi,

I'm trying to install some packages using nixpkgs on osx using egg2nix and ran
into a strange issue with llrb-tree. It cannot be installed because of failure
to create a strange path. Other packages like srfi-69, list-utils, etc can be
installed though. Below is a snippet of trying to install llrb-tree:

these derivations will be built:
  /nix/store/88v0h58kdj8jlyp4r40f9ppkjhr6drz1-chicken-llrb-tree-0.3.8.drv
building 
'/nix/store/88v0h58kdj8jlyp4r40f9ppkjhr6drz1-chicken-llrb-tree-0.3.8.drv'...
unpacking sources
unpacking source archive 
/nix/store/2gaq2jwbg6788dkvfq200947d6x461qy-chicken-llrb-tree-export
source root is chicken-llrb-tree-export
patching sources
configuring
no configure script, doing nothing
building
no Makefile, doing nothing
installing

Error: (create-directory) cannot create directory - Permission denied: 
"/homeless-shelter"
builder for 
'/nix/store/88v0h58kdj8jlyp4r40f9ppkjhr6drz1-chicken-llrb-tree-0.3.8.drv' 
failed with exit code 70
error: build of 
'/nix/store/88v0h58kdj8jlyp4r40f9ppkjhr6drz1-chicken-llrb-tree-0.3.8.drv' failed

Attached is a shell.nix that can reproduce the issue. Note that on osx, you will
need a very up-to-date nix as chicken was just marked as working on osx.

I'm guessing that at some point chicken-install wants to create a path in $HOME,
which is set to /homeless-shelter by nix during a build. Nix already sets
CHICKEN_INSTALL_PREFIX and CHICKEN_INSTALL_REPOSITORY, but is there any other
path that needs to be set/created? Thanks for any help!


Kind Regards,
Blake Sweeney



Re: New egg: unveil

2020-11-21 Thread Lassi Kortela

I'd like to add the following new egg, which provides unveil(2)
support for CHICKENs running under OpenBSD


Nice feature!

unveil() works together with pledge(). There already seems to be a 
pledge egg at . Any chance the 
two eggs could be merged?




Re: New egg: unveil

2020-11-21 Thread Mario Domenech Goulart
On Fri, 20 Nov 2020 19:16:29 -0500 Wolfgang Corcoran-Mathe  
wrote:

> Hi all,
>
> I'd like to add the following new egg, which provides unveil(2)
> support for CHICKENs running under OpenBSD.  test-new-egg says
> "Egg looks good!".
>
> The repository is here:
>
> https://github.com/Zipheir/unveil-chicken
>
> The wiki page:
>
> https://wiki.call-cc.org/eggref/5/unveil
>
> For convenience, the raw release-info URI:
>
> https://raw.githubusercontent.com/Zipheir/unveil-chicken/master/unveil.release-info
>
> Thanks!

Thank you.  You're egg has been added to the coop.

Assuming this egg is OpenBSD-specific, please consider adding

(platform openbsd)

to the .egg file.

All the best.
Mario
-- 
http://parenteses.org/mario



Re: New egg: SRFI-87: => in case clauses

2020-11-21 Thread Mario Domenech Goulart
On Fri, 20 Nov 2020 18:36:56 -0800 noosph...@mailc.net wrote:

> I would like to submit a new egg for publication:
>
>   SRFI-87: => in case clauses
>
> Its documentation is here: [1]
>
> Its release-info is here: [2]
>
> test-new-egg gives it a clean bill of health.
>
>   --Sergey
>
> [1] - https://wiki.call-cc.org/eggref/5/srfi-87
>
> [2] - https://github.com/diamond-lizard/srfi-87/raw/main/release-info

Thanks.  I'm afraid SRFI-87 is already supported by CHICKEN core, isn't
it?  Am I missing something?

All the best.
Mario
-- 
http://parenteses.org/mario