Re: [ANN] CHICKEN 5.4.0 release candidate 2 available

2024-07-07 Thread John Cowan
Not so much intentional as simply never considered at the time. On Sun, Jul 7, 2024 at 5:25 AM Kristian Lein-Mathisen < kristianl...@gmail.com> wrote: > > From my reading, R7RS does not support quasiquoted u8vectors either, the >> formal grammer refers to "" which seems to be allowed to >> be onl

Re: Generalized-Arrays egg v1.0.1

2024-02-06 Thread John Cowan
I now understand that chicken's srfi-143 egg has a different spec from actual SRFI-143; in particular, the egg's procedures are variadic, whereas the SRFI's procedures were intended not to be. Unfortunately, the SRFI specifies =, <, etc. to be variadic instead of dyadic as a result of cut and pa

Re: Generalized-Arrays egg v1.0.1

2024-02-03 Thread John Cowan
On Sat, Feb 3, 2024 at 5:39 PM Jeremy Steward wrote: Likewise, I opt to use (chicken fixnum) but this is > because I discovered that SRFI-143 is so egregiously slower than > (chicken fixnum) that it was causing serious performance regressions in > many of the array APIs. > That's very odd. The

Re: cannot open file if name contains accented characters

2023-12-25 Thread John Cowan
On Mon, Dec 25, 2023 at 6:07 AM wrote: > I'm not too familiar with the way Windows handles non-ASCII characters > in operating system calls, but I assume that what gets passed to the C > library runtime functions like fopen(3), etc. assumes a particular > encoding. > Basically, there are two mo

Re: How best to get a default result from sqlite3, or to use or not use first-result?

2022-06-08 Thread John Cowan
IMO this is an excellent application for folding. On Wed, Jun 8, 2022 at 10:54 AM Matt Welland wrote: > The problem: retrieve one value from a query, if there is no matching > row return a default. > > Method 1: use for-each-row, overwrite the default with found values > Method 2: use first-resu

Re: chicken 5.3.0 - improving POSIX test on Cygwin platform

2022-03-21 Thread John Cowan
On Mon, Mar 21, 2022 at 5:19 AM wrote: > Sorry for the overly late reply. I'm not too familiar with cygwin, what > should the tests report here? The cond-expand for "windows" should trigger > on cygwin, how is it handling the permission bits (as compared to "raw" > Windows systems)? Does it "fak

Re: Chicken 5 on Cygwin

2022-03-07 Thread John Cowan
On Mon, Mar 7, 2022 at 3:07 AM Peter Bex wrote: > > I think it's the Cygwin project. We are only responsible for ensuring > that it builds and runs correctly on Cygwin. But I'm sure they'll > accept a patch if one of us sends it to them. > > The real problem is keeping it up to date. Just upda

Re: Conditional include

2021-07-18 Thread John Cowan
On Sun, Jul 18, 2021 at 10:16 AM Lassi Kortela wrote: > R6RS implementations have a convention of appending the implementation's > name to the filename. > Best of all is the R7RS solution: > Oh, absolutely. I didn't choose those four for no reason. I wanted a pure R7 system, an R5+ system tha

Re: What are the long-term goals for R7RS in Chicken?

2021-07-18 Thread John Cowan
On Sun, Jul 18, 2021 at 7:43 AM wrote: > Anybody for a "-r7rs" option that does the above? > I'd love to see that. Lassi: The fact that different Schemes have different conventions for where their library files are is actually a great convenience to me when developing SRFIs. All the actual co

Re: Actor model implementation, seeking feedback

2021-06-26 Thread John Cowan
On Sat, Jun 26, 2021 at 2:38 PM Vasilij Schneidermann wrote: > 2. Cool that you use tweetnacl for encryption, but please don't use > random numbers for nonces, that's just wrong. Nonces are not supposed to > be secret, random or unpredictable, but unique numbers that do not > repeat. Random numb

Re: SRFI-144 - initial port

2021-04-19 Thread John Cowan
It would be great to use (chicken flonum) and, where necessary, direct FFI calls and see if they are faster. I was quite surprised when the Larceny Scheme procedures were faster than the C ones, but from what I understand, Larceny's FFI is expensive. On Sun, Apr 18, 2021 at 3:41 PM Diego wrote:

Re: Chicken GUI options survey and questions.

2021-03-05 Thread John Cowan
On Fri, Mar 5, 2021 at 10:53 AM Matt Welland wrote: > * pstk (probably not really an option, ancient look/feel). > Don't dismiss Tk too fast. Here are the reasons Larry McVoy of BitMover gives for using it in the GUIs of his company's products: This question gets raised at least once a year

Re: New egg: SRFI-87: => in case clauses

2020-11-22 Thread John Cowan
Since the content of SRFI-87 is built in to the current Chicken, #:srfi-87 should be added to the output of `features` in (chicken-platform). On Sun, Nov 22, 2020 at 3:16 AM Mario Domenech Goulart wrote: > On Sat, 21 Nov 2020 16:40:21 -0800 wrote: > > > On Sat 21 Nov 2020 09:28:10 PM +01, Mario

Re: New C5 egg: SRFI-145: Assumptions

2020-11-09 Thread John Cowan
FWIW, SRFI 158 is fully downwardly compatible. On Mon, Nov 9, 2020 at 1:40 PM Mario Domenech Goulart wrote: > Hi Jeremy, > > On Mon, 09 Nov 2020 10:13:19 -0700 Jeremy Steward > wrote: > > > Ooh boy, is SRFI 158 ready to go? > > > > If that's the case, should we deprecate / remove SRFI 121 from

Re: Some questions about concurrency (mostly)

2020-11-07 Thread John Cowan
ter-thunks are not run, as the thread is supposed to be unaware that the switch happened. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Would your name perchance be surname Puppet, given name Sock? --Rick Moen

Re: New Egg: SRFI-151

2020-08-08 Thread John Cowan
be regarding the license, which AFAIK should be > > MIT. John Cowan would be able to clarify that. > > I went through the license comments in these files and bitwise-60.scm > and bitwise-core.scm have a license which is identified in the CHICKEN > wiki as „Free Use” (I ha

Re: Tidy way to test and set when using test egg?

2020-01-10 Thread John Cowan
Mixing definitions and expressions in a block isn't actually legal Scheme, though it does work in Chicken. All defines are supposed to come first and all expressions afterwards. Since the test library is shared with Chibi, and since Chibi doesn't allow this extension, I can't see adding this to t

Re: Trying to understand chicken limitations

2019-12-22 Thread John Cowan
Procedures and code files that contain both Scheme and C must be compiled, but the resulting compiled code can be loaded into the environment and invoked from the interpreter. Obviously pure C files must be compiled by a C compiler. On Mon, Dec 23, 2019 at 12:20 AM Iain Duncan wrote: > > > (tr

Re: Trying to understand chicken limitations

2019-12-22 Thread John Cowan
alty? > You can evaluate anything that doesn't need access to the foreign function interface. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org To say that Bilbo's breath was taken away is no description at all. There are no words left to express his staggerment,

Re: Trying to understand chicken limitations

2019-12-22 Thread John Cowan
ain program.) Guile is designed for embedding. As for S7, I would use Chibi instead: it's more modern and probably faster. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Economists were put on this planet to make astrologers look good. --Leo McGarry >

Re: RAM usage of applications?

2019-11-30 Thread John Cowan
n > program running at the time, but there are other Windows/Cygwin > programs, the Chicken program would be 12KB + 3.4MB on top of those. > That's my situation while running this program. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org The first thing you lear

Re: RAM usage of applications?

2019-11-30 Thread John Cowan
the OS version; Chicken provides the same interface on Posix and on Windows, but much of it (fork, obviously) will throw runtime exceptions on Windows. Of course, Windows itself is also in DLLs. Chicken does not have a run-on-bare-metal option; it depends on the presence of either Posix or Windows.

Re: RAM usage of applications?

2019-11-30 Thread John Cowan
will add to that. > The Scheme program (print "Hello world") compiled on Windows and stripped produces a 12K executable. Chicken, like many other Schemes but Common Lisp, is modularized: if you don't use a feature (within reason) it is not included. John Cowan http://v

[Chicken-users] Changing the chickadee home page to C5

2019-07-28 Thread John Cowan
Currently chickadee.call-cc.org and api.call-cc.org redirect to api.call-cc.org/4/doc. This grows more inappropriate with every new release of Chicken 5, indeed with every day that passes. It's time to change it, I think, to redirect to api.call-cc.org/5/doc instead. In addition, there should be

Re: [Chicken-users] thoughts on alternate "posits" / "unums" instead of traditional floats?

2019-07-09 Thread John Cowan
o it sounds like a modified C compiler and/or FPU would be the way to go > for this. Hardware support for posits will come shortly after the Devil dies of exposure. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org What asininity could I have uttered that they applaud m

Re: [Chicken-users] SRFI-38 notation

2019-07-04 Thread John Cowan
https://raw.githubusercontent.com/ashinn/chibi-scheme/master/lib/srfi/38.scm is public domain, uses a hash table, and should be reasonably portable. You'll need to remove the references to read-object, which are a Chibi-specific lexical extension providing record literals. On Thu, Jul 4, 2019 at 3

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

2019-06-09 Thread John Cowan
Installation works?: yes > Tests work?: can't tell, see below > Installation of eggs works?: yes > The output of "make test" was over 20,000 lines, some of which do have the string "fail" in them. I've posted it at <http://vrici.lojban.org

Re: [Chicken-users] for those who have interest in procedure objects decoration

2019-05-22 Thread John Cowan
ote-splicing, and => to macros that throw an error, so that you can safely rebind them as ordinary variables if you want to. <https://lists.nongnu.org/mailman/listinfo/chicken-users> John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Humpty Dump Dublin squeaks t

Re: [Chicken-users] Back from the dead: pstk

2019-02-26 Thread John Cowan
If it's not too hard, you might want to extract your changes from your new git repo, drop the repo, use reposurgeon (a general VCS converter and editor), and reapply your changes. That way the history is preserved and you don't need multiple repos. On Tue, Feb 26, 2019 at 8:49 AM wrote: > Hello

[Chicken-users] Tangerine Edition final results available

2019-02-02 Thread John Cowan
implement some of them) except the prime number library at < https://bitbucket.org/cowan/r7rs-wg1-infra/src/default/PrimesGauche.md>. There was also a one-vote majority against the TalliesCowan (descriptive statistics) library, but as there is a volunteer to implement it, I'll leave i

Re: [Chicken-users] [scheme-reports-wg2] Re: Tangerine Edition penultimate report: how I voted, how you're voting

2019-01-19 Thread John Cowan
l, which has always seemed to me the only practical approach. That said, SRFIs often do refer to existing implementations, or implementations of languages other than Scheme. > > On Thu, Jan 17, 2019 at 5:15 PM Per Bothner wrote: > > > > On 1/16/19 6:27 AM, John Cowan wrote: >

Re: [Chicken-users] R7RS large library aliases

2019-01-18 Thread John Cowan
Sounds good to me! On Fri, Jan 18, 2019 at 11:23 AM Peter wrote: > > The trouble is that the SRFIs are finalized before we know which ones > will > > become part of R7RS-large, in some cases decades before. Currently the > > SRFI process doesn't allow correcting anything except outright errors

Re: [Chicken-users] R7RS large library aliases

2019-01-18 Thread John Cowan
The trouble is that the SRFIs are finalized before we know which ones will become part of R7RS-large, in some cases decades before. Currently the SRFI process doesn't allow correcting anything except outright errors of an editorial nature, except in extremely rare cases. On Fri, Jan 18, 2019 at 6

Re: [Chicken-users] Tangerine Edition penultimate report: how I voted, how you're voting

2019-01-17 Thread John Cowan
, bitwise operations: If you believe in "small is beautiful," then what is your motivation for including anything beyond BITWISE-NAND? Quant. suff. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org You are a child of the universe no le

Re: [Chicken-users] Tangerine Edition penultimate report: how I voted, how you're voting

2019-01-16 Thread John Cowan
Sorry, left out the voting link this time: it's http://tinyurl.com/tangerine-ballot for the vote, and http://tinyurl.com/orange-straw-poll for the Orange Edition straw poll (guidance to the editor on what should appear in the next poll). On Wed, Jan 16, 2019 at 9:27 AM John Cowan wrote: &

[Chicken-users] Tangerine Edition penultimate report: how I voted, how you're voting

2019-01-16 Thread John Cowan
ting for more rather than less, as with the Red Edition. This encourages me that I'm going in a sensible direction with the large language. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org It was dreary and wearisome. Cold clammy winter still held sway in this fo

[Chicken-users] Change to SRFI under ballot: u1vectors removed from SRFI 160

2019-01-12 Thread John Cowan
I have sent a request to the SRFI Editor to remove all references to u1vectors (bitvectors) from SRFI 160, which is a part of the Tangerine Edition ballot. This is being done not because they are not useful, but because they are different enough in both specification and implementation from the ot

Re: [Chicken-users] Voting on the Tangerine Edition of R7RS-large begins!

2018-12-15 Thread John Cowan
Steering Committee. Otherwise you only have to care about Scheme standardization. Please vote! -- 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 Vla

[Chicken-users] Voting on the Tangerine Edition of R7RS-large begins!

2018-11-25 Thread John Cowan
verted into SRFIs and which should not. Ones that are already SRFIs or which have simple or existing implementations are excluded. There are four options in all cases: "No vote", "No", "Yes", and "Volunteer"; the last means that you are volunteering to write

Re: [Chicken-users] pp and write ignore keyword-style

2018-11-21 Thread John Cowan
See https://bitbucket.org/cowan/r7rs-wg1-infra/src/default/KeywordSyntax.md for details -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Business before pleasure, if not too bloomering long before. --Nicholas

Re: [Chicken-users] pp and write ignore keyword-style

2018-11-20 Thread John Cowan
IMO, `write` should not respect `keyword-style` but use the invariant syntax `#:foo` for keywords, as that always works, whereas `foo:` and `:foo` don't. The whole point of `write` is that you can reread the output with `read` and get something that is the same (in the sense of `equal?`) to what w

Re: [Chicken-users] http-client: distinguishing between responses 301 and 302

2018-10-18 Thread John Cowan
The difference between 301 and 302 is primarily relevant to crawlers and caches. I agree that it needs to exist, but not clear that a general-purpose client needs to expose it. Can you explain your use case more clearly? Thanks. On Thu, Oct 18, 2018 at 1:20 PM Norman Gray wrote: > > Greetings

[Chicken-users] 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, docum

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

2018-08-29 Thread John Cowan
stall 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. ___

Re: [Chicken-users] Broken `utf8#string-fill!`?

2018-07-12 Thread John Cowan
On Thu, Jul 12, 2018 at 6:10 PM, John Cowan wrote: > You can't fill a literal string; you have to treat it as immutable. > Actually it's not about mutability. There is a documented restriction ("Attempting to mutate literal strings will result in an error if the mutated

Re: [Chicken-users] Broken `utf8#string-fill!`?

2018-07-12 Thread John Cowan
You can't fill a literal string; you have to treat it as immutable. On Thu, Jul 12, 2018 at 4:09 PM, Henry Hu wrote: > Hello, > > `utf8#string-fill!` isn't working for me. Anyone experiencing this > problem? > > CHICKEN > (c) 2008-2017, The CHICKEN Team > (c) 2000-2007, Felix L. Winkelmann > Ve

Re: [Chicken-users] Reason to Celebrate

2018-07-01 Thread John Cowan
Congratulations. A bit far away from me (I'm in New York City), but enjoy anyway. On Sun, Jul 1, 2018 at 6:20 PM, Thomas Chust wrote: > Dear friends, > > hopefully you're all doing well! > > I have reason to celebrate: It has taken me some years, but I eventually > defended my PhD thesis last w

Re: [Chicken-users] Codepoint indices for matched regexps (UTF-8)?

2018-06-15 Thread John Cowan
atch-start-index. > Do "(use utf8)" and then "(import utf8-lolevel)" to get the (undocumented) low-level utf8 API. The function utf8-offset->index accepts a string and a byte offset and returns a codepoint index. If you want to go the other way, utf8-index-

Re: [Chicken-users] The eggs index needs release dates displayed

2018-02-21 Thread John Cowan
I think that would be a mistake for the reason you give: it's often the case that an egg hasn't been updated in a long while because it's complete and nobody has found any bugs in it. Lisp/Scheme code tends to be extremely durable: McCarthy's theorem prover from 1958 is still runnable with only a

Re: [Chicken-users] Microcontroller schemes

2017-11-16 Thread John Cowan
You can enhance Microscheme by front-ending it with Rapid Scheme, which is a Scheme-to-Scheme compiler that provides syntax-rules macros, R7RS modules, and other things that aren't in Microscheme. On Wed, Nov 15, 2017 at 12:20 PM, Norman Gray wrote: > > Greetings. > > Christian Kellermann said:

Re: [Chicken-users] Bug with #:optional in args egg?

2017-09-04 Thread John Cowan
cation mechanism. What would you consider to be some modern argument parsers that the new design could be based on? -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Thor Heyerdahl recounts his attempt to prove Rudyard Kipling's theory that the mongoose first came to Indi

Re: [Chicken-users] Chicken on Termux

2017-05-12 Thread John Cowan
oes not exist. You will have to specify C_COMPILER=clang on the make line, as Chicken's makefile defaults to gcc and gcc is no longer available on Termux. Best of luck, and tell us how it goes! -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Where the wombat has

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

2016-10-16 Thread John Cowan
On Sun, Oct 16, 2016 at 5:35 PM, Evan Hanson wrote: You can use the "-analyze-only" flag: > >$ csc -analyze-only -emit-import-library foo foo.scm > If you use -check-syntax (or equivalently -P) then you can use -J to generate all import libraries. This is what I norm

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

2016-09-24 Thread John Cowan
level definitions in such an implementation are truly equivalent to assignments. See http://trac.sacrideo.us/wg/wiki/SetUndefinedVariable for which Schemes do this and which do not. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org After fixing the Y2K bug in an applicat

Re: [Chicken-users] srfi-18 threads question

2016-09-21 Thread John Cowan
On Wed, Sep 21, 2016 at 4:53 PM, wrote: > ;; Why does the mutation of a simple global in a thread become visible to > the main thread, but the mutation of global parameter does not? > > In general, parameters are designed to be per-thread rather than shared. If they weren't, the parameter wouldn'

Re: [Chicken-users] r7rs improper redefinition of imported symbol

2016-09-19 Thread John Cowan
R6RS and R7RS differ in argument order that is not automatically detectable. Larceny provides a combined (r7r6) library that imports everything from both standards, except that the R6RS version of bytevector-copy! comes in as r6rs:bytevector-copy!. -- John Cowan http://vrici.lojb

Re: [Chicken-users] Continuations

2016-07-16 Thread John Cowan
opying the entire stack, than every single > lexical variable would have its state restored when the continuation was > restored, all the way up to toplevel. Sorry, you're right and I was wrong, of course. However, truly global variables are not affected by restoring a captured c

Re: [Chicken-users] Continuations

2016-07-16 Thread John Cowan
stems, programs that don't capture continuations don't pay for them. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Is not a patron, my Lord [Chesterfield], one who looks with unconcern on a man struggling for life in the water, and when he has reach

Re: [Chicken-users] canvas-draw and colors

2016-07-16 Thread John Cowan
Thomas Chust scripsit: > Or perhaps just normal arithmetic replacing bitwise-ior by + and > arithmetic-shift by (lambda (x n) (* x (expt 2 n))). This is probably no > less efficient, as the result is going to be a bignum anyway. Well, only on 32-bit machines. -- John Cowan

Re: [Chicken-users] generate numerical list

2016-07-11 Thread John Cowan
ything about ratios, bignums, or complex numbers. Chicken 5 will have a full numeric tower natively and won't have this problem. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org If you have ever wondered if you are in hell, it has been said, then you are on a well-trave

Re: [Chicken-users] Installing chicken on windows

2016-07-08 Thread John Cowan
hared file system and TCP/IP sockets. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Linguistics is arguably the most hotly contested property in the academic realm. It is soaked with the blood of poets, theologians, philosophers, philologists, psychologists, biologists

Re: [Chicken-users] Installing chicken on windows

2016-07-08 Thread John Cowan
y better choices than Chicken, though it does have some nice eggs.) -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Thor Heyerdahl recounts his attempt to prove Rudyard Kipling's theory that the mongoose first came to India on a raft from Polynesia. --blurb fo

Re: [Chicken-users] Asynchronous I/O Egg Release

2016-06-30 Thread John Cowan
hat the underlying system should hide completely. If not, I call it a design defect. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org To say that Bilbo's breath was taken away is no description at all. There are no words left to express his staggerment, since Men changed th

[Chicken-users] 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, . The balloti

Re: [Chicken-users] Module unresolved error

2016-06-15 Thread John Cowan
pt the name `import`, so the first order of business is to import identifiers from scheme and chicken to bootstrap a sufficient environment to do anything. This is equally true in the interpreter, but doesn't come up much because most people don't type module forms to the REPL or try to exec

Re: [Chicken-users] Understanding modules?

2016-05-21 Thread John Cowan
se (or require-extension, which is the same thing) depends on the module having the same name as the file. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Si hoc legere scis, nimium eruditionis habes. ___ Chicken-

[Chicken-users] R7RS-large kickoff, list membership, and voter registration process

2016-05-14 Thread John Cowan
Hwaet! (Apologies for cross-posting) The current phase of R7RS-large development, the development of SRFIs for the Red (data structures) Edition of the language, is coming to an end within a week or so. At that point, I'd like to start discussing the different options to be voted on using the sc

Re: [Chicken-users] Numbers weirdness

2016-04-01 Thread John Cowan
les for WWI pilots: 1. Stay out of WWII. --Peanuts -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Overhead, without any fuss, the stars were going out. --Arthur C. Clarke, "The Nine Billion Names of God"

Re: [Chicken-users] Numbers weirdness

2016-04-01 Thread John Cowan
rrectly rounded output string that converts to the same IEEE double value when read back in. Of course it is possible to generate more digits than that, but they are more precise than IEEE double format allows for, and therefore are essentially garbage. -- John Cowan http://www.ccil.org/~

Re: [Chicken-users] Numbers weirdness

2016-04-01 Thread John Cowan
o it) returns a value of 251.03. The ceiling of that is indeed 252.0. As Kernighan and Plauger said back in 1974: "Floating point numbers are like sandpiles: every time you move one, you lose a little sand and pick up a little dirt." It's still true. -- John Cowan

Re: [Chicken-users] Understanding modules?

2016-03-15 Thread John Cowan
ontaining the module declaration. My style is to have a file foo.scm which contains the module declaration including imports and exports, and then (include "foo-impl.scm") which contains pure Scheme code with no module forms, imports, or uses. If foo-impl gets too large, I break

Re: [Chicken-users] Is there interest in this Prolog interpreter packaged as an egg?

2016-02-20 Thread John Cowan
Jeronimo Pellegrini scripsit: > If you believe this would be interesting as an egg, tell me and I'll > get it packaged! Nice! You should also compare it with Schelog. Definitely do package it as an egg. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org In t

Re: [Chicken-users] Installing on Suse Tumbleweed

2016-01-28 Thread John Cowan
you probably shouldn't build as root as a matter of safety. Instead, just install as root. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Sound change operates regularly to produce irregularities; analogy operates irregularly to produce regularities.

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

2016-01-10 Thread John Cowan
SRFI, and if there's some > difference I'm not seeing here. As best I can tell, the lazy-seq egg is more like SRFI 41 than like SRFI 127. I'm considering turning it into a SRFI to serve as a possible alternative to SRFI 41 and/or 127. -- John Cowan http://www.ccil.or

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

2016-01-06 Thread John Cowan
i-121/>; review the discussion archive; sign up for the associated mailing list (or <http://srfi.schemers.org/srfi-list-subscribe.html> for all SRFI discussions); and post away. We're grateful for all constructive feedback. Thank you, and happy scheming! — SRFI editor - End for

Re: [Chicken-users] another egg

2016-01-04 Thread John Cowan
if x is 'quote or 'a, you get 1; if it's 'b, you get 2, otherwise you get #f. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Dream projects long deferred usually bite the wax tadpole. --James Lileks _

Re: [Chicken-users] Using fmt and numbers eggs together

2016-01-02 Thread John Cowan
n csi itself) have to be compiled with it to work with it. Chicken 5 will make this go away, fortunately. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Let's face it: software is crap. Feature-laden and bloated, written under tremendous time-pressure, often by incap

Re: [Chicken-users] chicken-spock and 'load'

2015-12-27 Thread John Cowan
Sudarshan S Chawathe scripsit: > The 'load' not working makes sense now; thanks for the reminder! It > seems odd that 'include' or something similar isn't available. Apparently you are just supposed to supply multiple files of Scheme code on the Spock command line

Re: [Chicken-users] chicken-spock and 'load'

2015-12-27 Thread John Cowan
example, use portable SRFI > implementations within my code destined for Javascript via > chicken-spock.) All I can suggest is that you compile them separately and then concatenate the resulting JavaScript files. However, if the SRFIs include macros, those macros won't be available to yo

Re: [Chicken-users] [ANN] sdl2 and sdl2-image 0.1

2015-12-19 Thread John Cowan
Evan Hanson scripsit: > Building with gcc-5 instead worked fine. That's because the default for GCC 5.x is --std=c11 instead of --std=c89. The safest approach is to insert --std=c89 into the build commands. -- weirdo:When is R7RS coming out? Riastradh: As soon as the top is a beautiful gol

Re: [Chicken-users] This may be a bug in chickens hash tables - or my bad

2015-12-18 Thread John Cowan
Otherwise, if you had a tree like (a (b c) (b c)), then any information associated with the first (b c) would be overwritten if you associated information with the second (b c). This is quite independent of whether you ever mutate the tree or not. -- John Cowan http://www.ccil.org/~cowan

Re: [Chicken-users] Continuations, control flow, and F-operator

2015-12-13 Thread John Cowan
normal" procedure (which is to say somewhat slower than in comparable Schemes like Gambit), so Oleg Kiselyov's portable implementation works well. There are only a few Chicken-specific touches, as you can see by loading the code with "chicken-install -r F-operator". -- Jo

Re: [Chicken-users] optional type checking

2015-12-07 Thread John Cowan
is the documentation. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org And they pack their lyrics till they're so damn dense You could put 'em in your yard and you could use 'em for a fence. --Alan Chapman, "Ever

Re: [Chicken-users] srfi-101 egg

2015-11-07 Thread John Cowan
ns, and in any case it calls both of them "srfi-101". I completely rewrote it. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Verbogeny is one of the pleasurettes of a creatific thinkerizer. --Peter da Silva

Re: [Chicken-users] unary 'when' and 'unless'

2015-11-06 Thread John Cowan
hat would look for malformed standard syntax, too many or too few or manifestly wrong-typed arguments to standard procedures, and so on. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Any day you [see] all five woodpeckers is a good day. --Elliotte Rusty Harold ___

Re: [Chicken-users] one more egg - need advice how wrt. exports

2015-11-03 Thread John Cowan
hmetic by dropping the "fl" prefix from flonum-specific routines. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Fundamental thinking is ha-ard. Let's go ideology-shopping. --Philosopher Barbie __

Re: [Chicken-users] one more egg - need advice how wrt. exports

2015-11-03 Thread John Cowan
> /Jörg > > _______ > Chicken-users mailing list > Chicken-users@nongnu.org > https://lists.nongnu.org/mailman/listinfo/chicken-users -- John Cowan http://www.ccil.org/~cowanco...@ccil.org "But I am the real Stride

Re: [Chicken-users] Regex fail?

2015-10-30 Thread John Cowan
$ will match the beginning and end of a line as well as the beginning and the end of the string. In non-multi-line mode, they match only the beginning and the end of the string. Single-line mode means that dot matches newline; non-single-line mode means that it does not. -- John Cowan

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

2015-10-30 Thread John Cowan
"Jörg F. Wittenberger" scripsit: > John, does a chicken implementation already exist? SRFI 125 is only implemented for Larceny, but the code's pretty portable. I'm in the process of replacing SRFI 114 with the simpler SRFI 128, so hold off on that for a bit. -- J

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

2015-10-29 Thread John Cowan
value. The fold > operation for "binding-set" is to be called with three arguments, key, > value and result-so-far. Just like srfi-69's hash-table-fold. So SRFI 1 and SRFI 69 agree here, if you think of key and value as the the way of specifying an association. -- John Co

Re: [Chicken-users] Some findings (WAS: Re: ANN: new eggs "llrb-syntax" and "llrb-tree")

2015-10-27 Thread John Cowan
"Jörg F. Wittenberger" scripsit: > [1] http://www.webfunds.org/guide/ricardian_implementations.html I read this with interest, but what does it have to do with David Ricardo? -- John Cowan http://www.ccil.org/~cowanco...@ccil.org And they pack their lyrics till th

Re: [Chicken-users] Windows deployment - Numbers egg

2015-10-04 Thread John Cowan
on the extension "DLL". That's because the brain-dead Windows loader has to be used, as your application does not yet have control. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org In politics, obedience and support are the same thing. --Hannah Arendt __

Re: [Chicken-users] regex to be actively deprecated some day?

2015-09-07 Thread John Cowan
x27;s because calls to the regex API call the irregex API. That costs you something, but I don't believe it's much. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org If you have ever wondered if you are in hell, it has been said, then you are on a well-traveled ro

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

2015-08-13 Thread John Cowan
Alaric Snell-Pym scripsit: > Excellent! May I offer some tips? +1 to these, and also it's better if do* calls syntax-error rather than error. -- weirdo:When is R7RS coming out? Riastradh: As soon as the top is a beautiful golden brown and if you stick a toothpick in it, the toothpick comes

Re: [Chicken-users] sequential version of set!

2015-08-12 Thread John Cowan
, it does not mutate the iteration variables but rebinds them, and named `let` is all about looping while rebinding. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org You know, you haven't stopped talking since I came here. You must have been vaccinated with a

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

2015-08-07 Thread John Cowan
not using Cygwin-64 yet myself, so there is no hurry on this.) -- John Cowan http://www.ccil.org/~cowanco...@ccil.org He made the Legislature meet at one-horse tank-towns out in the alfalfa belt, so that hardly nobody could get there and most of the leaders would stay home and let h

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

2015-06-14 Thread John Cowan
echnically undefined programs in order to speed up defined ones. See <http://blog.regehr.org/archives/1180> for more on this. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Mr. Henry James writes fiction as if it were a pa

Re: [Chicken-users] unbound variable: or

2015-06-03 Thread John Cowan
Peter Bex scripsit: > It's pretty cool in that it supports both er/ir macros *and* syntactic > closures. Thanks. I've updated <http://trac.sacrideo.us/wg/wiki/SyntaxDefinitions> accordingly. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org An obs

Re: [Chicken-users] unbound variable: or

2015-06-02 Thread John Cowan
, though several important implementations don't have it and probably never will. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org I am he that buries his friends alive and drowns them and draws them alive again from the water. I came from the end of a bag, but no bag we

Re: [Chicken-users] use vs uses?

2015-05-31 Thread John Cowan
th "import". In R7RS mode, the rules are different: "import" does what native Chicken "use" does, and module names are lists of symbols that are converted into library names thus: module (foo bar baz) corresponds to library &quo

  1   2   3   4   5   6   7   8   9   10   >