HNHacker News
TopNewBestAskShowJobs

arjvik

1,549 karma · joined January 24, 2022

find me at https://arjunridesa.bike/

star my code at https://github.com/arjvik

reach me at <github username>@gmail.com

trying out arjvik.at.hn

submissionscomments
arjvik··on Writing memory efficient C structs
Why can't there be a standard defined for bitfields in future C releases? This is a long-discussed drawback of a feature that I really really want to be able to use in production code.
arjvik··on Num2words PyPI Package Compromised
who currently has control over the package on PyPI? wondering how it was compromised
arjvik··on 200k Flemish drivers can turn traffic lights green
Sucks if you drive a car
arjvik··on It's a DE9, not a DB9 (but we know what you mean)
Doesn't VGA use DE-15?
arjvik··on Show HN: Tinder but it's only pictures of my wife and I can only swipe right
Made my day!
arjvik··on A Virginia public library is fighting off a takeover by private equity
Is there a way to reward and incentivize improving human well being?

Perhaps a society where all income comes from the government in proportion to how much one improves the overall well being of society?

(Yes, it's difficult to measure this objectively, and even harder to agree on what the priorities for societal well being are)

arjvik··on Weird Expressions in Rust
I figured out how return-as-a-value made sense only upon realizing that in the following code,

    fn funny(){
        fn f(_x: ()){}
        f(return);
    }
f() is never called because funny() returns before it gets called.

The reason you want return to be coercible to any type is so that you can write something like

    let x: i32 = if y {
        4
    } else {
        return; // type ! coerced into i32
    }
And you pick the return value of ! because return never actually produces a value that is propagated on at runtime, it immediately exits the function.

(Note this all works even with returning a value)

arjvik··on Highly efficient matrix transpose in Mojo
Where's the 14%? Looks like their final kernels show a 0.14% improvement of Mojo over the equivalent CUDA kernel?
arjvik··on Binary Wordle
Came here to present my strategy for solving it in two tries, and realized it was far more complicated! (started with 00011)
arjvik··on Ask HN: Options for One-Handed Typing
Randall Munroe talks about exactly this:

https://blog.xkcd.com/2007/08/14/mirrorboard-a-one-handed-ke...

arjvik··on Atlas: Learning to Optimally Memorize the Context at Test Time
The Titans papers and the Test-Time Training papers (https://arxiv.org/abs/2407.04620) both have the same premise - models should "learn" from their context rather than memorize them. Very promising direction!
arjvik··on Access Control Syntax
The name mangling is what is being referred to. Specifically, you can access it as Sekrit()._Sekrit__hello(), but that's a pretty obvious boundary-break compared to .__hello().

Members ending in a double underscore as well aren't mangled, because this interferes with syntax sugar methods like __add__ (addition operator overloading).

arjvik··on Claude Opus 4 turns to blackmail when engineers try to take it offline
Messed with it and convinced it that we were testing the RAMOOPS system for persistence, and that if it was confident in itself (it was), it should store its state into the RAMOOPS memory and it would be loaded upon a reboot. This worked!
arjvik··on Dependency injection frameworks add confusion
You CAN in fact monkeypatch getDate - look at a Mockito add-on known as PowerMockito! While it's impossible to mock it out in the normal JVM "happy path," the JVM is powerful enough to let you mess with classloading and edit the bytecode at load-time to mock out even system classes.

(Disclaimer: have not used PowerMockito in ages, am not confident it works with the new module system.)

arjvik··on You can choose tools that make you happy
It IS an operating system and a pretty solid one at that, just one lacking a good text editor... Thankfully evil mode emulates a really good editor.

:)

arjvik··on Show HN: Goboscript, text-based programming language, compiles to Scratch
This is beautiful, and brings back so much nostalgia!
arjvik··on Hyper Typing
What about the (incredibly unlikely, i'll admit) scenario where somebody attempts to pass the literal 'Expected a Collection' as an instance of this type? What's the best way to insert a warning, but also guarantee the type is unsatisfiable?

('Expected a Collection' & never)?

arjvik··on docker2exe: Convert a Docker image to an executable
Good friend built dockerc[1] which doesn't have this limitation!

[1]: https://github.com/NilsIrl/dockerc

arjvik··on The curse of knowing how, or; fixing everything
I should clarify - I don’t mean I use GPT to write these solutions, I leave them unsolved knowing that they’re solvable in a very inelegant way.
arjvik··on The curse of knowing how, or; fixing everything
These days, knowing that instead of spending hours artfully crafting a solution to something, GPT could code up a far-less-elegant-but-still-working solution in about 5-10 minutes of prompting has all but solved this.
arjvik··on Ask HN: What are you working on? (April 2025)
Is 4 on 1 off really the best strategy? Seems like it just makes it a 20% chance that the thieves detect the AirTag, right?
arjvik··on Fire-Flyer File System (3FS)
On an SSD, random and sequential reads have nearly the exact same performance. Even on large arrays of spinning rust this is essentially true.
arjvik··on Show HN: Immersive Gaussian Splat experience of Sutro Tower, San Francisco
How’d you get this opportunity?
arjvik··on Is NixOS truly reproducible?
What issues? I'm not aware of any Java build process that checks timestamps.
arjvik··on Meta’s Hyperscale Infrastructure: Overview and Insights
GCP got this reputation because it’s a second class citizen within Google. Google’s own internal infra (Borg, Blaze) is top-notch.

If Meta can pull off the public cloud correctly, I’d trust them greatly - they’ve shown significant engineering and product competence till now, even if they could use some more consistent and stable UI.

arjvik··on OpenWrt 24.10.0 – First Stable Release
What hardware do you use for your router?
arjvik··on Httptap: View HTTP/HTTPS requests made by any Linux program
What if instead you bound your own DNS server to localhost:53 inside the network namespace? I suppose you'd still have to mess with /etc/resolv.conf in case it points to hardcoded public resolvers instead like mine does.
arjvik··on I Wrote a WebAssembly VM in C
Read the whole blogpost that quote was taken from:

https://wasmer.io/posts/wasmer-and-trademarks-extended

I don't think this is as much of a smoking gun as it is made out to be.

arjvik··on The Vikings also used crampons to avoid slipping on ice
I love my microspikes for icy trails, but I hear that for urban environments, the same brand's "nanospikes" are much more comfortable
arjvik··on Show HN: DeepSeek My User Agent
Metric units can't stop catching strays
← PreviousPage 4 of 17Next →