Re: require-extension and require-library

2021-12-22 Thread Evan Hanson
Hi Erica, require-extension and require-library are only equivalent when import libraries ("import.scm" files) are available for the given name, which isn't the case in your interpreted example. When main_a.scm starts, it implicitly tries to import module "extra" as a first step, and no such

Re: Help with egg definitions

2021-12-20 Thread Evan Hanson
Hi Robert, On 2021-12-19 15:10, foggy wrote: > I have my program split up using `(declare (unit ...))` and `(declare (uses > ...))` (no includes), and compile the program by passing all the source > files to csc. Is this the wrong way to go about splitting things up? Based on the above, I

Re: Chicken git egg: bug & patch

2021-06-15 Thread Evan Hanson
Hi there, Just to follow up on this, these issues have been fixed in version 0.2.0 of this egg. Thank you Kristian and megane for the helpful discussion! This is a good use case for (strong) locatives since they can be handled just like pointers by the FFI but still hook memory up to the GC.

Re: Chicken git egg: bug & patch

2021-06-14 Thread Evan Hanson
I think we can probably just use blobs and locatives to keep things simple, without needing to involve finalizers or similar tricks. This library is pretty good about leaving memory management up to the client, and they provide an object for indirection (the git_buf) when that's not possible.

Re: Chicken git egg: bug & patch

2021-06-13 Thread Evan Hanson
Hi Kristian, On 2021-06-12 15:36, Kristian Lein-Mathisen wrote: > I think I may have come across a bug in the git egg. You're right! THanks for pointing this out, I guess you must be the first person to use that `frombuffer` procedure. Everything you've said looks correct to me, I'll try to

Re: Source code formatter?

2021-01-12 Thread Evan Hanson
Hi Paul, On 2021-01-11 16:53, Vasilij Schneidermann wrote: > Evan Hanson wrote one: https://git.foldling.org/schematic/ I did. I actually forgot about that! But I did, a while ago, and I've been using it ever since, which I guess means it works? You can install the "schematic"

New program: sq (jq wrapper for S-expressions)

2021-01-01 Thread Evan Hanson
Hi there, Over the holidays I've cleaned up and released a little tool that lets you use jq [1] to muck with S-expressions. You can install it with `chicken-install sq`, links to sources below. It currently only supports inputs that satisfy the JSON representation used by SRFI-180 [2] (which is

Re: Need help testing SRFI-194: Random data generators

2020-12-03 Thread Evan Hanson
Hi Sergey, On 2020-11-16 13:36, noosph...@mailc.net wrote: > The comments to this test say "testing random source, which is > implementation specific", and it only provides a single > test for the Guache Scheme implementation. > > Would anyone more experienced in dealing with randomness on

Re: New egg: unveil

2020-11-29 Thread Evan Hanson
On 2020-11-21 13:27, Lassi Kortela wrote: > > 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

Re: Chicken 5.2.0 build fails on Gnu Hurd

2020-10-19 Thread Evan Hanson
Hey Andrew, On 2020-10-19 19:29, Andrew Eggenberger wrote: > The macro is not set in the chicken-config.h file. > > I think the easiest way to test would probably to start with a > pre-installed virtual image. > > Instruction from https://www.debian.org/ports/hurd/hurd-install: > > You can

Re: Chicken 5.2.0 build fails on Gnu Hurd

2020-10-18 Thread Evan Hanson
Hi Andrew, > This is confusing because it looks like SEARCH_EXE_PATH is defined to 1 in > Makefile.hurd. Interesting. Can you confirm that macro is defined in the generated chicken-config.h file? What's the easiest way to run GNU Hurd on another Linux (e.g. Debian), to reproduce? I used to test

Re: Best way to track and isolate project dependencies?

2020-09-10 Thread Evan Hanson
Hi Lassi, I mostly do what Alice says, using egg files to manage builds regardless of whether the software will be released as an egg, just to benefit from chicken-install's smarts about compiler flags and so on. So, to answer your second question, yes the eggs facility can be used to track

CHICKEN 5.2.0 in Nixpkgs and Guix

2020-03-03 Thread Evan Hanson
Hi there, one more. CHICKEN 5.2.0 is now also available via Nixpkgs (unstable channel) and Guix (default channel). Cheers, Evan signature.asc Description: PGP signature

Re: Behavior of #!optional

2020-03-03 Thread Evan Hanson
Hi Théo, I don't know whether there are any firm guarantees about that behaviour, but functionally it's safe to rely on, yes. That idiom you mentioned is pretty handy, I use it myself sometimes. Under the hood, #!optional arguments are expanded in a let*-style binding form (as opposed to a

Dust and asdf builds updated

2020-03-01 Thread Evan Hanson
Hi there, CHICKEN 5.2.0 is now available via dust [1] and the asdf version manager [2] (using the "chicken" plugin), as well. [1]: https://wiki.call-cc.org/egg/dust [2]: https://asdf-vm.com/ Happy hacking, Evan signature.asc Description: PGP signature

Re: It would be nice if glob "/*/*" worked

2019-11-28 Thread Evan Hanson
On 2019-11-28 8:38, Kristian Lein-Mathisen wrote: > I may be missing the point here, but is'nt it just easier to use find-files? I think there are situations where one is more natural than the other. find-files is strictly more powerful, but it's not as concise or readable for many use cases so

Re: It would be nice if glob "/*/*" worked

2019-11-27 Thread Evan Hanson
Hi Matt, This would be nice indeed, I've also found myself wanting this feature before. I don't know of an existing solution, but I think it would be best if we made it "just work" with the existing glob procedure. I've created a ticket for that: https://bugs.call-cc.org/ticket/1657 Cheers,

Re: [Chicken-users] how do i load a module? none of the docs seem to help... :(

2019-08-09 Thread Evan Hanson
Hi Kay, On 2019-08-09 17:19, masukomi wrote: > I then generate `hello.import.scm` and `hello.so` with `csc` > > What _exactly_ do i need to put in code in order to import the `hello` > module in such a way that when I compile the thing importing it with > `csc -static thing-importing-hello.scm`

[Chicken-users] [ANN] CHICKEN plugin for asdf-vm

2019-07-20 Thread Evan Hanson
Hello, There is now a CHICKEN plugin for the asdf version manager (https://asdf-vm.com/). If you use asdf-vm on x86-64 Linux or FreeBSD, you can use it to install CHICKEN with the following commands: asdf plugin-add chicken asdf install chicken 5.1.0 asdf global chicken 5.1.0 All the

[Chicken-users] [ANN] CHICKEN version manager

2019-06-22 Thread Evan Hanson
Hi there, I wrote a tool that lets you quickly install and switch between multiple versions of CHICKEN [on x86-64 Linux hosts]. It's a bit like chicken-belt [1] or opam switch [2], except that it installs from prebuilt binaries so it's a bit faster and doesn't require a build toolchain on the

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

2019-06-09 Thread Evan Hanson
Thanks John. On 2019-06-09 22:23, 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. That's actually a successful run; the tests exit

Re: [Chicken-users] [ANN] API bindings for sr.ht

2019-05-27 Thread Evan Hanson
On 2019-04-29 21:24, Evan Hanson wrote: > I've written a client library for the sr.ht REST APIs. Just a small follow-up: this project now includes a CLI program for interacting with the APIs. It only supports the build and paste services at the moment, but I've found it convenient for trigger

[Chicken-users] [ANN] API bindings for sr.ht

2019-04-29 Thread Evan Hanson
Hi everyone, I've written a client library for the sr.ht REST APIs. Well, most of them. Since writing the egg and sending this email, the git.sr.ht service has grown an API, so that will still need to be done. But the rest of the services (builds, lists, paste, meta) are working. Find the

Re: [Chicken-users] repository pathname, location and customisation, lib64

2019-04-06 Thread Evan Hanson
Hi Marco, On 2019-03-25 6:08, Marco Maggi wrote: > Am I correct in saying that the README in Chicken's distribution is > missing a note saying that we should *not* "strip" the installed > binaries? If I strip them I get errors later when installing eggs. What are the errors? I

Re: [Chicken-users] Chicken 5 support for srfi-113

2019-03-20 Thread Evan Hanson
Hi Jeremy, On 2019-02-27 22:54, Jeremy Steward wrote: > Seems I also added chicken 5 support for srfi 113 (sets and bags) some time > ago, and never bothered to add it to the coop. > > Can someone add this too? Seems this one got lost. That's done now! Thanks, Evan signature.asc

Re: [Chicken-users] I modified lua.setup

2019-03-20 Thread Evan Hanson
Hi newblue, The best way is probably to get in touch with the egg's maintainer and send them your changes. For the lua extension, that's Felix Cheers, Evan On 20/03/19 2:06 AM, newblue wrote: I modified the lua extensions to enable dlopen support on Linux. I modified the lua extension

Re: [Chicken-users] eggs failing to install on freebsd 12

2019-02-24 Thread Evan Hanson
Hi greadley, You might try exporting CSC_OPTIONS or CHICKEN_OPTIONS, which should be inherited by the compiler when it's invoked by `chicken-install'. I'm a bit surprised that setting C_INCLUDE_PATH didn't work. You might try adding "-verbose" to CSC_OPTIONS as well, to see what flags are being

Re: [Chicken-users] build failure and some questions about using chicken-belt

2019-02-24 Thread Evan Hanson
Hi Heinz, On 2019-02-24 13:30, ipc...@arcor.de wrote: > Also, I'm a bit unsure how to proceed afterwards. My plan was as follows: The steps you've laid out there should work. The fact that `make' is trying to recompile from Scheme sources indicates that the timestamps on the files extracted from

Re: [Chicken-users] Comparse recursive parser

2019-02-17 Thread Evan Hanson
Hi there, On 2019-02-16 19:33, Joe Anonimist wrote: > Unfortunately the recursive-parser procedure is not documented and > the above code just keeps looping. Regarding `recursive-parser', note that this has nothing to do with recursive parsing per se, but rather exists to simplify *syntactic*

Re: [Chicken-users] hahn/salmonella issues

2019-02-05 Thread Evan Hanson
Hi Heinz, On 2019-02-05 16:09, lundi wrote: > > $ cat file.scm | sed 's/^[ \t]+//' | grep -e "^;;;" | cut -b 5- > file.wiki > > I considered writing documenting comments in Markdown and then pipe those > through markdown-svnwiki, but I feel like there's little benefit over just > writing

Re: [Chicken-users] Issue when linking statically

2019-01-29 Thread Evan Hanson
On 2019-01-29 10:51, Jörg F. Wittenberger wrote: > On Jan 28 2019, Evan Hanson wrote: > > http://wiki.call-cc.org/man/5/Egg%20specification%20format#linkage > > This claims "This property only makes sense for extension libraries." > whereas the snippet came from the

Re: [Chicken-users] Issue when linking statically

2019-01-28 Thread Evan Hanson
Hi Jörg, Rather than (csc-options ...) you might try (linkage static): http://wiki.call-cc.org/man/5/Egg%20specification%20format#linkage Evan On 2019-01-28 14:07, Jörg F. Wittenberger wrote: > Hi all, > > trying link a CHICKEN 5 program against the openssl egg fails badly for me. > > In

Re: [Chicken-users] HMAC for CHICKEN 5

2019-01-27 Thread Evan Hanson
Hi Thomas, On 2019-01-27 17:54, Thomas Hintz wrote: > I've updated the HMAC egg for CHICKEN 5. If it seems done right it'd be > cool to see it living in the coop. I forget what URL is needed but it > lives here: https://code.thintz.com/chicken-scheme-hmac/ If possible > could I also get the

Re: [Chicken-users] Static CHICKEN for variety of Linux + Windows platforms

2019-01-25 Thread Evan Hanson
On 2019-01-05 19:28, Zach van Rijn wrote: > If it may be of interest, I've cross-built CHICKEN statically > (against musl [1]) for a variety of Linux platforms, and both > 32- and 64-bit Windows via MinGW-W64 on Linux. Wow, this is fantastic, what a nice resource. Thanks for including CHICKEN,

Re: [Chicken-users] SaarCHICKEN Spring 2019 in Saarbrücken, Germany

2019-01-21 Thread Evan Hanson
Enjoy! Sadly I can't make this one but I wish you happy hacking. Evan ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] bind egg: uint8_t

2019-01-15 Thread Evan Hanson
Hi Sven, Basic support for [u]int8_t has been added to bind 1.2.4. These map to the [unsigned-]byte FFI types. Note that this means they will not check for overflowing values but will be truncated instead, per the warning here: http://api.call-cc.org/5/doc/foreign/types#def:byte. You mentioned

Re: [Chicken-users] Nix shell with a non chicken project

2019-01-13 Thread Evan Hanson
Hi David, On 2018-12-08 14:45, David Smith wrote: > I'm trying to get a nix shell environment working which has chicken with > stone packages available. However the project is not a chicken project, it > just needs the compiler to be available with the packages. I tried to use > an eggDerivation

Re: [Chicken-users] chicken-bind: don't get output for 'mosquitto.h'

2018-12-10 Thread Evan Hanson
Hi Christoph, On 2018-12-03 10:59, Christoph Lange wrote: > I have problems using 'chicken-bind'. I'm trying to make 'mosquitto', the > MQTT library, available to Chicken. But > > *chicken-bind -follow-include mosquitto.h* > > gives me a practically empty 'mosquitto.scm' file: > > Any idea,

Re: [Chicken-users] Duplicate symbol errors with functors and -static flag

2018-11-20 Thread Evan Hanson
Hi Antoine, The issue here is the "./" prefix on $(SCHEME_OBJECTS). Your project works fine with just the following change: 3c3 < SOURCE_PREFIX = ./ --- > SOURCE_PREFIX = CHICKEN uses a naive string comparison to deduplicate object files, so "./a.o" and "a.o" are considered to

Re: [Chicken-users] pp and write ignore keyword-style

2018-11-20 Thread Evan Hanson
Hi Sven, On 2018-11-20 22:51, Sven Hartrumpf wrote: > pp and write (in chicken 5) do not respect the parameter (keyword-style); > Only display respects keyword-style. This behaviour is intentional, for the reasons John describes. Refer to ticket #1332 for specifics about the change:

Re: [Chicken-users] porting eggs experiences and questions

2018-08-27 Thread Evan Hanson
On 2018-08-25 14:01, Jörg F. Wittenberger wrote: > Maybe it makes more sense to have the -n switch only in effect for the egg > in the current directory while still installing dependencies. That makes sense to me. In the case where people don't want dependencies to be installed either, they can

Re: [Chicken-users] C5 Type declaration issue

2018-08-24 Thread Evan Hanson
Hi Jörg, Thanks for reporting this problem. You might have already noticed, but this will be fixed in RC 2. Best, Evan ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] egg-index-4

2018-08-23 Thread Evan Hanson
Hi Martin, On 2018-06-25 13:14, Martin Schneeweis wrote: > is there a way to change the following page: > > http://wiki.call-cc.org/chicken-projects/egg-index-4.html > > I assume this page is produced programmatically (no edit-link on top of > the page) It is, yeah. The info comes from the

Re: [Chicken-users] reexport - not working as expected (or I have wrong expectations)

2018-07-21 Thread Evan Hanson
Hi Martin, The reason for this behaviour is that `reexport' only manages syntax, i.e. it imports and exports module identifiers but does not load libraries. This is similar to the distinction between `use' and `import' in C4. On 2018-07-21 14:31, Martin Schneeweis wrote: > Isn't "reexport"

Re: [Chicken-users] Broken `utf8#string-fill!`?

2018-07-12 Thread Evan Hanson
On 2018-07-12 18:10, John Cowan wrote: > You can't fill a literal string; you have to treat it as immutable. The same happens for non-literal strings, so that's not the problem here. ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] Broken `utf8#string-fill!`?

2018-07-12 Thread Evan Hanson
On 2018-07-12 16:09, Henry Hu wrote: > `utf8#string-fill!` isn't working for me. Anyone experiencing this problem? Hey Henry, just wanted to confirm that I see the same behaviour. No suggestions though, sorry. Evan ___ Chicken-users mailing list

Re: [Chicken-users] Reason to Celebrate

2018-07-01 Thread Evan Hanson
Congratulations Dr. Chust! I won't be able to make it to Munich, so you'll just have to party that little bit extra for me. All the best, Evan ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] 3 new CHICKEN eggs: stb-image, stb-image-write and stb-image-resize

2018-06-08 Thread Evan Hanson
On 2018-06-08 14:35, Kristian Lein-Mathisen wrote: > CHICKEN 4 release-info files: > https://github.com/kristianlm/chicken-stb-image/raw/master/stb-image4.release-info > https://github.com/kristianlm/chicken-stb-image-write/raw/master/stb-image-write4.release-info >

Re: [Chicken-users] The eggs index needs release dates displayed

2018-02-21 Thread Evan Hanson
Hi John, On 2018-02-21 16:09, John Gabriele wrote: > How about instead adding a link to its online repo (at github, gitlab, > bitbucket, ...)? Is there a way to add those links to the eggs index > page? That would be an excellent improvement. Authors are encouraged to link to sources on the

[Chicken-users] [ANN] Heroku buildpack updated to 4.13.0

2018-01-22 Thread Evan Hanson
Hello, The CHICKEN buildpack for Heroku has been updated to version 4.13.0, the latest stable release. (Actually, it was updated last month, but I forgot to send an email.) This is now the default version that is used when no other version is specified in your application's meta file.

Re: [Chicken-users] c-string-list gives segmentation violation

2018-01-03 Thread Evan Hanson
Hey David, On 2018-01-04 8:23, David Ireland wrote: Any suggestions would be appreciated. You probably want something like this for return-c-string-list instead: (define return-c-string-list (foreign-lambda* c-string-list () "const char* f[] = { NULL };" "C_return(f);"))

Re: [Chicken-users] permissive checking of sum types

2018-01-02 Thread Evan Hanson
Hi David, Sorry for the slow response, but I'd just like to confirm what it seems you've already intuited about CHICKEN's type system. Simply put, CHICKEN's type-directed compilation pass will only optimise a program when it's *certain* that a given type is correct, and it will only issue a

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

2017-12-12 Thread Evan Hanson
Hi folks, Test results for 4.13.0rc1 below. Better late than never, I figure. Installation and tests all worked as expected. Cheers, Evan # CentOS

Re: [Chicken-users] Any suggestions for a project?

2017-11-20 Thread Evan Hanson
Hi Daniele, In my experience the most important thing is to pick a topic you find intriguing from the get-go. You'll probably drift toward one such topic anyway, and if that's actually *off-topic* for your thesis then you'll be unhappy. Or at least, your advisor will be. Anyway, whatever

Re: [Chicken-users] Macros not found when using eval

2017-08-14 Thread Evan Hanson
Hi mel, You can use the "-compile-syntax" flag with csc(1), which will include the macro definition in the compiled code and thus make it available at runtime. Let us know how that works out. As for your second question, it's tough to say much without an example, but I'm guessing you're looking

Re: [Chicken-users] Passing in a scheme function into C to be called later

2017-07-18 Thread Evan Hanson
Hi David, On 2017-07-18 15:21, David Astels wrote: Subscribing is puzzling me and I assume someone has encountered a similar situation at some point. I need to be able to pass a scheme function to a call to a C function. It then gets stored and is needs to be called by the message received

Re: [Chicken-users] reachable top-level functions and variables

2017-07-12 Thread Evan Hanson
Hi Sven, Have you tried `csc -analyze-only -debug d`? This will give you a full list of value definitions, including module prefixes for any identifiers bound within a module. This may not be precisely what you mean by "reachable", but it might be a start. Cheers, Evan

Re: [Chicken-users] chicken-install -keep-installed not working when doing -deploy

2017-05-01 Thread Evan Hanson
Hi Matt, On 2017-04-30 23:10, Matt Welland wrote: > I think -keep-installed is detecting the egg already installed to the system > - but it should be looking at the deploy directory when deploying. Unfortunately that's very likely; this was an issue in CHICKEN that was only fixed in 4.11.2. You

Re: [Chicken-users] How to use units and modules together?

2017-04-30 Thread Evan Hanson
Hi Matt, You're very close. The only step you missed was emitting an import file for your "other" module so that csc knows what to do when you "(import other)" in main.scm. This should work (note "-j other"): csc other.scm -c -j other csc other.o main.scm Cheers, Evan

Re: [Chicken-users] pass/retrieve arguments by reference in lazy-ffi

2017-03-17 Thread Evan Hanson
Hi Kevin, I doubt anyone will be able to test your program, not having access to "cpuidsdk.dll", but it's unsurprising that it exits silently; there's nothing in your program that would do anything else, so it's probably just running from start to finish and quitting when it's done. Without a

Re: [Chicken-users] A question about keywords and symbol->string

2017-03-16 Thread Evan Hanson
Hi there, On 2017-03-16 17:22, megane wrote: > Currently symbol->string strips any keyword prefixes when applied to > keywords (e.g. (symbol->string 'foo:) returns "foo"). Is this correct > behavior? That's the correct behaviour, yes. symbol->string basically ignores keywords and treats them

Re: [Chicken-users] CHICKEN 4.12.0 release candidate 2 available

2017-02-13 Thread Evan Hanson
Hi Claude, Thanks for testing the RC, it's appreciated. On 2017-02-13 21:32, Claude Marinier wrote: > With current MinGW-w64 and PLATFORM=mingw-msys : builds successfully and > checks die with the same error as 4.11. > > [panic] invalid encoded numeric literal - execution terminated > >

Re: [Chicken-users] Results of testing CHICKEN 4.12.0.rc1 on various platforms

2017-02-07 Thread Evan Hanson
On 2017-01-28 16:44, Peter Bex wrote: > On Wed, Jan 25, 2017 at 08:41:02PM +0100, alexander.she...@web.de wrote: > > Your patch solves the problem with the POSIX tests. Now only the deployment > > tests fail, but deployment is probably unsupported on Android, because the > > Android dynamic linker

[Chicken-users] [ANN] CHICKEN 4.12.0 release candidate 2 available

2017-02-06 Thread Evan Hanson
Hello everyone, The second release candidate for CHICKEN 4.12.0 is now available for download: http://code.call-cc.org/dev-snapshots/2017/02/06/chicken-4.12.0rc2.tar.gz The SHA-256 sum of that tarball is: 19bc4d2e2a866a84f5fcd71af55b4c924fa1409ad990e9d912e41d1975da7a3a The list of changes

Re: [Chicken-users] New egg: lmdb-lolevel

2017-01-10 Thread Evan Hanson
Hey Caolan, Looks cool, added. It should become available in the next few minutes. Cheers, Evan ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] New egg - directory-tree

2016-11-01 Thread Evan Hanson
Hi Peter, On 2016-11-01 13:59, Peter Nagy wrote: > while working on a small home project I decided to port gauche's > (create|check)-directory-tree functions over to chicken and release my > first (small) egg. Looks useful, thanks! > Let me know if anything else is needed from my side, if not I

Re: [Chicken-users] compiled program + REPL ?

2016-10-24 Thread Evan Hanson
Hi there, I'd say (2). IME the nrepl egg from the fine folks at Adellica is a nice option for this: http://wiki.call-cc.org/eggref/4/nrepl Possibly also (5) with some blood, sweat and tears, but AFAIK nothing like (4) exists. Cheers, Evan ___

Re: [Chicken-users] Compiling multiple modules into a single executable

2016-10-16 Thread Evan Hanson
Hi Josh, On 2016-10-16 21:13, Josh Barrett wrote: > Oh. Thanks. Can you generate a .import without compiling your module? You can use the "-analyze-only" flag: $ csc -analyze-only -emit-import-library foo foo.scm Note that you must specify the modules whose import libraries should be

Re: [Chicken-users] set! on unbound variable

2016-09-23 Thread Evan Hanson
Hi Jinsong, Not a bug, but certainly something that can be confusing if you don't expect it. In your example, `helo` is implicitly defined as a toplevel variable at the point of `set!. The difference is noted (very, very succinctly) in the manual here:

Re: [Chicken-users] Curious about limitations of fuse egg, can't open a fossil on the hashfs example fuse fs.

2016-09-20 Thread Evan Hanson
Oh, I should also point out that if you install the egg with `chicken-install -D fuse-debug ...`, it will log filesystem requests as the server receives them (to stderr, IIRC). Might be useful as a quick way to see what's going on without breaking out the heavy tools. HTH, Evan

Re: [Chicken-users] Curious about limitations of fuse egg, can't open a fossil on the hashfs example fuse fs.

2016-09-20 Thread Evan Hanson
Hi Matt, Interesting, cool project. Here are a few guesses at your questions, without having had a look at the specific steps to reproduce. On 2016-09-19 22:24, Matt Welland wrote: > 1. Can't open a fossil on hashfs: I'd bet this is caused by SQLite trying to lock a file with flock(2), which

Re: [Chicken-users] r7rs improper redefinition of imported symbol

2016-09-19 Thread Evan Hanson
Hi John, You're quite right, this was indeed a bug relating to which bindings are implicitly available within R7RS libraries. This should be fixed in 0.0.5, just released and available shortly. If you could have a go with that version and let me know if you still run into problems, I'd

Re: [Chicken-users] generate numerical list

2016-07-11 Thread Evan Hanson
Hi Jinsong, SRFI-1 provides `iota' -- http://api.call-cc.org/doc/srfi-1/iota Cheers, Evan ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] New egg: level-sexp

2016-07-05 Thread Evan Hanson
Hey Caolan, Looks cool. Added, thanks. Evan ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] Understanding modules?

2016-05-21 Thread Evan Hanson
Hi Norman, A quick note about units and modules: the two are different things used for different purposes. The former has to do with controlling the compilation and linking of separate application components, whereas the latter is about namespace management. The hunt continues for the best way to

Re: [Chicken-users] Is there a replacement for expand-home-path in 4.11rc2?

2016-05-14 Thread Evan Hanson
Hi Matt, On 2016-05-14 14:28, Matt Welland wrote: > I used resolve-pathname from posix-extras and expand-home-path is no longer > available. Is this intended to be fixed? If it is not to be fixed what is > the suggested way to expand a path, use readlink -f? This behaviour is now provided by

Re: [Chicken-users] Chicken 4.10.0 and 4.10.1 - 'check' fails

2016-04-20 Thread Evan Hanson
Hi Claude, It's likely you're running into this issue: http://bugs.call-cc.org/ticket/1269 Note that it has been fixed in the 4.11 release candidate. Cheers, Evan ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] Is there interest in this Prolog interpreter packaged as an egg?

2016-02-21 Thread Evan Hanson
On 2016-02-21 15:21, Jeronimo Pellegrini wrote: > (compile -X r7rs -R r7rs -s -O2 "pll.scm" -unit pll) > (compile -X r7rs -R r7rs -s -O2 "pll.import.scm" -unit pll) You shouldn't use "-unit pll" here. That's what's causing the error, and in this simple case where you're compiling a

Re: [Chicken-users] Need help to figure out where this strange performance impact is coming from

2016-01-14 Thread Evan Hanson
On 2016-01-13 9:32, Dan Leslie wrote: > IIRC, there's been ongoing efforts to remove SRFI-1 from core; which > may explain your observations regarding Master. Just for the record, Dan's right that moving srfi-1 out of core and into an egg is being done as part of CHICKEN 5, but there are no

Re: [Chicken-users] Any decent web development framework

2015-12-28 Thread Evan Hanson
On 2015-12-27 23:56, 机械唯物主义 : linjunhalida wrote: > (get "/" (lambda (request) "hello") > (get "/from/:id" (lambda (request) (sprintf "hello ~A" (request 'id > (get "/page/:id" (lambda (request) > (let ((data ($query (from pages) (where (= id (request 'id)) > (render

Re: [Chicken-users] Bug: define-foreign-type causes confusing messages to be printed

2015-12-22 Thread Evan Hanson
Thanks John, Issue #1237 has been created for this issue: https://bugs.call-cc.org/ticket/1237 The detailed report is appreciated. Evan ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] [ANN] sdl2 and sdl2-image 0.1

2015-12-19 Thread Evan Hanson
On 2015-12-19 21:19, John Croisant wrote: > Version 0.1 of the sdl2 and sdl2-image eggs are now ready! These look great, and fantastically thorough. Very nice work. FWIW, the sdl2 egg fails to build with gcc-4.6: In file included from sdl2-internals.c:14:0:

Re: [Chicken-users] How do you compile multiple modules into a single executable?

2015-12-19 Thread Evan Hanson
Hi Josh, I think the following is what you're after. $ cat foo.scm (module foo * (import scheme) (define (foo) 1)) $ cat bar.scm (import foo) (print (foo)) $ csc -c -unit foo -emit-import-library foo foo.scm $ csc -uses

Re: [Chicken-users] How do you compile multiple modules into a single executable?

2015-12-19 Thread Evan Hanson
The `compiling` feature specifier is only expanded when compiling, so something like `(cond-expand (compiling (import foo)) (else (use foo)))` ought to work. To be totally honest, in this specific situation you can actually get away with using just `(use foo)` since the "-uses foo" flag tells csc

Re: [Chicken-users] Why define-constant is not a constant?

2015-12-07 Thread Evan Hanson
Hi Joe, That's not really what `define-constant` is for. Here, "constant" means "constant value", not "lexical identifier that can't be changed". Even so, the compiler does happen to do what you're expecting (as opposed to the interpreter, where `define-constant` is equivalent to `define`):

Re: [Chicken-users] Hello! I'm new and need some pointers please ~

2015-12-01 Thread Evan Hanson
Hi Federico, and welcome. Stylistically, a cond expression like this[1] can be more clearly written as a case (http://api.call-cc.org/doc/scheme/case). Similarly, this[2] can be rewritten as a case if you make `string-head` return characters rather than strings of length one. This will also be

Re: [Chicken-users] new egg macro-rules

2015-11-26 Thread Evan Hanson
Hi Juergen, This is a handy interface, thanks for extracting it. FWIW, it looks like the procedural-macros *procedure* (the documentation procedure) isn't exported. I'm not sure if that's intentional or not, but it's mentioned on the wiki page. Speaking of which, do you use some tool to

[Chicken-users] [ANN] git-fs

2015-11-25 Thread Evan Hanson
Hi all, Last year I wrote a program that serves Git repositories as read-only file systems. I showed it to some folks at ICC and it's been stable for a while now, so I figured I'd announce it here too. http://git.foldling.org/git-fs.git/ The most recent binary package,

Re: [Chicken-users] one more egg - need advice how wrt. exports

2015-11-03 Thread Evan Hanson
On 2015-11-03 21:29, "J??rg F. Wittenberger" wrote: > Firstly I have not found a way to rename identifiers on export (as in > r6rs libraries). Is there really no way or did I miss it? There is really no way. Except for the obvious way of simply using `define` within your module. But, I doubt

Re: [Chicken-users] Help with usage of process ...

2015-10-09 Thread Evan Hanson
Hi Matt, My guess is that because you don't close the output port before waiting for results, dot(1) sits there waiting for more input and your procedure appears to hang. I'd try closing `oup` once you've written your graph to the process, for example by making the thunk you use for the "dot

Re: [Chicken-users] Hypergiant egg install fails, and some other eggs

2015-10-01 Thread Evan Hanson
On 2015-10-02 11:03, Robert Herman wrote: > In any case, Termbox has not dependencies IIRC termbox bundles a C library (perhaps just one file?) that it compiles during chicken-install. In that sense, it does have one dependency. It'd be worth checking that, to see whether it makes some

Re: [Chicken-users] ldap-bind egg

2015-08-30 Thread Evan Hanson
Hi Caolan, Added. You may also want to add libldap to the egg's metafile as a (foreign-depends ...), for informational purposes. Cheers, Evan ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] vim support for s-expression comments

2015-08-27 Thread Evan Hanson
On 2015-08-26 11:02, Blake Sweeney wrote: These look nice thanks! It would be great if you could put these into a git repo, to make them easier to use with a package manager. Either way, thanks for providing them! OK, I've pushed them to http://git.foldling.org/vim-scheme.git/. Tested with

Re: [Chicken-users] vim support for s-expression comments

2015-08-26 Thread Evan Hanson
Hi Sven, I maintain reasonably good Vim configurations for Scheme and CHICKEN, available at http://foldling.org/~evhan/misc/vim/. They can be dropped into the corresponding paths of your ~/.vim directory. Cheers, Evan ___ Chicken-users mailing list

Re: [Chicken-users] Bug in readline 4.0 egg; missing function

2015-08-07 Thread Evan Hanson
On 2015-08-07 18:30, Alexej Magura wrote: Fixed the problem; rolled out v4.1.0 of the Readline egg. Works here with Readline library version 6.3. Evan ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] CHICKEN 4.10.0 release candidate 4 available

2015-07-27 Thread Evan Hanson
Hi Tim, Thanks for the report, it's much appreciated. On 2015-07-27 15:31, Tim van der Linden wrote: The [panic] line (marked with in front) might be a possible failed test? That panic line is fine and expected -- it's part of the test. Furthermore, as you can see, the system does

Re: [Chicken-users] read-u8vector: types.db inconsistent with documentation

2015-06-24 Thread Evan Hanson
Thanks Andy, this warning is indeed incorrect. A patch has been posted to fix it. Evan ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] ANN: new chicken-iup Windows installer with IUP gui, canvas-draw, scintilla etc. released.

2015-05-20 Thread Evan Hanson
On 2015-05-20 11:49, Stephen Eilert wrote: Just a heads up: chicken won't be able to import anything as soon as it is installed, due to the fact that new system environment variables get added. Logging out (or restarting) is enough to fix it. Ah, thanks Stephen, this caught me up too. I can

Re: [Chicken-users] Statically Linking Eggs

2015-05-18 Thread Evan Hanson
Hi Nick, On 2015-05-18 9:12, Nick Andryshak wrote: Would it be feasible to make my own object files for eggs that don't include them by using chicken-install -retrieve, and then compiling the sources? Yes, and it's straightforward to do for most extensions -- I've used this approach for a

Re: [Chicken-users] Statically Linking Eggs

2015-05-18 Thread Evan Hanson
Hi Nick, On 2015-05-11 13:31, Nick Andryshak wrote: But can you statically link Eggs anymore? There's like 40 files in the deployment folder after deploying only one extension, I'd like a single, static executable. Is this possible? It's possible if all of the eggs you need to use provide

  1   2   >