21,278 karma · joined Nov 23, 2012 (14y ago) · 6,746 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 2y ago · link · parent
There's a bunch of cool looking stuff though
comment 2y ago · link · parent
You know how a Docker file barely has any structure, leading to a lot of bashisms to try and script certain behaviors? Nix doesn't have that issue.
NixOS is an OS you can configure with Nix. A lot less "OK so edit these files to try and configure something, then reboot", a lot more "configure this data structure, then reboot". Makes your system configuration mostly be in the same place, as NixOS will distribute these changes across the file system as needed to get things working. It's pretty nice!
Overall... it ends up being a bit easier to document why you're doing something in a Nix file relative to a Dockerfile, and caching and the like works much more smartly (lots less "move all this stuff to the top/bottom for caching reasons" you might do in a Dockerfile)
("Nix" here means "nix + nixpkgs", which is important since lots of nix-ism are basically downstream of how nixpkgs is written and the patterns used there)
comment 2y ago · link · parent
I've found that data structures with _lots of helper methods_ (thinking about things like `Result` in particular) tend to be nice. You do have to learn about Rust-specific things to figure out how to nicely structure your code for everything to work. But the payoff is less pain.
There are still a lot of futzy ownership questions, and even when you write out your supposedly performant and cool system, easy outs like cloning end up hiding in your system leading to some awkward performance questions. Fortunately the systems are merely slow, and it tends to show up in profiling.
comment 2y ago · link · parent
I think IRC's strategy of having networks and channels on those networks is nice because then most programming languages will be like "well let's just be on this one network". Reddit is this times 1000 given that it's all subreddits on the same platform.
Not perfect for many reasons, but having to sign up to random forums to try and interact with support for, like, Circle CI has always felt a bit silly for me.
comment 2y ago · link · parent
Though honestly it’s totally possible that cloudflare was offering a real discount but it’s still just very high for something like sourcehut.
comment 2y ago · link · parent
The issues come from stuff like autocompletion tricks etc leading to weird lagginess. People get a first version of a thing working, and then it just kind of exists in that state forever.
comment 2y ago · link · parent
It's fine that governments have decided to prop up these industries in their own ways, of course. Just hard to expect "free market" participants to show up and take on such a capital intensive industry
comment 2y ago · link · parent
Even before opening the article I had a feeling I would see Ellison's name _somewhere_. I don't know if the review trigger was an excuse, just annoyance at it being Ellison, or what, but wild how a single person can have so much of an effect.
comment 2y ago · link · parent
comment 2y ago · link · parent
This last point is important because nuclear plants generate a lot of power, so you cant easily build a plant “just” for 500 people in the same way you can for other energy sources.
I am fine with nuclear in principle. There are real reasons nukes are expensive and not the ideal option in many situations. We have to be clear eyed about this.
comment 2y ago · link · parent
There's some garbage in there too, but that's the game! There's definitely good sets of levels nowadays IMO.
comment 2y ago · link · parent
GUI stuff is not necessarily about enabling new workflows so much as making workflows _very fast_ and less error prone. In theory at least.
comment 2y ago · link · parent
Less futzing around with copying around IDs and the such. I still need to know how to do most everything with git itself, but because I know that, I can rely on magit to just make it quicker for me to "do the thing".
comment 2y ago · link · parent
There is something inevitable about needing time to display a lot of information. But I think magit is eager in some places that lead to extremely costly magit workflows when the raw git workflow would be much faster.
comment 2y ago · link · parent
The reality is that most legal things are determined by _convincing people of a truth_. Perhaps you can set up a whole scheme to "launder" AI art and attach names to them. And all the papertrail you generate doing this will show up in discovery in some lawsuit and the copyrights all disappear.
Laws are vibes, not code.
comment 2y ago · link · parent
The challenge of course is finding your way there. They're not exactly discoverable, and unlike with a job, it's usually through some pretty odd connections that you end up there.
comment 2y ago · link · parent
comment 2y ago · link · parent
I think abstraction is good in theory, but at the end of the day the implementation is what is happening. The classic thing of people relying on undocumented behavior, etc etc.
What good is a conceptual representation that doesn't actually align with what happens? It's not like the gas pedal being pressed down is actually what makes a car accelerate, after all! Whenever you're dealing with something _not_ working as expected, those who know the implementation are going to be in a much more comfortable position in general IMO.
comment 2y ago · link · parent
I don't know what is better here but honestly per-word predictions were way better for my usecases.
comment 2y ago · link · parent
I've found that this helps me to memorize ones I reference, even if it's only memorized for a couple hours.
comment 2y ago · link · parent
The thing I always think about: how fast it is to play an MP3 from "device in pocket" state with an MP3 player vs a computer (or my phone!). iOS affordances around that are good.
Having said that... maybe there's a new shell that MacOS could use to get there. They seem to be trying with some changes though I don't really enjoy the changes so far
comment 2y ago · link · parent
Obviously would be quite frustrating to debug a thing only to realize tab A is version 1 and tab B is version 2 of course. And it seems like it would require a massive amount of effort. Would be cool though!
comment 2y ago · link · parent
But even just making sure that “somebody hits the button” is a 1 button thing instead of a 20 button thing can be a major win! Totally valuable work
On the other side of the coin: having good observability into prod (talking mainly about APM stuff and tracing) gives devs way more confidence in the changes they’re making as well. Make it easy to deploy stuff, but also make it easy for systems to log things, and make it easy for developers to poke into those logs (my favorite flavor of this right now is honeycomb, but mainly cuz you can do perf analysis and answer questions from PMs about usage quite easily)
The nice thing about all of this if you’re a mid sized team is that you can totally outsource this with the right kind of person. Somebody who comes in, has the right to write some automation code (maybe it’s Zapier even!), and is not part of office infighting about process. The mandate being “make this pipeline smoother”. Probably among the easier problems to fix compared to deeper business or product problems. And it’s also super visible to other teams (“wow the bug is already fixed?”)
EDIT: one thing I’ve seen done that “never works” (I have not seen everything) is splitting up a repo into smaller repos. If you find yourself thinking “with smaller repos things could be smoother” it’s likely that what you want is not multiple repos but a build tool like Bazel or Buck, that will let you describe multiple projects in one repo, without causing inter-repo friction come review time. Integrating these tools can save you loads of money on CI and enforce decent test suite separation. The unfortunate flip side is that at least Bazel is very idiosyncratic, and most other tools are based on Bazel. I have heard good things about Buck 2 but have yet to see it in prod
comment 2y ago · link · parent
It's pretty well known that bots resort to cheating to win at stuff like Civ. I'm sure there's a patch out there that removes the cheating, and you can stomp on computers there.