HN user

Slix

164 karma

Peter Kowalczyk

peter+hn@slix.io

https://github.com/slix

[ my public key: https://keybase.io/slix; my proof: https://keybase.io/slix/sigs/gXMKqsF2yb9CoCoCch9JVOHAVJqTRga-tDNC3lcBeCY ]

Posts0
Comments83
View on HN
No posts found.

I'm very thrown by the "hidden Buy box" argument. I thought Amazon did that on purpose to hide overpriced items from the wild west that is Amazon's marketplace/sellers. So a t-shirt for $100 gets no Buy box because it's overpriced.

The video argues that this creates a monopoly.

This is also useful for having a type that needs to be verified in some way before being used or trusted. UnverifiedLoginCookie vs. VerifiedLoginCookie

This optimization option isn't on by default? That sounds like a lot of missed optimization. Most programs aren't going to be loading from shared libraries.

Maybe I can set this option at work. Though it's scary because I'd have to be certain.

I don't think this article is very well-written. It gets confused about whether QUIC has a handshake or not (it does). And it conflates zero round-trip time with combining the TCP/TLS handshakes together.

I've struggled to find a Software Engineer job for many months, even with FAANG on my resume. It's nowhere as easy as it was when I graduated college 7 years ago.

I send out my resume and barely get any answers. I don't even get a chance to interview.

That being said, I had a good luck streak in December! I'm waiting to hear back from several companies right now.

If I start now and start reading up on AI, will I become anything close to an expert?

I'm worried that I'm starting a journey that requires a Master's or PhD.

I came here with the same question. After reading and learning these materials, will I have new job skills or AI knowledge that I can do something with?

Windows on Btrfs 3 years ago

`docker build` is weirdly slow on btrfs, I always set up a separate ext4 `/var/lib/docker` volume.

I'm currently doing this for a different reason. My docker builds started failing after some Ubuntu upgrade. I gave up and used ext4 for that docker directory to fix everything. https://serverfault.com/q/1127148

It unsettled me because now I'm not sure whether btrfs (or docker with btrfs) is production-ready.

Rust has unreachable_unchecked and intrinsics::assume. And a clever crate that provides an assume!() macro for stating assumptions.

I toyed with them while learning some unsafe Rust by calling unsafe Windows APIs. Sometimes there were obvious relationships between function parameters and return values that my code couldn't know because the Windows API was an opaque FFI to C. Like if I ask a Windows API to fill an 8-element array, my code can assume it returns an int <= 8 instead of considering INT_MAX as a possibility.

But anything more advanced like assuming that an array's values are sorted seemed questionable. At worst, it looked like LLVM preserved expensive assumes even if they weren't useful to the optimizer.

Since it was a toy project, I didn't care. It's neat to tell my code facts about the world and imagine that a perfect code optimizer can use all those facts. Even if there's a C API in the way.

https://doc.rust-lang.org/core/hint/fn.unreachable_unchecked...

https://doc.rust-lang.org/core/intrinsics/fn.assume.html

https://crates.io/crates/assume

I like WSL2 because I get to share my GPU with Linux. Great for Plex transcoding and Stable Diffusion.

I have a real Linux install with Hyper-V. Other than some Hyper-V guest integrations, there's no Windows specific customizations. No GPU access, but only very specific software needs that.