Better HN
topnewbestaskshowjobs
Log inSign up

how_gauche

224 karma · joined Jul 27, 2008 (18y ago) · 63 submissions

Submissions

comment 4mo ago · link · parent

Ubuntu loves to mess with upstream by shipping a bunch of vendor patches. It's one of the main reasons I run Fedora, they do this the least in my experience

comment 5mo ago · link · parent

Is leveraging an enormous capital advantage to strip-mine the Internet and sell it back to us cannibalism or not? Confused on this point. I think they are exploiting a loophole in copyright law (and kind of redefining the meaning of "derivative work" in my opinion, but hey I'm not a lawyer) that collectively we tolerate because the end result is so useful

comment 7mo ago · link · parent

I love it. It's not quite as good as Sonnet but it's quick, and Minimax 2.5 is like 1/4 the cost of Haiku. With enough of a harness around it, almost any breed of monkey can be coerced into producing excellent typewriter work. GLM 5 and 5.1 are other really competitive options on the price/performance curve

comment 1y ago · link · parent

Side effecting computations that depend on the "real world" go into an IO monad. The game in Haskell is shifting as much of the codebase as possible into pure functions/non-side-effecting code, because it's easier to reason about and prove correct.

comment 2y ago · link · parent

We do the same thing but commit to a second git repo that we treat like the "k8s yaml release database".

comment 3y ago · link · parent

I have an extremely similar profile (chess, PBS space time!) and I get non stop Jordan Peterson and Andrew Tate in my recommendations. YouTube Shorts are the worst for this, I can't scroll through ten videos without seeing this guy, no matter how many times I click "do not want!"

comment 3y ago · link · parent

This was one of my Q4 projects at work last year. We moved CI to 3x hetzner machines, each running four copies of the self-hosted github runner, and drove our build/test times from >20min down to 3-4 min on average. It's ridiculous how big a difference running on a capable bare metal box makes. We run a thousand or so builds daily and pay about 300 euro a month for the setup; our overage fees from github actions were often higher than that. Reliability has been "ok": one of the machines started throwing errors that smell like bad RAM/CPU (bus errors, random reboots, etc), we raised a support ticket, they nuked it and gave us a fresh one.

We provision them with ~200 lines of shell script, which we get away with because they are not running a "prod" workload. Don't forget to run "docker system prune" on a timer! Overall these machines have been mostly unobtrusive and reliable, and the engineers greatly appreciate the order of magnitude reduction in github actions time. I've also noticed that they are writing more automation tooling now since budget anxiety is no longer a factor and the infrastructure is so much faster.

comment 3y ago · link · parent

Developer velocity has been my project for the last quarter at work: we just switched from GitHub runners to Hetzner machines, and saw similar improvements to average build times. Between self hosting our runners and switching to bazel which caches aggressively, we've driven down average CI test time from 23 min to 2m40.

comment 4y ago · link · parent

Pipewire broke me lots of times during its development and rollout, and that's okay, because new software has bugs and in some of my other use cases "hey it's a lot better than Jack". What I'm not going to do is carry a grudge against the maintainer for decades?

I've been using Linux since Slackware installed from a pile of floppy disks. I'm extremely happy with systemd (desktop and server) and view it as one of the most important UX advancements ever made in the Linux sysadmin space. It replaced a smorgasbord of broken nonsense with a unified and thoughtful system that is objectively superior to what it replaced. I suspect a lot of the extreme reaction to systemd is not just resistance to change, but based on an emotional attachment to the rag-tag heterogeneity it made obsolete.

comment 4y ago · link · parent

On GitHub you can add ?w=1 to diff URLs to get the same thing (there's a button for it too?)

comment 4y ago · link · parent

My partner also works in tech. Between the two of us, and between home and work, we've bought or used probably 25-30 of these over the years. I gave her an M1 air this holiday season! We've had pros, airs, and iMacs in four or five different colors occupying our living spaces for fifteen or twenty years now. We've used them for work and for play, for software development and video editing and graphic design and media consumption.

My verdict is: the hardware is usually GREAT but MacOS isn't. It bothered me when I quit the platform ages ago, and it is still bothering me now: little I care about has changed or improved. New annoyances though!

In aggregate I'd say I've spent ca. 15 hours staring at the beachball. Intrusive admin software has been a problem in the past for sure -- especially at Google -- but I've bought dozens of these for home use as well. Either 90% of their units are defective or we're using our computers very differently.

Terrible keyboards are another thing entirely, Lenovo went through a bout of that with the X1. My gripes about Macs are almost entirely about OSX performance/reliability and command-line habitability: version over version, it almost never improves. For my workflows

comment 4y ago · link · parent

In my case: your employer only gives out MacBooks and expects you to use them.

comment 4y ago · link · parent

I hate my work-provided MacBook SO. MUCH. I begged them to give me a ThinkPad with Linux instead, and it's been a litany of problems in the three months I've been using it. I did all my dev work on MacBooks between 2007-2013, but my experience this year has completely vindicated my decision to ditch the Mac at home and at work back then.

I see people in this thread complaining that Linux distros are unreliable, but my Linux machines don't do things like beachball for 20s at a time or have complete audio system crashes requiring reboot twice a week. (Always right before a videoconference! I missed fifteen minutes of a call last week scrambling to fetch another device because the audio subsystem died and the Mac decided it had to install updates for a half hour when it rebooted.)

It's not uncommon to see uptimes on my ThinkPads measured in months. The Mac? At least it boots fast. I have to restart it once or twice a week.

Reliability aside -- and I realize that everyone values ergonomic factors differently -- Linux is just a better choice in every regard for me and the kind of work that I do. Interactive performance is much better, the docker-based workflows everyone's using are so much faster when they're native, and there's no mismatch between Darwin's BSD userland and the Ubuntu/CentOS you're probably using in prod.

comment 6y ago · link · parent

You can also use NOTIFY in your postgrest stored procedure to wake up a hypothetical backend processor with low latency. I really love this project! I recommend it to people all the time.

comment 6y ago · link · parent

It's even better if you force a hardware two-factor authentication before you grant the ssh cert.

comment 6y ago · link · parent

It's mainly so I can "road warrior" to my internal resources from my laptop transparently. IPv6 is a good choice for this since it won't conflict with any NAT address space you're likely to be on.

comment 6y ago · link · parent

Many of us switched to evil mode because we got RSI from incorrectly chording all the time! C-a & C-e I'm looking at you

comment 6y ago · link · parent

Huge skew depending on what platforms you like to work on. Java or Windows people are significantly less likely to use trad Unix tools. Backend or Linux people, it's 30/30/* in my experience between vim/Emacs/everything else -- this was certainly the case at Google when I was there.

comment 6y ago · link · parent

I don't know dude, I've had new grads recently wholesale switch to Emacs just after watching me work for five minutes. "Holy crap, why are you editing these programs so much faster than me?"

Completely agree that out-of-the-box Emacs experience is NOT where it's at. I have twenty years invested in tweaking it to minimize keystrokes and operate faster for my use cases. Just remember that Emacs is not actually an editor, it's a Lisp Machine OS you can use to build an editor out of parts

Also keep in mind that alternate distros like Spacemacs are the way Emacs has to evolve, because making drastic structural changes to defaults would break so many user scripts and packages -- the things that provide most of the long-term value proposition of using Emacs in the first place.

comment 6y ago · link · parent

You're supposed to use DHCPv6 or Neighbor Discovery -- like everything else in IPv6-land, it's significantly more complicated than it is over IPv4.

I don't run the whole network IPv6 -- for hosts I care about having an IPv6 egress for, I use a Wireguard tunnel in IPv6 private address space to a bastion host. If I want to expose a port, I forward it from the other side. It's a sad state of affairs :-(

comment 6y ago · link · parent

I've done this before (postgREST) for internal apps and it's amazing. You can POST a JSON file to the front end from a shell script with curl and have it show up on a Grafana dashboard immediately. I've used this in the past for setting up automated quality tests for machine learning pipelines -- the pipeline runs automatically and you get the results in a central place, so you can see how your quality metrics are trending over time.

Given that postgREST exists, I don't see any reason to talk to postgres directly from a JS app.

comment 6y ago · link · parent

Worked at a Haskell crypto startup. Your analysis of cause and effect is wrong -- crypto people are attracted to Haskell because it has features that are excellent for the domain, not because they are interested in "copping shine" from it or whatever.

comment 6y ago · link · parent

Postgres + stolon + k8 is the easiest time I've ever had bootstrapping a DB for high availability. I'm not sure I'd use it for extremely high throughput apps, but for smallish datasets that NEED to be online, it was amazing. The biggest reason it's amazing? The dev, staging, and prod environments look exactly the same from a coder's perspective, and bringing a fresh one up is always a single command, because that's just how you work in kube-land.

comment 6y ago · link · parent

I mean, they definitely do. They also deploy an army of muppets! (6-yr ex-muppet here)

comment 6y ago · link · parent

Where I'm from we catch rabbits with snares.

comment 8y ago · link · parent

A rational way of explaining it is -- what is my service level objective? If my SLO is for two nines of uptime, then I can be down for 3.65 days a year, and I can get away with single-homing something, or going with a simple hot-failover replicated setup. I just need to be pretty confident that I can fix it if it breaks within a few hours.

If I need more nines of uptime than a single system could provide (and think about the MTBF numbers for the various parts in a computer, a single machine is not going to give you even three nines of uptime), then I'm literally forced to go distributed with N >= 3 and geographical redundancy (we stay up if any k of these machines fail, or if network to "us-east-4" goes down). Things get worse (and you need to be more paranoid) if your service level obligation turns into a service level agreement, because then it usually costs you money when you mess up.

Of course, the more distributed you are, the slower and more complicated your system becomes, and the more you expose yourself to the additional associated downtime risks ("oops, the lock service lost quorum"). They usually cost more to run, obviously. C'est la vie. There is no magic bullet in software engineering.

It used to be that you could spend 3X or more in engineering effort getting a distributed system up and running vs its singly-homed alternative. These days with cloud deployments (and Kubernetes for on-prem) you get a lot of labor-saving devices that make rolling out a distributed system a lot easier than it used to be. You still need to do a cost/benefit analysis!

comment 8y ago · link · parent

Martin Moene (my favorite C++ person in the entire universe right now) wrote a drop-in replacement for older standard versions: https://github.com/martinmoene/string-view-lite. He's also backported optional, variant, and expected, and wrote my favorite unit testing library called "lest".

This guy saved me so much hassle this year and it's causing a complete sea change in the way that we work. I really really want to live in a world of value-typedness and it's finally possible to do it. The simple and natural idioms are now MORE efficient than doing it the complicated way: the average function I'm writing in 2018 is significantly less convoluted and allocates on the heap far less than the same function I'd be writing five or six years ago.

comment 8y ago · link · parent

Under the hood it's just "std::pair<const char, std::size_t>". It's like an abstract data type or a newtype in Haskell: construction of the aliased type is restricted to the functions that are provided.

You are correct, there is no safety --- you can call the constructor std::string_view(const char

, size_t) and stuff anything you want in there. The main reason string_view is nice is the implicit conversions you get from the other string types. Pass in a "const char*", it finds the terminating null for you. Pass in a std::string, no problem. No boilerplate.

comment 8y ago · link · parent

> And we're expected to believe money isn't driving the entire process for you?

It's right there in the name, even!!! It's not "First Round Hugs" or "First Round Charity", is it?

comment 8y ago · link · parent

> some people who are in the know about a very specific paper

This stuff isn't obscure just because you don't happen to know about it already. Chris Okasaki's publications have been cited over 1000 times, mostly for his PhD work -- those papers, especially on functional data structures and amortization analysis in lazy languages, are considered foundational for a whole research area in Computer Science.

> Is this some kind of Obi-wan Kenobi from a certain point of view stuff? Why is this so difficult to get a handle on?

Did you learn calculus overnight, or expect to understand a technical conversation about differential equations and Cauchy sequences without taking two years of classes or reading a couple of really thick books first? Why should this be any different?

> If a thing says immutable on the tin, and it's mutable, how is that purely functional? .... It seems to me that a data structure so amazing as being purely functional shouldn't be so easy to misunderstand as what we're seeing here. And it's clearly being misunderstood. And not only by me.

Sigh. Explaining it properly would involve a tour though the untyped lambda calculus, simply-typed lambda calculus and the Curry-Howard isomorphism, a discussion on denotational vs. operational semantics (Hoare logic, functional interpreters, type-preserving compilation, small-step vs large-step operational semantics, etc).

TL;DR: "purely functional" is a description of the program's meaning (in a technical sense), not its implementation.

123