Yes, there’s a good example. Ansible would make more sense if its configuration language was Nix…
Just a basic programmer living in California
Yes, there’s a good example. Ansible would make more sense if its configuration language was Nix…
Oh, thanks for calling that out. I think I may have mixed up some of the frustrations I experienced at an old job.
I agree - YAML is not suitable for complex cases that people use it in, like Terraform and Home Assistant. My pet peeve is a YAML config in a situation that really calls for more abstraction, like functions and variables. I’d like to see more use of the class of configuration languages that support that stuff, like Dhall, Cue, and Nickel.
There is another gotcha which is that YAML has more room for ambiguity than, say, JSON. YAML has a lot of ways to say true
and false
, and it’s implicit quoting is a bit complex. So some values that you expect to be strings might be interpreted as something els.
The equation for force of gravity is F = GMm / r² where
The equation shows that gravity scales linearly with mass, and scales inversely with the square of distance. The article says K2-18 b is 8.6 times Earth’s mass, and 2.6 times Earth’s radius. So the weight of a 100 kg mass would be:
F = 100 × 8.6 / (2.6)²
which works out to a weight of about 127 kg, or 1.27 times heavier.
NixOS and Home Manager config both ways to get rid of the same thing
I’m quite happy with Thunder.
Oh dear… the other day I was encouraging my 12-year-old to join the cross country team. He said the only sport he’s interested in is badminton.
Zed invented tree-sitter which is a great feature. But since tree-sitter is open source it’s also available in neovim and helix.
When you get stuck you explain your problem to the turkey, and that helps to understand the problem better.
Inefficient compared to batteries? I found another article saying this company hopes that the energy dome will cost ⅔ the cost of a lithium-ion battery installation with the same energy capacity. https://www.popularmechanics.com/science/energy/a61572150/carbon-dioxide-energy-dome-plant/
After seeing this comment I had to check how Disney is involved if they don’t own the restaurant. The restaurant is in Disney World (specifically Disney Springs). https://www.bbc.com/news/articles/c8jl0ekjr0go
IIUC that does put the restaurant in the special tax district that gives Disney the authority of a county government. But my very cursory search seems to indicate that restaurant safety oversight is managed at the state level.
It seems like only one side of the ancient rivalry is represented in the comments here. No worries, I’m right there with you.
I bring my kid to school on a bike. I follow the right-of-way rules at the 4-way stops and at left turns. But every day there are 1-3 drivers who wave me ahead, and refuse to move until I go first. I don’t care what the rules are - I just want consistency!
Yeah the performance differences don’t matter in most cases. Rust makes it tempting to optimize everything because the language is explicit about runtime representations. But that doesn’t mean that optimizing is the best use of your time.
To expand on why generics are preferred, just in case you haven’t seen these points yet: the performance downsides of Box<dyn MyTrait>
are,
There is also a possible type theory objection which is that normally there is a distinction between types and traits. Traits are not types themselves, but instead define sets of types with shared behavior. (That’s why the same feature in Haskell is called a “type class”, because it defines a class of types that have something in common.) But dyn
turns a trait into a type which undermines the type/trait distinction. It’s useful enough to justify being in the language, but a little unsettling from a certain perspective.
What helps me most is to find a comfortable rhythm, which is a combination of stride cadence and breathing. I’ve read advice on counting strides, and matching breaths to certain steps. It’s hard for me to coordinate all that so I go by feel. If you’re not feeling comfortable maybe try going slower.
When your legs don’t want to move it could mean that your muscles aren’t warmed up. You might feel better after taking it easy at the start of the run. Or your muscles might be tired from recent exercise. Either way make sure you’re hydrated.
It would make sense for the terminal to handle syntax highlighting since that would match how editors work. But the convention is that the shell handles highlighting, not the terminal. You can check which shell you are running with the command,
$ echo $SHELL
It’s done that way because the shell is a running program that is capable of telling the terminal which colors to show (by mixing color escape sequences into text). Compare that to code in an editor which is text, not a running program so the only option is for the editor to handle highlighting[1]. Editors need syntax files to configure highlighting for all the different programming languages, while terminals don’t need this because the shell tells them what colors to show.
[1] setting aside the “semantic highlighting” LSP capability - that was invented long after syntax highlighting conventions were established
Specifically programs.steam.enable = true
sets up the direct rendering and 32-bit libraries that you generally need.
I was confused at first about how to install wine runners in Lutris or in Bottles. It turns out you do it the same way as in any other distro, through the app.
I think it depends. Lua is great for scripting - like when X happens do Y. I agree that makes sense for a case like Home Assistant. Sometimes you really want the result to be a data structure, not an interactive program, in which case I think more sophisticated configuration (as opposed to scripting) languages might be better.