1,544 karma · joined August 14, 2022
I think you're mixing two concepts: relative paths (which are allowed after #! but not very useful at all) and file lookup through $PATH (which is not done by the kernel, maybe it's some shell trickery).
Have we? Why?
But such laptops don't work 100% with Asahi. Speakers and mic, external displays, fingerprint reader, suspend are the sore points I've read about, and shorter battery life compared to when they run Apple's SO.
struct parent { int a; } p;
struct child {
struct parent;
int b;
} c;
void foo(struct parent *);
foo(&p); // valid of course
foo(&c); // also valid under plan9 extension, no casting!The site should be more explicit about which characters are covered. I understand it's only ASCII, right? Although the example shows some currency signs that are definitely out of the 0-127 plane.
It would also be appreciated if you could suggest a fallback font for those glyphs not present in Myna, so that if I ever need to include the word "naïve" in a string, for example, the "ï" won't look as an alien character.
I think the highlighting should serve 2 purposes: 1. help you parse the code, and 2. put more or less emphasis on some elements.
Comments have a primary role when reading someone's code, so they deserve a distinguished color by virtue of point 2 above.
Strings are sometimes difficult to parse correctly because the symbol to start them is the same to end them, so item 1 above applies.
And variable definitions have the tendency of hiding in plain sight, despite being crucial to understand a piece of code, so they match both criteria 1 and 2.
But numbers, booleans and constants can't be possibly mistaken for anything else, nor do they need to stand out more than the rest, so why highlighting them?
Deemphasizing punctuation might be a good idea: I'd probably reserve the same treatment to some common boilerplates, too, like #include in C/C++, #[derive] in Rust, etc.
Finally many languages make it hard to tell types and variables apart. Therefore I'd argue that types deserve their own coloring, obeying reason 1 above.
To add a final nitpick, the two "use" statements in the example define two symbols, "FilterType" and "Error". I think only these two words should be highlighted in blue, not the rest of the hierarchy.
Is it still active? Last release was in 2022...
echo 1 2 3 | each "rm {}"
is the same as rm 1
rm 2
rm 3
while echo 1 2 3 | xargs rm
is the same as rm 1 2 3
I would rather say that 'each' replaces (certain uses of) 'for': for i in 1 2 3; do rm $i; done return (0x43201 >> x*4) & 7
It's more understandable and the number of instructions is the same.Interesting. But how many matching glyph pairs do we actually have in current fonts?
Have I missed an important development in tree-sitter? Can it now do such things?
Genuine question: does this formulation style work better than a plain, direct "Mimick my writing style. Use the tone that is described below"?