Wilfred Hughes is a user on mastodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

Wilfred Hughes @wilfredh@mastodon.social

Cute example of configuring Emacs to avoid GC when the minibuffer is open (so completion is quick): bling.github.io/blog/2016/01/1

How much do users read on web pages, and how does it scale with word count? nngroup.com/articles/how-littl

(It's only around 20%, and you're better off keeping your content short!)

The fundamental problem of emoji, from the 'world emoji day' website:

Cute idea (in a rather dramatic blog post): randomly generate strings for PL keywords, and apply the same transformation to your source code.

This prevents code injection: blog.polyverse.io/introducing-

(I suppose you could brute force, and they don't say if it breaks eval.)

Fun post on team structure, mental models, shared learning and the transformative impact of software tools: the-composition.com/the-origin

"Over the years Alice and Bob have tried to defraud insurance companies, played poker for high stakes by mail, and exchanged secret messages over tapped telephones. ... This may be the first time a definitive biography of Alice and Bob has been given."

urbigenous.net/library/alicebo

I've added a neat little feature to deadgrep: when you navigate to a line, the matched part of the line is highlighted! See the bottom half of my screenshot.

This was inspired by the excellent roadmap in helm-rg!

github.com/Wilfred/deadgrep

Profiling symbolic execution by measuring the symbolic heap and the symbolic execution graph to ensure solver-aided tools are performant: 2018.splashcon.org/event/splas

(Part of the remarkable Rosette project.)

You walk into the dark alley periodically looking back to see nothing but a dense fog. You meet your informant, shaking as they ask, "Is it safe to speak?" You announce in your best non-regional dialect, "Hey Google, Alexa, Cortana, Siri" and wait for a beep; "Good. We're alone."

stevelosh.com/blog/2018/07/fun is an excellent post on implementing if-let and when-let macros.

It discusses the different ways you could expand the code, and ensuring the macro composes with other (Common) Lisp features.

Really useful macro too, I'm a big fan of the elisp equivalent.

I've just released v0.3 of deadgrep: github.com/Wilfred/deadgrep

This new version allows you to collapse file results, and is much smarter about regexp, case and file type settings!

github.com/crdoconnor/strictya is a neat project deliberately subsetting YAML to remove the unsafe or complex features.

It also has types and even allows you to make round-trip edits with comments preserved!

Whilst JSON does not support comments, today I learnt that npm reserves the key "//" for you to add comments to the top level object in package.json: stackoverflow.com/a/14221781/5

What type would you expect for a function that takes a string of the form "123" and returns an integer?

I've seen str -> int (with an exception message), str -> option<int> (no info on what was wrong) and str -> result<int,int_error> (exposes all the error types to callers).

Stylish was an awesome browser extension that enabled you to override CSS on websites. Turns out that it logs every single URL you visit! robertheaton.com/2018/07/02/st

For Google searches, it also records the search term and search results. Yikes.