unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* unboxing floats in libguile procedures that always return floats?
@ 2018-12-05  3:11 Thompson, David
  0 siblings, 0 replies; only message in thread
From: Thompson, David @ 2018-12-05  3:11 UTC (permalink / raw)
  To: guile-devel

Hello all,

Guile's current floating point unboxing optimizations are great and
have helped me immensely, but they still leave something to be
desired. I often find myself often calling libguile procedures such as
sin, cos, and random:uniform.  These procedures always return floats,
yet Guile always boxes them, leaving me stuck with procedures that
make lots of garbage despite my best efforts to generate efficient
bytecode.  Would it be possible for the compiler to know that it can
safely unbox functions like sin and cos?  It would really help reduce
GC for realtime graphics rendering applications, for example.

Thanks,

- Dave



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-05  3:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-05  3:11 unboxing floats in libguile procedures that always return floats? Thompson, David

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).