Re: csi on Windows, Emacs and srfi 18

2020-07-05 Thread Dan Leslie
Parley, wasn't it? I, too, worked around this issue on windows using parley. -Dan Original Message On Jul 5, 2020, 13:29, Kristian Lein-Mathisen wrote: > Hi George, > > I think the problem may also be that your primordial thread is blocking all > srfi-18 threads in it's

Re: [Chicken-users] memory monitoring and leak debugging? (should the advice be in a web page?)

2019-08-07 Thread Dan Leslie
Isn't it possible to pin items, and avoid these relocation and garbage collection issues, with object-evict? https://wiki.call-cc.org/eggref/5/object-evict -Dan Sent with [ProtonMail](https://protonmail.com) Secure Email. ‐‐‐ Original Message ‐‐‐ On Wednesday, August 7, 2019 1:00 PM,

Re: [Chicken-users] Auto CompletionProblems

2019-08-07 Thread Dan Leslie
It sounds like the implementation is not set. Try putting this as the first line in your source file: ;;; -*- mode: scheme; geiser-scheme-implementation: chicken -*- If that fixes your problems, then you'll probably want to limit Geiser to the one implementation, globally, or add that to all

[Chicken-users] Allegro ported to Chicken 5 (Coop update?)

2019-02-11 Thread Dan Leslie
Thanks in large part to a Pull Request from Olivier Matz the Allegro Egg has been ported to Chicken 5. I've attempted to follow the information in the wiki[0] with regards to how to port an egg from C4 to C5 in the simple manner, and so Henrietta likely needs to track the new

Re: [Chicken-users] Geiser now has Chicken 5 Support

2018-11-17 Thread Dan Leslie
It should be fixed as of this AM. -Dan Sent with ProtonMail Secure Email. ‐‐‐ Original Message ‐‐‐ On Saturday, November 17, 2018 8:08 AM, Vasilij Schneidermann wrote: > > That'd be a missing elisp method; it's used in the version check. > > What version of emacs are you using? > >

Re: [Chicken-users] Geiser now has Chicken 5 Support

2018-11-16 Thread Dan Leslie
> David > > On Tue, Nov 13, 2018 at 5:12 PM Dan Leslie wrote: > >> Fresh on ELPA: Chicken 5 support in Geiser. Geiser is an enhanced Emacs mode >> for interacting with various Schemes. >> >> Completion suggestions, eldoc support, region and buffer evaluation,

[Chicken-users] Geiser now has Chicken 5 Support

2018-11-12 Thread Dan Leslie
Fresh on ELPA: Chicken 5 support in Geiser. Geiser is an enhanced Emacs mode for interacting with various Schemes. Completion suggestions, eldoc support, region and buffer evaluation, and symbol evaluation all appear to work well; most are considerably faster thanks to some reworking of their

[Chicken-users] Emacs' dumb-jump now supports Scheme

2017-12-13 Thread Dan Leslie
Emacs users can now avail themselves of Scheme support in the `dumb-jump` package; the support has just been merged into Git. What's dumb-jump? It's jump-to-definition using Rip-Grep, the Silver Searcher, Grep and Git Grep as backends; the implementation is small, zippy, and usually effective. I

Re: [Chicken-users] Geiser support improved

2017-12-10 Thread Dan Leslie
PS, it could take a while for this to reach ELPA et al, so grab the git source in the interim. Thanks, -Dan On Sun, 10 Dec 2017 10:16:40 -0800 Dan Leslie <d...@ironoxide.ca> wrote: > Thanks to some quality bug reporting the Geiser support for Chicken > has been greatly sped up. Ov

[Chicken-users] Geiser support improved

2017-12-10 Thread Dan Leslie
Thanks to some quality bug reporting the Geiser support for Chicken has been greatly sped up. Overall typing speed and completion response is far superior to the previous state of affairs. Please ensure you have the latest apropos and chicken-doc eggs installed; which can be done via:

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

2017-11-17 Thread Dan Leslie
Chicken could really use a Language Server Protocol implementation. Alternatively, making Chicken faster is probably a gold mine of thesis material. -Dan On Fri, 17 Nov 2017 17:20:52 +0100 Daniele wrote: > Hello, I need to make my bachelor thesis in CS and was looking for

Re: [Chicken-users] Parallel procedures in CHICKEN

2016-12-29 Thread Dan Leslie
You could build something with the posix-shm egg, and the posix unit. If you need locks, there’s the posix-semaphore egg. -Dan From: Chicken-users [mailto:chicken-users-bounces+dan=ironoxide...@nongnu.org] On Behalf Of Arthur Maciel Sent: December 28, 2016 7:47 AM To: Kooda

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

2016-09-24 Thread Dan Leslie
Particularly since Chicken is in the minority of Schemes that allow this behaviour. I'm not a fan of fast-and-loose binding and typing, personally; it's a source of too many mistakes. -Dan On 2016-09-24 5:14 PM, Derrell Piper wrote: > I agree that it's allowed but it would an optional warning

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

2016-09-24 Thread Dan Leslie
4.9.0.1 (stability/4.9.0) (rev 8b3189b) > windows-mingw32-x86 [ manyargs dload ptables ] > bootstrapped 2014-06-07 > > Disabled the Chicken extensions to R5RS syntax > #;1> (set! foo 1) > #;2> foo > 1 Well, damn. It is a bug. -Dan On 2016-09-23 6:45 PM, Kon Lovett wrote:

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

2016-09-23 Thread Dan Leslie
Sounds like a Chicken Bug, from the docs[‎0]:> <_expression_> is evaluated, and the resulting value is stored in the location to which is bound. must be bound either in some region enclosing the set!

Re: [Chicken-users] Windows 10, mingw-w64, chicken 4.11, "invalid encoded numeric literal"

2016-08-23 Thread Dan Leslie
I think you should raise this bug in chicken-hackers; it sounds like it's a platform issue not caught by the automated tests. -Dan On 2016-08-23 07:25 PM, Claude Marinier wrote: > On Thu, 18 Aug 2016, Dan Leslie wrote: >> I have used it successfully with MSys2 and Mingw-w64; th

Re: [Chicken-users] Windows 10, mingw-w64, chicken 4.11 - check fails with "invalid encoded numeric literal"

2016-08-18 Thread Dan Leslie
That should be an org, not a com:http://wiki.call-cc.org/msys2Apologies,-Dan

Re: [Chicken-users] Windows 10, mingw-w64, chicken 4.11 - check fails with "invalid encoded numeric literal"

2016-08-18 Thread Dan Leslie
I have used it successfully with MSys2 and Mingw-w6s; the details are here:http://wiki.call-cc.com/msys2-Dan

Re: [Chicken-users] Installing chicken on windows

2016-07-09 Thread Dan Leslie
Oops, you shouldn't need to install cmake and global. I copy/pasted that from my Emacs setup readme. -Dan On 2016-07-09 5:36 PM, Dan Leslie wrote: > > I have just returned from vacation and have access to my Windows 10 > machine again, and so can try out my setup. > > Here's w

Re: [Chicken-users] Installing chicken on windows

2016-07-09 Thread Dan Leslie
I have just returned from vacation and have access to my Windows 10 machine again, and so can try out my setup. Here's what I have done: Install 64-bit MSYS2, launch bash using the MingW64 shell: |https://msys2.github.io| Install the necessary dependencies: |pacman -Sy pacman -S

Re: [Chicken-users] Installing chicken on windows

2016-07-08 Thread Dan Leslie
Ubuntu without the kernel. Sent from my BlackBerry 10 smartphone.   Original Message   From: John Cowan Sent: Friday, July 8, 2016 9:53 AM To: Dan Leslie Cc: Matt Welland; Oleg Kolosov; chicken-users; C K Kashyap Subject: Re: [Chicken-users] Installing chicken on windows Dan Leslie scripsit

Re: [Chicken-users] Installing chicken on windows

2016-07-08 Thread Dan Leslie
It reads to me like Chicken needs an automated builder for the Windows package.

Re: [Chicken-users] big prime number

2016-01-24 Thread Dan Leslie
Peter Bex writes: > Now, the good news is that I also ran the program under CHICKEN 5 and > it took just under 17 seconds to complete. Most likely this is because > the whole thing can be done completely inline, without any CPS calls, > which means a lot less allocation,

Re: [Chicken-users] Scraping the REPL?

2016-01-24 Thread Dan Leslie
Word of warning: Babel seems to be hard-coded for Guile only; there are several open bugs regarding Babel and Geiser regarding, for instance, it breaking with Chicken. -Dan Alex Charlton writes: > Hi James, > > The best thing that I've found for creating "living"

Re: [Chicken-users] functor implementation of bindings egg

2016-01-16 Thread Dan Leslie
Could you perhaps motivate with some sample code? Thanks, -Dan Juergen Lorenz writes: > Hi all, > > the bindings egg is now implemented with a functor, so that you can > replace the default dispatch table, which destructures mixed nested > lists, vectors, strings and

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

2016-01-13 Thread Dan Leslie
IIRC, there's been ongoing efforts to remove SRFI-1 from core; which may explain your observations regarding Master. Perhaps you should consider asking Chicken Hackers? -Dan Sent from my BlackBerry 10 smartphone.   Original Message   From: Jörg F. Wittenberger Sent: Wednesday, January 13, 2016

Re: [Chicken-users] Distributed-concurrent computing: If Erlang is a 10. . .

2016-01-08 Thread Dan Leslie
Perhaps you could motivate regarding which Erlang features you find desirable? -Dan Lawrence Bottorff writes: > . . . where might Chicken be concerning distributed-concurrent programming? > How close to Erlang's perfect 10 can you get with Chicken. Of course if > Chicken is

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

2015-12-27 Thread Dan Leslie
If you are desiring a monolithic web stack of the Rails sort, then what you probably are looking for is GNU Artanis: http://web-artanis.com/index.html -Dan 机械唯物主义 : linjunhalida writes: > Hi scheme users, > > I'm a rails programmer, and knows scheme long time ago but

Re: [Chicken-users] Xmas Greetings

2015-12-24 Thread Dan Leslie
*raises Egg Nog* And to you as well! Seasons Greatings to all! -Dan felix.winkelm...@bevuta.com writes: > A very happy christmas to all of you! > > > felix > > > ___ > Chicken-users mailing list > Chicken-users@nongnu.org >

Re: [Chicken-users] January 2016 Lisp Game Jam

2015-12-21 Thread Dan Leslie
Sly is much higher level than Allegro or SDL; it's probably most comparable to Doodle or Hypergiant. -Dan Josh Barrett writes: > Has anybody tried guile's Sly? If so, how does it stack up to chicken's... > Variety of libraries? > > On Mon, Dec 21, 2015, 19:40 John

Re: [Chicken-users] Emacs Geiser trouble

2015-12-19 Thread Dan Leslie
It probably thinks it's a Guile file and not a Chicken file. When that happens it is looking for a Guile REPL and ignoring your Chicken REPL. To see if this is happening look for the word "Guile" or "Chicken" in the modeline; if you see Guile and not Chicken then things are misconfigured. You

Re: [Chicken-users] Building on MSYS2

2015-12-11 Thread Dan Leslie
Damn, I should have RTFM. ;) ‎-Dan Sent from my BlackBerry 10 smartphone.   Original Message   From: Peter Bex Sent: Friday, December 11, 2015 11:13 AM To: d...@ironoxide.ca Cc: chicken-users@nongnu.org Subject: Re: [Chicken-users] Building on MSYS2 On Fri, Dec 11, 2015 at 11:48:00AM -0500,

Re: [Chicken-users] reducing the size of chicken runtime

2015-11-19 Thread Dan Leslie
Isn't there a significant barrier to determining what to strip due to eval, apply and read? -Dan Sent from my BlackBerry 10 smartphone.   Original Message   From: Peter Bex Sent: Thursday, November 19, 2015 8:31 AM To: Victor J Cc: chicken-users@nongnu.org Subject: Re: [Chicken-users] reducing

Re: [Chicken-users] New SDL2 eggs; help wanted

2015-11-04 Thread Dan Leslie
As a potential user and implementor of similar eggs (Allegro, SOIL, .. nanovg), I would provide fairly lean bindings first, then do any simplification or hand-holding as an additional module. It will save you time in the near term and provide flexibility to the users. -Dan Sent from my 

Re: [Chicken-users] Which API to use (llrb)?

2015-10-29 Thread Dan Leslie
Whatever works with the doto macro? Sent from my BlackBerry 10 smartphone.   Original Message   From: Jörg F. Wittenberger Sent: Thursday, October 29, 2015 12:47 PM To: chicken-users Subject: [Chicken-users] Which API to use (llrb)? Hi all, I did some more refinements to the LLRB-code I

Re: [Chicken-users] strange IUP canvas behavior - mouse clicks returning bad value

2015-10-16 Thread Dan Leslie
It looks to me like a bad type cast. -Dan

[Chicken-users] ANN: [geiser] Version 0.8

2015-10-12 Thread Dan Leslie
of regular expressions, it seems. Enjoy! And please do keep filing issues. -Dan jao <notificati...@github.com> writes: > Improved features: > > - Lots of improvements to Chicken support, by Dan Leslie. > - Better interoperability with xscheme. > - Much better perfo

Re: [Chicken-users] ANN: [geiser] Version 0.8

2015-10-12 Thread Dan Leslie
ier. Yes, an API to do such would be helpful; csi extensions are no longer used in the Chicken Geiser implementation. -- -Dan Leslie ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] performance of bignums

2015-06-25 Thread Dan Leslie
-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users -- -Dan Leslie ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

[Chicken-users] Some syntax help?

2015-05-02 Thread Dan Leslie
would be appreciated. :D Thanks! -- -Dan Leslie ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] Some syntax help?

2015-05-02 Thread Dan Leslie
And thanks to your feedback the branch is now passing the available tests. Turns out that (syntax) was allowing the two-modules-in-one-file thing to work. Taking that out caused... Problems. ;) -- -Dan Leslie ___ Chicken-users mailing list Chicken

[Chicken-users] A (somewhat) useful define-syntax example

2015-04-26 Thread Dan Leslie
of a fair number of domain-specific languages, I think. Anyhow, without further ado, you can find the example here: https://github.com/dleslie/funky PS, can anyone explain the comment here: https://github.com/dleslie/funky/blob/master/funky.scm#L24 Thanks! -Dan Leslie

Re: [Chicken-users] IDE for Beginners

2015-04-23 Thread Dan Leslie
://lists.nongnu.org/mailman/listinfo/chicken-users -- -Dan Leslie ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] [Chicken-hackers] Any thoughts on performance woes?

2015-04-07 Thread Dan Leslie
Peter Bex pe...@more-magic.net writes: I have a solution in the works for the particular problem of slow numbers. This is in a CHICKEN 5 branch I've been working on, which I will announce in a week or so. Colour me excited. :) -Dan -- -Dan Leslie

Re: [Chicken-users] [Chicken-hackers] Any thoughts on performance woes?

2015-04-07 Thread Dan Leslie
much Scheme/Lisp any more. I wish that this wasn't the case; you've done such great work. -Dan -- -Dan Leslie ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

[Chicken-users] Any thoughts on performance woes?

2015-04-06 Thread Dan Leslie
was spending its time on and it appeared that it becomes mired in a tar pit of garbage collection tagging. Can someone else with a little more understanding shed some light on this? https://groups.google.com/d/msg/comp.lang.scheme/x1YafU5t0B0/M0mzhrl7LxYJ Thanks! -- -Dan Leslie

Re: [Chicken-users] Updating the zmq egg

2015-03-05 Thread Dan Leslie
I'd stick with zmq, particularly considering that you've already begun updating the egg. It also looks like it has a greater amount of community and developer support. -Dan Matt Gushee m...@gushee.net writes: On Thu, Mar 5, 2015 at 6:18 PM, Dan Leslie d...@ironoxide.ca wrote: You might

Re: [Chicken-users] Updating the zmq egg

2015-03-05 Thread Dan Leslie
-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users -- -Dan Leslie ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] how to unintern a symbol

2015-02-02 Thread Dan Leslie
? (unintern 'foo) 'foo) = #f Cheers, Peter ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users -- -Dan Leslie ___ Chicken-users mailing list

Re: [Chicken-users] updating eggs

2014-12-17 Thread Dan Leslie
Honestly, I just feed the output of chicken-status into chicken-install -reinstall -Dan On 14-12-16 11:44 PM, Alexej Magura wrote: Is there a way to update eggs? I thought it might be chicken-install -update-dbbut that seems to have a different effect. Is there no zero-config means of

Re: [Chicken-users] Installing combinatorics - cock missing

2014-12-15 Thread Dan Leslie
I can imagine that this is something that might be present on more than a few corporate networks. Perhaps it's best to simply rename the cock egg? -Dan On 14-12-15 03:01 PM, Alex Shinn wrote: On Tue, Dec 16, 2014 at 2:51 AM, Bahman Movaqar bah...@bahmanm.com mailto:bah...@bahmanm.com wrote:

Re: [Chicken-users] Replace an element in a list

2014-12-13 Thread Dan Leslie
*facepalm* Yes, my way is the way not to do it; thanks to my reading comprehension failure. ;) -Dan On 14-12-13 06:44 PM, John Cowan wrote: Bahman Movaqar scripsit: What is the idiomatic way of replacing the nth element in a list *without* mutating the list? Is the combination of take and

Re: [Chicken-users] IDE for Beginners

2014-12-11 Thread Dan Leslie
Hi Nathan! I've been following this thread but haven't had a chance to jump in until now. SLIME support is sort of broken, at best, on newer Emacs. I tried getting it limping back along but I think you'll find it lacking. I wrote a package for Emacs that can be installed via MELPA and

Re: [Chicken-users] how to Find list of ALL standard procedures available from csi

2014-12-05 Thread Dan Leslie
Not part of the standard distribution; however, the apropos egg will allow you to locate defined symbols by regex; you could simply provide a regex that matches all strings. -Dan On 14-12-05 07:48 PM, Joe Python wrote: I can check whether an individual procedure is available by just typing

Re: [Chicken-users] Working on Geiser integration

2014-11-23 Thread Dan Leslie
A short update: I've made fairly good progress in the last few days. I would say about 3/4 of the features are complete. A special thanks to the authors of the Apropos and Chicken-Doc eggs! -Dan On 14-11-21 03:48 PM, Daniel Leslie wrote: As a follow-up to my earlier inquiries regarding

Re: [Chicken-users] Portable installs broken?

2014-04-06 Thread Dan Leslie
*facepalm* I should have read to the bottom of the help listing for csc. Thanks Peter! -Dan On 14-04-06 09:13 AM, Peter Bex wrote: On Sun, Apr 06, 2014 at 08:55:31AM -0700, Daniel Leslie wrote: I'm trying to create a 'portable' distribution of chicken and am running into a simple issue.

Re: [Chicken-users] Portable installs broken?

2014-04-06 Thread Dan Leslie
of a library and so it fails. Disabling the banner appears to solve this issue. I wonder if doing a STATICBUILD would rectify this? -Dan On 14-04-06 09:31 AM, Dan Leslie wrote: *facepalm* I should have read to the bottom of the help listing for csc. Thanks Peter! -Dan On 14-04-06 09:13 AM

Re: [Chicken-users] Portable installs broken?

2014-04-06 Thread Dan Leslie
Nix that, STATICBUILD would break most everything I need. Hrm, haven't a clue. -Dan On 14-04-06 10:09 AM, Dan Leslie wrote: Actually, that doesn't appear to help. In order to get csi to work I must pass both the -include-path parameter as well as -q; and csc has no equivalent option to -q

Re: [Chicken-users] Portable installs broken?

2014-04-06 Thread Dan Leslie
Analyze and syntax-check only csc invocations appear to work (-A and -P options). That implies to me that -include-path is adhered to /very/ late in the invocation, if at all. -Dan On 14-04-06 10:18 AM, Dan Leslie wrote: Nix that, STATICBUILD would break most everything I need. Hrm

Re: [Chicken-users] Portable installs broken?

2014-04-06 Thread Dan Leslie
It turns out that all of the odd issues I was having were resolved by ditching SRCDIR. I like to build from a separate directory from source as I tend to leave intermediate files in a tmpfs partition, to save my SSD some unnecessary thrashing, so I naturally attempted to use SRCDIR. Anyhow,

Re: [Chicken-users] Multiple concurrent top levels?

2013-08-02 Thread Dan Leslie
On 8/2/2013 1:54 AM, J Altfas wrote: I've used the embedding API to some extent, but I'm not sure about multiple toplevels. It's unclear what toplevel environment(s) you're referring to. There's the C_toplevel and I'm pretty sure there's only one of those. The Scheme toplevel runs after

Re: [Chicken-users] Multiple concurrent top levels?

2013-08-02 Thread Dan Leslie
On 8/2/2013 9:56 AM, John Cowan wrote: Unless you either (a) are deeply committed to Chicken or (b) need the fastest possible performance on a single core, then you might want to consider shifting to Chibi Scheme for this application. :D I've already been exploring chibi-scheme for the

[Chicken-users] Multiple concurrent top levels?

2013-08-01 Thread Dan Leslie
Regarding: http://wiki.call-cc.org/embedding Is it possible to embed chicken in such a way that there exists multiple concurrent top levels that do not directly interact unless objects are specifically passed by the programmer? -Dan ___

Re: [Chicken-users] call Chicken Scheme from C and pass a bytevector

2013-06-27 Thread Dan Leslie
There's a section on accessing external objects that covers this sort of thing: http://wiki.call-cc.org/man/4/Accessing%20external%20objects#returning-large-objects-or-chunks-of-memory-to-scheme It's possible to allocate C structures under the control of the Chicken GC:

Re: [Chicken-users] dynamic scoping

2013-06-26 Thread Dan Leslie
By using parameters; see also: http://api.call-cc.org/doc/chicken/parameters/make-parameter http://api.call-cc.org/doc/miscmacros/define-parameter http://api.call-cc.org/doc/chicken/special-forms/parameterize -Dan On 6/26/2013 2:47 PM, Daniel Ajoy wrote: add binds a to 1 at the moment of

Re: [Chicken-users] dynamic scoping

2013-06-26 Thread Dan Leslie
Oh you just had to be different. ;) The related SRFI is withdrawn, is it safe to assume that fluid-let will be available outside of Chicken? -Dan On 6/26/2013 2:56 PM, Kon Lovett wrote: See http://api.call-cc.org/doc/chicken/special-forms#def:fluid-let #;1 (define a 1) #;2 (define (add x)

Re: [Chicken-users] how to declare foreign variably size structs?

2013-06-20 Thread Dan Leslie
Probably the simplest solution would be to treat it as fixed size and use the maximum possible size for the object. From http://linux.die.net/man/7/inotify Specifying a buffer of size sizeof(struct inotify_event) + NAME_MAX + 1 will be sufficient to read at least one event. -Dan

Re: [Chicken-users] Behind the Scenes with CHICKEN Scheme (Part 1)

2013-06-19 Thread Dan Leslie
Hmm, now I want to work with SPOCK a bit more. -Dan On 6/19/2013 7:38 AM, Mario Domenech Goulart wrote: On Thu, 02 May 2013 13:57:58 + Mario Domenech Goulart mario.goul...@gmail.com wrote: An interview with Felix Winkelmann, the author of CHICKEN:

Re: [Chicken-users] Chicken C interface

2013-06-06 Thread Dan Leslie
On 6/6/2013 2:59 AM, Thomas Chust wrote: Therefore foreign-primitive can do allocation in the nursery, but foreign-lambda can't. However, foreign-lambda could still allocate directly in the second generation heap or transfer nursery-allocated values directly into the heap upon return before

Re: [Chicken-users] help :)

2013-06-05 Thread Dan Leslie
Feel free to ask questions in the IRC channel, #chicken on irc.freenode.net -Dan On 6/5/2013 7:07 AM, nehal singhal wrote: Hi, I am a newbie to chicken.Can i get some aid as to how to start coding through chicken. I was recently learning racket and also have know-how of Python-2.6.

Re: [Chicken-users] Chicken C interface

2013-06-05 Thread Dan Leslie
I do this a fair bit in the Allegro egg. Here's an example: https://github.com/dleslie/allegro-egg/blob/985ca2ceef0f5b4028af3f97729f13cba2976fe5/color.scm Basically, use C_alloc to allocate the memory required to host both the List structure and the data it is to contain, then use the C_list

Re: [Chicken-users] Chicken C interface

2013-06-05 Thread Dan Leslie
Oh dear! Well, it works and I haven't had problems. What's the correct way to go about this? -Dan On 6/5/2013 2:36 PM, Felix wrote: From: Dan Leslie d...@ironoxide.ca Subject: Re: [Chicken-users] Chicken C interface Date: Wed, 05 Jun 2013 08:47:45 -0700 I do this a fair bit in the Allegro

Re: [Chicken-users] Chicken C interface

2013-06-05 Thread Dan Leslie
Thanks, I'll get on updating my broken eggs soon. obvious humpty dumpty joke notwithstanding -Dan On 6/5/2013 2:39 PM, Felix wrote: From: pluijzer . pluij...@gmail.com Subject: [Chicken-users] Chicken C interface Date: Wed, 5 Jun 2013 17:10:41 +0200 Hello everybody, I was planning to use

Re: [Chicken-users] set! atomic?

2013-06-04 Thread Dan Leslie
Yes, many mutate operations are not srfi-18 threads aware, in my (possibly incorrect) experience. Also, just as an FYI, Chicken's SRFI-18 threads are not system threads, and so cannot avail themselves of additional processors. If real parallel operations are your goal then you'll want to look

Re: [Chicken-users] Protocol Buffers for CHICKEN

2013-05-28 Thread Dan Leslie
This is very welcome! I wonder if this would be useful for storing data in a posix shared memory block... -Dan On 5/28/2013 3:15 PM, Thomas Chust wrote: Hello, during the CHICKEN spring thing in Cologne I started to work on a new egg [1] implementing the protocol buffer [2] serialization

Re: [Chicken-users] Protocol Buffers for CHICKEN

2013-05-28 Thread Dan Leslie
, Dan Leslie wrote: [...] I wonder if this would be useful for storing data in a posix shared memory block... [...] Hello Dan, that is certainly possible, you would just combine serialize and call-with-output-string to obtain data you can copy into a shared buffer and call-with-input-string plus

Re: [Chicken-users] A couple of questions

2013-05-11 Thread Dan Leslie
Bare in mind that both lush and fluxus are FOSS, both GPL, so if you're planning on using it in a game engine that you'll be monetizing be certain that you're abiding by their licenses. Likely this means distributing full source. If that's not desirable to you, might I suggest the SDL egg

Re: [Chicken-users] Best way to share memory between C and Chicken

2013-05-06 Thread Dan Leslie
*cringe* This will certainly expose what is and is not thread-safe within Chicken. I've worked with a /team/ in implementing such behaviour in the Unreal engine, albeit a frankenengine of sorts, and with three dedicated programmers the endeavour required about a month. But we had the benefit

Re: [Chicken-users] Best way to share memory between C and Chicken

2013-05-05 Thread Dan Leslie
I'll probably write the wiki page while taking the bus to work next week, but for now I'm unaware of any issues and have a working example. There's a test.scm file in the repo that gives a quick rundown on how to use a (non-shared) semaphore. That is to say, if you're using fork() and only

Re: [Chicken-users] Best way to share memory between C and Chicken

2013-05-04 Thread Dan Leslie
With semaphores and shared memory you can basically emulate the behaviour you would expect from native threads. Though I'm not certain about how comparable it is in performance, I understand it to be quite zippy. Ie, shm_open will give you a file descriptor, which you can then treat as a

Re: [Chicken-users] Best way to share memory between C and Chicken

2013-05-03 Thread Dan Leslie
If it's heterogeneous data I tend to use blobs with helper functions to cast segments to records without undertaking a copy. https://wiki.call-cc.org/man/4/Unit%20library#blobs If it's homogenous data then the srfi-4 unit provides all sorts of vectors that you can use.

Re: [Chicken-users] Best way to share memory between C and Chicken

2013-05-03 Thread Dan Leslie
I was just poking through posix, posix-shm, posix-utils, and posix-extras and it seems that none of them implement semaphores! Am I missing something, or is this actually the case? -Dan On 5/3/2013 3:26 PM, Ivan Raikov wrote: Hello, I really strongly advise _against_ using SRFI-4 vectors

Re: [Chicken-users] Best way to share memory between C and Chicken

2013-05-03 Thread Dan Leslie
, 2013 7:59 AM, Dan Leslie d...@ironoxide.ca mailto:d...@ironoxide.ca wrote: I was just poking through posix, posix-shm, posix-utils, and posix-extras and it seems that none of them implement semaphores! Am I missing something, or is this actually the case? -Dan On 5/3/2013

Re: [Chicken-users] new egg: glm

2013-04-15 Thread Dan Leslie
Wild! I've looked at binding GLM a few times but shied away from the wall of templates. Your solution is a rather elegant hack, IMHO, leaving little to the clients of your bindings to fuss about. What's the license? -Dan ___ Chicken-users mailing

Re: [Chicken-users] egg documentation with subpages

2013-04-15 Thread Dan Leslie
Nice! I didn't realize chicken-doc-admin was even a thing, and this ability should make updating docs much easier to do. When next I get around to updating the allegro egg from 5.06 to 5.09 and fixing the library discovery bug I'll see about also switching over to using this to manage the

Re: [Chicken-users] Chicken Scheme Doc

2013-03-04 Thread Dan Leslie
I recommend you check out the following eggs: https://wiki.call-cc.org/eggref/4/inline https://wiki.call-cc.org/eggref/4/bind https://wiki.call-cc.org/eggref/4/foreigners A combination of the following docs will help: https://wiki.call-cc.org/man/4/Accessing%20external%20objects

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread Dan Leslie
I've proposed a new type of import specifier to go with prefix, namely drop-prefix. Rather than prefixing all names, this removes the prefix from any names that have it. This would be a Good Thing to add to Chicken; Chibi already has it, and it is part of a proposal for R7RS-large. That

Re: [Chicken-users] New string manipulation module

2013-02-21 Thread Dan Leslie
Of course it would, and the Perl substitute command would be more general still. For that matter, you could allow an arbitrary Scheme procedure to be provided. But drop-prefix is dead simple, has precedent, and is easy to understand and use. Why not have both? -Dan

Re: [Chicken-users] New string manipulation module

2013-02-20 Thread Dan Leslie
Nice work, contributions are greatly appreciated. :) Since you're asking for constructive feedback, two things come to mind: It's a matter of taste, but IMHO it's schemier that /descriptive-variable/ is preferable to /desc-var/, so in your case /s-foo/ could easily be /string-foo/. However, I