[Chicken-users] Segfaults with shared library, foreign code

2011-02-28 Thread Evan Hanson
I'm trying to write bindings to the Clutter UI toolkit, but I'm hitting segfaults when building a shared library. I've essentialized the issue to the following code: http://gist.github.com/847871#file_clutter.scm The C is more or less copied pasted from the Clutter docs, and it compiles

Re: [Chicken-users] Segfaults with shared library, foreign code

2011-02-28 Thread Evan Hanson
that means in the context of Chicken's foreign interface. Thanks, Evan P.S. Thanks for the great platform. On Mon, Feb 28, 2011 at 4:37 PM, Felix fe...@call-with-current-continuation.org wrote: From: Evan Hanson vnh...@gmail.com Subject: [Chicken-users] Segfaults with shared library, foreign

Re: [Chicken-users] German Lisp Workshop at the CCC in Cologne

2011-03-13 Thread Evan Hanson
Chicken already has all the bindings to the core C I/O functions, so it might not be too much work to implement some minimal command-line history. -Ivan Keep in mind, though, that readline provides a lot more than just history (like completion, or my beloved vi mode...). Seems like a lot

Re: [Chicken-users] Using csi within Vim to evaluate visually selected text

2011-04-02 Thread Evan Hanson
In case you haven't seen it already, there's a page on using Chicken with Vim on the wiki: http://wiki.call-cc.org/vim?action=show. It has some similar functionality there but I'm sure your contribution would be welcome there as well. Evan ___

Re: [Chicken-users] where move-file is?

2011-06-30 Thread Evan Hanson
Hi Hugo, On 06/30/11 at 10:04am, Hugo Arregui wrote: I want to use move-file procedure, [...] but i cannot find it as an egg or as an procedure. Many file operations such as file-move and file-copy are in the files unit: http://wiki.call-cc.org/man/4/Unit%20files Evan

[Chicken-users] define-for-syntax modules

2011-09-27 Thread Evan Hanson
It appears that modules either leak define-for-syntax bindings, or aren't meant to contain them. If the latter is the case, please ignore. However, this seems unintuitive. (module test () (import scheme chicken) (define-for-syntax + string-append)) $ csi -nq #;1 (use test) ;

[Chicken-users] Chicken on Heroku

2012-03-21 Thread Evan Hanson
A few days ago I put together a buildpack that allows one to run Chicken apps on Heroku; figured I'd share it here in case someone else finds it useful. A buildpack, for the tragically unhip, is just a handful of scripts to bootstrap an environment for a Heroku process. This one installs Chicken

Re: [Chicken-users] Interpreter with FFI extension

2013-02-05 Thread Evan Hanson
On 2013/02/06 12:43P, Ivan Filgueiras wrote: I'm really new to chicken and I was wondering if there is a way to use FFI C functions (maybe with 'bind') with the csi interpreter, so that I can dynamically experiment with C stuff. If you have libffi, the lazy-ffi egg provides an easy way to

Re: [Chicken-users] ANN: persistent-hash-map 0.0.1

2013-02-12 Thread Evan Hanson
Fellow Chickeneers, [... snip great write-up... ] Cheers all around Moritz This looks really useful, thanks Moritz. And also, thanks for the write-up about the library -- it's nice to have an idea of the motivation behind it, and the other tips (Chicken/performance-related) are helpful as

Re: [Chicken-users] Unit testing of non-exported procedures

2013-03-27 Thread Evan Hanson
Hi Matt, A simple solution might be to keep your implementation in one file and your module form in another that includes it. Then, your tests could `include` or `load-relative` or whatever the implementation file rather than the module, making all its definitions visible. This may not work for

Re: [Chicken-users] Spiffy subprocess cleanup

2013-05-22 Thread Evan Hanson
Hi Bryan, I tried to paste a response but missed you in #chicken. I think you need to make sure to close the ports returned by process* (in your paste, the close-input/output-port forms aren't running since process* is signaling an error):

Re: [Chicken-users] Spiffy subprocess cleanup

2013-05-22 Thread Evan Hanson
After looking at a bit more, here's what I believe is *actually* happening: The invalid call to process* is signaling an exception in the child, which is handled internally by spiffy (spiffy.scm:470), causing that process to loop back to the start of the accept-next-connection procedure inside

Re: [Chicken-users] define rec

2013-06-16 Thread Evan Hanson
I don't think this is specific to `rec`, but is simply the way CHICKEN handles syntax, e.g. #;1 (define when list) #;2 (when 1 2) 2 #;3 (define-syntax user-when (syntax-rules () ((_ a b . c) (if a (begin b . c) #;4 (define user-when list) #;5 (user-when 1 2) 2

Re: [Chicken-users] dynamic scoping

2013-06-26 Thread Evan Hanson
Have a look at parameter objects. http://api.call-cc.org/doc/chicken/parameters Evan ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] Questions/nitpicks about Posix I/O

2013-09-05 Thread Evan Hanson
On 06/09/13 16:48, Matt Gushee wrote: I need to open an output file in append mode. Since none of the high-level I/O functions appear to allow this, it seems I need to use the posix library. Without digging any further, I'd point out that `with-output-to-file` et al. also accept #:append (as

Re: [Chicken-users] Changing string representation for records

2013-09-22 Thread Evan Hanson
Hi Chris, On 2013-09-22 23:58, Chris Mueller wrote: Is there any possibility to specify the string output for this record instance? Take a look at `define-record-printer` (http://api.call-cc.org/doc/chicken/special-forms/define-record-printer), e.g. (define-record-printer matrix

Re: [Chicken-users] Unix Scripting in Chicken

2013-10-11 Thread Evan Hanson
Hi Danny, SCSH was made for just this, and Peter has ported much of it to CHICKEN -- have a look at the scsh-process egg: http://wiki.call-cc.org/eggref/4/scsh-process Evan ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] Redefinition of imported binding gets implicitly exported

2013-10-25 Thread Evan Hanson
Hi Andy, all. I looked into this recently since it also seemed like a bug to me, but the behavior seems to be intentional judging from the code. A workaround is to exclude `process` from the import list in `m` (as in `(import (except posix ...))`) -- this prevents the behavior you're seeing, at

Re: [Chicken-users] Problem with read-line

2013-12-04 Thread Evan Hanson
Hi Dan, `read-line` is provided by the extras unit, which is implicitly available in csi but not so in compiled code. To load it, try adding a (use extras) to your program. (Obviously, also let us know if this doesn't work.) Cheers, Evan ___

Re: [Chicken-users] foreign-lambda declaration for char**?

2013-12-08 Thread Evan Hanson
Hi Alyn, On 09/12/13 06:29, .alyn.post. wrote: What is the magic phrase to tell foreign-lambda a parameter is a char**? `(c-pointer c-string)` or `(c-pointer nonnull-c-string)` should do it. Cheers, Evan ___ Chicken-users mailing list

Re: [Chicken-users] assigning scheme object to foreign pointer

2013-12-15 Thread Evan Hanson
Hi Pluijzer, On 16/12/13 12:59, pluijzer wrote: I am using a C-library that lets you assign user data to objects via a void pointer. I would like to assign a scheme object to this pointer, but as I understand I cannot use 'object-pointer' for this, as the garbage collector might move the

Re: [Chicken-users] Wiki design

2013-12-18 Thread Evan Hanson
On 19/12/13 08:41, Peter Bex wrote: Right now my main laptop is unusable so I'm on an older iBook, where the resolution is kind of low. Due to the small screen size the search boxes overlap with the menu tabs. I imagine the same happens on those fancy new tablet thingies as well. Same here.

Re: [Chicken-users] Wiki design

2013-12-18 Thread Evan Hanson
On 2013-12-19 8:49, Evan Hanson wrote: On 19/12/13 08:41, Peter Bex wrote: Finally, the matching paren highlighting thing in the source snippet goes haywire when I hover over some code: it overlines everything here. I guess the text height is slightly different from the surrounding

Re: [Chicken-users] Wiki design

2013-12-18 Thread Evan Hanson
On 2013-12-18 21:28, Peter Bex wrote: On Thu, Dec 19, 2013 at 09:17:48AM +1300, Evan Hanson wrote: On 2013-12-19 8:49, Evan Hanson wrote: On 19/12/13 08:41, Peter Bex wrote: Finally, the matching paren highlighting thing in the source snippet goes haywire when I hover over some code

Re: [Chicken-users] Wiki design

2013-12-19 Thread Evan Hanson
On 2013-12-19 20:27, Arthur Maciel wrote: Well, I would appreciate another try. https://dl.dropboxusercontent.com/u/621606/chicken-wiki.tar.gz Best wishes and thank you all for support! This one is really nice. The paren issue is gone now, and I like the look of the search section (I might

[Chicken-users] [ANN] FUSE interface

2013-12-24 Thread Evan Hanson
There is now a FUSE[1] interface available: http://wiki.call-cc.org/egg/fuse It's been only lightly tested so far, so I'd appreciate hearing about any issues people have with it, especially troubles installing or running the examples. Happy holidays, Evan [1]: http://fuse.sourceforge.net/

Re: [Chicken-users] [ANN] FUSE interface

2013-12-27 Thread Evan Hanson
Hi richo, On 2013-12-24 14:36, richo wrote: Have you done any benchmarking or profiling against other high level wrappers around fuse? Nothing remotely scientific, just casual checks against fuse-python to make sure there isn't an obvious problem hanging out at the surface. The egg is

Re: [Chicken-users] [ANN] FUSE interface

2013-12-28 Thread Evan Hanson
On 2013-12-28 11:42, Evan Hanson wrote: On 2013-12-24 14:36, richo wrote: Have you done any benchmarking or profiling against other high level wrappers around fuse? The egg is comparable to the multithreaded version of that wrapper After writing this, I got to thinking that that seemed

Re: [Chicken-users] no type error calling |append!|

2014-01-07 Thread Evan Hanson
Hi Alan, On 2014-01-05 18:18, Alan Post wrote: $ csi -n #;1 (use srfi-1) #;2 (append! foo bar '()) () This isn't actually types.db at work, but the runtime checks (or lack thereof) in `append!`. With the scrutinizer, you'd see something like: $ csc foo.scm Warning: at

Re: [Chicken-users] Patch for FreeBSD link error

2014-01-16 Thread Evan Hanson
probably just because a patch never bubbled up up anywhere, so thank you. [1]: https://lists.gnu.org/archive/html/chicken-users/2013-02/msg00085.html Cheers, Evan From a45641a85c6ffed4a5ed975fc437c21113c1e6dc Mon Sep 17 00:00:00 2001 From: Evan Hanson ev...@foldling.org Date: Fri, 17 Jan 2014 14

Re: [Chicken-users] combining syntax-rules and er/ir-macro

2014-01-29 Thread Evan Hanson
Hi Alyn, On 2014-01-29 18:07, .alyn.post. wrote: Why is %map not visible inside enum? In order to make `%map` available to the enum transformer, it needs to be defined at expansion time, e.g. (this is one way, there may be others): (begin-for-syntax (define-syntax %map

Re: [Chicken-users] Matchable not working in module

2014-03-04 Thread Evan Hanson
On 05/03/14 16:39, Matt Gushee wrote: However, I'm now getting a compile error like this: : Warning: reference to possibly unbound identifier `ofs' in: : Warning:failure527 : Error: module unresolved: cav-web-fcgi I am using 'match' from the matchable egg to dispatch requests, like

Re: [Chicken-users] Question about set-car! and set-cdr!

2014-03-06 Thread Evan Hanson
On 07/03/14 09:03, Daniel Carrera wrote: I am not experienced with reading RnRS standards, but my impression is that R7RS does not require that set-car! and set-cdr! be moved to a separate library. Indeed it does not (i.e. they are provided the (scheme base) library (as well as (scheme

Re: [Chicken-users] LevelDB bindings

2014-04-20 Thread Evan Hanson
Hi Caolan, and welcome :) Thanks for making this egg -- based on the README it looks very nice to use/well thought-out. One note: chicken-install expects the tests directory to be named tests, but your project has it under test instead. If that's not intentional you may want to rename it so your

Re: [Chicken-users] LevelDB bindings

2014-04-20 Thread Evan Hanson
On 2014-04-20 14:33, Caolan McMahon wrote: Thanks Evan, I've renamed the directory to 'tests'. Salmonella still complains about missing docs, not sure how to fix that. salmonella checks the wiki for documentation, so that'll be fixed by creating http://wiki.call-cc.org/egg/leveldb. Anyway,

Re: [Chicken-users] 4.9.0rc1: Error: (assv) bad argument type: null

2014-05-03 Thread Evan Hanson
Hi Andy, The error on 4.9.0rc1 is likely due to 0a52536, which made `assoc`, `member` et al. signal errors when their second arguments aren't lists instead of just returning #f (or the sentinel value). This is new behavior since 4.7.0, and IIRC there were a couple of places in CHICKEN itself that

Re: [Chicken-users] utc-time-seconds and local-time-seconds rationale?

2014-05-07 Thread Evan Hanson
On 2014-05-07 12:01, Jörg F. Wittenberger wrote: However for the case at hand I'd even love a notation which allows to attach a custom message to the deprecated type. Possibly like this: I agree, an annotation for deprecation warnings would be valuable. Currently, it's totally on the user to

Re: [Chicken-users] utc-time-seconds and local-time-seconds rationale?

2014-05-12 Thread Evan Hanson
On 2014-05-07 13:12, Evan Hanson wrote: I agree, an annotation for deprecation warnings would be valuable. So this totally already exists, it just wasn't documented under (chicken types). In case anyone stumbles across this part of the archive: you can use the following type syntax to produce

Re: [Chicken-users] bug update-uri in uri-common

2014-06-08 Thread Evan Hanson
On 2014-06-08 11:14, Peter Bex wrote: On Sat, Jun 07, 2014 at 09:01:01PM -0400, John Cowan wrote: Peter Bex scripsit: c) The port should not be reset, but the uri should be printed without port if it's the default for this scheme. +1 for (c). hm, but if you really want to

Re: [Chicken-users] Crash with multithreaded TCP code

2014-07-09 Thread Evan Hanson
Hi Christopher, On 2014-07-08 11:29, Christopher Collins wrote: I tried the above program with a newer version of chicken (4.9.0.1), and it works without issue. So I am considering the problem solved. Glad it's working -- thanks for following up, it's much appreciated. Cheers, Evan

Re: [Chicken-users] csc and standard input

2014-07-12 Thread Evan Hanson
Hi Michele, csc(1) will read source from standard input given the filename -. $ csc -o quick_test - (print 1) ^D $ ./quick_test 1 Whether csc(1) should default to standard input when no filename is given is a matter for debate, but that's how it's done as things are.

[Chicken-users] [ANN] R7RS support egg

2014-07-18 Thread Evan Hanson
Hi all, An egg providing support for most of the R7RS Scheme language has been released for testing. It can be installed in the usual way, via `chicken-install`. It's still early days and doesn't cover the full specification yet, but it should be good enough for many R7RS programs so any testing

Re: [Chicken-users] Macro returning multiple nodes?

2014-09-20 Thread Evan Hanson
Hi Mathieu, The usual way to do this is to splice the multiple forms you want to return into a `begin`: `(begin ,@(map (lambda (record-value) `(,(symbol-append record-symbol '- record-value) ,record-symbol)) record-values)) Cheers, Evan

Re: [Chicken-users] Printing recursive objects

2014-09-24 Thread Evan Hanson
Hi Richard, On 2014-09-24 21:34, Richard wrote: If I have an object that references itself, like for example... (define v (vector 0)) (vector-set! v 0 v) and I print it, chicken goes -understandably- into an infinite loop. Is there a way to prevent this, or is there something like

Re: [Chicken-users] new egg: bindings for nanomsg

2014-10-10 Thread Evan Hanson
Hi Kristian, Done. It'll be available shortly. Thanks! Evan ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] [Chicken-hackers] [PATCH] Fix cond behaviour of = with constant condition [Was: Re: Unbound = in cond statements]

2014-10-17 Thread Evan Hanson
On 2014-10-17 20:48, Peter Bex wrote: On Fri, Oct 17, 2014 at 07:44:27PM +0200, Michele La Monaca wrote: (cond (1 = odd?)) The attached patch fixes it. Pushed. Thanks very much Michele, Peter. Evan ___ Chicken-users mailing list

Re: [Chicken-users] [Q] How can I convert this lisp(SBCL) macro to chicken scheme?

2014-11-06 Thread Evan Hanson
Hi Sungjin, These are typically referred to as reader extensions in the Scheme world: http://api.call-cc.org/doc/library#sec:Reader_extensions You'll probabably want `set-read-syntax!` in particular: http://api.call-cc.org/doc/library/set-read-syntax! Cheers, Evan

Re: [Chicken-users] readline egg v2.0 feedback

2015-01-27 Thread Evan Hanson
Hi Alexej, My tuppence: On 2015-01-27 4:01, Alexej Magura wrote: I don't think I'll use the toplevel-command stuff after all: I can't promise that the toplevel symbols readline exports won't get overwritten, and I'm not entirely sure readline has any business providing private toplevel

Re: [Chicken-users] Up to date Chicken packages for most Linux distributions

2015-01-29 Thread Evan Hanson
Hi Daniel, On 2015-01-26 17:41, Daniel Ziltener wrote: I created a repository on the OpenSUSE Build Service with packages for most distributions. This is a very nice resource, thanks for taking the time to prepare it! This build service seems quite handy. Oh, and I'd be glad if users of

Re: [Chicken-users] Correct type declarations for (call-with-... thunk) procedures

2015-01-11 Thread Evan Hanson
Hi Alaric, I agree it would be nice if one could capture the multiple values case with a `forall` type, e.g. (: call-with-foo (forall (a) (foo (- . a) - . a))) However, AFAIK there is currently no way to express this. You can of course specify that `call-with-context-support` may return an

Re: [Chicken-users] csc/csi man pages deficient

2015-01-12 Thread Evan Hanson
Hi Andrew, Of course you're right. I've created a ticket[1] to track this issue (really, a feature request for normal man pages). Best regards, Evan [1]: https://bugs.call-cc.org/ticket/1177 ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] Parsing HTML, best practice with Chicken

2015-01-12 Thread Evan Hanson
Hi Piotr, I don't have much to add, other than to say that I agree with most of your points and to thank you for taking the time to write up your thoughts. On 2015-01-12 11:49, m...@freeshell.de wrote: -- an instruction how to get a running IDE with a REPL. I really struggled here (Sublime

Re: [Chicken-users] macro and module question from newbie.

2015-03-05 Thread Evan Hanson
Hi, You must indicate that `m` should be visible within the expansion of `bar`, using the following export format: (module foo ((bar m)) ...) Otherwise, everything looks fine. See the IDENTIFIER syntax under http://wiki.call-cc.org/man/4/Modules#module for more information. Cheers, Evan

Re: [Chicken-users] Geiser 0.7 Released (Chicken Support!)

2015-03-02 Thread Evan Hanson
+1, this is pretty great. Congrats, Daniel! ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] Build error on MinGW

2015-04-24 Thread Evan Hanson
f4be94bda231ed14ce375c958d3b68bb03a3f620 Mon Sep 17 00:00:00 2001 From: Evan Hanson ev...@foldling.org Date: Sat, 25 Apr 2015 10:16:39 +1200 Subject: [PATCH] Disable getc_unlocked --- chicken.h | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/chicken.h b/chicken.h index 69e0b95..5204385 100644

Re: [Chicken-users] Fix date-literals to build install date-literals.import.so

2015-04-29 Thread Evan Hanson
Thanks Andy, I've updated the extension with your fix and tagged a new release. (Not that I'm volunteering to maintain the egg.) Evan ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] Termbox using

2015-05-04 Thread Evan Hanson
Hi frad, On 2015-05-02 12:34, f...@indexi.net wrote: Newbie with Scheme, i try to use the termbox egg. It seems me a very nice and cool library and the documentation helps me a lot. That's a very nice extension, indeed, thanks for bringing it to attention. It even bundles the termbox library

Re: [Chicken-users] Openssl with csc -deploy

2015-05-08 Thread Evan Hanson
Hi Nick, I've used the following commands for this. The only difference is the third command, which copies CHICKEN's core libraries into the deployment directory. I have a hunch as to why this makes the difference, but it's orthogonal to your problem, so for now can you just try adding

Re: [Chicken-users] [ANN] New egg: sass (CSS preprocessor library)

2015-05-17 Thread Evan Hanson
Hi Matt, On 2015-05-17 17:24, Matt Gushee wrote: Mario or someone, could you please add this egg to the directory? Done! Cheers, Evan ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] Annoying compiler warning

2015-05-13 Thread Evan Hanson
Hi Matt, This has been addressed in the development tree and the warnings will go away with the next release. As for hiding the warnings on 4.9.0.1, you could try passing a flag to silence them as a C compiler option (perhaps -Wno-deprecated? I don't know which option will suppress these

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

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] 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] 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] 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] 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] 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-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] 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] 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] [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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

  1   2   >