The number of tools a programming language is expected to provide is growing over time. This in-depth article describes what Rust provides: you can't just ship a compiler these days.
Source:
miniblog.
Want to move to a code autoformatter, but worried about git history? Black even documents how to teach git to ignore your formatting commit! https://github.com/psf/black#migrating-your-code-style-without-ruining-git-blame
Spectre vulnerabilities remain a problem in browsers, and the PoC even works on new Apple silicon!
https://security.googleblog.com/2021/03/a-spectre-proof-of-concept-for-spectre.html
Python programmers use Linux significantly more than Mac or Windows, and Windows usage declines with experience level: https://www.jetbrains.com/lp/python-developers-survey-2020/#DevelopmentTools
It's not easy to display a log file nicely in a browser. The file might be huge. Users expect to be able to link to lines. It might have colour or control codes.
I've been pretty impressed with the GitHub actions UI, compared with other CI tools.
https://github.blog/2021-03-25-how-github-actions-renders-large-scale-logs/
A 9V battery with wi-fi, so it can notify you when your smoke alarm is activated: https://getroost.com/product-battery.html
I'm not sure I'd ever buy one, but it's an innovative way to build a noninvasive integration.
I have a couple of projects that have had a bunch of releases, but no v1.0 yet.
In some respects a v0.33 release has more positive associations (a history of support and bugfixes) than a v1.0. I don't have a good solution.
Emergent behaviour of agents in early text adventure games (The Hobbit, released 1982): https://if50.substack.com/p/1982-the-hobbit
Languages with large ecosystems often develop interoperable languages. Scala, Clojure, F# and Typescript all benefit from compatible packages in the "primary" language.
I think Rust will eventually see these too. What will they look
mrustc, the compiler for Rust written in C++, can now bootstrap rustc 1.39.0! https://github.com/thepowersgang/mrustc/blob/master/ReleaseNotes.md#2021-04-04-rustc-1390-bootstrap
I've just added `and` to my toy lisp compiler: https://github.com/Wilfred/proper-compiler-hat/commit/af5c77e30ecbf4884e71c1177a086337aa74d237
It's just a plain function, not a macro or special form. Is that so bad? I've seen confusing uses of `and` with truthiness e.g. `(and maybe-nil (compute-default))` and I'd rather avoid that.
Thoughtful talk on the compile time, runtime and cognitive overhead of abstractions: https://www.youtube.com/watch?v=rHIkrotSwcc
Suffix syntax (e.g. foo.field or result_bar?) tend to provide a better IDE experience. Languages deliberately tailor features for this, e.g. Rust has .await.
Is this a historical accident? I can certainly see how parsing unfinished suffix syntax is easier.
The optimal size for a hobby project seems to be medium. Big projects are more work to change. Little projects have too few opportunities for tinkering/minor refactoring.
C-Reduce has a fun concept of "interestingness", the predicate that you are trying to preserve whilst shrinking your program: https://embed.cs.utah.edu/creduce/using/
It's a great term: previously I've used the boring "property under test".
Have you ever wondered what happens if you hook up a lexer to a diff algorithm? I was feeling smart until I built it and saw the result.
The longest common subsequence here is ( ) ( ) ; which is not terribly helpful. I'm going to have to look at proper tree diffing techniques.
When your codebase reaches a scale where you have bots automatically detecting and cleaning up dead code! https://www.infoq.com/news/2020/06/uber-piranha/
It feels really un-Emacsy (to me at least) to have a UI with different font sizes. It's totally supported, but it seem to run against the "everything is an interchangeable buffer of text" vibe.
Technical debt laundering: using a new feature as an excuse to do much-needed refactoring of your code.
Today I learnt that C includes a hash table implementation! libc is bigger than I realised.
https://linux.die.net/man/3/hsearch
Showing 1,121-1,140 of 7,508 posts