unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Type declarations and data validation utils?
@ 2024-07-16 10:03 Artyom Bologov
  2024-07-21 17:13 ` Maxime Devos
  0 siblings, 1 reply; 4+ messages in thread
From: Artyom Bologov @ 2024-07-16 10:03 UTC (permalink / raw)
  To: guile-devel

Hi y'all,

I've compiled a generic collection of data-checking macros (which I'm
consider contributing as SRFI), but I'm not satisfied with their
performance. Dave Thompson's blog post shows benefits from adding type
predicates before the code, but it seems that my approach of adding
assert-s to the start of the function is less effective and adds a lot
of performance overhead.

Thus the question: is there any way to declare types that Guile will
accept and act on? Especially if this way it exported for user to play
with. I haven't found any pointers in the manual, thus I'm asking it
here (I'm also asking it on the devel list because devs are more likely
to know the ins and outs of typing and maybe even able to act on it.)

Thanks,
--
Artyom Bologov
https://aartaka.me



^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: Type declarations and data validation utils?
@ 2024-07-20 23:10 Artyom Bologov
  0 siblings, 0 replies; 4+ messages in thread
From: Artyom Bologov @ 2024-07-20 23:10 UTC (permalink / raw)
  To: guile-devel

Hi y'all,

I'm terribly sorry, my email was down for a bit. In case anyone wanted
to reply, you're welcome to! I'm still eager to know how Guile code can
be type-annotated and checked.

Thanks,
--
Artyom Bologov



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-07-21 23:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-16 10:03 Type declarations and data validation utils? Artyom Bologov
2024-07-21 17:13 ` Maxime Devos
2024-07-21 23:26   ` Artyom Bologov
  -- strict thread matches above, loose matches on Subject: below --
2024-07-20 23:10 Artyom Bologov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).