Re: Patch for CHICKEN 6 uri-generic

2024-05-24 Thread John Cowan
On Fri, May 24, 2024 at 3:31 AM Peter Bex wrote: - It encodes how many bytes to use in the first byte's leading bit, > leading three bits, leading four bits or leading five bits depending > on the length. > > This latter property is extra annoying because you can't just extract > the length

Proposed alternative encoding for stray UTF-8 bytes in strings

2023-11-23 Thread John Cowan
(If this is too late in the process, I understand. I think the required code changes will be small and localized.) >From the unicode-transition page: The strategy that I favor in the moment is to handle all string data > injected into the system transparently, the actual bytes are unchanged and

Re: CHICKEN 6 + R7RS

2023-09-30 Thread John Cowan
Sorry, yes, I meant `module`. I've been thinking about R6RS so much that for a moment I lost track of what Chicken's conventions are. I would point to rename-on-export. Chicken doesn't support this, and neither does the R7RS-egg. Most of the time, Scheme programmers do fine without it, but when

Re: CHICKEN 6 + R7RS

2023-09-29 Thread John Cowan
Yes, that's what I mean. It would be fine if foo/bar.sld and foo.bar.scm would accept either `library` or `define-library`. On Mon, Sep 25, 2023 at 4:15 PM wrote: > > I think making r7 syntax by default makes sense as does define- library. > > Using sld would be good if (foo bar) imported from

Re: CHICKEN 6 + R7RS

2023-09-25 Thread John Cowan
I think making r7 syntax by default makes sense as does define- library. Using sld would be good if (foo bar) imported from foo/bar.sld and not foo.bar.scm. On Mon, Sep 25, 2023, 2:36 PM wrote: > Hello! > > > John Cowan suggested to add R7RS support to the CHICKEN core > in

Re: Extending the #u8(...) notation

2023-06-06 Thread John Cowan
On Tue, Jun 6, 2023 at 10:39 AM wrote: Basically, it just means to allow strings and character literals as > elements of byte vectors written as "#u8(...)". > Any strings and characters, or just ASCII ones? \This is incompatible to SRFI-4 but similar to SRFI-207. > Any particular reason not

Re: absolute pathname a.k.a. realpath

2022-10-24 Thread John Cowan
Thanks! On Mon, Oct 24, 2022 at 5:37 PM Evan Hanson wrote: (Although technically I don't think realpath(3) is available directly, > you can use `read-symbolic-link' with the "canonicalize" argument set.) > I was actually thinking of SRFI 170, which is a Posix library and does have real-path.

Re: absolute pathname a.k.a. realpath

2022-10-24 Thread John Cowan
As designed, the pathname module does not access the filesystem (except that it knows whether the default is Posix or Windows), and I'd like to keep it that way. Realpath is available in the Posix module. On Mon, Oct 24, 2022 at 1:12 PM Lassi Kortela wrote: > Note: The Unix realpath() function

Re: Status of CHICKEN unicode transition

2022-09-08 Thread John Cowan
Awesomesauce! IMAO all your decisions are correct: no kludges. On Thu, Sep 8, 2022 at 6:13 AM wrote: > Hi! > > I have pushed branches containing an initial attempt at a UNICDOE > aware CHICKEN core system. See > > http://wiki.call-cc.org/unicode-transition > > for details. Comments are

Re: Plan for support of UTF-8 in core system

2022-01-23 Thread John Cowan
this is very good news. points: 1. bytevectors and srfi 4 u8vectors should be the same type. 2. use r7rs file i/o, binary vs textual ; On Fri, Jan 21, 2022 at 1:25 PM wrote: > Hi! > > Bevuta IT GmbH has kindly agreed to sponsor some work on CHICKEN and I > suggest > to start on

Re: Release process?

2021-08-06 Thread John Cowan
Just a note on #1675: the max amount of virtual memory in a 64-bit system's user space is 2^47 bytes, or 1024 TB. This is out of range for current machines, but I note that HP has recently demoed a monolithic server with 160 TB of physical memory. On Fri, Aug 6, 2021 at 4:59 AM Peter Bex

Re: `make uninstall` does not uninstall the chicken-do manpage

2021-08-04 Thread John Cowan
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/rmdir and my own Windows experience say that Windows rmdir behaves the same as Posix rmdir. A long time ago I used a system in which if you deleted an empty directory foo, all its files became children of foo's

Re: `make uninstall` does not uninstall the chicken-do manpage

2021-08-04 Thread John Cowan
On Wed, Aug 4, 2021 at 2:38 PM Mario Domenech Goulart wrote: I think the slightly tricky thing is finding out whether the directories > are actually empty after the CHICKEN core files are deleted (e.g., some > other program wrote files in there for whatever reason). In case the > directories

Re: uname -o does not exist on mac

2021-07-18 Thread John Cowan
Thanks! You should see if Chibi has the same problem, since it uses a very similar Makefile.detect. On Sun, Jul 18, 2021 at 5:02 AM Lassi Kortela wrote: > Here's a small patch to silence a warning in `make` output on systems > where the `uname` command does not have the `-o` flag. > > diff

Re: #chicken has moved to Libera.Chat

2021-05-26 Thread John Cowan
The server name is "libera.chat". On Wed, May 26, 2021 at 8:38 AM elf wrote: > How does one access the libera.chat network? What is the servername etc? > > -elf > > On 26 May 2021 14:26:07 GMT+03:00, Mario Domenech Goulart < > ma...@parenteses.org> wrote: > >Hi, > > > >The CHICKEN Team has

Re: [PATCH] force finalizers only if finalizers exist

2020-05-06 Thread John Cowan
The Right Thing is probably to eventually run the GC on a private thread, at least when multiple threads are running at all. That way the finalizers run on the same thread that doesn't hold any locks or otherwise risk trouble. That's what the JVM and the CLR do. On Wed, May 6, 2020 at 5:42 AM

Re: Fwd: Comments on draft #3

2020-05-03 Thread John Cowan
The behavior of a macro keyword in operand position is not affected by the patch. On Sun, May 3, 2020 at 1:04 PM Peter Bex wrote: > On Sun, May 03, 2020 at 12:55:40PM -0400, John Cowan wrote: > > This is the first of two patches that allow macros to be expanded when > they > >

Fwd: Comments on draft #3

2020-05-03 Thread John Cowan
: Marc Nieper-Wißkirchen Date: Sun, May 3, 2020 at 12:10 PM Subject: Re: Comments on draft #3 To: John Cowan Cc: , Lassi Kortela With the attached patch, SYNTAX-RULES macros now allow a single identifier as a top-level pattern, which matches the whole form: (define-syntax foo (syntax-rules

Fwd: Comments on draft #3

2020-05-03 Thread John Cowan
: Comments on draft #3 To: John Cowan Cc: , Lassi Kortela Am So., 3. Mai 2020 um 11:06 Uhr schrieb Marc Nieper-Wißkirchen < m...@nieper-wisskirchen.de>: [...] > I bet that implementing identifier macros in any Scheme system is a > work of less than one day each. Already now every S

Re: Exposing subsecond precision in current-seconds

2020-04-27 Thread John Cowan
Such a procedure is in SRFI 170: (posix-time). As I pointed out in #chicken, gettimeofday() has been obsolete since 2008, per Posix, which recommends clock_gettime(), which is precise (of course not accurate) to nanoseconds and has been part of Posix since 1997. Not that getttimeofday() is

Re: [PATCH] use -rpath option

2020-03-24 Thread John Cowan
Again, amazing. Does this mean that Chicken *output* can also be built with tcc? Now that the compiler is modularized, that would give Chicken a dynamic compiler. On Tue, Mar 24, 2020 at 9:03 AM wrote: > felix.winkelm...@bevuta.com wrote: > > This patch replaces the use of the "-R" linker

Re: [PATCH] Implement platform autodetection when possible

2020-03-09 Thread John Cowan
Thanks for wrapping this effort up. I think it will make Chicken easier to build for both new users and Chicken developers. On Mon, Mar 9, 2020 at 6:06 PM Evan Hanson wrote: > Hi there, > > Here's a signed-off version of the latest patch, including removing the > handling of iOS as John

Re: Patch for autodetection of platforms

2019-12-30 Thread John Cowan
I don't feel like filing another patch at this point, but since iOS is a cross-compilation target, the 3 lines for iOS should just be removed from Makefile.detect before it is merged. On Mon, Dec 30, 2019 at 2:25 PM John Cowan wrote: > This patch supersedes all other patches and correc

Re: Patch for autodetection of platforms

2019-12-30 Thread John Cowan
500, John Cowan wrote: > > Here's the second patch I mentioned on #chicken. > > Hi John, > > I've tried these two patches, but found several problems with them: > > - The endif in the second patch is misplaced, so on UNIX, platform > detection was skipped completely. Ea

Re: Time to make a 5.2.0 release candidate?

2019-12-28 Thread John Cowan
I should mention that credit goes mostly to Alex Shinn and only some of it to me. And yes, giving an explicit PLATFORM always works; this code is triggered only if PLATFORM is not defined. As opposed to empty, in which case you get, as an artifact of how it's implemented, the good old "Set

Re: Patch for autodetection of platforms

2019-12-19 Thread John Cowan
Here's the second patch I mentioned on #chicken. On Wed, Dec 18, 2019 at 6:48 PM John Cowan wrote: > With this patch, you don't need to specify PLATFORM unless > cross-compiling, but if you do it will still be respected. > 0002-fixed-mingw-msys-detection-added-to-NEWS-and-mani

Patch for autodetection of platforms

2019-12-18 Thread John Cowan
With this patch, you don't need to specify PLATFORM unless cross-compiling, but if you do it will still be respected. 0001-Implements-platform-auto-detection-when-possible.patch Description: Binary data

Re: [Chicken-hackers] [PATCH] Distinguish between positive and negative zero in flonums

2019-07-29 Thread John Cowan
ce (= 0.0 -0.0) => #t, that guarantee is preserved. However, in the case that you want the sign of an underflowed value (which is the whole point of negative zero), you can detect it if you want to. For example, you can use (/ 1.0 result), which produces +inf.0 or -inf.0 respectively.

Re: [Chicken-hackers] [PATCH] Distinguish between positive and negative zero in flonums

2019-07-28 Thread John Cowan
That seems totally right to me. On Sun, Jul 28, 2019 at 1:06 AM Evan Hanson wrote: > Thanks Peter, applied. > > On Sat, Jun 29, 2019 at 03:26:54PM +0200, Peter Bex wrote: > > I'm not happy with the hacky way the reader deals with these, but I could > > not really come up with a clean solution

Re: [Chicken-hackers] [PATCH] Fix #1294 by mentioning in the docs that define-record-printer is not a definition

2019-07-12 Thread John Cowan
Scheme doesn't yet have any way to print record types specially; all you get is whatever the implementation chooses to supply. Consequently, there is nothing like define-report-printer in any records SRFI. On Fri, Jul 12, 2019 at 7:04 PM Evan Hanson wrote: > On 2019-07-12 10:45, Peter Bex

Re: [Chicken-hackers] [PATCH] Fix #1620 by ignoring captured state of replaced variables

2019-06-30 Thread John Cowan
hez and perhaps other compilers use this transformation because of how much it simplifies bookkeeping. In ML, it's actually exposed to the programmer, and the *only* mutable thing are boxes ("refs") and mutable arrays. But of course ML is not Scheme. John Cowan http://vrici.lo

Re: [Chicken-hackers] [PATCH] Emit C99 constants for +nan.0 and [+-]inf.0 `##core#float' nodes

2019-06-27 Thread John Cowan
Done; < https://bugs.call-cc.org/ticket/1627#ticket >. On Thu, Jun 27, 2019 at 10:26 PM Evan Hanson wrote: > On 2019-06-27 21:27, John Cowan wrote: > > No, you do. If a Schemer writes (/ 1.0 -0.0) the result must be > > -inf.0, not +inf.0. > > OK, but I think that'

Re: [Chicken-hackers] [PATCH] Emit C99 constants for +nan.0 and [+-]inf.0 `##core#float' nodes

2019-06-27 Thread John Cowan
No, you do. If a Schemer writes (/ 1.0 -0.0) the result must be -inf.0, not +inf.0. But that fact leads to a better way to compile a negative zero into C: (1.0 / (-INFINITY)). No unions needed. On Thu, Jun 27, 2019 at 6:50 PM Evan Hanson wrote: > Hi John, > > On 2019-06-27 18:28, J

Re: [Chicken-hackers] [PATCH] Emit C99 constants for +nan.0 and [+-]inf.0 `##core#float' nodes

2019-06-27 Thread John Cowan
Don't forget to cast them to double, however. To get a negative zero you need an initialized global variable: double negative_zero = 1.0 / -INFINITY; and then negative_zero is the Right Thing. On Thu, Jun 27, 2019 at 5:20 PM Evan Hanson wrote: > Putting this here so it doesn't get lost. > >

Re: [Chicken-hackers] Pessimizing undefined behavior

2019-04-04 Thread John Cowan
the program starts to run). This is the same case as (car 1) or (substring "abc" n (- n 1)) or (let ((x 10) (x 20) ) x) or in particular (if #t). It is completely different from (set! x 32) which returns an unspecified value, the case you describe above. -- John Cowan http://vri

Re: [Chicken-hackers] Pessimizing undefined behavior

2019-04-02 Thread John Cowan
*can't* assign a meaning to (begin), but I wouldn't call it "perfectly legal", except in the sense that (if) or (if #t) are perfectly legal (which are syntax errors in Chicken). -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Overhead, without any fuss, the stars

[Chicken-hackers] Pessimizing undefined behavior

2019-04-02 Thread John Cowan
lizing it), the failure can be hoisted above the printf! In Scheme, whoever writes (begin) in a value context, even as a result of macro expansion, is almost certainly making a mistake, and the Right Thing IMO is to report an error, not to pessimize the code. -- John Cowan http://vrici.lojb

Re: [Chicken-hackers] Patch for ticket #1587

2019-02-28 Thread John Cowan
lex number into a real number, even though the imaginary part isn't truly zero. On Thu, Feb 28, 2019 at 3:44 PM wrote: > > On Thu, Feb 28, 2019 at 02:25:33PM -0500, John Cowan wrote: > > > See the ticket for explanations. > > > > After discussing on IRC, I'm not sure I beli

[Chicken-hackers] Patch for ticket #1587

2019-02-28 Thread John Cowan
See the ticket for explanations. diff --git a/library.scm b/library.scm index 6a089955..02b5af36 100644 --- a/library.scm +++ b/library.scm @@ -1737,7 +1737,6 @@ EOF (set! scheme#imag-part (lambda (x) (cond ((cplxnum? x) (%cplxnum-imag x)) - ((##core#inline "C_i_flonump" x) 0.0)

[Chicken-hackers] Request for a small Chicken library in C

2018-09-25 Thread John Cowan
I haven't written any C code for Chicken since version 3 days, and to save me some time re-learning., I'd like to see if anyone's willing to write some for me. What I need is an implementation of the four native IEEE procedures (single and double ref and set) in the R6RS bytevectors library,

Re: [Chicken-hackers] [Chicken-users] Some questions about CHICKEN 5 eggs and modules

2018-08-29 Thread John Cowan
can put a file in a place expected by some external library. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org If I read "upcoming" in [the newspaper] once more, I will be downcoming and somebody will be outgoing. ___ Chi

Re: [Chicken-hackers] strange csc-warning (Version 4.13.0)

2018-06-30 Thread John Cowan
I've reformatted your code to Lisp standard style (2 spaces instead of tabs, no parens on their own lines) for better readability. (define strange-warning (lambda (sym options) (let ((el (assq sym options))) (if (pair? el) (if (list? el) "list" (cdr el)) ; <== strange

Re: [Chicken-hackers] Eggs for Chicken 5

2018-03-22 Thread John Cowan
dures. It has already been used to R7RS-ify Gambit. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Only do what only you can do. --Edsger W. Dijkstra's advice to a student in search of a thesis ___ Chicken-h

Re: [Chicken-hackers] Eggs for Chicken 5

2018-03-22 Thread John Cowan
syntax-rules? I know that Stalin does not. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Humpty Dump Dublin squeaks through his norse Humpty Dump Dublin hath a horrible vorse But for all his kinks English / And his irismanx brogues Humpt

Re: [Chicken-hackers] Eggs for Chicken 5

2018-03-22 Thread John Cowan
There is no point in converting eggs until the Chicken 5 API has stabilized, which only happened in the last few weeks. That sad, I doubt there will ever be a syntax-case egg again, unless someone figures out how to implement syntax-case on top of explicit renaming. Chicken has been committed to

Re: [Chicken-hackers] require, require-extension-for-syntax, and the initial macro environment

2018-03-12 Thread John Cowan
cond-expand should move to the > ;; (chicken base) module to match r7rs. Keeping it in the initial env > ;; makes it a whole lot easier to write portable CHICKEN 4 & 5 code. > Fair enough. Note that there are two cond-expands in R7RS: one in R7RS library language, and

Re: [Chicken-hackers] What to do with default modules?

2017-12-15 Thread John Cowan
perhaps we should have a csi cmd line option to specify the base module similar to chibi -x switch On Fri, Dec 15, 2017 at 6:11 AM, Peter Bex wrote: > Hi all, > > Now that we have a 5.0.0pre4 development snapshot, I wanted to clean up > some stuff. The most important

[Chicken-hackers] Proposal to rationalize software-type, software-version, and build-platform on Cygwin

2017-11-24 Thread John Cowan
I have changed the definitions of software-type and software-version in the manual to be "OS family" and "OS" respectively, since that is what they actually are. I am proposing the following changes: 1) Alter the symbol 'unix in software-type to 'posix, and return it for all Chicken builds on

Re: [Chicken-hackers] [C5] About `random` and its future

2017-09-17 Thread John Cowan
-bit CPUs (with 64-bit floats) and 64-bit CPUs. I have not seen any indication that MRG32k3a has been broken. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org If I have not seen as far as others, it is because giants were standing on my shoulde

Re: [Chicken-hackers] [PATCH] Move around {rename, delete}-file and a question about module for inexact

2017-09-10 Thread John Cowan
n undefined-variable error, and Chibi's advanced REPL ("chibi-scheme -R") will helpfully search the library for a module that defines such a variable. Tl;dr: merge these small modules into (chicken base). -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Princi

Re: [Chicken-hackers] Proposal / patch for fixing #1385 (swapped bit-set? argument order)

2017-08-08 Thread John Cowan
nonstandard procedure is not very relevant since it is > going to disappear anyway, but I think bit->boolean is a relatively clean > name. I agree. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org C'est la` pourtant que se livre le sens du dire, de ce que, s'y conj

Re: [Chicken-hackers] [PATCH] Fix record type tags to be nonglobal by module-prefixing them

2017-07-18 Thread John Cowan
the > module language. > Per contra, I find it a great help with debugging module problems. When I am not sure if something is correctly imported, it is useful to be able to type bar into the REPL and see if that means # or #. -- John Cowan http://vrici.lojban.org/~cowan

Re: [Chicken-hackers] [PATCH] Add unexport form for modules

2017-07-04 Thread John Cowan
aving exported-define, exported-define-syntax, etc. in Java style. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Said Agatha Christie / To E. Philips Oppenheim "Who is this Hemingway? / Who is this Proust? Who is this Vladimir / Whatchamacallum, This neopostreal

Re: [Chicken-hackers] [PATCH][5] The other part of the FFI improvements

2017-07-03 Thread John Cowan
He sent in a bill for $50,005. When the plant management sent it back saying "Too much for one blow with a hammer", he sent back an itemized replacement bill. One blow with hammer, $5. Knowing where to hit, $50,000. Only prose can explain *why* code is the way it is. -- John

Re: [Chicken-hackers] [PATCH] Drop now-unnecessary exports from the "chicken.export" module

2017-06-17 Thread John Cowan
ing SRFIs 2, 8, 17, 26, 31 Keeping the macro expansion machinery in (chicken expand) makes sense to me as well. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Nobody expects the RESTifarian Inquisition! Our chief weapon is surprise ... surprise and tedium ... t

Re: [Chicken-hackers] [PATCH] Add unexport form for modules

2017-06-11 Thread John Cowan
cm portable to other Schemes with different module languages. As for the tests, I make them say "(use foo)" so that they are truly black-box. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org SAXParserFactory [is] a hideous, evil monstrosity of a class that

Re: [Chicken-hackers] [PATCH] Add unexport form for modules

2017-06-08 Thread John Cowan
is to only ever import > identifiers that actually have the prefix. I wouldn't be opposed to that except that we have two precedents for importing all the identifiers. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org All

Re: [Chicken-hackers] [PATCH] Add unexport form for modules

2017-06-07 Thread John Cowan
in "s:" instead (you'd want to change the Scheme identifiers too). An open question is what to do when an identifier is the same as the prefix: Chibi imports it unchanged, Chez changes it to || (the empty identifier). A third possibility is to not import it. -- John Cowan http://v

Re: [Chicken-hackers] [PATCH] Add unexport form for modules

2017-06-07 Thread John Cowan
On Wed, Jun 7, 2017 at 9:28 AM, megane wrote: If the module export list is not *, module-unexport-list is not used. In > this case, it's enough to just remove the identifier to be unexported > from the module-export-list. > Very nice! While you are messing around with the

Re: [Chicken-hackers] [PATCH] Fix a regression in body canonicalization

2017-04-27 Thread John Cowan
On Thu, Apr 27, 2017 at 12:14 PM, Peter Bex wrote: Now, the spec disallows this (I think..), Yes, it does: begin-with-defines is allowed only at top level. It should be replaced by (let () (define ...) . body) instead. In Algol or C terms, begin is a compound

Re: [Chicken-hackers] [Chicken-janitors] #1218: chicken-install may fail if TMPDIR is mounted noexec (depending on setup-file details)

2017-04-23 Thread John Cowan
the /tmp filesystem noexec blocks such attacks in a simple way. It's now considered a bug in Debian packages to put executables in /tmp, and I expect the idea will spread to other Linux distros. In general, nothing should be both writable and executable. -- John Cowan http://vrici.

Re: [Chicken-hackers] [PATCH] Add chicken.platform module (partially)

2017-04-22 Thread John Cowan
y routines, but no relationship between them is documented. I would be astonished, however, if a different value were returned on any of the systems Chicken supports. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org "Your honour puts yourself to much trouble cor

Re: [Chicken-hackers] Fix

2017-04-14 Thread John Cowan
s of char-ready? is that it returns #f if there are no characters available now, but there might be some available in future. In particular, at EOF there is always an EOF object available. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Schlingt dreifach einen Kreis vom

Re: [Chicken-hackers] new CHICKEN 5 egg installation

2017-02-22 Thread John Cowan
ommand line? > > I personally like the current behavior in C4 (run tests only for eggs > explicitly given on the command line). > I like the recursive behavior better. If you want to test your eggs before using them, why would you care whether they are installed by hand or as a dependency? -

Re: [Chicken-hackers] [PATCH 0/1] Fix spurious array bounds warnings on OpenBSD

2017-01-21 Thread John Cowan
assumptions about the compiler: it works with modern versions of gcc or with clang, not with Joe's Own C Compiler. There is no reason not to do C99 things, especially when they express meaning better and are illegal in C89 for no good reason. -- John Cowan http://vrici.lojban.org/~cow

Re: [Chicken-hackers] [PATCH] [CHICKEN 5] Change numerics representations

2016-10-04 Thread John Cowan
On Tue, Oct 4, 2016 at 4:00 AM, wrote: > > We could still get rid of the tagged pointer type. After some more > > > thought on the matter, I believe they're mostly worthless. > > "They" means tagged pointers? I agree. > I continue to disagree. Tagged pointers

Re: [Chicken-hackers] substring

2016-08-26 Thread John Cowan
e documentation says, I > understand that substring=? is not buggy (although I still think it is > a bit convoluted). > IMO, the SRFI-13 string= is far easier to understand, because it specifies two strings and two start/end pairs. -- John Cowan http://www.ccil.org/~cowan

Re: [Chicken-hackers] [PATCH] [CHICKEN 5] Change numerics representations

2016-08-09 Thread John Cowan
ts, or also stored > in some global that's directly accessible to the FFI. As someone who has used them in the past, I would be quite content to require that tags be symbols. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Consider the matter of Analytic Philosophy.

Re: [Chicken-hackers] [PATCH] A few small performance and scrutiny warning improvements to assignments

2016-07-24 Thread John Cowan
ing (vector-length pi-digits) rather than the magic number 6. This more usually comes up with strings rather than vectors, but the principle is the same. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org If I have not seen as far as others, it is because giants were stand

Re: [Chicken-hackers] user-information update for OpenBSD

2016-07-19 Thread John Cowan
use getpasswd() at all. Most modern systems have a service of some kind to handle login anyway. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Micropayment advocates mistakenly believe that efficient allocation of resources is the purpose of markets. Efficiency is a byprod

Re: [Chicken-hackers] user-information update for OpenBSD

2016-07-19 Thread John Cowan
information. I'd say, set the passwd field to '*' (which is not the encryption of anything on any known password scheme) on all systems. *Nobody* should be depending directly on the value of the encrypted password in 2016. -- John Cowan http://www.ccil.org/~cowanco...@ccil.

Re: [Chicken-hackers] [PATCH] Hash all the record slots

2016-07-16 Thread John Cowan
sion, which supports both SRFI 69 and its upward compatible extension SRFI 125. See <https://github.com/scheme-requests-for-implementation/srfi-125/tree/master/srfi>. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org The whole of Gaul is quartered int

Re: [Chicken-hackers] [PATCH][5] Include files relative to the current source file

2016-07-16 Thread John Cowan
nse. However, for backward compatibility it would make sense to me to look in $PWD next before looking in the standard include path. > An include-relative is defined by the s48-modules egg. I think it > makes more sense to have that, especially considering we also have > load-relative. Good p

Re: [Chicken-hackers] [PATCH 0/5][5] Generalize port directionality and add basic refinement types

2016-07-09 Thread John Cowan
rom a bidirectional port. I'm not sure what > good names would be for these. I'm not sure that these are in the spirit of Scheme's duck typing. In general we rely on programmer restraint to prevent, e.g., mutation of lists or strings when the rest of the program doesn't expect it. -- John Cowa

[Chicken-hackers] R7RS-large Red Edition election has begun

2016-06-27 Thread John Cowan
The election to determine the contents of the Red Edition of R7RS-large has begun. To vote, please visit: . Ballots may be returned through the form, or on the WG2 mailing list, or by email to me,

Re: [Chicken-hackers] [PATCH] Fix hygiene in ##sys#expand-extended-lambda-list

2016-06-17 Thread John Cowan
en use ...)) with whatever I actually need. > It's unhygienic. Or as we say, "Ewwwww." -- John Cowan http://www.ccil.org/~cowanco...@ccil.org And now here I was, in a country where a right to say how the country should be governed was restricted to six persons in e

Re: [Chicken-hackers] [PATCH] Include files relative to the current source file

2016-05-28 Thread John Cowan
uld have the highest priority, so that if a specific version of some library code is packaged with the code, it will be used in preference to any installed version. This is what is done in C, at least by gcc and clang. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Yakka

Re: [Chicken-hackers] PATCH Re: slow polling

2016-05-20 Thread John Cowan
code to make > that possible, so far. A huuge amount of the code in the Cygwin DLL is concerned with faking Posix semantics for select(); I've heard that it's the single most complex thing in the library. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Unless it

Re: [Chicken-hackers] [PATCH] Fix string->number (bug #1272) by checking early for invalid bases

2016-03-31 Thread John Cowan
6 to work. Everything else is surplusage. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org The native charset of SMS messages supports English, French, mainland Scandinavian languages, German, Italian, Spanish with no accents, and GREEK SHOUTING. Everything else has to be Unico

Re: [Chicken-hackers] [PATCH] Send C_DEBUGGER_REPLY_GET_BYTES responses as unsigned char values

2016-03-05 Thread John Cowan
at character. There is no other format specifier that does this. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Where the wombat has walked, it will inevitably walk again. (even through brick walls!) ___ Chicken-hackers mailing

Re: [Chicken-hackers] [PATCH] Re: wrong type for alist-delete!

2016-02-13 Thread John Cowan
ied my tests for SRFI 116 to run against SRFI 1 instead. You can snarf them from <http://www.ccil.org/~cowan/temp/lists-test.scm>. They don't offer complete coverage, but better than nothing. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org If I have not see

Re: [Chicken-hackers] PATCH: wrong type for alist-delete!

2016-01-14 Thread John Cowan
e data structure being changed is what is returned. A number of SRFIs work like this. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org What is the sound of Perl? Is it not the sound of a [Ww]all that people have stopped banging their head against? -

Re: [Chicken-hackers] PATCH: wrong type for alist-delete!

2016-01-14 Thread John Cowan
Peter Bex scripsit: > (alist-delete! (forall (a b) (#(procedure #:enforce) alist-delete! (a > (list-of pair) #!optional (procedure (a b) *)) (list-of pair That seems right, but isn't b here equivalent to star? -- John Cowan http://www.ccil.org/~cowanco...@cc

[Chicken-hackers] [s...@speechcode.com: More SRFI reviewers needed.]

2016-01-06 Thread John Cowan
nd happy scheming! — SRFI editor - End forwarded message - -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Normally I can handle panic attacks on my own; but panic is, at the moment, a way of life. --Joseph Zitt _

Re: [Chicken-hackers] [PATCH] Fix (restore?) specializations from types.db when compiling core itself

2015-12-20 Thread John Cowan
Peter Bex scripsit: > We *could* declare this situation hopelessly lost in CHICKEN 4 because > it uses unqualified names everywhere in types.db. Then we can apply > the fix to CHICKEN 5, where the core definitions will all be properly > namespaced into modules. +1 to that. --

Re: [Chicken-hackers] [PATCH] Improve irregex matching performance a lot by adding two type declarations

2015-12-12 Thread John Cowan
n if judicious use of macros makes the type information disappear before their compilers or interpreters try to process it. It's just as important for programs to communicate algorithms to other people as to their computers. -- John Cowan http://www.ccil.org/~cowanco...@

Re: [Chicken-hackers] [PATCH] Improve irregex matching performance a lot by adding two type declarations

2015-12-12 Thread John Cowan
larations, only declarations of procedure arguments and `as`, the equivalent of `the`. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org BALIN FUNDINUL UZBAD KHAZADDUMU BALIN SON OF FUNDIN LORD OF KHAZAD-DUM ___ Chicke

Re: [Chicken-hackers] PATCH: allow signal handlers to be called from any thread.

2015-12-03 Thread John Cowan
supposed to be for. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org In computer science, we stand on each other's feet. --Brian K. Reid ___ Chicken-hackers mailing list Chicken-hackers@nongnu.org https://lists.nongnu.org/mailman/listinf

Re: [Chicken-hackers] [PATCH] mutex-lock! sometimes not srfi-18 compliant

2015-11-23 Thread John Cowan
gle patch, avoiding "git add" and going with "git commit -a" is usually safer. See <https://xkcd.com/1597>. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Charles li reis, nostre emperesdre magnes,

Re: [Chicken-hackers] [PATCH][5] Make temporary stack resizable (fixes #1098)

2015-11-03 Thread John Cowan
t; common case. However, if this call happens to occur while the stack is > full, the assertion will be triggered. Let's say this happens in > production but not in your development setup, then it would be pretty > hard to find this bug. And if your production code is embedded in a device,

Re: [Chicken-hackers] [PATCH][5] Make temporary stack resizable (fixes #1098)

2015-10-31 Thread John Cowan
length of giant-list. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever trick

Re: [Chicken-hackers] [PATCH] Fix unsafe specializations in types.db

2015-09-06 Thread John Cowan
rutinizer? -- John Cowan http://www.ccil.org/~cowanco...@ccil.org "Any legal document draws most of its meaning from context. A telegram that says 'SELL HUNDRED THOUSAND SHARES IBM SHORT' (only 190 bits in 5-bit Baudot code plus appropriate headers) is as good a

Re: [Chicken-hackers] [PATCH][5] Fix , q in csi by not overriding ##sys#quit-hook

2015-08-09 Thread John Cowan
in subordinate REPLs. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org There is no real going back. Though I may come to the Shire, it will not seem the same; for I shall not be the same. I am wounded with knife, sting, and tooth, and a long burden. Where shall I find rest

Re: [Chicken-hackers] argvector chicken (was: ABI woes)

2015-07-21 Thread John Cowan
Scripsit felix.winkelm...@bevuta.com: CPS calls are surprisingly expensive in general in CHICKEN, Ah, I'm confused now. Are CPS calls a specific type of call? I had assumed that all calls (except to C primitives) are CPS calls. I assume that the continuous growth of the stack and/or the

Re: [Chicken-hackers] New dimensions in ABI design braindamage

2015-07-08 Thread John Cowan
any generic function pointers. If the numbers and types of the arguments, and the presence or absence of '...', don't match as between the function pointer and the pointee, then the pointee can't count on where to find its arguments. -- John Cowan http://www.ccil.org/~cowanco

Re: [Chicken-hackers] [PATCH] Fix undefined behaviour of shifting left signed values

2015-06-25 Thread John Cowan
Christian Kellermann scripsit: Let's keep that as it is, it looks like it is too much effort for the gain atm. As I say, even the most insanely aggressive C compiler won't try to trmp IEEE 754, or the numerical programming community would abandon it. -- John Cowan http

Re: [Chicken-hackers] [PATCH] Fix undefined behaviour of shifting left signed values

2015-06-21 Thread John Cowan
processors. - We are dividing floating-point numbers by zero, which is apparently undefined. Don't worry about that. Any C compiler that ignored IEEE 754 constraints, even though C doesn't assume them, would be ostracized by numerical programmers. -- John Cowan http://www.ccil.org

Re: [Chicken-hackers] An alternative internal time type.

2015-06-13 Thread John Cowan
at this point. Of course other core members may disagree. FWIW, R7RS-small (time) returns an inexact integer to minimize unpredictable allocation. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Even a refrigerator can conform to the XML Infoset, as long as it has a door

Re: [Chicken-hackers] Ambiguity in csc's command line options (#1193)

2015-05-23 Thread John Cowan
prefer the GNU-style --foo options. I'm always annoyed when I type --foo to Chicken and it gets mishandled. As a first step to switching, I'd recommend allowing --foo=bar options everywhere, and eventually deprecating and removing the -foo options. -- John Cowan http://www.ccil.org/~cowan

Re: [Chicken-hackers] [PATCH] More efficient numbers integration through scratchspace

2015-04-20 Thread John Cowan
operations. Arguably the most important of the two is not creating ratnums unexpectedly. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org He played King Lear as though someone had played the ace. --Eugene Field ___ Chicken-hackers

  1   2   3   4   >