Artyom Bologov <[email protected]> writes:
> I wonder if it’s possible to have SRFI 253
> <https://srfi.schemers.org/srfi-253/srfi-253.html> support in Guile in
> an efficient/correct way, instead of simply packaging the sample
> implementation?

Sorry for the late reply. The path I took for define-typed (with
exceptions thrown) offers the same performance improvements as
handwritted guards following
<https://dthompson.us/posts/optimizing-guile-scheme.html>.

So if you didn’t do it already by now, you might be able to borrow code
from the implementation of define-typed (you have my OK for that, also
to use the license needed for a SRFI):

https://www.draketo.de/software/guile-define-typed

There’s also a simple benchmark included to check whether the
performance holds up to optimizing with guards by hand.

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
https://www.draketo.de

Attachment: signature.asc
Description: PGP signature

Reply via email to