Re: [Chicken-users] need help with chicken-install
Hello Jörg, On Tue, 03 Nov 2015 12:40:15 +0100 "Jörg F. Wittenberger"wrote: > Following the instructions on http://wiki.call-cc.org/releasing-your-egg > I posted two release-info files. But those fail to work with > chicken-install. > > Unfortunately the error message does not tell me much. And the files > look pretty much as in the examples given at the wiki page above. > > What am I doing wrong? As far as I can see, the only missing part is http://wiki.call-cc.org/releasing-your-egg#publishing-your-egg Your egg would have to be added to an index that we call "egg-locations" (a file in Subversion). Do you want me to do that? Please, see some comments below. > URL: > http://askemos.org/chicken-eggs/llrb-syntax.release-info > > Content: > (uri targz > "http://ball.askemos.org/Aad0f198cd7fcfc96ea59bcbeec340556/{egg-name}/{egg-name}-{egg-release}.tar.gz;) > (release "0.1") Is the http://ball.askemos.org/Aad0f198cd7fcfc96ea59bcbeec340556/ URI "constant"? I mean, will that string that looks like a hash be the same for all egg releases? > URL: > http://askemos.org/chicken-eggs/llrb-tree.release-info > > Content: > (uri targz > "http://askemos.org/chicken-eggs/{egg-name}/{egg-name}-{egg-release}.tar.gz;) > (release "0.2") > (release "0.1") > > Test: > $ chicken-install -n -l > http://ball.askemos.org/Aad0f198cd7fcfc96ea59bcbeec340556/llrb-syntax.release-info > llrb-syntax That's not supported by chicken-install. chicken-install is only able to talk to a henrietta server (http://wiki.call-cc.org/egg/henrietta). The program which handles .release-info files is actually henrietta-cache (http://wiki.call-cc.org/eggref/4/henrietta-cache), which is given the egg-locations file as argument, and generates/updates the directory that the henrietta server uses. > retrieving ... > connecting to host "ball.askemos.org", port 80 ... > requesting > "/Aad0f198cd7fcfc96ea59bcbeec340556/llrb-syntax.release-info?name=llrb-syntax=default" > ... > reading response ... > HTTP/1.1 200 OK > Vary: Accept > Connection: close > Date: Tue, 03 Nov 2015 11:55:40.000 +0100 > Server: Askemos/BALL 0.9.5 login.softeyes.net > Content-Length: 133 > Content-Type: text/plain > Expires: Fri, 28 Oct 2016 11:55:40 +0100 > reading files ... > > > Error: unrecognized file-information - possibly corrupt transmission: > "(uri targz > \"http://ball.askemos.org/Aad0f198cd7fcfc96ea59bcbeec340556/{egg-nam... > > ___ > Chicken-users mailing list > Chicken-users@nongnu.org > https://lists.nongnu.org/mailman/listinfo/chicken-users Best wishes. Mario -- http://parenteses.org/mario ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] need help with chicken-install
Am 03.11.2015 um 13:12 schrieb Mario Domenech Goulart: > Hello Jörg, > > On Tue, 03 Nov 2015 12:40:15 +0100 "Jörg F. Wittenberger" >wrote: > >> Following the instructions on http://wiki.call-cc.org/releasing-your-egg >> I posted two release-info files. But those fail to work with >> chicken-install. >> >> Unfortunately the error message does not tell me much. And the files >> look pretty much as in the examples given at the wiki page above. >> >> What am I doing wrong? > > As far as I can see, the only missing part is > http://wiki.call-cc.org/releasing-your-egg#publishing-your-egg > > Your egg would have to be added to an index that we call "egg-locations" > (a file in Subversion). Do you want me to do that? OK, so please do so. Wait, see comments below. > Please, see some comments below. > >> URL: >> http://askemos.org/chicken-eggs/llrb-syntax.release-info >> >> Content: >> (uri targz >> "http://ball.askemos.org/Aad0f198cd7fcfc96ea59bcbeec340556/{egg-name}/{egg-name}-{egg-release}.tar.gz;) >> (release "0.1") > > Is the http://ball.askemos.org/Aad0f198cd7fcfc96ea59bcbeec340556/ URI > "constant"? I mean, will that string that looks like a hash be the same > for all egg releases? This Aad..56 is a hash. This hash is the identifier of the agent (as in http://ball.askemos.org/?_v=search&_id=3749 ) which publishes the files. http://askemos.org/chicken-eggs/ is just another name the same object, however only valid withing the virtual host "askemos.org", while the hash is always valid (i.e. also at ball.askemos.org, which is actually the better location to use, since ball.askemos.org where the code is). So the preferred URL's should be: http://ball.askemos.org/Aad0f198cd7fcfc96ea59bcbeec340556/llrb-syntax.release-info and http://ball.askemos.org/Aad0f198cd7fcfc96ea59bcbeec340556/llrb-tree.release-info >> Test: >> $ chicken-install -n -l >> http://ball.askemos.org/Aad0f198cd7fcfc96ea59bcbeec340556/llrb-syntax.release-info >> llrb-syntax > > That's not supported by chicken-install. I see. Thanks. One more question: am I correct to understand that documentation should go best to http://wiki.call-cc.org/eggref/4/{egg-name} ? Thanks /Jörg ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] need help with chicken-install
Hi, Following the instructions on http://wiki.call-cc.org/releasing-your-egg I posted two release-info files. But those fail to work with chicken-install. Unfortunately the error message does not tell me much. And the files look pretty much as in the examples given at the wiki page above. What am I doing wrong? Thank you so much. /Jörg Details: URL: http://askemos.org/chicken-eggs/llrb-syntax.release-info Content: (uri targz "http://ball.askemos.org/Aad0f198cd7fcfc96ea59bcbeec340556/{egg-name}/{egg-name}-{egg-release}.tar.gz;) (release "0.1") URL: http://askemos.org/chicken-eggs/llrb-tree.release-info Content: (uri targz "http://askemos.org/chicken-eggs/{egg-name}/{egg-name}-{egg-release}.tar.gz;) (release "0.2") (release "0.1") Test: $ chicken-install -n -l http://ball.askemos.org/Aad0f198cd7fcfc96ea59bcbeec340556/llrb-syntax.release-info llrb-syntax retrieving ... connecting to host "ball.askemos.org", port 80 ... requesting "/Aad0f198cd7fcfc96ea59bcbeec340556/llrb-syntax.release-info?name=llrb-syntax=default" ... reading response ... HTTP/1.1 200 OK Vary: Accept Connection: close Date: Tue, 03 Nov 2015 11:55:40.000 +0100 Server: Askemos/BALL 0.9.5 login.softeyes.net Content-Length: 133 Content-Type: text/plain Expires: Fri, 28 Oct 2016 11:55:40 +0100 reading files ... Error: unrecognized file-information - possibly corrupt transmission: "(uri targz \"http://ball.askemos.org/Aad0f198cd7fcfc96ea59bcbeec340556/{egg-nam... ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] one more egg - need advice how wrt. exports
Here is one more egg: http://ball.askemos.org/Aad0f198cd7fcfc96ea59bcbeec340556/srfi-101.release-info This simply slaps a module/egg around srfi-101 "Purely Functional Random-Access Pairs and Lists". However I'm not yet confident that the way I'm handling exports is the right thing to do. 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? Right now the egg contains two modules "srfi-101-ra" and "srfi-101". The former exports all identifiers with the "ra:" prefix. The latter is only there to strip the prefix. But if one simply does "(use srfi-101)" this behaves confusing. It's a bit hard to make sure "car", "map" etc. are what you expect when mixing srfi-101 lists and native lists. Should I rather not export anything from the "srfi-101" module and require the user to import some (to be written) module? Or is there a better(TM) way? Otherwise it may be ready to be added to the eggs listing too. Thanks /Jörg ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] one more egg - need advice how wrt. exports
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 that's what you're after. It'd be a nice feature to have at some point, not least because the R7RS mandates it. Evan ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] one more egg - need advice how wrt. exports
"Jörg F. Wittenberger" scripsit: > 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? That's a limitation of Chicken that I hope will eventually be lifted. In the meantime, you have to import the conflicting names with renaming, .- In the meantime, you can make two modules, one that holds the code and another that just plays games with imports and exports. > Right now the egg contains two modules "srfi-101-ra" and "srfi-101". > The former exports all identifiers with the "ra:" prefix. The latter is > only there to strip the prefix. > > But if one simply does "(use srfi-101)" this behaves confusing. It's a > bit hard to make sure "car", "map" etc. are what you expect when mixing > srfi-101 lists and native lists. > > Should I rather not export anything from the "srfi-101" module and > require the user to import some (to be written) module? Or is there a > better(TM) way? > > Otherwise it may be ready to be added to the eggs listing too. > > Thanks > > /Jörg > > ___ > Chicken-users mailing list > Chicken-users@nongnu.org > https://lists.nongnu.org/mailman/listinfo/chicken-users -- John Cowan http://www.ccil.org/~cowanco...@ccil.org "But I am the real Strider, fortunately," he said, looking down at them with his face softened by a sudden smile. "I am Aragorn son of Arathorn, and if by life or death I can save you, I will." ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] one more egg - need advice how wrt. exports
"Jörg F. Wittenberger" scripsit: > 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? That's a Chicken limitation I hope will one day be lifted. I'd just go with fixing the code so that it uses rcar, rcdr, rcons etc. I'm going to propose this library for R7RS-large after doing this transformation on it. I'm also going to propose a "prefix-drop" type of import that removes, rather than adds, a prefix; this lets you do flonum arithmetic instead of generic arithmetic by dropping the "fl" prefix from flonum-specific routines. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Fundamental thinking is ha-ard. Let's go ideology-shopping. --Philosopher Barbie ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users