[Top][All Lists]

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

SRFI-151 (bitfiddling) for guile

From: Linus Björnstam
Subject: SRFI-151 (bitfiddling) for guile
Date: Sat, 06 Apr 2019 14:50:24 -0400
User-agent: Cyrus-JMAP/3.1.6-329-gf4aae99-fmstable-20190329v1

Hi there!

I have "ported" all of srfi-151 to guile. There wasn't that much porting 
involved, since most of the functionality is provided by guile as srfi-60 and 
the basic bitwise arithmetic in guiles standard environment.

It passes all the tests in the srfi document. If one wants to include it in 
guile's main distribution (as FSF-copyrighted LPGL), you would need to make a 
clean-room implementation of the procedures in bitwise-other.scm (bits->vector, 
vector->bits, bit-swap, bitwise-fold, bitwise-for-each, bitwise-unfold and 
make-bitwise-generator). I don't know about the tests, so probably them as 
well. The rest of the code is public domain (code by Olin Shivers edited by 
John Cowan, and code by me).

The repo is here:

and the srfi document can be found here:

Best regards
Linus Björnstam

reply via email to

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