news
Programming Leftovers
-
Sean Goedecke ☛ When in doubt, flail about
When you’re working in an unclear situation — you have no clear guidance, or you don’t know what will help — the best course of action is often just to flail about. This sounds counter-intuitive. Wouldn’t it be better to be cautious and wait until you have a better understanding of what’s going on? Typically not.
This is definitely dangerous advice. Flailing badly is a great way to damage your reputation at a tech company. We’ve all worked with engineers who seem to have nothing but bad ideas, and who are constantly pushing one stupid plan or another. But if you do it right, flailing about is the best and quickest way to get that understanding and become useful.
-
Max Bernstein ☛ Linear scan register allocation in Datalog
Last year I wrote my first register allocator: a small linear scan implementation in Ruby on SSA. Immediately after publishing the post, I had a call with Waleed Khan where he walked me through implementing the liveness fixpoint algorithm in Datalog. We talked about doing the whole register allocator in Datalog—how hard could it be?—but it never materialized.
-
Dirk Eddelbuettel ☛ Dirk Eddelbuettel: RcppArmadillo 15.8.0-1 on CRAN: New Upstream
widely used by (currently) 1396 other packages on CRAN, downloaded 53.2 million / vignette) by Conrad and myself has been cited 743 times according
This versions updates to the new 15.8.0 upstream Armadillo release made today. As detailed below, it expands the API a little but also updates a few interfaces including one related to sparse matrix operations.
-
Thierry Moudiki ☛ pyr.js: Python and R in HTML, documentation and examples
Last week, I wrote a post about pyr.js, a library that allows you to run Python and R code directly in HTML pages, in the browser, with one script tag: no server, no build step, no install. Pyodide and webR do the heavy lifting.
-
Perl / Raku
-
Perl ☛ One Korean title, three different lengths: testing Unicode keys in Perl
A notebook entry for the series 푸른길 makes a useful test fixture. The title looks like three characters. How many should a Perl script count? On decoded text, there are three answers worth keeping separate: code points, grapheme clusters, and the bytes you will eventually write. Here is a small regression test that needs no network, subtitle files, or extra data. Save the script as UTF-8.
-