HNHacker News
TopNewBestAskShowJobs

jeffparsons

2,340 karma · joined January 3, 2019

submissionscomments
jeffparsons··on I wrote my PhD Thesis in Typst
I think I used to understand this, but it's been a long time since I had to write any serious LaTeX, so I don't anymore. I found this snippet in my personal _quick-build-latex_ script from over a decade ago:

    if [ -z "$(find . -name "*.bib" -print0)" ]; then
        # Just two runs, to cover TOC building, etc.
        pdflatex -interaction=nonstopmode "$SOURCE_FILE" && \
        pdflatex -interaction=nonstopmode "$SOURCE_FILE"
    else
        pdflatex -interaction=nonstopmode "$SOURCE_FILE" && \
        bibtex "$SOURCE_FILE" && \
        pdflatex -interaction=nonstopmode "$SOURCE_FILE" && \
        pdflatex -interaction=nonstopmode "$SOURCE_FILE"
    fi
So I guess if you're using bibtex, then you need to run it three times, but otherwise only twice?

This is to say... I'm glad those days are gone.

jeffparsons··on Have I Been Pwned 2.0
A company as big as LinkedIn should have bots continually accessing their site with unique generated passwords etc., and then be searching for those secrets in logging pipelines, bytes on disk, etc. to see where they get leaked. I know much smaller companies that do this.

Yes, it's easy to fuck up. But a responsible company implements mitigations. And LinkedIn can absolutely afford to do much more.

jeffparsons··on Proton threatens to quit Switzerland over new surveillance law
> I am curious to know what is behind these big US companies being so anti privacy.

Google has an email service so that it can ingest all your communication and use it to better target ads. If Google didn't have access to the content of your emails, there wouldn't be much point to Gmail.

Microsoft mostly cares about enterprises, and enterprises generally don't want E2EE email; they have legal requirements to retain e-mail of employees, and have their own reasons to want to be able to access employee emails sometimes.

Apple... I don't know where they stand on this.

jeffparsons··on One-Click RCE in Asus's Preinstalled Driver Software
I absolutely want to go with RISC-V longer-term, but it seems we're still a few years away from RISC-V boards being a pragmatic choice for the average workstation, unless I've missed some recent development.
jeffparsons··on One-Click RCE in Asus's Preinstalled Driver Software
So are there any "basically respectable" motherboard manufacturers? Or is there a similar story about each of the big players?

Asking for a friend who is thinking about building a new PC soon.

jeffparsons··on Rust’s dependencies are starting to worry me
> For some reason, libraries are always free. Approximately nobody will buy paid libraries.

I suspect this is in no small part because figuring out a licensing (edit: pricing!) model that is both appealing to consumers and sustainable for authors is damn near impossible.

jeffparsons··on Matt Godbolt sold me on Rust by showing me C++
I've occasionally wondered about the lack of currying in Rust; it feels like something that can be done mechanically at compile time, so why not support it? Perhaps to do it cleanly (without more magical privileged functions in core) would require variadic generics?
jeffparsons··on Bloom Filters
I recently discovered "compact approximators", which can be seen as a generalisation of Bloom filters. Instead of telling you "element X is probably in the set", they tell you "a lower bound on the value associated with key X".

If there are no collisions, you get the true value. The data structure also doesn't "fill up" the way a Bloom filter does — the older data just gets probabilistically worse, so in some use cases you can keep using the one structure continuously.

My particular use case (which led me to "invent" the structure and then discover that of course it's already been described in the literature, haha) is implicit cache invalidation. The approximator structure(s) store keys like "latest time member X was removed from group Y". I can then use that to lazily decide which cached values I can still use, instead of doing a potentially expensive search to see what I need to invalidate at the time the group member was removed.

I'm new to using them, so I keep getting excited about new use cases — much like when I was first introduced to Bloom filters.

jeffparsons··on Intel sells 51% stake in Altera to private equity firm on a $8.75B valuation
I was excited, too. I was also excited when Intel announced Larrabee.

That was before I learnt about the many and varied ways in which Intel sabotages itself, and released that Intel's underperformance has little to do with a lack of good technical ideas or talent.

I.e. I was young and naive. I am now considerably less young, and at least a little less naive.

jeffparsons··on AI can't stop making up software dependencies and sabotaging everything
You may be interested in WebAssembly Components: https://component-model.bytecodealliance.org/.

Components can't do any IO or interfere with any other components in an application except through interfaces explicitly given to them. So you could, e.g., have a semi-untrusted image compression component composed with the rest of your app, and not have to worry that it's going to exfiltrate user data.

jeffparsons··on Adobe deletes Bluesky posts after backlash
If a new a Twitter/Bluesky replacement is to promote civil discourse, it will need to _restrict_ reach as a core feature. Which... seems antithetical to a social media platform. But as long as "enragement = engagement" holds true, each new social media platform will eventually devolve into the same kind of cesspool as its predecessors.
jeffparsons··on Knowing where your engineer salary comes from
One way to communicate this is in terms of _schedule risk_, rather than straight-up lost productivity. E.g. for a particularly troublesome design flaw, you might estimate that for any given 4-week project there's a 20% risk of the project blowing out by an extra week due to that flaw.

Depending on the stakeholder(s) you're dealing with, approaching it like this (as risk assessment/management) might help to convey the short-term impact of a long-term problem.

jeffparsons··on Make Ubuntu packages 90% faster by rebuilding them
Why does that require C++? A quick search showed up plenty of material about "pure C" arena allocators, etc.
jeffparsons··on Briar: Peer to Peer Encrypted Messaging
Serious question for whoever actually understands this: what is the legal status of true, peer-to-peer, attack-resistant encrypted messaging in the "western" world? I'm particularly interested in the USA, the UK, Australia, New Zealand, and whatever European countries you care to throw into the mix.

I've occasionally tinkered with building software (but never released said software) that uses encrypted peer-to-peer connections as the _sole_ way of communicating, because it seemed like the most natural way to build said software _and_ the most interesting technically. (And I have zero interest in hosting servers for FOSS side projects.) If I were to actually release one of these projects and it were to become popular, should I expect to be shut down by law enforcement on the grounds that it's already unambiguously illegal? Or would I likely receive a "Technical Assistance Notice" at some point, effectively requiring me to sneak a back door into the software? Or is it actually fine?

I seem to recall all sorts of stories about law enforcement and "TLA agencies" pressuring vendors of secure messaging software to make the software unavailable or to add back doors, including at least one who chose to shut down their business rather than lying to their users about the security of the product. But somehow in all this I failed to glean whether or not it's actually meant to be legal, even on paper.

jeffparsons··on A look at Firefox forks
If you can get your organisation registered as a deductible gift recipient (DGR) in Australia, then I'll bet a few people here — myself included — would contribute. Being able to help out _and_ reduce ones tax bill at the same time seems to have a magical effect on some people — again, myself included.
jeffparsons··on Robust autonomy emerges from self-play
I have this when I'm drifting off to sleep but not quite gone yet. I can effortlessly compose compelling melodies in my head, sometimes even parts for multiple instruments simultaneously, as if I'm simply listening to someone play it. But if I want it to go in a particular direction, it does. The couple of times I've willed myself to wake up and find a keyboard, the melodies still made sense — I wasn't just a drunk guy thinking he can sing.

I've occasionally been able to do the same with architecture: design a massive sprawling palace with ease as I fly through it. And much like the music, on the one and only (I think?) time I woke up and sketched as much as I could remember, it still all made sense.

But in my normal waking life I am creatively constipated. My mind aggressively criticises and crushes ideas before they get a chance to grow organically. I have one side of the creative process in my waking life (filtering) but very little of the other (synthesis).

This makes me think a couple of things:

1. I totally get why artists use drugs so much. Any way to tap into that other state must be incredibly tempting.

2. It would be so amazing if we could figure out how to record in high fidelity and interpret what's going on in these altered states of consciousness. Maybe you've composed a whole symphony while you slept once, and you just don't know it!

jeffparsons··on I Wrote a WebAssembly VM in C
Yes, if you give the Wasm instance access to timers.
jeffparsons··on Launch HN: Karsa (YC W25) – Buy and save stablecoins internationally
Crime. The answer is crime.

(Plus a whole bunch of pretty words to make it sound like they're saving the world.)

jeffparsons··on Exotic new superconductors delight and confound
One exciting thing that could still happen in the shorter term (if/when a promising novel "high temperature superconductor" is confirmed) is an explosion of investment into research in the area. So even if it takes decades for Material X to end up in MRI machines, there would still be a steady stream of juicy progress to read about while we wait!
jeffparsons··on I Followed the Official AWS Amplify Guide and Was Charged $1,100
At AWS engineering scale they can absolutely figure it out if they have the slightest interest in doing so. I've heard all the excuses — they all suck.

Businesses with lawyers and stuff can afford to negotiate with AWS etc. when things go wrong. Individuals who want to upskill on AWS to improve their job prospects have to roll the dice on AWS maybe bankrupting them. AWS actively encourages developers to put themselves in this position.

I don't know if AWS should be regulated into providing spending controls. But if they don't choose to provide spending controls of their own accord, I'll continue to call them out for being grossly irresponsible, because they are.

jeffparsons··on Improving Steam Client Stability on Linux
I like this approach, because it lets everything Just Work without anyone outside of the implementation having to think about it at all, and only incurs meaningful overhead if you're doing something really silly, but crucially still won't break — it'll just be slightly slow. That feels like the right trade-off.
jeffparsons··on The Cult of Microsoft
> I joined Microsoft as a hater of pretty much everything Microsoft.

I feel like there's a story there that I'd love to read if you're willing to share (or have already written about it elsewhere).

jeffparsons··on Google CEO says more than a quarter of the company's new code is created by AI
Not quite, I think. Some kinds of redundancy are good, and some are bad. Good redundancy tends to reduce mistakes rather than introduce them. E.g. there's lots of redundancy in natural languages, and it helps resolve ambiguity and fill in blanks or corruption if you didn't hear something properly. Similarly, a lot of "entropy" in code could be reduced by shortening names, deleting types, etc., but all those things were helping to clarify intent to other humans, thereby reducing mistakes. But some is copy+paste of rules that should be enforce in one place. Teaching a computer to understand the difference is... hard.

Although, if we were to ignore all this for a second, you could also make similar estimates with, e.g., gzip: the higher the compression ratio attained, the more "verbose"/"fluffy" the code is.

Fun tangent: there are a lot of researchers who believe that compression and intelligence are equivalent or at least very tightly linked.

jeffparsons··on Magic isn't real
> Like LLMs, we confabulate.

Thank you for describing LLM behaviour that way. It's a much better description than the more popular but less apt "hallucination".

jeffparsons··on QUIC is not quick enough over fast internet
I find this surprising, given that my initial response to reading the iouring design was:

1. This is pretty clean and straightforward. 2. This is obviously what we need to decouple a bunch of things without the previous downsides.

What has made it so hard to integrate it into common language runtimes? Do you have examples of where there's been an irreconcilable "impedance mismatch"?

jeffparsons··on Intel Honesty
I think if Intel was a private company then it would have a better chance of recovery via a collection of focused experiments to overcome their biggest technical deficiencies (compared to their competitors) or to, e.g., figure out a compelling new product that the market didn't realise it needed, but that doesn't require solving difficult physics problems.

But to do this sort of thing you need a dictator at the top who is willing to risk a run of negative-profit quarters to fix the company's underlying rot. If you try to do anything like that as a leader of a public company, then shareholders tend to get angry.

I wonder if there's any lesson that could be distilled from the (minority of?) public companies that don't end up settling into a pattern of carefully-managed mediocrity. Is there a unifying theme? I haven't spent enough time thinking about this to even propose an answer other than "cult of personality around the leader" as maybe helping.

jeffparsons··on State of S3 – Your Laptop is no Laptop anymore – a personal Rant
> Update your software.

I don't disagree, but also...

I find it a bit surprising that this is still a thing. Why is there ever a time when I _must_ reboot? Is it just that mainstream kernels were designed at a time when people had lower expectations around this sort of thing, and now it's too hard to evolve their designs toward something that would allow for zero-downtime patching in ~all cases?

Other examples that make me wonder if it's mostly because people haven't demanded better:

- Enormous updates for all kinds of things (gigabytes for a bug fix release) because differential updates aren't pervasive. - Windows updates where a huge amount of work is done during the "rebooting" phase (why can't most of this be done before reboot?) - Absolutely atrocious power management on pretty much anything that's not a MacBook, and even not perfect on those.

I never thought we'd have flying cars by now, but if you asked me a decade ago to predict the future of operating systems... it wouldn't be this.

jeffparsons··on Writing a Rust compiler in C
It doesn't need to be _perfectly_ auditable to be worthwhile — it just needs to be more auditable than the alternatives available today.
jeffparsons··on Writing a Rust compiler in C
It's about having a shorter auditable bootstrap process much more than it is about supporting new architectures.
jeffparsons··on Faster Docker builds using a remote BuildKit instance
Haha, thanks. I chose it because:

- Here's One (I? You?) Prepared Earlier - Sometimes Hope _is_ a (caching) strategy - And yeah, I really hope I can make this thing work well.

I like silly puns. They bring me joy.

← PreviousPage 2 of 12Next →