chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] CHICKEN in production


From: John Cowan
Subject: Re: [Chicken-hackers] CHICKEN in production
Date: Wed, 8 Oct 2014 15:27:35 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

Peter Bex scripsit:

> Thanks for speaking up, I hadn't considered how big of a problem this
> would be for large, existing projects.  We could possibly make it a
> runtime option, so the checking (or just the enforcing) could be enabled
> or disabled at will.

Here are my suggestions for staging this change.

Next release of Chicken 4:

Continue to allow NUL in strings (backward compatible)
Add a trailing hidden NUL to all strings (C compatible)
Eliminate copying in the FFI (big performance win)
Continue checking for NUL in the FFI (safety)

Chicken 4 with run-time option / Chicken 5 by default:

Disallow NUL in strings (break backward compatibility)
Eliminate checking for NUL in the FFI (no longer needed)

How does that sound?

-- 
John Cowan          http://www.ccil.org/~cowan        address@hidden
'My young friend, if you do not now, immediately and instantly, pull
as hard as ever you can, it is my opinion that your acquaintance in the
large-pattern leather ulster' (and by this he meant the Crocodile) 'will
jerk you into yonder limpid stream before you can say Jack Robinson.'
        --the Bi-Coloured-Python-Rock-Snake



reply via email to

[Prev in Thread] Current Thread [Next in Thread]