Re: Guile Hacker Handbook - Character sets

2021-02-18 Thread John Cowan
ements like the use of lower case, upper case, digits, etc. is not allowed. The security they add is negligible. 7) Passwords must be screened against a list of commonly used passwords, known compromised passwords, and dictionary words, as password cracking programs will usually try such passwords

Re: rfc: next guile 1.8.x release

2021-02-06 Thread John Cowan
anguage than Guile 2/3 Agreed: a different dialect of Scheme should have its own name. 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 conjuguant le nyania qui bruit des sexes en compagnie, il suppl

Re: Help making a GNU Guix package for pure GNU Guile library

2021-01-30 Thread John Cowan
eature rather than removing the weaknesses and restrictions that make additional features appear necessary. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Is it not written, "That which is written, is written"?

Re: r6rs and posix sockets

2021-01-22 Thread John Cowan
(import (guile)) does the trick. On Fri, Jan 22, 2021 at 8:59 PM Rohan Drape wrote: > hello list > > a very simple question i hope > > how do we access the guile posix/sockets functions from within an r6rs > library? > > in ikarus there is (import (ikarus)), is it something similar? > > i see th

Re: is there a way to serialize hash tables?

2020-12-25 Thread John Cowan
I think that's the best bet, although JSON is also a possibility. I'm working on a more general text-serialization solution, but it will be quite some time before I have a chance to work on it. On Fri, Dec 25, 2020 at 10:28 PM Tim Meehan wrote: > I have a big-ish blob of key-value pairs that I

Re: broken link on "Learn" page

2020-12-25 Thread John Cowan
Note that all the Scheme standards from r0rs.pdf (~chuckle~) to r7rs.pdf are now posted at files.scheme.org. This is expected to be stable. On Fri, Dec 25, 2020 at 12:07 PM Amin Bandali wrote: > Hello, > > Tim Meehan writes: > > > There is a broken link to the "Internet Scheme Repository" on th

Re: Question about data structures

2020-11-22 Thread John Cowan
left, at which > point the append operation is much heavier for one call, then the > following calls are dirt cheap again, until it's full again... > And the recent SRFI 214, Flexvectors, provides exactly this. Packaging these two SRFIs for Guile would be a Good Thing. John Cowa

Re: Surprising behavior of eq?

2020-09-20 Thread John Cowan
On Sun, Sep 20, 2020 at 4:52 PM Linus Björnstam wrote: Just a quick note on guile: if you are testing equality against literals > guile will optimize to the fastest kind. (equal? b 27) becomes (eq? b 27). Indeed, it's a Good Thing if equal? starts out with an eqv? test (which should be inlined

Re: Surprising behavior of eq?

2020-09-20 Thread John Cowan
On Sun, Sep 20, 2020 at 11:37 AM Zelphir Kaltstahl < zelphirkaltst...@posteo.de> wrote: > "This is where the eqv? predicate comes into picture. The eqv? is exactly > the same as the eq? predicate, except that it will always return #t for > same primitive values." > > Of course SO is not a standard

Re: Surprising behavior of eq?

2020-09-20 Thread John Cowan
What's happening is that you are trying to compare strings with an inappropriate predicate. Eqv? tests for *identity* (being the same object), whereas equal? tests for *equality* (havng the same structure). Therefore, (equal? "foo" "foo") will always return #t, and almost all the time that's the p

Re: Implementing a "write" method for self-evaluating objects (by equal?)

2020-09-17 Thread John Cowan
In general you want to print records but not make them readable, as there are often constraints against allowing arbitrary values in the fields. For example, in SRFI 117 list queues, there are two fields named head and tail. Either both must be the empty list, or they must both be pairs and tail

Re: What is the point of bytevectors?

2020-09-12 Thread John Cowan
You're welcome! On Sat, Sep 12, 2020 at 1:14 PM divoplade wrote: > Dear John Cowan, > > Le samedi 12 septembre 2020 à 12:48 -0400, John Cowan a écrit : > > > 3. The bytevector library is missing a lot of text functions (like > > > join, split, trim, pad, searchin

Re: What is the point of bytevectors?

2020-09-12 Thread John Cowan
SRFI 207, though not yet final, comes to your rescue. You can't get the spiffy syntax described at < https://srfi.schemers.org/srfi-207/srfi-207.html> unless you modify the Guile reader, but the procedures documented there can be found at < https://github.com/Zipheir/byt

Re: list-set! Wrong type argument in position 1 (expecting mutable pair)

2020-08-26 Thread John Cowan
First of all, Racket's pairs are immutable, so it provides list-set (non-destructive) rather than list-set!. Second, it is an error to mutate a literal, since that amounts to self-modifying code. Some Schemes don't enforce that, but Guile does. So you need (list-set! (list "one" "tw" three")

Re: About exception handling again ...

2020-08-02 Thread John Cowan
e stack one must use one of CL's three upward continuations: block/return, tagbody/go, or catch/throw. The last is dynamically scoped, so it is usually the thing to do in this context. Handler-bind, like guard, is a convenience macro for emulating stack-unwonding systems._ John Cowan

Re: library vs define-module issue

2020-08-01 Thread John Cowan
g the standard base library and then bringing in anything Guile-specific with (import (only (guile) ...)). This advice also applies to Chibi, but not so much to Chicken unless you are specifically using the R7RS mode. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Is not a pat

Re: A licence for an ‘awesome list’ (was: Starting a GNU Guile awesome list)

2020-07-16 Thread John Cowan
GPLed. But being required to distribute the editable source for a specific copy of a printed book along with the book (or a written offer to provide it on demand) is a nuisance. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org I don't know half of you half as well

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-12 Thread John Cowan
ral different recovery schemes (for example, change the divisor, signal a non-continuable error from `divide`, tell `divide` to return +nan.0), then restarts are your friend. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org I could dance with you till the cows come home.

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-11 Thread John Cowan
the burden of persuasion lies with you. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Mos Eisley spaceport. You will never see a more wretched hive of scum and villainy --unless you watch the Jerry Springer Show. --georgettesworld.com

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-11 Thread John Cowan
Sorry, I meant SIGNAL, not RAISE, in CL. I'm glad Guile supports `guard`. On Sat, Jul 11, 2020 at 6:39 PM Chris Vine wrote: > On Sat, 11 Jul 2020 14:20:22 -0400 > John Cowan wrote: > > On Sat, Jul 11, 2020 at 6:14 AM Chris Vine > wrote: > > > > &

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-11 Thread John Cowan
condition communicates information from a signaler (which knows what is wrong) to a handler (which knows what to do), a restart communicates information from the handler (which knows what should be done) back to the signaler (which knows how to do it). John Cowan http://vrici.lojban.o

Re: Naming conventions

2020-07-07 Thread John Cowan
whole large file into memory and you needed to work on a file page by page (often, but not necessarily, the size of a printed page). I would also say that single-letter variable names are fine in local contexts: there is no great reason to call the indices of a matrix anything but i and j. In gene

Re: C programs in Scheme syntax

2020-05-28 Thread John Cowan
Check out the Chibi library (chibi show c). in the Chibi repo at lib/chibi/show/c.scm and .sld. It provides combinators that create a C equivalent of the sexp; there is both a macro-based compiler and an interpreter, IIRC. Unfortunately there is no real documentation. There's some cleverness in

Re: question about values

2020-03-18 Thread John Cowan
There is going to be a performance penalty, because you are taking multiple values (which is not a value) and making it into a value by creating a list. There is no getting away from that except to exclude multiple values. Note also that if the procedure throws an exception, your finalizer will n

Re: stis-data

2020-02-11 Thread John Cowan
Please document the binary format so that it is possible to write code in non-Guile (other Schemes or anything else) that can interoperate with it. On Tue, Feb 11, 2020 at 5:16 PM Stefan Israelsson Tampe < stefan.ita...@gmail.com> wrote: > HI, > > I just want to announce my pure guile safe serial

Re: Logo proposal

2020-01-26 Thread John Cowan
gs proper", where the (green) frogs can appear on the red background. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org A poetical purist named Cowan [that's me] Once put the rest of us dowan. [on xml-dev] "Your vers

Re: Logging in Guile

2020-01-13 Thread John Cowan
I have a rough proposal now at < https://bitbucket.org/cowan/r7rs-wg1-infra/src/default/SyslogCowan.md>. It depends on either being able to send TCP or UDP packets or preferably to call the Posix API through the FFI. It is very basic and leaves log rotation etc. to the syslog infrastructure. On

Re: SRFI-151 (Bitwise Operations) Implementation

2020-01-09 Thread John Cowan
have only two arguments (and this comes from Olin's original) is that they aren't associative: it's ambiguous whether (bitwise-nand a b c) means (bitwise-nand (bitwise-nand a b) c) or (bitwise-nand a (bitwise-nand b c)), and these are *not* equivalent. Rather than choosing one of

Re: Guile fibers return values

2020-01-06 Thread John Cowan
this: "Just like in JavaScript" basically :D > JS promises, I think, are futures. https://en.wikipedia.org/wiki/Futures_and_promises shows just how confusing the terminology is. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Fundamental thinking is ha-ard. Let's go ideology-shopping. --Philosopher Barbie

Re: Guile fibers return values

2020-01-06 Thread John Cowan
Conceptually, parallelism and concurrency are two different and partly independent things. Parallelism refers to physically simultaneous execution, as when you throw a ball into the air in each hand and catch it in the same hand. Each throw-catch cycle is a parallel process (using "process" in th

Re: Guile fibers return values

2020-01-04 Thread John Cowan
as the simplest and most reliable. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Deshil Holles eamus. Deshil Holles eamus. Deshil Holles eamus. Send us, bright one, light one, Horhorn, quickening, and wombfruit. (3x) Hoopsa, boyaboy, hoopsa! Hoopsa, boyaboy, hoopsa!

Re: GNU Guile 2.9.7 Released [beta]

2019-12-13 Thread John Cowan
ker.go] Error 139 make[2]: Leaving directory '/home/rr828893/guile-2.9.7/bootstrap' Makefile:1849: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/rr828893/guile-2.9.7' Makefile:1735: recip

Re: Weird behavior of hash-table

2019-11-24 Thread John Cowan
x27;a 'b 'c) or (in expression context) '#('a 'b 'c) is a vector of two-element lists, which is how the OP got into trouble. Is there a corresponding weird relative of `(...)? No, because the elements of a vector literal, like those of a quoted list, are in datum conte

Re: guile-json, SRIFs and licenses

2019-11-09 Thread John Cowan
I said As for clang, Apple funded it for commercial reasons, but there were efforts among BSD developers to write their own C compiler for years before that, though they came to nothing. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Ambassador Trentino: I've said enough. I'm a man of few words. Rufus T. Firefly: I'm a man of one word: scram!--Duck Soup

Re: guile-user Digest, Vol 204, Issue 2

2019-11-08 Thread John Cowan
The specific wording can be found at point 9 of < https://srfi.schemers.org/srfi-process.html>. On Fri, Nov 8, 2019 at 2:34 PM Mark H Weaver wrote: > Hi Aleix, > > Aleix Conchillo Flaqué wrote: > > If at some point I decide to switch to the MIT license I assume > > the projects that currently u

Re: guile-user Digest, Vol 204, Issue 2

2019-11-08 Thread John Cowan
hings as is unless the Guile community > and guile-json users tell me to switch or do something different. > Understood. You can disregard the issue that I filed at Github. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org With techies, I've generally found

Re: guile-user Digest, Vol 204, Issue 2

2019-11-08 Thread John Cowan
PM Mark H Weaver wrote: > I wrote: > > Zelphir could propose a SRFI for the API only, with no reference > > implementation. The existing implementation could remain copylefted. > > John Cowan replied: > > Unfortunately not. A SRFI must have a sample implementation

Re: guile-user Digest, Vol 204, Issue 2

2019-11-08 Thread John Cowan
Unfortunately not. A SRFI must have a sample implementation to get finalized (otherwise it is feared there would be too many WIBNI SRFIs). The implementation doesn't have to be portable, but it has to have the correct license. On Fri, Nov 8, 2019 at 11:43 AM Mark H Weaver wrote: > Jo

Re: guile-json, SRIFs and licenses

2019-11-06 Thread John Cowan
s more important than widespread use across different Schemes (the goal of the SRFIs and all standardization efforts), then the GPL is the license of choice. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org And through this revolting graveyard of the universe the muffled

Re: guile-json, SRIFs and licenses

2019-11-06 Thread John Cowan
x27;t > care licenses) as it does not make sure, that modifications flow back to > the community. Do SRFIs require MIT license? And if so, why? > > ~ Zelphir > > On 11/6/19 1:28 AM, John Cowan wrote: > > +1. If only it weren't GPL3, which makes it ineligible to be a SRFI

Re: guile-user Digest, Vol 204, Issue 2

2019-11-05 Thread John Cowan
+1. If only it weren't GPL3, which makes it ineligible to be a SRFI implementation Is there any chance of dual-licensing it under MIT? On Tue, Nov 5, 2019 at 7:03 PM Zelphir Kaltstahl wrote: > This is great! A solid JSON parsing and outputting library is important > for a programming langu

Re: [ANN] guile-json 3.3.0 released

2019-11-05 Thread John Cowan
Thanks, this is great! I'm curious though why you didn't take up my suggestion of using 'null rather than #nil, given the points I raised at < https://github.com/aconchillo/guile-json/issues/31>. On Tue, Nov 5, 2019 at 1:28 AM Aleix Conchillo Flaqué wrote: > Hi, > > I'm pleased to announce guil

Re: Use core or SRFIs?

2019-10-24 Thread John Cowan
(binary-bit-vector-operation > bv1 > bv2 > (lambda (b1 b2) > (and b1 b2)) > ~ > > It is also in my todo file on: > > https://notabug.org/ZelphirKaltstahl/bitboard/src/dev/todo.org > > (Btw.: I really like that notabug renders Em

Re: Use core or SRFIs?

2019-10-24 Thread John Cowan
tribute it. > There is NO WARRANTY, to the extent permitted by law. > ~ > > Are you suggesting, that I copy the code for SRFI 151 from somewhere and > put it into my project? > > Regards, > > Zelphir > On 10/24/19 7:02 PM, John Cowan wrote: > > For bi

Re: Use core or SRFIs?

2019-10-24 Thread John Cowan
For bitwise integers, I recommend SRFI 151. If you use your implementation to provide the seven core functions bitwise-not, bitwise-and, bitwise-ior, bitwise-xor, arithmetic-shift, integer-length, and bit-count, all of which have definitions in bitwise-core.scm that are very slow, then you'll have

Re: srfi-64 apathetic test-error

2019-10-24 Thread John Cowan
Note however that such error tests are inherently non-portable (except in R6RS systems only) and should be avoided when testing code intended to be portable. On Thu, Oct 24, 2019 at 12:20 PM Taylan Kammer wrote: > On 23.10.2019 06:37, Christopher Howard wrote: > > Hi, I was just wondering: `test

Re: Diversification [ branched from Re: conflicts in the gnu project now affect guile]

2019-10-19 Thread John Cowan
stly mailing lists and IRC. This _not_ my students' natural digital > habitat. The only natural digital habitat of human beings is their fingers. All else is learned, and more can be learned at any time. There's no reason why students ought to be so closed to new experiences.

Re: srfi-9 vs make-record-type

2019-07-21 Thread John Cowan
record type should be defined only once. In my code, I often export the predicate and accessors, but not the constructor or mutators. Then I export a factory method that may or may not call the constructor. It may be convenient to define the record-type in its own module. John Cowan ht

Re: Raising awareness about guile-pfds status

2019-07-15 Thread John Cowan
ree functional vectors have the same big-O no matter what. There will be a fector SRFI. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org You are a child of the universe no less than the trees and all other acyclic graphs; you have a right to be here. --DeXiderata by Sean McGrath

Re: Srfi-159/166 - monadic formatting for guile

2019-06-16 Thread John Cowan
rinter outputs its instance variables where one of those instance variables has been assigned to the object itself. No procedure other than the object printer itself is going to be able to break *that* loop. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Yes, chili in the e

Re: Self-evaluating function and closure

2019-06-15 Thread John Cowan
s on Guile 2.2.4. Try restarting Guile and doing just the commands above and see if it persists. John Cowan http://vrici.lojban.org/~cowanco...@ccil.org The whole of Gaul is quartered into three halves. --Julius Caesar

Re: SRFI-151 (bitfiddling) for guile

2019-04-06 Thread John Cowan
and/or the copyright ownership on the Guile version of bitwise-other and the tests to LGPL if that is useful to Guile. Let me know if there is formal paperwork to fill out. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Being understandable rather than obscuranti

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: Tangerine Edition penultimate report: how I voted, how you're, voting (John Cowan)

2019-01-19 Thread John Cowan
but actually isn't > so good and screw up the voting? It's like any other decision with imperfect information: you look it over and give it your best shot based on what makes sense to you. "Prediction is very difficult, especially about the future." -- John Cowan

Re: [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: 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 less than the trees and all other acyclic graphs; you have a right to be here. --DeXiderata by Sean McGrath

Re: Re parse-result

2019-01-17 Thread John Cowan
ules like A | B, where the first token has to be enough to tell you if you have an A or a B, you have rules like A / B, which means "assume it's an A, and only if it fails, assume it's a B". If A and B overlap, non-PEG parsing has to treat A | B as a grammar ambiguity and re

Re: 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: &

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

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: scm file parsing

2019-01-04 Thread John Cowan
I don't know how well it works, but https://github.com/mjsottile/sfsexp seems to be exactly what you want. Googling [s-expressions parser python] will point you to a lot of Python ones. On Fri, Jan 4, 2019 at 3:53 PM Hamzeh Nasajpour wrote: > Hi, > I have a configuration file that written based

Re: Bugs in guile-json builder

2019-01-02 Thread John Cowan
Filed all issues. On Wed, Jan 2, 2019 at 6:44 PM Aleix Conchillo Flaqué wrote: > Hi, > > On Wed, Jan 2, 2019 at 7:14 AM John Cowan wrote: > > > > I'm not sure where best to report these, so sending this email. > > > > Same as before, github issues should w

Bugs in guile-json builder

2019-01-02 Thread John Cowan
object first. This requires an extra tree walk, but for example if you call (json-scm (vector 1 2 3 #u8(1 2 3))) it will output "[1,2,3" before throwing an exception. This is not the Right Thing: a procedure that does output should work correctly or fail cleanly without outputting an

Problems with JSON null

2019-01-02 Thread John Cowan
In the current version of guile-json, JSON null is represented internally as #nil. Because of the magic behavior of #nil, this causes certain problems when trying to discriminate between various internal JSON representations. For example, the programmer will expect (list? j) to detect a JSON obje

Re: Matrix or array operations library

2018-12-28 Thread John Cowan
them. There is a post-SRFI fork at https://github.com/gambiteer/srfi-122/ which will fairly soon become an updated SRFI. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Yakka foob mog. Grug pubbawup zink wattoom gazork. Chumble spuzz. --Calvin, giving Newton's First Law "in his own words"

Re: Matrix or array operations library

2018-12-27 Thread John Cowan
any more possibilities: anything that can be expressed as an affine transformation can be obtained in this way. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org There are books that are at once excellent and boring. Those that at once leap to the mind are Thoreau's W

Re: guile-json 2.0.0 released

2018-12-19 Thread John Cowan
On Wed, Dec 19, 2018 at 1:16 PM Aleix Conchillo Flaqué wrote: So, I'm really considering switching to alists for objects and vectors > for arrays. > I still favor the other way about: lists for arrays, avectors for objects, because arrays are typically varying in length and objects are mostly no

Re: Best practices for processing s-expressions representing configurations/DSLs

2018-12-17 Thread John Cowan
Definitely you should view it as data. Think more than twice (indeed, more than 200 times) before you evaluate s-expressions coming from outside. "Eval is spelled E-V-I-L". On Mon, Dec 17, 2018 at 4:03 PM Stephen Scheck wrote: > Hello, > > I'm very new to Guile/Scheme/Lisp programming (but love

Re: 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

Re: Unicode numeric value

2018-12-15 Thread John Cowan
I can't help (yet) if you need the full numeric value. But if the decimal digit value is enough for you, then the attached source file should work (from Chibi). On Sat, Dec 15, 2018 at 11:32 PM Freeman Gilmore wrote: > I am looking for a procedure that will read the numeric value, field 8, of >

Re: Guile Ports and C Streams

2018-12-14 Thread John Cowan
much less Windows. -- John Cowan http://vrici.lojban.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 tricks like the

Re: guile-json 2.0.0 released

2018-12-13 Thread John Cowan
not to preserve order, there is simply no requirement to preserve it. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Overhead, without any fuss, the stars were going out. --Arthur C. Clarke, "The Nine Billion Names of God"

Re: guile-json 2.0.0 released

2018-12-13 Thread John Cowan
ists for objects None are ideal. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Be yourself. Especially do not feign a working knowledge of RDF where no such knowledge exists. Neither be cynical about RELAX NG; for in the face of all aridity and disenchantment in the wo

Re: guile-json 2.0.0 released

2018-12-13 Thread John Cowan
18 at 11:56 AM Thompson, David wrote: > On Thu, Dec 13, 2018 at 11:35 AM John Cowan wrote: > > > > > > > > On Thu, Dec 13, 2018 at 9:31 AM Thompson, David < > dthomps...@worcester.edu> wrote: > > > >> * They have no read syntax > >> * The

Re: guile-json 2.0.0 released

2018-12-13 Thread John Cowan
an be built up as an alist and then converted with list->vector. So given that we are changing the structure anyhow, I recommend this approach. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Even a refrigerator can conform to the XML Infoset, as long as it has a door stick

Re: help with guile-json inconsistencies

2018-12-10 Thread John Cowan
son egg depends on the packrat egg at < http://wiki.call-cc.org/eggref/5/packrat> which has no further dependencies, but it would be easy to replace the packrat parser with a hand-rolled parser. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org If I have seen farth

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: Explaining raising conditions and defining condition types in the guile manual

2018-11-09 Thread John Cowan
, but may return true on other conditions as well, implementation-dependently. I'm hoping to add more predicates of this type for R7RS-large. The implementation of such a feature cannot be portable, but should be trivial in any one Scheme. -- John Cowan http://vrici.lojban.org/~cowan

Re: [ANN] guile-msgpack: MessagePack for GNU Guile (+ help needed)

2018-09-19 Thread John Cowan
On Wed, Sep 19, 2018 at 7:32 PM HiPhish wrote: > John Cowan wrote: > > How popular is r6rs anyway? From what I gathered it was pretty badly > received > and r7rs small was intentionally designed to be less ambitious, while the > upcoming r7rs will be larger than even Comm

Re: [ANN] guile-msgpack: MessagePack for GNU Guile (+ help needed)

2018-09-19 Thread John Cowan
ugh of your money to cover credit-card processing costs (for personal campaigns like this one), they are okay with small donations. Although they are best known for crowdfunding personal emergencies, they do handle works of art as well (software is an art, we have Knuth's word for it). --

Re: A value for "nothing"

2018-09-14 Thread John Cowan
n't work as they should. The MessagePack spec calls the type > `nil`: > https://github.com/msgpack/msgpack/blob/master/spec.md#nil-format > > > John Cowan wrote: > > 1) Some Schemes don't support rename on export. Just give the procedure > > the name you want it

Re: A value for "nothing"

2018-08-28 Thread John Cowan
note plural), but in the examples appears "⇒ unspecified", showing that this notation can be used where multiple unspecified values (or zero values) are allowed. In practice, I know of no Scheme implementation that returns other than one value in any of these "unspecified value

Re: A value for "nothing"

2018-08-28 Thread John Cowan
specified object across all the Schemes I have tested, most often the last. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org LEAR: Dost thou call me fool, boy? FOOL: All thy other titles thou hast given away: That thou wast born with.

Re: How to get started in guile & programming generally

2018-08-27 Thread John Cowan
directory that you own, without any kind of root privilege required. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org My confusion is rapidly waxing For XML Schema's too taxing: I'd use DTDs / If they had local trees -- I think I best switch to RELAX NG.

Re: A value for "nothing"

2018-08-27 Thread John Cowan
present them as symbols, since they are often repeated from one object to the next. There is no such limitation in MessagePack, although I bet strings are the most common type of map keys. -- John Cowan http://vrici.lojban.org/~cowanco...@ccil.org Knowledge studies others / Wisdo

Re: Comparing two hash tables for equality?

2018-08-26 Thread John Cowan
iple hash tables, as can > be done with lists, association lists, or balanced trees. But not with vectors or strings. (SRFI 135 texts, which are immutable, can and do share.) In addition, lists can only safely share if you restrict yourself by never mutating them. -- John Cowan http://

Re: A value for "nothing"

2018-08-26 Thread John Cowan
Well, you could use #nil, a Guile-specific unique object that is both falsy (like #f) and answers #t to the null? predicate. It is used to emulate Common Lisp's and Elisp's nil. But a more portable approach would be to define a record type with no slots and make just one instance of it. On Sun,

Re: lat? and atom? not in guile?

2018-06-20 Thread John Cowan
repetitive. It's explicitly compared in the introduction to Hanon's finger exercises for the piano: C-E-F-G-A-G-F-E, D-F-G-A-B-A-G-F, E-G-A-B-C-B-A-D and so on forever, up the scale and down in every key. Boring as hell, but just the thing to get fluency into your fingers. -

Re: lat? and atom? not in guile?

2018-06-19 Thread John Cowan
Neither is part of any Scheme standard. Most Schemes that define atom?, define it as (lambda (x) (not (pair? x)), tracking the standard Common Lisp definition. But TLS excludes () from atoms as well. The definition used by TLS is on p. xiii of the fourth edition: (define atom? (lambda (x)

Re: values in a non-values context

2018-06-14 Thread John Cowan
It's determined by the implementation. < https://bitbucket.org/cowan/r7rs-wg1-infra/src/default/MultipleValues.md> lists what several implementations actually do. Many similar pages are accessible from < https://bitbucket.org/cowan/r7rs-wg1-infra/src/default/ImplementationContrasts.md >. On Thu,

Re: German translation of R5RS

2018-05-29 Thread John Cowan
THUNK argument is referred to > as PROC. Should such (minor) errors be fixed? One of my patches also > fixes a misplaced space character in the Texinfo. > http://mumble.net/~kelsey/r5rs-errata.html are the semi-official errata. IMO you should incorporate them. -- John Cowan

Proposal: accepting .sls and .guile.sls as module extensions

2018-05-20 Thread John Cowan
(I'm not sure which mailing list to post this to, so I'm using guile-user as seemingly the most general.) As an R6RS implementation, it would improve interoperability if Guile accepted .sls and .guile.sls as extensions for module files. In this way, it would be possible to release portable code w