Programming Leftovers
-
Rlang ☛ Using options() to inject a function’s internal variable for reproducible testing
No image this time
Imagine you have a function that does something complicated, and in the middle of its definition it generates a variable. -
Andy Wingo: tracepoints: gnarly but worth it
Hey all, quick post today to mention that I added tracing support to the Whippet GC library. If the support library for LTTng is available when Whippet is compiled, Whippet embedders can visualize the GC process. Like this!
[...]
Of course no image will have all the information; the nice thing about trace visualizers like is that you can zoom in to sub-microsecond spans to see exactly what is happening, have nice mouseovers and clicky-clickies. Fun times!
-
Ubuntu Handbook ☛ Go 1.24 Released with Fully Generic Type Aliases Support
After 6 months of development, Go language announced new 1.24 release few days ago on Tuesday. Go 1.24 now fully supports generic type aliases. Type aliases, a concept introduced in Go 1.9, allows to create a new name for an existing type without creating a new type. Previously, it didn’t support type parameters.