I've written a simplistic backtrace for runtime errors in my toy programming language.
Underlines feel useful on the top stack frame, but pretty useless on all the other stack frames, which are just calls. Any opinions?
Wilfred Hughes
Which languages do you consider to have the biggest/smallest standard libraries?
JS and Rust have a reputation for being pretty small. C has fewer data structures, but a bunch of system APIs.
Python feels more like a kitchen sink.
Where are other languages on this spectrum?
Wilfred Hughes
Really thoughtful critique of the Language Server Protocol, what IDEs need to express, and the design decisions made.
Wilfred Hughes
JSON Lines is such a delight to use. It's particular nice as a CLI interop format.
You can use dumb, fast tools (e.g. grep to quickly filter large outputs) as well as structured tools (e.g. jq).
Wilfred Hughes
I feel like increasing visibility of a function/type should require more verbosity. I don't know of any PL that follows this design principle for >2 levels though.
Ordered by verbosity:
public, private, protected
, pub, pub(crate)
Has any PL solved this?
Wilfred Hughes
I've released difftastic 0.52! In this release:
* Support for XML and JSONL
* Word-level diffing in text nodes (in HTML and XML)
* Improved syntax highlighting
Wilfred Hughes
A fun idea for a Ruby test runner: run all the tests, most relevant first, but never run for more than 1.8 seconds!
Wilfred Hughes
I'm amused (and kinda surprised) to learn that shells have their own equivalent of blink tags, a blink escape code!
https://stackoverflow.com/questions/17439482/how-to-make-a-text-blink-in-shell-script
Seems equally annoying, I can't see a good use for it.
Wilfred Hughes
TIL about actionlint, a static analysis tool for GitHub action YAML files:
https://github.com/rhysd/actionlint
Seems really useful, developing actions can be tricky.
Wilfred Hughes
Today I learnt that a continually blinking caps lock on Linux signifies a kernel panic:
https://unix.stackexchange.com/questions/3840/the-caps-lock-and-scroll-lock-lights-are-flashing-and-everything-is-frozen
(On the plus side, it's the first time I've encountered this despite using Linux for years.)
Wilfred Hughes
OSS components are so common in software stacks now. It might be an interesting exercise to try to build a e.g. a web service with 100% proprietary components.
Wilfred Hughes
Are there 2D games focused on collaborative world building? I know of text based games (MUDs/MOOs) and a few 3D games (Second Life, Roblox) but nothing for 2D.
Wilfred Hughes
I find myself using a "splatter then clean up" technique when working with code.
I add a ton of prints/logs/asserts/type annotations until I've found the issue. I then throw them all away!
It feels like redundant work, but I don't have a nicer solution.
Wilfred Hughes
TIL rustc has a style guide for suggestions!
https://rustc-dev-guide.rust-lang.org/diagnostics.html#suggestion-style-guide
They recommend avoiding 'did you mean' or 'the following' in favour of direct suggestions and highlighted positions.
Wilfred Hughes