Re: Writing on Guile optimization: what are anon #x... functions?

2024-04-07 Thread Artyom Bologov
Hi Skyler, > "Previously statprof would show strings like "anon #x1234" for primitives > written in C." This made me grep through Guile sources. I found this function: (define (addr->printable addr pdi) (or (and=> (and=> pdi program-debug-info-name) symbol->string) (and=> (primitive-code

Re: Writing on Guile optimization: what are anon #x... functions?

2024-04-07 Thread Skyler Ferris
I haven't run into this before in myself, but this line from the NEWS file in guile repository seems like a good lead: "Previously statprof would show strings like "anon #x1234" for primitives written in C." It's in the section for changes new to 3.0.3 so if you're on 3.0.2 or below then upgrad

Re: Writing on Guile optimization: what are anon #x... functions?

2024-04-05 Thread Artyom Bologov
Hi Olivier >Anonymous, i.e. lambda? No, lambdas display as :xxx:yyy: where x is lines y is columns. So anon functions are something else. -- Artyom.

Re: Writing on Guile optimization: what are anon #x... functions?

2024-04-05 Thread Olivier Dion
On Sat, 06 Apr 2024, Artyom Bologov wrote: > Hi y'all, > > I'm making a blog post on Guile optimization gotchas I learned. But I > find that one piece of the picture is missing there: anon functions in > the profiler output. Like "anon #x117f408" Anonymous, i.e. lambda? [...] -- Olivier Dion ol

Writing on Guile optimization: what are anon #x... functions?

2024-04-05 Thread Artyom Bologov
Hi y'all, I'm making a blog post on Guile optimization gotchas I learned. But I find that one piece of the picture is missing there: anon functions in the profiler output. Like "anon #x117f408" One of these functions eats up a lot of performance in my code. So I can't say I'm an expert on optimiz