Search found 7 matches

by Thorstein
Sun Mar 26, 2023 2:42 pm
Forum: newLISP newS
Topic: I'd like to offer to take over these forums
Replies: 25
Views: 2942

Re: I'd like to offer to take over these forums

Thanks for stepping up itistoday, Astrobe, and others! Greg, your blog post on taoeffect turned me on to newlisp ten(?) years ago, and I remain a big fan. Like dukester I'm on my last quarter century, so not sure how much I can contribute, but at least a little cash here and there. I'm on the road f...
by Thorstein
Mon Jun 28, 2021 10:43 pm
Forum: Anything else we might add?
Topic: (read-expr "08") reads octal?
Replies: 2
Views: 2637

Re: (read-expr "08") reads octal?

Aha!:
"Octals start with an optional + (plus) or - (minus) sign and a 0 (zero), followed by any combination of the octal digits: 01234567. Any other character ends the octal number. Only up to 21 octal digits are valid and any more digits are ignored."

Thanks.
by Thorstein
Fri Jun 04, 2021 4:29 pm
Forum: Anything else we might add?
Topic: (read-expr "08") reads octal?
Replies: 2
Views: 2637

(read-expr "08") reads octal?

This behavior was a little unexpected. newLISP v.10.7.5 64-bit on Linux IPv4/6 UTF-8 libffi, options: newlisp -h > (read-expr "08") 0 > (read-expr "07") 7 > (read-expr "06") 6 > (read-expr "09") 0 > (eval-string "08") 8 > (eval-string "09") 9 > (read-expr "08") 0 > $count 1 > (read-expr "07") 7 > $c...
by Thorstein
Tue Jan 05, 2021 3:47 pm
Forum: Anything else we might add?
Topic: Manipulating byte strings -- SOLVED
Replies: 2
Views: 3922

SOLVED: Re: Manipulating byte strings

Thanks, fdb, but I don't want utf-8 chars; I need a byte stream. But I think I've found a major source of my confusion, so I'll mark this thread "SOLVED": (char "x") => a Unicode code-point. This should perhaps have been obvious to me, but "code-point" is not mentioned in the Manual. Consequently my...
by Thorstein
Tue Dec 29, 2020 1:44 am
Forum: Anything else we might add?
Topic: Manipulating byte strings -- SOLVED
Replies: 2
Views: 3922

Manipulating byte strings -- SOLVED

[See solution in thread below.] I'm trying to implement several versions of the Lempel-Ziv-x and Snappy compression algorithms.  Ordinarily, I like to get my logic straight in Lisp, and then, if I need the speed, I'll port the tight loops to a C library.  In this case, however, NEWLisp has been atyp...
by Thorstein
Mon Jun 15, 2015 7:28 pm
Forum: newLISP in the real world
Topic: println decimal string
Replies: 2
Views: 3494

Re: println decimal string

Thanks, Lutz! I found the latest UTF8 build. That is doing the trick. (That and RTFM! :-/ ).

And many thanks for this great Lisp! (And for the great documentation.)
by Thorstein
Tue May 26, 2015 11:46 pm
Forum: newLISP in the real world
Topic: println decimal string
Replies: 2
Views: 3494

println decimal string

Running on windows, (exec)'ing Google Translate returns the following str inside a JSON container: (a) "Nous allons habiller pour la randonnée, selon la météo." However, somewhere in the process of a (string str "") or (replace x str y) the str begins to (println) as this: (b) "Nous allons habiller ...