HNHacker News
TopNewBestAskShowJobs

cp9

819 karma · joined April 21, 2015

Java/Android dev.

I would prefer to play with my pets than work and I also like messing around with clojure and python. I like long walks on the beach, pina coladas and getting caught in the rain.

submissionscomments
cp9··on River: A dynamic tiling Wayland compositor
It’s much much much more secure. Unfortunately that broke screenshotting/screen sharing programs. So, each compositor has to have their own now. But in general better performance and ideally you won’t even notice anything is different
cp9··on Postgres is a great pub/sub and job server (2019)
> Kafka is specifically designed for this purpose, it is free, and it is easy to learn and use

I think Kafka is great, but it is absolutely not “easy to learn and use”.

cp9··on Updating the Go Memory Model
same, I like go and I like channels in theory but they are too primitive in practice. I am much more likely to use waitgroups and errgroups than anything with raw channels
cp9··on Concrete: The material that's 'too vast to imagine'
my house is well over a hundred years old and was built out of wood, it's been well taken care of (still has the original roof, even!), why exactly would I want to rebuild a perfectly good building? These buildings have been standing a long time, they aren't exactly going anywhere
cp9··on Concrete: The material that's 'too vast to imagine'
I live in one of those neighborhoods and the thing that kills our houses (aside from leaking roofs) is poor foundations. I've literally never heard of one of these houses falling over because of a structural issue with the actual timber it's built from. It's either that the wood has rotten because of roofing issues or (more likely) the rubble stone foundations fell apart

edit: and even if some of the wood has rotten you can almost always just replace or sister up that piece and be absolutely fine.

cp9··on The Sisyphean Task of DNS Client Config on Linux
It depends on how long ago you checked, but it can do it now without dnsmasq.

https://gist.github.com/brasey/fa2277a6d7242cdf4e4b7c720d42b...

cp9··on Performance comparison: counting words in Python, Go, C++, C, Awk, Forth, Rust
https://github.com/golang/go/issues/45021
cp9··on Weird architectures weren't supported to begin with
sounds great! I look forward to gentoo and IBM stepping up to the plate to maintain support
cp9··on Mitigating Memory Safety Issues in Open Source Software
> There is a python library that recently switched to rust (partially) and now cannot be build on several platforms.

there comes a point where we can't let dependencies on Amiga or DEC Alpha (companies/platforms that haven't existed in literal decades) hold the rest of us back. If someone wants to port rust/llvm to those platforms more power to them, but the rest of us don't need to suffer. The only platform that actually matters that was negatively effected by that change is musl/alpine because there aren't musl wheels available and you have to build the rust part from source.

cp9··on Amazon, Apple and Google Cut Off Parler
Don’t foment violent insurrection against the us government next time, I guess
cp9··on My Hunt for the Original McDonald’s French-Fry Recipe
most fries (and some other fried things) are fried twice. often they are fried for awhile at a (relatively) low temperature and then flash fried again before service at a high temperature. It drives more moisture out and allows you to serve them freshly fried quickly after they are ordered.
cp9··on Mastering Jq: Part 1
ymmv there but for what I'm looking for Go is usually more helpful than python straight out of the box, specifically because you don't have to reach for a third party library to make simple http requests, which is what I often end up using a scripting language for. I did just pick up argparse though and was very pleasantly surprised about how nice it is, go's `flags` module in the stdlib is unfortunately not quite as nice and is one of the things I reach for a third party library on. However, because it's pure go it still compiles down to a single binary which you can just scp around.
cp9··on Jepsen: PostgreSQL 12.3
it's named after the Carly Rae Jepsen song "Call Me Maybe"
cp9··on Audio Engineers Built a Shield to Deflect Police Sound Cannons
earplugs do literally nothing
cp9··on Troubleshooting Systemd with SystemTap
I only have good things to say about systemd. it's much easier to reason about dependencies, and timers always fire when they should. It's also much easier to debug why a timer isn't working because you can `systemctl run my-job.service` and run that job in exactly the same environment it'll run in with the timer. Yes, it's two files to describe the job instead of just crontab but it comes with a ton of advantages
cp9··on My NixOS Desktop Flow
> I saw talk from one guy who wanted to make the Nix package manager use commands that were more like in other package managers. Did any of this happen?

Yep, that happened, at least somewhat. Most things that you would want to do that used to be argument soup with `nix-env` now uses a program just called `nix`. For example, searching is now just `nix search <query>` instead of whatever the `nix-env` incantation was

cp9··on Age: A simple, modern and secure file encryption tool
It’s not pgp
cp9··on Big tech companies have been at the cutting edge of corporate tax avoidance
I'm sure that's the point the article is making, not that these companies have been stealing from the american taxpayer for a decade
cp9··on All Tridactyl installations might get removed by Firefox on Aug 21
and it wouldn't. You explicitly have to install the native messenger and run fixamo, which in the rc file for tridactyl explictly mentions what it's about to do
cp9··on I completed Ultimate Go, took good notes and commented directly on source code
learn go with tests is great. I still refer to it occasionally even though I finished it a long time ago
cp9··on Living without the modern browser
there's no way to log out, the browser has to store it instead of a session cookie which can be invalidated if it's stolen.

plus what's in this comment https://security.stackexchange.com/questions/988/is-basic-au...

cp9··on Living without the modern browser
are people really suggesting basic auth again, is it 1993 outside? Basic auth is horrendous security practice, you're passing a header that has your user and password in plaintext, it's insane to suggest that in 2019
cp9··on Red Hat Expecting X.org to “Go into Hard Maintenance Mode Fairly Quickly”
linux is healthier than it's ever been. even microsoft is in on linux now
cp9··on Transforming a Tesla Model 3 into a Pickup Truck
You think if adam savage had done this project he would be subject to questions about how much work he did or whether it’s a pickup or a ute?
cp9··on Transforming a Tesla Model 3 into a Pickup Truck
because they are nitpicking in a sexist way. it's the same reason people are doubting how much work she "actually did" on the project

people should just embrace it as a cool, slightly ridiculous project that turned out well.

cp9··on Why Not Rewrite It in Rust? (2016)
a reminder that "rewrite it in rust" is not usually a ground up rewrite, it's an effort to translate the c into a safer language as you go, it doesn't just burn it down, salt the earth and start over. Have a look at remacs [1] to see how this works in practice.

1: https://github.com/remacs/remacs

cp9··on Rust 2018 survey results
> When asked why they used nightly, people responded with a broad range of reasons including: access to 2018 edition, asm, async/await, clippy, embedded development, rocket, NLL, proc macros, and wasm.

as for how `rustup install nightly`

cp9··on Why Not Make?
it's not standard at all. what parts of make are the GNU extensions? What parts are you building with bash that aren't portable to windows, or even other nix machines that only have posix sh?
cp9··on Ask HN: When has big $$$ before product-market-fit ever worked out?
Slack
cp9··on Suspend for the X1 Carbon 2018 on Linux
I have ubuntu on a 5th gen X1 carbon and this works perfectly for me.
← PreviousPage 3 of 5Next →