Re: chicken and socks5

2021-02-26 Thread Christian Kellermann
* Александр  [210121 15:33]:
>Is there any egg which provides socks5 for chicken?

I have written a minimal binding to get a Tor socket with chicken,
as part of a gopher client. You can grab it from here:

$ git clone git://vernunftzentrum.de/holymoly.git

The interesting file in there is the proxy.scm file.  This relies
on the bitstring egg being installed so you might want to do this
first.

I am choosing a proxy here:

(define proxy
  (and-let*
((proxy-vals (or (get-environment-variable "SOCKS_PROXY")
 "localhost:9050"))
 (conf
  (if (not (string-null? proxy-vals))
 (string-split proxy-vals ":")
 #f)) ;; no proxy configured, so abort here
 (proxy-host (car conf))
 (proxy-port (string->number (cadr conf
(make-parameter (cons proxy-host proxy-port

and further on I use this in:

(let-values (((i o _) (if proxy
   (connect/socksv5 (car (proxy)) (cdr (proxy)) 
server port)
   (receive (i o) (tcp-connect server port) (values 
i o #f)
.

There is virtually no error handling happening and other control
mechanisms are missing. I am showing this in the hope that it may
be helpful.

All the best,

Christian


-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease. Also encrypt mails to me:
gpg key 0x068757350D0328634B833B65C537678F6BC627B5




Re: [Chicken-users] I'm trying to use the cairo egg with the sdl2 egg but not making much progress. An

2019-01-29 Thread Christian Kellermann
* Matt Welland  [190129 05:44]:
> With this I was able to get a sample page up. Thanks!
> 
> If Christian Kellermann, owner of cairo, sees this and would like to
> add an sdl2 demo to the cairo egg please let me know.

It seems like I am the owner now :)

Sure, why not, send it this way!

Thank you Matt!

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Happy Christmas!

2018-12-29 Thread Christian Kellermann
* felix.winkelm...@bevuta.com  [181227 00:48]:
> 
> I wish all CHICKEN -users, -hackers,- janitors, -meisters, -lovers and -haters
> a very happy christmas. Take care of yourself and keep your parentheses
> in shape.

The same to you all!

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Vapor Book

2018-12-24 Thread Christian Kellermann
* Paul Sika  [181211 21:58]:
> Hello all,
> 
> I stumbled upon the Vapor Book page
> https://wiki.call-cc.org/vaporbook
> 
> It looks like a great idea.
> what is the status ? anybody working on it ?

I did some writing a couple of years ago but it's rough, unfinished
and incoherent.  Find the thing here: https://bitbucket.org/ckeen/humble

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] list of more than 2 elements is pair?

2018-12-10 Thread Christian Kellermann
* Paul Sika  [181210 13:27]:
> hi Thomas,
> thank you very much. it is indeed clear from your explanation. it is about
> the cons cells.
> 
> But i must say that at the back of the mind it feels like it should not
> satisfy pair? because there are 3 elements in the list.

Well, it satisfies pair? since the first cell *is* a pair. The cdr
of the pair just points to another pair...

pair? makes a nice check for recursive procedures as the empty list
is not a pair: (pair? '()) -> #f

This avoids checking for list? and null? 


-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Confused by modules

2018-08-15 Thread Christian Kellermann
Hi Mark!

* Mark Carter  [180815 12:11]:
> Chicken scheme has modules, extensions, units, eggs, etc., and I'm confused
> as to how it all works.

Oh yes, we promise that it will get easier in CHICKEN 5!

> I have written a module mcutils.scm, containing:
> 
> 
> (module
>  mcutils
>  (export define-syntax-rule displayln
>      file->lines hello-utils until)
>  (import chicken extras scheme)

You need to (use extras).
Import in CHICKEN 4 only extends the namespace but does not do any
code loading.  That's what use is for.

Units are traditional compiler units, better forget this term now.
Extensions are packaged modules and there may be more than one
module in an extension. That's what we call 'eggs'.

> I must admit, I'm a bit baffled about what distinguishes
> include/import/use/require-extension and when to use what under which
> circumstances.

use and require-extension are the same. Import will expand the
namespace, which is needed for syntax modules like 'chicken' or
'scheme'.  Include works like a C #include as it textually inserts
the mentioned file.

Does this help?

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Porting eggs to Chicken 5

2018-08-14 Thread Christian Kellermann
* Sven Hartrumpf  [180814 07:56]:
> Hi.
> 
> I am trying to port some of my code from Chicken 4 to 5.
> Is there a small guide how to port an egg from 4 to 5?
> Is there a wish list or popularity list for eggs
> to be ported?

There is the wiki page at
https://wiki.call-cc.org/porting-c4-to-c5

We will handle this just like the shift from 3->4. Port what you
need, the rest is abandonware anyway until someone asks for it...

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


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

2018-08-11 Thread Christian Kellermann
* Claude Marinier  [180811 23:47]:
> On Sat, 11 Aug 2018 at 17:33, Peter Bex  wrote:
> 
> > On Sat, Aug 11, 2018 at 05:19:40PM -0400, Claude Marinier wrote:
> > > claude@GuloGulo:~/Programming/scheme$ chicken-install format
> >
> ...
> 
> > The format egg has not yet been ported to CHICKEN 5, so that's why
> > it cannot be installed.
> >
> 
> Hi Peter,
> That explains a lot. I see my favourite egg is also not ported: linenoise.
> I will wait.

I have just ported linenoise to chicken 5. It should be available
via chicken-install soonish.  Can you give it a try?

Thanks,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


signature.asc
Description: PGP signature
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] srfi-123 egg - generic accessor/modifier

2018-05-17 Thread Christian Kellermann
Hi!

* Diego  [180516 20:29]:

> I ported srfi-123 to chicken scheme a while ago, but I never
> actually requested it be added to egg-location. Would be nice to
> make it available to others, if it seems ok to everyone.

Sure, we would need a url to the repo though.

Thanks!

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Microcontroller schemes

2017-11-09 Thread Christian Kellermann
* Norman Gray  [171109 21:08]:
> 
> Greetings.
> 
> This is a slightly tangential request.
> 
> I have a microcontroller project upcoming which would potentially benefit
> from a bit of DSL magic which, of course, I'd like to do in a scheme.
> 
> Chicken, because it compiles to C, would probably be my best bet in terms of
> 'big' schemes, but I imagine that getting it to work on a microcontroller
> would be infeasible (that's right, isn't it?).
> 
> Given this community's probable range of interests, however, can anyone
> point me in a useful direction?  I'd be most interested in systems which
> could run on one of the bigger Arduinos, but I think I could shift
> microcontrollers if the language were right.
> 
> I've so far found a few interesting resources, but some of them tend to have
> a summer-project look.
> 
>   * There's a nice list of small lisps/schemes at [1], which has a couple of
> promising pointers, but it's a rather old page.
>   * It mentions TinyScheme[2], which looks quite close, but seems not to
> have had much activity recently.
>   * Armpit Scheme[3] seems to be targeting just the thing, but also has a
> left-behind look.
>   * There's a rather interesting list of MCU languages at [4], but, again,
> this is quite an old page, and some of those descriptions look very much
> like summer projects.
> 
> So, has anyone on this list explored into that area of the computing forest?


There's also http://www.suchocki.co.uk/microscheme/

But most of these have severe constraints in the language making
them more like a C in parenthesis. Maybe you are better off using
Forth on a microcontroller for a similar explorative REPL approach.

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] How to search UTF-8 multibyte characters with regex?

2017-11-09 Thread Christian Kellermann
* Chunyang Xu  [171109 05:42]:
> Hello list,
> 
> I'm new to Chicken Scheme. I need to check if a string contains some
> multibyte characters. In Emacs Lisp, I use:
> 
> (string-match "[??]" "??")
>  => nil
> 
> (string-match "[??]" "")
>  => 2
> 
> and it works fine, however, the following Chicken code doesn't:
> 
> (irregex-search "[??]" "??")
>  => #
> 
> I expect it to return #f since "??" doesn't contain "???" or "???".
> 
> Any tips?

Did you load the utf8 egg?

# chicken-install utf8

Then in your code (use utf8).

http://api.call-cc.org/doc/utf8

This includes string-match that is unicode aware.

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Include path when compiling an Egg.

2017-10-13 Thread Christian Kellermann
* Peter Bex  [171013 21:21]:
> On Fri, Oct 13, 2017 at 01:26:46PM +1000, David Ireland wrote:
> > Hi there,
> > 
> > This might be a trivial, but  several  Eggs (including mine) won't compile
> > on BSD based OS's. It seems include flags for external libraries aren't
> > being set when compiling the final C code.
> 
> Hi David,
> 
> I've used BSD in the past, and building an egg to look in the correct
> location on NetBSD was a matter of calling chicken-install with
> CSC_OPTIONS in the environment to set the C options, like
> 
> CSC_OPTIONS='-C -I/usr/include/blabla' chicken-install eggname

Yeah, sorry this is pretty inconsistent. There are a couple of eggs
that will add /usr/local as a prefix for the linker and preprocessor.
However adding  the CSC_OPTIONS yourself is the best way.

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Printing Problem

2017-07-14 Thread Christian Kellermann
Hi Daniel!

* Daniel I Hong  [170714 20:47]:
> I just recently began using Chicken, and I ran into a problem
> when trying to write something to a file. Is there any function
> identical to 'write' from from the 'extras' unit, except it prints
> literal newlines (like how 'display' prints newlines) instead of
> '\n'? Or is there an easy way around this? Any help would be much
> appreciated. Thanks!

I am not sure whether I understand the problem at hand correctly.

(with-output-to-file "foo"
  (lambda ()
(print "Hello World!")))

Using (display "foo) (newline) has the same effect. Is that what
you are looking for?

Kind regards!

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Newbie alert [subscription test]

2017-01-12 Thread Christian Kellermann
Welcome to Chicken-Users Tim!

* Tim Johnson  [170111 22:32]:
> Any topics I might pose or questions that I might ask are likely to
> be of a relatively simple nature.
>
> My general inquiry is : Does anyone on this list recommend a more
> suitable venue for a newbie such as myself?

No, just ask here! We are happy to help with any question if we can.
Also from experience, every new user will step on a new bug noone else
has seen before, so lowering the bar to get in touch is important to
us!

Have fun with CHICKEN!

Christian


--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Any code coverage tools for Chicken code?

2016-11-20 Thread Christian Kellermann
* Cecil McGregor  [161121 01:57]:
> Any code coverage tools for Chicken Scheme?
> Almost any output format is acceptable.
>
> After writing lots of unit tests for the code, I now
> want to ensure that the tests have executed
> all the code.
>
> Searching the web and these mailing lists, I cannot
> find any such tool.
>
> (After solid test-driven development in unit-tests,
> profiling and code coverage in C++, python and
> nodeJS, I am a firm believer in this methodology.
> Perhaps after I learn scheme better, I could
> write an egg for this.)

At the moment there's no such thing for this in CHICKEN. We do have an
instrumentation for profiling in place though so you might hack this
to get the code path out of the runtime. Alternatively you might print
the call trace (which is not a call stack!) after each run. Depending
on how the code is written there may be information missing (tight
loops scrolling out interesting information for example).

YMMV

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Compiling eggs to .c

2016-10-25 Thread Christian Kellermann
* Norman Gray  [161025 20:42]:
>
> With 'chicken-install -n' I appear to have the required .c files ...
> somewhere, but the only way of finding where they are appears to be reading
> the chicken-install chatter to find the location of the temp directory.  I
> was wondering if there was a more automatable way.

You could retrieve the dir yourself first with chicken-install -r and
then cd into it, run chicken-install -n (without addifitional
arguments). But of course you would need to track dependencies
manually.

>
> >For my projects I have manually unrolled the compilation
> >stuff into a shell script. Yes it is tedious and sucks but it
> >works.
>
> I was really hoping to avoid that, partly because I'm not confident I'd get
> all the build invocations right for the various extensions, so I'd never
> really know if subsequent problems were because of that or not.  But the
> trial-and-error might be quicker than what I'm doing just now.

I know that feeling...

Cheers,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Compiling eggs to .c

2016-10-25 Thread Christian Kellermann
* Norman Gray  [161025 12:28]:
>
> Greetings.
>
> I'm (still) trying to assemble a .c version of a simple but non-trivial
> Chicken program, for subsequent bundling and distribution.  I'm having
> difficulties.
>
> I've managed to assemble a set of dependencies for the various eggs
> required.  The first half-dozen of these download and build successfully,
> but I can't work out how to built the .c version of an egg.
>
> For some extensions, I can do:
>
> % /Data/tools/chicken-4.11.0/bin/chicken-install -r uri-match
> >uri-match.log
> % m=uri-match; "/Data/tools/chicken-4.11.0/bin/csc" -embedded -t
> -optimize-level 3 -emit-all-import-libraries -unit $m -include-path $m
> -output-file uri-match.c $m/$m.scm
>
> But for slightly more complicated .setup files (and uri-match.setup is an
> example, with its test of (chicken-version)), this doesn't work, because csc
> doesn't read the .setup file, so the above ends up calling csc in the wrong
> way.
>
> It looks like
>
> % chicken-install -n uri-match
>
> should work, because that retains the intermediate files -- including the .c
> files -- in the temporary (download) directory.  But (a) the only way I can
> see of finding what that temporary directory is, is by scanning the output
> chatter from chicken-install, which obviously isn't robust in a Makefile;
> and (b) scavenging the two .c files from this directory (namely
> uri-match{,.import}.c) seems a slightly ad-hoc/hacky way of obtaining them,
> which suggests I'm Doing It Wrong.
>
> I can't see any way of specifying a temporary directory in
> chicken-install.scm.
>
> The Deployment page refers to 'Using the compiler' for guidance on this
> route, but that page doesn't appear to cover this case.
>
> What am I missing?

The -k option should keep intermediate files, you can pass this with
CSC_OPTIONS. For my projects I have manually unrolled the compilation
stuff into a shell script. Yes it is tedious and sucks but it
works. Also for CHICKEN 5 the new build system will make things
easier...

HTH,

Christian


--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


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

2016-10-16 Thread Christian Kellermann
* Josh Barrett  [161016 21:57]:
> I really like modules. I tend to use several per project, if not one per
> file. However, when it comes time to compile an executable, I'd rather not
> have 50 random .so files cluttering up the place. I've tried using
> compilation units (which seems to be the endorsed method of compiling
> multiple files together), but I can't get them to work with modules.

Those two concepts don't contradict each other, you can use both.

Can you show us a simple example of your use case that does not work?

Kind regards,

Christian


--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] CHICKEN Meetup updates

2016-09-21 Thread Christian Kellermann
Hi Chickens!

Just a small update mail on the upcomming meeting in Nuremberg:

* The venue will be open on Friday 9 o'clock instead of two in the
  afternoon. Early birds will have the opportunity to experience the
  scrambling setup at the venue and have a nice hacking session.

* The early birds will meet on Thursday evening at the "Tasty Leaf"
  http://tasty-leaf.de at 7 o'clock

* On Friday we plan to go to "Palais Schaumburg",
  http://www.palaisschaumburg.de/presse/Palais_Schaumburg_Anfahrt.jpg
  which happens to be just around the corner from the venue

* On Saturday I hope to get a table at the "Orient Express", also just
  around the corner. And some other place afterwards, we will leave
  anote for anyone missing at the venue (and wiki).

For sunday we will make up something as we go.

I will be reachable via mobile or jabber: ck...@bobbel.nsupdate.info

Have a safe trip!

Christian


--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Upcomming Conference

2016-09-06 Thread Christian Kellermann
* Josh Barrett  [160906 22:34]:
> For those of us unable to attend, will these talks be recorded in any way?

I will try to find the necessary equipment for doing so.

I have never done this, so I hope it will work out.

Cheers,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Upcomming Conference

2016-09-02 Thread Christian Kellermann
Hi all!

I have added a first agenda proposal for our meeting. To make planning
easier, I would like you to incidate when you will be arriving and
leaving, i.e. how much place I need to organise for restaurants etc.

Also I am planning on having a sightseeing tour on saturday afternoon,
so we will get some fresh air. The topic has not been confirmed yet as
I don't know whether they will do it in english but that will
hopefully work out.

If you have different ideas on how to spend the time please let me
know, this is just an idea.

You can find it all on the wiki page at
http://wiki.call-cc.org/event/chicken-summer-2016

Please make your edits accordingly.

Cheerio,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Having trouble statically compiling code

2016-09-01 Thread Christian Kellermann
* Peter Bex  [160901 08:46]:
> On Thu, Sep 01, 2016 at 02:03:26AM +0100, stugol wrote:
> >Hi Peter,
> >
> >We're close, but not quite there yet:
> >
> >  Error: (require) cannot load extension: setup-api
> > Call history:
> > intarweb.scm:577: irregex
> > intarweb.scm:612: list
> > intarweb.scm:612: make-parameter
> > intarweb.scm:630: make-parameter
> > intarweb.scm:718: list
> > intarweb.scm:718: make-parameter
> > intarweb.scm:743: list
> > intarweb.scm:743: list
> > intarweb.scm:790: make-parameter
> > intarweb.scm:885: list
> > intarweb.scm:885: make-parameter
> > intarweb.scm:911: irregex
> > intarweb.scm:934: irregex
> > intarweb.scm:967: list
> > intarweb.scm:967: make-parameter
> > setup-helper.scm:12: ##sys#require<--
> >
> >I tried artificially adding 'setup-api' as a dependency to 'intarweb',
> >but it's not a real package and so can't be linked.
>
> It looks like something intarweb depends on is (include)ing setup-helper.
> That egg is a constant source of trouble, especially when people use the
> deprecated way of using it, through (include).  You'd have to grep the
> sources and find the culprit, then report a bug to the respective egg's
> author.
>
> Kon, if you're reading this: It would be nice if setup-helper could
> detect this deprecated usage and simply error.  That would temporarily
> break some eggs, but at least it would help us find the broken ones.
> In the long run, this will save everyone a world of grief (this causes
> issues with cross-compilation, static compilation, deploy mode and
> alternative repository paths in general).

>From my experience, you don't need setup-api at all when building
statically by hand, i.e. not using the setup script at all. Just have
a look at the setup script and compile the stuff you need and ignore
setup-api.

HTH,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Threads, and async

2016-07-21 Thread Christian Kellermann
* Josh Barrett  [160721 02:57]:
> Firstly, are chicken's SRFI-18 "green threads" pre-emptive, or do you have
> to explicitly yield in order for the next scheduled thread to run?

Yes they are preemptive.

> Secondly, does Chicken have any libraries for libev/uv event-based
> programming?

I am not aware of any.

> Thirdly, are there chicken bindings for select/poll?

There's the epoll egg, support for select/poll is part of the posix
unit. CHICKEN's scheduler itself is a poll loop basically.

http://api.call-cc.org/doc/posix#sec:file-select
http://api.call-cc.org/doc/epoll

> No, I don't intend to use these all at once, but they seemed related, so I
> figured I would write one big email instead of three small ones.

No worries!

HTH,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] nested loop over lists

2016-07-14 Thread Christian Kellermann
* Jinsong Liang  [160714 04:26]:
> Hi,
>
> I want to do nested loops over three lists like the following pseudo code:
>
> for i in '(1 2 3)
> for j in '(4 5 6)
> for k in '(7 8 9)
>   //do calculation using i, j, and k. The three lists are not
> related.
> end
> end
> end
>
> What is the best way to do this in Chicken? I can use (for-each ...) or (do
> ...) but it seems neither is straightforward.

Without knowing the purpose of this it's hard to say.  However scheme
is flexible enough to allow an almost verbatim translation using
foof-loop:

(use foof-loop)

(loop ((for i (in-list '(1 2 3
  (loop ((for j (in-list '(4 5 6
  (loop ((for k (in-list '(7 8 9
(print "Magic " i "+" j "+" k " = " (+ i j 
k)

HTH,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] CHICKEN meetup reminder

2016-07-12 Thread Christian Kellermann
Dear CHICKEN-fans,

this is a reminder that the CHICKEN Meetup will take place on

September 23-25th in Nuremberg, Germany

http://wiki.call-cc.org/event/chicken-summer-2016

So arrange your travel today!

It might be helpful if attendees add a table to the wiki when they are
planning to arrive and leave. That would help me a lot finding
appropriate food places.

Thanks!

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] HEADS-UP! Next CHICKEN meetup @ Nuremberg, Germany on the horizon!

2016-05-23 Thread Christian Kellermann
* Christian Kellermann <ck...@pestilenz.org> [160520 12:53]:
> It will take place in Nuremberg, Germany, Europe, Planet Earth.
> The date is to be choosen from the following three:
> * September 23-25th

That's the date with the most votes. So be it.

Hope to see you all there?

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Invitation to a weekend of scheme/lisp hacking

2016-05-23 Thread Christian Kellermann
Dear picolisp readers,

As some of you know I am an active member of the CHICKEN scheme
community. For that I am organising a little "conference" / gathering
of interested scheme and lisp users in Nuremberg, Germany on September
23rd-25th.

As there's plenty of room available I broadened the invitation scope
to all interested schemers and lispers.

So if you want to be able to hack on a picolisp project and discuss
lispy stuff with other people afk you are invited to drop by.

I'd appreciate it if you add yourself to the list of attendees, so I
know how many people to expect. If you like drop me a mail so I can
reach you should there be some changes in plans.

You can read up the details here:

http://wiki.call-cc.org/event/chicken-summer-2016

Hope to see a lot of you there!

Christian


--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] HEADS-UP! Next CHICKEN meetup @ Nuremberg, Germany on the horizon!

2016-05-20 Thread Christian Kellermann
Dear CHICKEN fans!

There will be a next CHICKEN conference comming up!

It will take place in Nuremberg, Germany, Europe, Planet Earth.

The date is to be choosen from the following three:

* July 22-24th
* September 9-11th
* September 23-25th

You can vote for a date here:

https://terminplaner.dfn.de/foodle.php?id=y2di3c2ka3zbepv9

Please vote on the date *now* as I have to confirm it by Monday.
Sorry for being in a rush but the place is heavily used.

We will meet at the "Nachbarschaftshaus Gostenhof"
Adam-Klein-Straße 6
90429 Nürnberg

https://www.nuernberg.de/internet/nh_gostenhof/

See https://www.nuernberg.de/internet/nh_gostenhof/kontakt.html for how to get 
there with public transport.

I will open up a wiki page ASAP including suggestions on where to
stay. Chickenistas that have been to the previous event in Nuremberg
might recall whether they liked their hotel and add suggestions as
well.

The event will start around 16:00 on the Friday and we will leave on
sunday evening (~ 20:00).

The program (*laugh*) for the event will have to be made up either on
the wiki or as we go along.

The area around the venue has lots of nice food places, restaurants,
bars and Biergarten, so we will not starve. The local cafeteria will
provide us with soft drinks and coffee, even food if desired.

Nuremberg is reachable either by train or plane (airport code is NUE).

If you need any further assistance or have any questions don't
hesitate to ask.

I hope I will see you all there!

Kind regards,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Subject: [ANN] CHICKEN 4.11.0 release candidate 2 available

2016-05-01 Thread Christian Kellermann
* Claude Marinier  [160501 01:35]:
> Operating system: FreeBSD 10.3
> Hardware platform: i386
> C Compiler: clang 3.4.1
> Installation works?: yes
> Tests work?: yes
> Installation of eggs works?: yes
>
> Notes
>  - 'chicken-install pastiche' complained about missing sqlite but completed

That's a message from sql-de-lite and it will use its packaged version
if there's none installed system-wide.

Thanks!

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


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

2016-04-14 Thread Christian Kellermann
* Peter Bex  [160404 22:04]:
> Operating system: Windows 7 (64bit) / cygwin
> Hardware platform: x86_64
> C Compiler: 4.9.3
> Installation works?: yes
> Tests work?: yes
> Installation of eggs works?: yes

Cheers,

Christian


--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Compiling the openssl egg on OS X

2016-03-19 Thread Christian Kellermann
* Blake Sweeney  [160316 16:57]:
> On Wed, Mar 16, 2016 at 02:24:23PM +, Norman Gray wrote:
> > I'm having difficulty installing the openssl egg on OS X 10.10.  I'd be
> > surprised if I'm the first person to encounter this problem, but I can't
> > find anything about it in the mail archive.
> >
> > When I attempt to install the egg with 'chicken-install openssl' it fails as
> > shown below.  This will ultimately be because, if I recall correctly, Apple
> > have deprecated OpenSSL in favour of their own crypto framework (I believe
> > there was a long argument about API changes between releases, or something
> > like that).
> >
> > I can of course install openssl elsewhere, and have done so, but looking at
> > the chicken-install --help text, I can't see any way of directing
> > chicken-install to this alternate location (I tried -I /path/to/install,
> > just on the off-chance, but...).  Is there any way of adjusting the paths
> > for the compilation step in chicken-install?
> >
> > I discovered this problem because I managed yesterday to get my application
> > building with modules (thanks to the list!), and the dependency information
> > in that seems to require the openssl egg be present.  Building the same
> > application with only compilation units appears to work fine without openssl
> > installed (it doesn't actually use openssl functionality).
> >
> > Thanks for any pointers or workarounds.
>
> I just ran into this a few weeks ago. I ended up downloading the openssl
> egg and modifying openssl.setup to look like:
>
> (begin
>   (compile
> -I/Users/bsweene/.local/Cellar/openssl/1.0.2f/include 
> -L/Users/bsweene/.local/Cellar/openssl/1.0.2f/lib
>-O2 -d0 -s -j openssl "openssl.scm" -lssl -lcrypto)
>   (compile -O2 -d0 -s openssl.import.scm)
>   (compile
> -I/Users/bsweene/.local/Cellar/openssl/1.0.2f/include 
> -L/Users/bsweene/.local/Cellar/openssl/1.0.2f/lib
>-O2 -d0 -c "openssl.scm" -lssl -lcrypto
>-o openssl-static.o -unit openssl -D static)))
>
> I added the -I/path/to/openssl/include and -L/path/to/openssl/lib to get
> it to install. I install openssl with homebrew if that matters. Seems to
> work for me now.

This can also be accomplished by setting the CSC_OPTIONS variable properly for 
chicken-install:

CSC_OPTIONS="-I/Users/bsweene/.local/Cellar/openssl/1.0.2f/include 
-L/Users/bsweene/.lo\
cal/Cellar/openssl/1.0.2f/lib" chicken-install openssl

without any modifications.

Does that work?

Kind regards,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] How to build from git? Errors on Ubuntu 15.10

2016-02-10 Thread Christian Kellermann
* Matt Welland  [160210 14:06]:
> I have chicken 4.9.0.1 installed, is that recent enough for bootstrapping?
> I'm interested in trying feathers and the new profiling. Are there any
> plans to back port those features to the 4 series?

Please use the latest development snapshot for bootstrapping, that
should work.

Cheers,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Error compiling chicken cygwin x86_64

2016-02-02 Thread Christian Kellermann
* Peter Sommerfeld <li...@rubrica.at> [160202 15:37]:
> Am 02.02.2016 um 15:19 schrieb Christian Kellermann:
> >* Peter Sommerfeld <li...@rubrica.at> [160202 15:07]:
> >>BTW: Are you the maintainer of the cygwin port?
> >
> >Yeah but that's mostly because there hasn't been anyone else :)
> >Please feel free to send any issues with cygwin my way, so I can get
> >it fixed upstream.
>
> No complaints so far, except this one. I think it would be better to
> provide 2 targets, cygwin_x86 and cygwin_x86_64 or something like this.

For CHICKEN? Well that's a philosophical question. The build system
distinguishes between runtime environment (cygwin, BSD, linux, Haiku,
...) and machine architecture. Hence the two make variables.

For cygwin there are two flavours available. The snippet I have posted
is taken from the cygport script that will be used to build both.

Kind regards,

Christian


--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Error compiling chicken cygwin x86_64

2016-02-02 Thread Christian Kellermann
* Peter Sommerfeld <li...@rubrica.at> [160202 12:22]:
> Am 02.02.2016 um 12:14 schrieb Christian Kellermann:
> >Hi!
> >
> >Please note that there is an up to date package available for cygwin.
> >It should work for 32bit and 64bit platforms. Or do you have any
> >special needs building it?
>
> No special needs. I just want to have the same setup and versions on all
> platforms I use: Win10 (32 + 64 bit), SuseTW and DragonflyBSD.
>
> Where can I find the up to date package. Or do I have to use svn?

Click on the package to install when running setup.exe

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Error compiling chicken cygwin x86_64

2016-02-02 Thread Christian Kellermann
* Peter Sommerfeld <li...@rubrica.at> [160202 12:55]:
> Am 02.02.2016 um 12:35 schrieb Christian Kellermann:
> >* Peter Sommerfeld <li...@rubrica.at> [160202 12:22]:
> >>Am 02.02.2016 um 12:14 schrieb Christian Kellermann:
> >>>
> >>>Please note that there is an up to date package available for cygwin.
> >>>It should work for 32bit and 64bit platforms. Or do you have any
> >>>special needs building it?
> >>
> >>No special needs. I just want to have the same setup and versions on all
> >>platforms I use: Win10 (32 + 64 bit), SuseTW and DragonflyBSD.
> >>
> >>Where can I find the up to date package. Or do I have to use svn?
> >
> >Click on the package to install when running setup.exe
> Sorry, seems to be a missunderstanding. The build-in chicken works. But I
> want to *compile* it myself to have the same setup on all platform. So,
> these are probably special needs. This are my intentions:
>
> make PLATFORM=cygwin PREFIX=~/local VARDIR=~/


Ah!

>From my cygport file:

AR=$(arch)
if [ $AR = "i686" ]
then
   MAKEOPTS="PREFIX=/usr PLATFORM=cygwin ARCH=x86"
elif [ $AR = "x86_64" ]
then
  MAKEOPTS="PREFIX=/usr PLATFORM=cygwin ARCH=x86-64 HACKED_APPLY="
else
  ECHO "Unknown Architecture"
fi

That should work. Adjust the PREFIX as needed.

HTH,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Installing on Suse Tumbleweed

2016-01-28 Thread Christian Kellermann
* Peter Sommerfeld  [160128 14:08]:
> Thanks, works!
>
> That should be mentioned in the README file.

You can find the relevant section as
"2.3 Finishing the installation"

Kind regards,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] A question regarding "hidden" eggs

2016-01-18 Thread Christian Kellermann
* Jörg F. Wittenberger  [160116 19:35]:
> Hi,
>
> I feel the need to have some space to stash away temporary glue code.
>

Is this about code you want to be able to chicken-install but noone
else should see it?

> Ideally the current version of it is always empty and not of interest to
> anyone.  As documentation always lags behind, it is empty with high
> probability.  However development is not ideal.

I don't understand this.

> Not listing as in being marked as "(hidden)" in the meta file is
> apparently what I want.

That does not make sense to me, if people can install it but should
not use it, what is it good for?

If it is some code that your published eggs rely on, it will be public
in a way. Listing it in an egg index or hide it then does not make a
lot of a difference to me.

But maybe I misunderstand what you really want to get done.

Cheers,

Christian


--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] ANN: new eggs, pthreads and sqlite3pth

2016-01-18 Thread Christian Kellermann
* Jörg F. Wittenberger  [160118 13:41]:
> OK, if that's the way to go, I'll mimic the pattern from sql-de-lite.
> I just though this would be too much overhead.  I was concerned to put
> useless load on the test infrastructure.

Well at the moment it does not even install, so the test itself is useless(?)

Kind regards,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] ANN: new eggs, pthreads and sqlite3pth

2016-01-18 Thread Christian Kellermann
* Jörg F. Wittenberger  [160118 13:31]:
> Am 17.01.2016 um 17:06 schrieb Mario Domenech Goulart:
> > Hello Jörg,
>
> > sqlite3pth's installation fails, so I haven't added it yet:
>
> Yeah.  That's a known documented limitation.
> https://github.com/0-8-15/sqlite3pth
>
> """(Sorry for this. For this. I can not rely on system installed sqlite
> but must be sure to have the exact version. Otherwise the hashes of the
> resulting database content will not match and replication break. Patches
> for this are very welcome.)"""
>
> I'd greatly welcome suggestions how to overcome this.  What can be done
> in the .setup file?  Or should I include a full build of sqlite3 just to
> make the automatic installation work?  That looks like an overkill to me.
>
> So far I settled with the idea that this egg would require a manual
> download and a symlink to a sqlite3 build (as documented).
>
> As I know there is at least some interest to try this out, maybe you
> could add it anyway.  Well figure out how to best make it install out of
> the box then.

If you rely on a specific version why not bundle it with the egg and
build it? The sql-de-lite egg does so, when no system installation can
be found.

Kind regards,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


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

2016-01-14 Thread Christian Kellermann
* Jörg F. Wittenberger  [160114 11:30]:
> Tried that too:  on AMD64 (Debian) chicken 4.10.1 from tarball does NOT
> give any difference.
>
> But even if it may be an ARM related problem: how is it even possible??!

So next let's isolate whether it's the architecture (ARM
vs. world)type or the word size (32bit vs 64bit). Can anyone with a
32bit system try that please?

Thanks,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


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

2016-01-13 Thread Christian Kellermann
* Christian Kellermann <ck...@pestilenz.org> [160113 21:44]:
> * Jörg F. Wittenberger <joerg.wittenber...@softeyes.net> [160113 12:38]:
> > yesterday I found that simply having a (use mailbox) in some code had a
> > huge impact (more than a factor of 3) at the performance of the
> > resulting executable.  Without using the mailbox stuff at all.
> >
> > Meanwhile I figured out that this has nothing at all to do with the
> > mailbox egg.  But _all_ with the use of srfi-1.
>
> Hm which OS and architecture are you running this on? On my OpenBSD
> amd64 system the two versions do fluctuate but are indistinguishable
> when run a couple hundred times.
>
> I have used CHICKEN Version 4.10.1 (rev f36c19c) and compiled with
> default options.

Also -O5 does not make any difference.

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


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

2016-01-13 Thread Christian Kellermann
* Jörg F. Wittenberger  [160113 12:38]:
> yesterday I found that simply having a (use mailbox) in some code had a
> huge impact (more than a factor of 3) at the performance of the
> resulting executable.  Without using the mailbox stuff at all.
>
> Meanwhile I figured out that this has nothing at all to do with the
> mailbox egg.  But _all_ with the use of srfi-1.

Hm which OS and architecture are you running this on? On my OpenBSD
amd64 system the two versions do fluctuate but are indistinguishable
when run a couple hundred times.

I have used CHICKEN Version 4.10.1 (rev f36c19c) and compiled with
default options.

Cheers,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Eggs metafile needs another property - doesn't it?

2016-01-05 Thread Christian Kellermann
* Jörg F. Wittenberger  [160105 21:18]:
> Argh, wait...
>
> Am 05.01.2016 um 21:09 schrieb Jörg F. Wittenberger:
> > Hi all,
> >
> > I need to specify a certain - not yet available - version of chicken
> > itself as the minimum requirement for an egg to work for real.
>
> as I sent the message I re-read
> http://wiki.call-cc.org/Metafile%20reference
> once more and stumbled upon what I've been looking for:
>
> (platform ID ...)
>
> using `chicken-4.11` should do the trick, shouldn't it?

The documentation may be misleading. A couple of eggs use the depends clause:

big-chicken/trunk/big-chicken.meta: (depends (chicken "4.2.6") regex)
gazette-tools/trunk/gazette-tools.meta: (depends big-chicken matchable 
miscmacros htmlprag srfi-19 http-client html-parser sxpath regex ssax)
heap-o-rama/trunk/heap-o-rama.meta: (depends (chicken "4.5.7"))
henrietta/trunk/henrietta.meta: (depends (chicken "4.5.8") regex)
operations/trunk/operations.meta: (depends (chicken "4.0.4"))
sequences/trunk/sequences.meta: (depends fast-generic (chicken "4.6.3") srfi-42)
sp/trunk/sp.meta: (depends big-chicken honu matchable miscmacros typed-records)

HTH,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Help with columnar formatting in the fmt egg

2015-11-20 Thread Christian Kellermann
Hi!

I would like to ask some help for finding the right fmt expression to
print entries formatted as like this:

2015-11-20 foo bar baz... Some·Label   Some·Other·Label
 -123.23-100.00
  Yet·Another·Label
 -23.23

The hard part is obviously the last columns. Both are fed in a list of
entries consisting of (label amount).  All positive amounts should be
printed in the first column the negative ones in the second.

Note that the labels should be left aligned and the amounts as well.

What I have tried so far are combinations of columnar and tabular but
none of these seem to do the alignment or laying out the column widths
correctly.

Do you know a way to achieve the above?

Kind regards,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Rethrowing an exception

2015-11-13 Thread Christian Kellermann
Hey Mathieu!

* mathieudesroch...@laptop.videotron.ca  
[151113 01:52]:
> Hi all,
>
> I have this piece of code I use to ensure any system resource being allocated
> gets released:
>
> ;; invokes a procedure with the guarantee
> ;; the allocated resource will be released
> (define (with-release allocation-procedure procedure release-procedure)
>   (let ((allocated-resource (allocation-procedure)))
> (handle-exceptions
>   exception
>   (begin
> (release-procedure allocated-resource)
> (abort exception))
>   (let ((procedure-result (procedure allocated-resource)))
> (release-procedure allocated-resource)
> procedure-result
>
> Works beautifully, but I seem to be loosing the backtrace from the original
> (abort). Is there anyway I can catch an exception but then let it continue as
> if nothing had ever happened?

The construction of the condition and the handler call will always be
visible, see also "Making continuable exceptions" at
http://gazette.call-cc.org/issues/18.html#omelette-recipes.

Another idea worth trying is to capture the continuation before
calling the procedure in question, then calling that in the condition
handler.

HTH,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Compilation fails

2015-10-07 Thread Christian Kellermann
* Zack Piper  [151007 14:06]:
> Hello! Trying to compile chicken from the git sources, and cannot when
> I run:
>
> $ LD_LIBRARY_PATH=../chicken-4.10.0 make PLATFORM=linux \
>   CHICKEN=../chicken-4.10.0/chicken &> error.log
>
> Errors can be found here: https://gist.github.com/zackp30/7daee9b79b61504179ff
>
> (I sent one previously but the message limit is 400Kb)

Due to an incompatible change in the calling convention you will need
to bootstrap master with the 4.10.1 dev snapshot tarball.

Download it, install it locally and then proceed with that chicken to
build the git master.

HTH,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] [Q] Can I make port on byte array?

2015-10-07 Thread Christian Kellermann
Hey Sungjin Chun!

Sungjin Chun  writes:
> In Common Lisp, I can make a stream on byte array and can write
> values on them, in Scheme, I think the equivalent stuff is port and
> I'd like to write values on byte array using port.
>
> Can anyone help me on finding documents or samples?

The things you may want are srfi-4 vectors:

http://api.call-cc.org/doc/srfi-4

Usually one sets values with set! and vector-ref! or any of the setters:
http://api.call-cc.org/doc/srfi-4#sec:Setters

Maybe you can write up the desired behaviour in CL and we translate it
to scheme?

If you want to read from a port and put the stuff you read from it into
a vector you might want to use read-u8vector or read-u8vector!.

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Doodle on debian noroot on galaxy note.

2015-09-05 Thread Christian Kellermann
* Matt Welland  [150905 06:16]:
> Works great, very responsive, no lag. Set color depth to 24 bit, use native
> resolution and it just works.

Just out of curiousity does the fullscreen option work?

This is cool anyway, thanks for bringing it to my attention!

Cheers,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] ezxdisp, g2 both work great on Android noroot debian .... but iup, doodle, allegro, cairo all do not ...

2015-09-04 Thread Christian Kellermann
* Matt Welland  [150904 08:12]:
> Given it's impressive performance and ease of setup noroot debian seems
> like a great way to enable writing chicken scheme apps that target
> Android(i) (in addition to Linux and Windows). ezxdisp is a bit primitive
> and g2 doesn't seem designed for dynamic graphics but if it is all we've
> got it will do. My question is would anyone be interested in bug reports
> for one of doodle, allegro, or cairo? I'll do my best to help but would
> prefer to focus on just one option.

Yes, for doodle and cairo. If the SDL and cairo libs work on noroot
debian on android both eggs should too.

> (i) I'm not saying this would replace any native android chicken efforts,
> just that it is a low barrier to entry for using Chicken on your android
> device.

Indeed a nice idea. Thanks!

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] I've gots an egg: missing.egg

2015-08-13 Thread Christian Kellermann
* Alexej Magura amagur...@gmail.com [150813 04:16]:
 Is hosting on the chicken-eggs svn repo discouraged against for new eggs?
 If it isn't then I'd like to use the svn repo as a means of managing the
 egg: I use the git repo as an auxiliary/backup/master/more public repo.

You can still use svn if you want. Hosting on distributed VCS has been
added to lower the bar for potential contributers. If you like you can
get SVN access. See http://wiki.call-cc.org/chicken-svn-for-eggs and
especially http://wiki.call-cc.org/eggs%20tutorial for more infos
about laying eggs.

Cheers,

Christian

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] iconv egg patch

2015-08-12 Thread Christian Kellermann
Hugo Arregui hugo.arre...@gmail.com writes:

 Hi,

 The attached small patch get rides of this warning in the iconv egg:

 /usr/include/iconv.h:42:15: note: expected ‘char ** restrict’ but
 argument is of type ‘const char **’

 I tried to contact the author but the email addresses found both in the
 egg and in the wiki are disabled, so perhaps he is here on the list.

I am afraid that the iconv egg is orphaned at the moment. Would you like
to take care of it?

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] CHICKEN 4.10.0 has been released

2015-08-07 Thread Christian Kellermann
* Claude Marinier claudem...@gmail.com [150806 20:15]:

 Note that I did not have this problem with the release candidates.

Could you try with them again and tell me exactly which one worked?
Because there are no differences that touch code between the rc4 and
the 4.10.0 version in git. If there are differences in behaviour for
you this could mean we shipped a rc with broken pregenerated C code
for whatever reason and I'd like to investigate that.

Kind regards,

Christian


--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] CHICKEN 4.10.0 has been released

2015-08-07 Thread Christian Kellermann
Jeremy Steward jer...@thatgeoguy.ca writes:
 Moreover, while I have not tested CHICKEN 4.10 yet, I compiled CHICKEN
 4.9.1 myself on cygwin64 with no error,so it's unlikely any changes
 need to be made on that front.

Note that cygwin comes with a current CHICKEN package :)

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] CHICKEN 4.10.0 has been released

2015-08-07 Thread Christian Kellermann
Claude Marinier claudem...@gmail.com writes:
 Building on rc4 on the same PC with mingw-w64 works without error (also
 without MSYS). Check works as expected as does numbers egg installation.

 I have had problems with MinGW and re-installed a couple of times. I am
 growing less confident in these installations. This is a good time to move
 to mingw-w64; I will try it at home later today.

 Is it useful to dig deeper into the problem with the old MinGW or should
 I just drop it?

If you aren't sure about the configuration you experienced the error in
I think it's better not to waste time and effort on finding out what
went wrong here, unless you yourself are curious.

I think we should recommend using mingw-64 for CHICKEN instead.

Peter, what do you think?

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] [ICC 2015] Reminder for T-Shirts

2015-08-05 Thread Christian Kellermann
Hello!

As I have written before I will be organising another round of CHICKEN
T-Shirt prints. To put that plan into action I need a rough idea on
how many shirts should be made and of course which size will fit you!

So this is your friendly reminder that you need to tell me your shirt
sizes! The laudable andyjpb has been the first and only responder so
far on the wiki page. If your shirt size is a secret please mail me
the wanted size and quantity. The final prize for each shirt depends
on the overall amount.

So there will be a deadline for orders and it's August 18th midnight UTC.

So get up, rip your shirt off and look at the label in the back, maybe
adjust the size and tell me!

The place in the wiki is the shirts section on
http://wiki.call-cc.org/event/intercontinental-chicken-conference-2015

Kind regards,

Christian

P.S.: You may put your shirts back on now, thanks.

--
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Can AFL be meaningfully run against chicken generated binaries?

2015-07-31 Thread Christian Kellermann
Matt Welland mattrwell...@gmail.com writes:

 This tool  was mentioned on the fossil mailing list:
 http://lcamtuf.coredump.cx/afl/

 I'm curious, can it be meaningfully be run against a binary generated
 by chicken? Or would a native scheme variant be needed?

You probably could get interesting results if you seed it with our test
suite. This way bugs have been uncovered in sqlite as well, see
http://lcamtuf.blogspot.com/2015/04/finding-bugs-in-sqlite-easy-way.html

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


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

2015-07-30 Thread Christian Kellermann
Hi!

Operating system: Debian Jessie
Hardware platform: armhf (i.MX53)
C Compiler: 4.9.2
Installation works?: yes 
Tests work?: no, the apply test hangs as with all debian based systems
 and that C compiler
Installation of eggs works?: yes

Cheers,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


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

2015-07-30 Thread Christian Kellermann
Peter Bex pe...@more-magic.net writes:

 Operating system: Debian/Hurd 2015
 Hardware platform: x86 in qemu
 C Compiler: gcc-4.9.2 + debian patches
 Installation works?: yes
 Tests work?: no, the apply hack tests hang and I have aborted them
  after 48 hours
 Installation of eggs works?: yes, tried spiffy, awful

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Homepage design proposal

2015-07-29 Thread Christian Kellermann
Andy Bennett andy...@ashurst.eu.org writes:

 Hi,

 Most modifications were done to chicken.css file, so changes are
 immediately applicable to probably 90% of CHICKEN site (exceptions
 are
 api.call-cc.org [10] and bugs.call-cc.org [11]). To make the page
 responsive to narrow screens (i.e. mobiles) we would need to add
 one
 line of HTML into pages. This line is already inserted in the .html
 files on the

 https://dl.dropboxusercontent.com/u/621606/chicken-web-page/chicken-web-page.tar.gz
 [12] bundle. It contains many .html files and I recommend opening
 CHICKEN Scheme.html first. The menu on this page has some directly
 browsable links (Get started! link at the bottom can also be
 clicked).

 Do you find it useful?

 Wow! These are really cool!

 ...and I like how you've extended from the status quo rather than
 rebuild everything. It makes it very easy to make a decision on and
 then implement quickly.


 Nice work!

I have to add that I really like these. Very clean, non obtrusive and
easy to read with text browsers too.

Thanks!

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] chicken-install on MS Windows 7 with TDM-GCC-32

2015-07-15 Thread Christian Kellermann
Christian Kellermann ck...@pestilenz.org writes:

 As for call-cc.org it's http://code.call-cc.org/cgi-bin/henrietta.cgi

Also note that for this the transport needs to be http...

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] chicken-install on MS Windows 7 with TDM-GCC-32

2015-07-15 Thread Christian Kellermann
Claude Marinier claudem...@gmail.com writes:

 Hi,



 Chicken-install complains about the location.



 chicken-install numbers

 Error: no default location defined - please use `-location' option



 I have been looking for a while (Google) but have not found how to specify
 the location (or rather which location to specify). I tried the following
 but that’s not it.



 chicken-install -location http://code.call-cc.org/svn/chicken-eggs
 numbers


The location is defined in $PREFIX/share/chicken/setup.defaults, does
that exist for you?

As for call-cc.org it's http://code.call-cc.org/cgi-bin/henrietta.cgi

Did you install the rc candidate to a non standard location? Or did you
omit the make install step?

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] callbacks returning twice

2015-06-26 Thread Christian Kellermann
Jörg F. Wittenberger joerg.wittenber...@softeyes.net writes:

 Except that it crashes all the time.  callback returned twice

 So what's the recipe to hit that problem?

Having your C library call callbacks outside of a foreign-safe-lambda
call. This might affect you if said library uses threads and passes on
the function pointer to your scheme callback.

The remedy for this is to use the concurrent-native-callbacks egg
which uses a dispatcher stub written in C.

HTH,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


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

2015-06-25 Thread Christian Kellermann
Evan Hanson ev...@foldling.org writes:

 Thanks Andy, this warning is indeed incorrect. A patch has been
 posted to fix it.

Which has been pushed. Thank you gentlemen!

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


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

2015-06-09 Thread Christian Kellermann
* Kristian Lein-Mathisen kristianl...@gmail.com [150609 11:25]:
 Interesting. I can't fint that tag:

How did you update? Git will only fetch tags from the server if you tell
it to do so, for example git fetch --tags.

The tag interestingly resides on a commit without a branch though, it
sits on 671a5eb3fa2cf29f7e9d7a877e22335fb503934a.

So I guess what happened is that Moritz created a tag, then moved the
commit to some place else (which in essence is creating a new commit
with its own hash). BUT as tags are just bookmarks to commit hashes this
does not automatically adjust the tag.

TL;DR the tag is worthless and needs to be reset by the author.

As a workaround tag eacc846be7cf4026eb8e8f6eaa577082d826da2e as you
proposed, Moritz should do that for the call-cc.org repo.

Sorry,

Christian


-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


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

2015-06-09 Thread Christian Kellermann
Hi Jürgen!

Juergen Lorenz j...@jugilo.de writes:

 Compiler:
 gcc-4.9.2-2

This compiler is known to cause this trouble. If you disable
optimisations for this test, i.e. set -O0 for gcc the problem should go
away.

We still have to narrow it down to a small example we can report to the
gcc developers. I suspect an optimisation step that's missbehaving.

Sorry for your troubles,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Chicken callbacks

2015-06-03 Thread Christian Kellermann
chi chic...@verge.info.tm writes:

 If you use a C library that requires callbacks, like libuv for
 instance, is it possible to write a procedure in chicken that will be
 guaranteed to return, as the C library requires? Like, by avoiding
 thread switching or call/cc or something?

Apart from using define-external as mentioned by Ivan you might
encounter another problem if the callbacks are being called from another
native thread. In this case you will need a different approach and
should be using the concurrent-native-callbacks egg.

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] libsvm

2015-05-18 Thread Christian Kellermann
Daishi Kato dai...@axlight.com writes:

 I haven't been following chicken recently,
 so forgive me if I misunderstand the procedure.

Thanks for your contribution!

Please find information on how to proceed here:

http://wiki.call-cc.org/contribute

In short:

Mail mario a generated password hash or contact the original author of
that egg.

Thanks again!

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
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-28 Thread Christian Kellermann
Matt Gushee m...@gushee.net writes:

 Thanks, Evan. That did the trick!

 Although it's a pretty trivial fix, as a matter of principle I suppose I
 should ask:

 Is it OK if we incorporate this into the chicken-iup distribution?


I don't see any reason why not to.

Cheers,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


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

2015-04-28 Thread Christian Kellermann
Dan Leslie d...@ironoxide.ca writes:

 PS, can anyone explain the comment here:
 https://github.com/dleslie/funky/blob/master/funky.scm#L24

Hm, it does not crash for me when I compile it with a begin there.

I get:

--8---cut here---start-8---
$ csc funky.scm 

Warning: redefinition of imported syntax binding: expand-body

Warning: redefinition of imported syntax binding: expand-body
--8---cut here---end---8---

Which is to be expected. This is with chicken master...

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] do* implementation

2015-04-28 Thread Christian Kellermann
Alexej Magura agm2...@gmail.com writes:
 I thought about writing my own, but I'm a bit rusty with scheme atm
 and I couldn't figure out where /do/ is defined in Chicken's source
 code, so I don't think I'd be able to implement it efficiently.

It's defined in expand.scm:1261 in CHICKEN core, as it's syntax. 

HTH,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
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 Christian Kellermann
* Felix Winkelmann felix.winkelm...@bevuta.com [150407 09:44]:
 This is a terribly written program. It uses 3-element lists as vectors
 (including higher-order vector arithmetic using map) and allocates
 like hell. The compiler can not do much with this code, and it
 produces CPS calls everywhere.

After reading the posts in this thread I wondered how I would have done
it. And to be honest, while my code may not be as bad as this *cough*
one thing that always puzzles me is a way to tell *why* a given program
is slow.

I just had this crazy idea of new tooling that would help the curious
programmer to find the line of code that triggers a lot of allocation,
or find the line of code that causes a lot of GCs.

How about collecting ideas like this and find a way to test these
against real code at the next meetup?

While this might not fend of trolls, this would help the more dedicated
people improve their code for CHICKEN.

Just some thoughts of cause, no real code to show (yet?)...

All the best,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
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 Christian Kellermann
* Felix Winkelmann felix.winkelm...@bevuta.com [150407 10:41]:
 But I'm sick and tired of people throwing badly written code into the
 net and making gross assumptions about implementation performance. The
 possible options, the search-space available is massive and a little
 difference in programming style can make a vast difference in
 performance.
 
 Somehow there seems to be a large number of trolls that use some
 ridiculuous piece of code, run it with a handful of implementations
 (of course using suboptimal optimization options, since they really
 don't know what they're doing) and then generalize their results
 without the slightest bit of sense.

Nowadays anyone who knows how to use a stop watch (or the modern
equivalent time(1)) on some code (sometimes the first they write in a
new language) tends to publish the results as a generalized benchmark.
People have argued like this for ages, it's the all preserving google
cache that shows them all in your face at once if you ask for it. 

For my personal reading habit I will quickly decide not to read an
article/post if it contains benchmark or performance on a topic I am
truly interested in. Unless I still do of course :)

 That is (among a few other reasons) why I don't do much Scheme or Lisp
 programming anymore - thinking about the community, reading all this
 bullshit makes me sick.

comp.lang.lisp/scheme is in ruins for most things. But I would not say
that the 6-7 (regular) abusive posters there define the community.

Driven by countless snobbish books and articles the (passive/)agressive
tone towards others seems to be *part* of the culture.

But I think this is somewhat changeing albeit slowly. This fine
community and its open attitude is one example but I have found guile
people and others equally attitude free (with exceptions on all sides of
course, but most of the active projects strive for a friendly
atmosphere). After all who wants to spend their free time around abusive
assholes?

So don't despair as a compiler once said, it's a nice day outside and
there's always enough bad code left to be laughed at (or deleted)
tomorrow.

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] [panic] invalid encoded numeric literal with gtk

2015-02-18 Thread Christian Kellermann
Hugo Arregui hugo.arre...@gmail.com writes:

 I'm clueless, can be related to the gtk version? I have gtk3 3.14.8-1
 installed.

For me it's:

$ pkg-config --modversion gtk+-3.0
3.14.5

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Help with udp6 / socket

2015-02-16 Thread Christian Kellermann
Hi Scott!

Scott McCnoid mccoid.sc...@gmail.com writes:

 I'm reasonably new to chicken-scheme (and scheme in general), and I'm
 having trouble with the udp6 (and likewise, socket) eggs. I'm trying to run
 the example code, but the connection is always refused.

 *Error: (socket-receive!) cannot read from socket - Connection refused:
 #socket fd:4 af/inet sock/dgram*

 I looked into the socket code and it seems that this is probably not the
 fault of these eggs per se, but probably something I'm doing wrong. For
 example, the *%socket-receive!* function makes a call to the sys/socket.h
 *recv* function, which always returns -1. I've tried using other port
 numbers to connect to, but this doesn't seem to make a difference.

 I'm on Mac OS *10.10.2* using chicken scheme v.* 4.9.0.1 *(stability/4.9.0)
 (rev 8b3189b)

 I'm happy to help track this down if it's a bug, just let me know.

The most likely reason is that on Mac OS X there is noone listening on
port 13.

You can check that manually with nc localhost 13.

The next problem is that noone is actually listening on ipv6 for that
port. I ran into this when trying to simulate the datetime service with:

date | sudo nc -u -l -p 13

Connecting with v4 works, with v6 it doesn't.

My suggestion is to test this with a known open service on your system
or by creating a server explicitly bound to a v6 address.

Please don't hesitate to report further issues and troubles!

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] How to compile chicken scheme to Windows DLL?

2015-02-16 Thread Christian Kellermann
Ryuho Yokoyama ryu...@ybb.ne.jp writes:

Do you have any special reason to be using such an old CHICKEN?

 Yes, as stating in reply mail to Mr. Oleg Kolosov,  I am now
 converting all my CL code to Scheme(Chicken, Gambit).
 In original code there are many define-macro.  Because  Chicken Ver
 4 does not support define-macro  I am
 using the Ver 3.

Please note that with CHICKEN 4 it is still possible to write unhygienic
macros using explicit / implicit renaming macros.

In my experience this is trivial to do most of the time, so instead of
using an old version of chicken that is unsupported and misses a lot of
performance enhancements (specialisations of code, improvements in the
number tower, scheduler bugfixes to name a few) I urge you to reconsider
using a recent version.

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Updated CHICKEN packages for cygwin comming to you soon

2015-01-26 Thread Christian Kellermann
Dear list,

I have been mailing back and forth with the fine cygwin folks the
last weeks. As a result we will have up-to-date CHICKEN packages
for 32 and 64 bit platforms available as soon as the uploaded files
have been verified by their machinery.

As a downside the 64 bit version does not have an apply hack available
for now since Microsoft choose another ABI for ttheir 64bit platform.
So if you really want your 64 bit CHICKEN on windows to be able to
handle all the arguments please consider contributing such an apply
hack.

Please let me know if you run into troubles! (And / or drop by in
#chicken and complain about it)

Thank you!

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Why are 32 bit inexact?

2014-12-28 Thread Christian Kellermann
* Sascha Ziemann cev...@gmail.com [141228 12:33]:
 Hi,
 
 I tried to play a bit with ARM assembler, but reading 4 byte from a port
 seems to be quite hard with Chicken.
 
 Why are 32 bits inexact?

Because in CHICKEN we use 3 bits of a machine word for type tagging.
So you cannot use all bits as a number and the number fill overflow
to a float representation.

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Why are 32 bit inexact?

2014-12-28 Thread Christian Kellermann
* Christian Kellermann ck...@pestilenz.org [141228 12:47]:
 * Sascha Ziemann cev...@gmail.com [141228 12:33]:
  Hi,
  
  I tried to play a bit with ARM assembler, but reading 4 byte from a port
  seems to be quite hard with Chicken.
  
  Why are 32 bits inexact?
 
 Because in CHICKEN we use 3 bits of a machine word for type tagging.
 So you cannot use all bits as a number and the number fill overflow
 to a float representation.

I hit send too soon, so if you need the number read in a 32bit
srfi-4 vector or use the bignum tower, i.e. (use numbers).

HTH,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Protect against mutation

2014-12-28 Thread Christian Kellermann
* Bahman Movaqar bah...@bahmanm.com [141228 13:00]:
 On 12/27/2014 05:30 PM, Christian Kellermann wrote:
  * Bahman Movaqar bah...@bahmanm.com [141227 13:51]:
  Consider the following snippet:
 
   (use srfi-1)
   (define (mutator lis n) (set! (first lis) n) lis)
   (define ll (list 1 2 3 4))
   (mutator (cdr lis) 100)
   (equal? (second? lis) 100) -- #t
 
  Is there anyway to protect lis from mutation? TIA,
  No, you would need immutable list objects, which an egg provides
  IIRC.
 
 
 Thanks for the hint --I was hoping this to be the default behaviour.
 I guess, for me,  setting a personal ban on set! is easier than using
 a new vocabulary.

Depending on your use case you should consider an immutable environment
when calling eval?

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Protect against mutation

2014-12-27 Thread Christian Kellermann
* Bahman Movaqar bah...@bahmanm.com [141227 13:51]:
 Consider the following snippet:
 
  (use srfi-1)
  (define (mutator lis n) (set! (first lis) n) lis)
  (define ll (list 1 2 3 4))
  (mutator (cdr lis) 100)
  (equal? (second? lis) 100) -- #t
 
 Is there anyway to protect lis from mutation? TIA,

No, you would need immutable list objects, which an egg provides
IIRC.

HTH,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] CHICKEN at 31C3

2014-12-27 Thread Christian Kellermann
* Richo Healey ri...@psych0tik.net [141227 16:22]:
 On 30/10/14 01:12 +0100, Christian Kellermann wrote:
 Hi there,
 
 I have registered an assembly for CHICKEN enthusiasts and other
 lispy people for the upcomming 31C3:
 https://events.ccc.de/congress/2014/wiki/Assembly:The_%28un%29employed_schemers_%26_lispers_guild
 
 If you can make it to Hamburg, I am looking forward to hacking with you 
 there!
 
 Cheers,
 
 Christian
 
 I will definitely swing by and say hello- although i won't be writing any
 scheme unless I can find an excuse to use it in the ctf :)

We are located on floor on, Saal 1 opposite of the podcast Sendezentrum.
Just beside the forthers :)

Cheers,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] How to tell csc to call main?

2014-12-19 Thread Christian Kellermann
Hi!

* Sascha Ziemann cev...@gmail.com [141219 14:43]:
 How to tell csc to call main in the same way like csi -ss?
 csc does not seem to have a -ss option.

Call (main) at toplevel. If you want to change the behaviour depending
on whether the code is compiled or interpreted you can use cond-expand
testing for feature 'compiling

HTH,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Why there is no nil?

2014-12-17 Thread Christian Kellermann
* Bahman Movaqar bah...@bahmanm.com [141217 09:35]:
 I'm curious to know why nil is not defined in CHICKEN and one has to
 use '() instead? TIA,
 
 PS: Or am I missing something ridiculously obvious!?

This is scheme not lisp. nil is not defined in R5RS scheme.
And I think it is not defined in R6RS or R7RS either.

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Re : Re: package fmt crash on Windows 7 64-bits

2014-12-15 Thread Christian Kellermann
combier comb...@laposte.net writes:

 You are right, apply-hack.x86-64.S looks to be disabled. I didn't
 notice before.
 Does it mean that Windows 64 bits is not fully supported?

It means that someone has to write a apply hack using Windows' ABI for
64bit. On 32bit we can get away with SysV but not on 64 bit...

 I tried to add Apply-hack.x86-64.S in the build, but it does not
 compile correctly.
 Strange, the syntax of the gcc assembly is different from Windows and Linux?

The ABI is different.

 I don't understand why Apply-hack.x86-64.S is available, but not
 compiled on Windows 64.
 Is it more complicated than fixing some syntax issues?

Yes, the whole mechanism on how arguments are placed on the stack / in
registers differs.

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Re : Re: package fmt crash on Windows 7 64-bits

2014-12-14 Thread Christian Kellermann
Hi!

* f...@laposte.net f...@laposte.net [141213 14:59]: 
 I believe it's a 64-bit related issue, because I didn't reproduce
 this problem on Windows 32 bits with the same steps (another toolchain
 and ARCH=x86).

On 64 bit Windows the apply hack is disabled, we need a port of
that.  Not having the apply hack means that the number of arguments
a procedure can have is limited.

Maybe this causes trouble with the fmt egg...

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Export a defstruct - Short Version?

2014-12-14 Thread Christian Kellermann
* Bahman Movaqar bah...@bahmanm.com [141213 22:29]:
 This code obviously doesn't compile because the export list is wrong
 --if I change the export list to, for example, (make-point) it compiles
 fine.
 
 I'm aware a defstruct is basically a shortcut to create a bunch of
 functions and the standard way to export it is exporting all the
 functions one by one. Now, I'm wondering if there is an easier/shorter
 way to do this (something like a wild card)?

No there isn't. There's a wildcard for exporting all symbols in a
module, i.e. using a * instead of a symbol list.  For records there's
no such thing I am afraid. A lot of modules don't export some if
not all accessors to hide the actual implementation.

So for the time being you need to explicitly export the getters/setters
and the make- procedure unless you want to provide your own (maybe
with your application specific checks).

HTH,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Chicken program: How to clean up the working directory

2014-12-14 Thread Christian Kellermann
* Bahman Movaqar bah...@bahmanm.com [141214 00:49]:
 I'm working on a simple project which I created using chicken-hatch.
 Thanks to the author of this egg, all's fine and going smoothly.
 However, I just wonder if there is a way to clean up the working
 directory of the program in a way that make clean does? Removing
 object files, binary files and other compilation left-over stuff.

No, chicken-install is too dumb in that regard. However if you use
the system egg to define your dependencies, then you could use
clean-system to clean up the compilation artifacts.

HTH,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] readline history bug?

2014-12-12 Thread Christian Kellermann
Alexej Magura agm2...@gmail.com writes:

 So apparently running csi with rlwrap was messing with the readline
 support, lulz.  Commenting out the following alias in my ~/.zshrc
 fixed the problem: alias csi='rlwrap csi'

Oh, *duh*! Have fun with CHICKEN! Don't hesitate to ask for help again
next time!

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] readline history bug?

2014-12-11 Thread Christian Kellermann
Hi Alexej,

* Alexej Magura agm2...@gmail.com [141211 01:37]:
 Is the readline egg's history feature broken?  It only seems to work the
 first time I start _csi_ up after creating a new history file.  Here's the
 code that I'm using:
 
 (current-input-port (make-gnu-readline-port)
 (gnu-history-install-file-manager
   (string-append (or (get-environment-variable HOME) .)
 /.csi_history))

With that (plus the missing parenthesis) I get the following:

ckeen@necronomicon:~$ .csi_history 
ckeen@necronomicon:~$ rm .csi_history
ckeen@necronomicon:~$ .csi_history 
ckeen@necronomicon:~$ csi

CHICKEN
(c) 2008-2014, The CHICKEN Team
(c) 2000-2007, Felix L. Winkelmann
Version 4.9.1 (rev 6a860ab)
linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
compiled 2014-09-30 on devpool08 (Linux)

; loading /home/ckellerm/.csirc ...
; loading /home/ckellerm/chickens/master/lib/chicken/7/readline.import.so ...
; loading /home/ckellerm/chickens/master/lib/chicken/7/chicken.import.so ...
; loading /home/ckellerm/chickens/master/lib/chicken/7/foreign.import.so ...
; loading /home/ckellerm/chickens/master/lib/chicken/7/ports.import.so ...
; loading 
/home/ckellerm/chickens/master/lib/chicken/7/data-structures.import.so ...
; loading /home/ckellerm/chickens/master/lib/chicken/7/posix.import.so ...
; loading /home/ckellerm/chickens/master/lib/chicken/7/readline.so ...
#;1 1
1
#;2 2
2
#;3 3
3
#;4 4
4
#;5 5
5
#;6 6
6
#;7 7
7
#;8 
ckeen@necronomicon:~$ cat .csi_history 
1
2
3
4
5
6
7
ckeen@necronomicon:~$ csi

CHICKEN
(c) 2008-2014, The CHICKEN Team
(c) 2000-2007, Felix L. Winkelmann
Version 4.9.1 (rev 6a860ab)
linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
compiled 2014-09-30 on devpool08 (Linux)

; loading /home/ckellerm/.csirc ...
; loading /home/ckellerm/chickens/master/lib/chicken/7/readline.import.so ...
; loading /home/ckellerm/chickens/master/lib/chicken/7/chicken.import.so ...
; loading /home/ckellerm/chickens/master/lib/chicken/7/foreign.import.so ...
; loading /home/ckellerm/chickens/master/lib/chicken/7/ports.import.so ...
; loading 
/home/ckellerm/chickens/master/lib/chicken/7/data-structures.import.so ...
; loading /home/ckellerm/chickens/master/lib/chicken/7/posix.import.so ...
; loading /home/ckellerm/chickens/master/lib/chicken/7/readline.so ...
#;1 a

Error: unbound variable: a
#;1 b

Error: unbound variable: b
#;1 c

Error: unbound variable: c
#;1 d

Error: unbound variable: d
#;1 
ckeen@necronomicon:~$ cat .csi_history 
1
2
3
4
5
6
7
a
b
c
d

So it looks to me, like it is working fine. Note that you indeed
need to create the file first. The session history should be
explicitly added to the file through the gnu-history-install-file-manager
procedure but I don't understand the use of the hook procedure
there. I think it's a typo and should be (exit-handler (hook
(exit-handler))), same for implicit-exit-handler. What do you think?

Nonetheless this works for me without modification, so I don't know
what's going on. Need more coffee it seems.

Does this help?

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] readline history bug?

2014-12-11 Thread Christian Kellermann
Alexej Magura agm2...@gmail.com writes:

 While perusing through readline's source code, I went ahead and added
 a couple of functions that expose more of the API(? if that's the
 right term).

 Specifically, they expose the where_history(), current_history(),
 previous_history(), next_history(), history_search(), and
 history_set_pos()functions, as well as the history_length variable.

 I'm not really sure where to send the patches... I thought that
 originally I was supposed to send them to this mailing list, but then
 I read somewhere that they should be sent to chicken-hackers, but
 we're supposed to report bugs to chicken-users and send patches and
 what-not :S

 I even ran salmonella and it seemed to check out okay.

Cool! Thanks for your patches! I could commit them for you or since you
seem to care about the readline egg, would you like to maintain it? It
is currently orphaned and could indeed use some love.

Thanks for making the readline egg better!

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] package fmt crash on Windows 7 64-bits

2014-12-10 Thread Christian Kellermann
Hi Pascal!

* comb...@laposte.net comb...@laposte.net [141209 16:54]:
 I made some build of chicken on 64 bits and 32 bits. 

How do you build this exactly?

 2. In the case we use the retrieve option of chicken-install to download 
 the sources of the packages, how to install the local files locally? 

cd into the directory and run chicken-install without arguments should do it.

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] IDE for Beginners

2014-12-05 Thread Christian Kellermann
mfv m...@freeshell.de writes:

 I reproduced the result multiple times, with ST2/R freezing each time. And
 yes, the freezing occured after loading the csv file with 
  
 (define csvblob (read-lines csvtesteng.csv)). 

 and accessing it with something like

 (car csvblob).

 CSI, when run from the command prompt, has no problems with these commands
 and is completely responsive (ergo, it works as it should). 

Ok, that's been ruled out then. I have to admit that I always resort to
emacs when coding on windows regardless of the programming language. So
I'd also use emacs for chicken on windows.

This has also been discussed on SO

https://stackoverflow.com/questions/304815/scheme-ide-for-windows

I have to admit that for the whole IDE experience DrRacket is superior
to any other Scheme wrt IDE and tool integration on windows.

But emacs ain't that bad ;)

Cheers,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] How to fix chicken compiler (csc) to fix options for the invoked C compiler?

2014-12-05 Thread Christian Kellermann
Joe Python jopyt...@gmail.com writes:

 How to fix csc to generate the right options for static compilation of
 executables?
 Is there a file we can modify before compiling chicken itself to fix the
 compilation options for Oracle Solaris?
 I don't think this is in the Solaris Makefile.

Unfortunately not; this is added in csc.scm like this:

--8---cut here---start-8---
(define (linker-options)
  (string-append
   (string-intersperse
(append linking-optimization-options link-options))
   (if (and static (not mingw) (not osx))  -static ) ) )
--8---cut here---end---8---

So, we either could make that a variable which is defined in the
Makefile or add another special case for solaris there.

I think I'd go with the former. As a quick fix for you, you could just
change that -static to the preferred option.

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] ANN: New parley version 0.9 quasselstrippe available

2014-12-02 Thread Christian Kellermann
Dear chicken fans,

maybe a few of you use the line editing egg parley for their project
or daily csi editing. Then this will be interesting news to you:

Version 0.9 quasselstrippe has been released.

I have been debugging and refactoring parley a lot lately. As a
result parley has now a better (read smaller, hopefully bug free)
single line editing mode and a not much bigger (in terms of code)
multi line editing mode.

single line editing is the default. You can enable multiline editing
mode by placing (refresh-line multiline-refresh) in your .csirc.

One caveat though: The API for key handlers has changed. The parley
state is now kept in a record with the essential getters/setters
exported. Please see the wiki and the example section on how to do
this now. I hope this won't cause too much discomfort but it has
helped to reduce code repetition tremendously (it seemed such a
good idea at the time ;))

Please let me know if this improves or worsens your editing.

Happy chatting with your REPL!

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] IDE for Beginners

2014-12-02 Thread Christian Kellermann
* mfv m...@freeshell.de [141202 14:12]:
 Hi there, 
 
 I am currently using Sublime Text 2 with Sublime REPL to fool around with
 Chicken Scheme. It does not work perfect, but until now it has been the best
 solution apart from using the REPL in the command prompt in Windows 7. 
 
 However, it seems that sublimeREPL can not handle larger data structures. I
 froze once I read it a 20 kB cvs file. 

Maybe this is unrelated to the IDE you tunnel through csi but rather
an issue with csi itself:

When you say once do you mean you just did it 1 time? Please keep
in mind that every result in csi will get bound to a value (the
numbers in the prompt) to make them accessible later. As a consequence
of this if you return large data structures then this will consume
your memory and cannot be freed since those symbols are bound. you
can use the ,ch (clear history) command in csi to clear those again.
 
Does this solve your problem? 

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] How to avoid srfi-13 bindings when using the slime egg?

2014-10-24 Thread Christian Kellermann
* Sven Hartrumpf hartru...@gmx.net [141023 19:41]:
 If I install the slime egg and start chicken-slime from inside Emacs,
 the REPL has bindings for SRFI-13 names, e.g.
 
 ; SLIME 2014-10-10
 CSI (string-count abc #\a)
 1
 
 Can this be avoided (because this conflicts with
 definitions in other projects)?

The swank egg has some design flaws. For example all eval calls
happen in the same environment as the module which in turn needs
srfi-13. I don't think this can be fixed easily. It can probably
be mitigated by prefixing all imports in the slime module by some
prefix so at least it won't confuse the user code that easily.

But then which should be prefixed? Maybe for your use case you will
get away with prefixing srfi-13.

I can add that to the egg if it helps as the original author does
not seem to maintain it anymore.

HTH,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] OpenSSL egg option defaults poll

2014-10-16 Thread Christian Kellermann
Thomas Chust ch...@web.de writes:
 So I would like to poll for opinions from people on this list
 concerning this situation. Do you think the default options in the
 OpenSSL egg should be hardened? Do you think more options should be
 introduced? Is compatibility with the rest of the internet a concern
 at all? ;-)

Despite many valid reasons for keeping the old ones activated, I'd like
to see the old Versions dropped from the default setting. The longer
people keep them around the longer they will stay. Also I'd explicitly
turn *on* certificate verification, as painful as this may be. If the
ssl egg silently accepts invalid certificates it creates a false sense
of security to the user. If someone needs all these features they know
that and will turn them back on.

My 2¢…

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Use Chicken 3 egg in 4

2014-10-09 Thread Christian Kellermann
* Sascha Ziemann cev...@gmail.com [141009 20:39]:
 Hi,
 
 is it possible to use a Chicken 3 egg like the the SMTP client in
 Chicken 4? I can not find the SMTP client in the version 4 eggs.

In principle yes. The most significant changes and the reason why
eggs haven't been ported in general is the module system and hygienic
macros, i.e. define-macro no longer works.

If you rewrite use cases of that you should be fine.

Cheers,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] How to compile with openssl?

2014-10-07 Thread Christian Kellermann
Sascha Ziemann cev...@gmail.com writes:

 This are the modules I use:

 (use http-client
  uri-common
  uuid
  xml-rpc-client
  blowfish)

Does it work, when you add openssl here also?

Cheers,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.


___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] How to compile with openssl?

2014-10-07 Thread Christian Kellermann
* Sascha Ziemann cev...@gmail.com [141007 15:11]:
 2014-10-07 14:28 GMT+02:00 Kristian Lein-Mathisen kristianl...@gmail.com:
 
 
  which CHICKEN version are you using?
 
 
 It is the one which comes with Debian stable:  4.7.0-1
 
 
  There is a bug in some older versions where you need to specify (use
  chicken-syntax) for it work in compiled modules. Does that help?
 
 
 Yes! This helps. Thanks!

If you can please consider upgrading, 4.7.0 is horribly out of date
and tons of bugs have been fixed in the meantime.

CHICKEN works very well when installed locally, so you don't need
to be root. Also I think on testing there's already a newer version
so maybe you can grab the .deb from there.

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


  1   2   3   4   >