HNHacker News
TopNewBestAskShowJobs

von_lohengramm

541 karma · joined June 21, 2021

submissionscomments
von_lohengramm··on So Reddit has decided that plain HTML is unsafe
I'm curious what you've found the troublesome subreddits to be. I think I have a pretty strong idea what they are, but some validation would be nice.
von_lohengramm··on F-35 is built for the wrong war
> like in Infinity War

Referencing Marvel movies in one's description of proposed military hardware is not only immediately discrediting but also a good sign that self-reflection is in order.

von_lohengramm··on The United States and Israel have launched a major attack on Iran
> Every country with conscription will do this if you refuse to show up.

Was that MP a draft dodger? The issue isn't them picking draft dodgers, it's them picking up anybody that looks like they might be a draft dodger and the tactics they employ to do it.

von_lohengramm··on Data Processing Benchmark Featuring Rust, Go, Swift, Zig, Julia etc.
I'm completely alright with just having fun and hosting your own little sandboxes online, but what good does it do to post and share this with others in its current state? The picture it paints is certainly not representative, and this sort of thing has been done a million times over with much better consistency. Again, I think it's great to hack around in every language and document your journey all the way, but sharing this is borderline misinformation. It's certainly not my duty to right the wrongs of this benchmark.
von_lohengramm··on Data Processing Benchmark Featuring Rust, Go, Swift, Zig, Julia etc.
This entire benchmark is frankly a joke. As other commenters have pointed out, the compiler flags make no sense, they use pretty egregious ways to measure performance, and ancient versions are being used across the board. Worst of all, the code quality in each sample is extremely variable and some are _really_ bad.
von_lohengramm··on Thoughts on Go vs. Rust vs. Zig
> and the 2nd most being the word 'try' instead of just ?

All control flow in Zig is done via keyword

von_lohengramm··on Google unkills JPEG XL?
> JXL's theoretical maximum image size is bigger.

This is all fine and good until you actually try encoding such an image with libjxl. What an absolute garbage codebase. I'm sure it's gotten better since I've last used it, but it's impressive how unoptimized, memory hungry, and of course wildly unsafe/crashy it was. Many of the options just completely didn't work, either due to exponential performance, crashes, or weird special-casing that breaks the moment you encode anything that's dissimilar from the sample images used in the sham benchmark made by the libjxl creators. I don't even think a high resolution image had ever been successfully encoded on higher effort levels, since I doubt that anyone trying to do so had the terabytes of RAM required.

I was genuinely flabbergasted when there was mass support for reviving it a couple years ago. I don't think anyone advocating for it has actually used libjxl at all and were just internet hypemen. That seems to happen all too often nowadays.

This all being said, I'm mildly optimistic for a retry with jxl-rs. However, seeing much of the same contributors from libjxl on jxl-rs does make me quite cautious.

von_lohengramm··on Games using anti-cheats and their compatibility with GNU/Linux or Wine/Proton
Imagine wanting tivoization. Horrifying.
von_lohengramm··on Zig builds are getting faster
> vlang is really fast, recompiling itself entirely within a couple of seconds.

Does V still just output C and use TCC under the hood?

von_lohengramm··on In C++ modules globally unique module names seem to be unavoidable
That might be the case in C land, but C++ land usually has a lot more stuff in headers. For examples, templates are not very useful unless they're defined in headers.
von_lohengramm··on This website has no class
>Users ... want a snappy interactive UI with lots of animations to get the "vibe" right

[citation needed]

von_lohengramm··on I feel Apple has lost its alignment with me and other long-time customers
There's nothing contradictory here. Not once do I say that I've found the best solution. I merely reached a point where more effort & time spent on this problem will only give me a worse solution. And of course this is merely for myself and everybody has different needs. I never claimed otherwise. The crux of the issue is that we all disagree on what's good and bad, what's necessary and pointless, and too many people are just willingly accepting what's being given to them even if it's worse by their own metrics.
von_lohengramm··on I feel Apple has lost its alignment with me and other long-time customers
I used to go through phases where I would try this. I gave Windows + WSL a shot. I gave embracing the Apple ecosystem a shot. I gave GNOME a shot. I gave KDE a shot. I was even crazy enough to give ChromeOS as my daily driver a shot. And so on and so forth.

I found every single time that it just wasn't worth it. There was always some critical failure that was either completely underlooked or a 20 year old bug/shortcoming that had every patch to fix it rejected. I genuinely don't understand how people tolerate the dogshit being forcefed to you on all of these controlled platforms. People say that everything is getting worse, and it's true, but it's also true that you're actively choosing to use the things that are getting worse.

I've eventually settled on NixOS and XFCE so I can tweak things to my particular needs while also benefiting from an army of unpaid labor continually improving nixpkgs and other flakes. This setup isn't perfect, but I've optimized for maximal comfort & utility while exerting minimal effort & time. Things really only break when they're self-updating under the hood, which thankfully is rather rare in nixpkgs.

von_lohengramm··on Charlie Kirk killed at event in Utah
> The argument against using violence to achieve you ends is that if everyone does it, it is bad for everyone.

If you subscribe to Kant perhaps, but most people's argument against violence (and morality in general) is probably not Kantian.

von_lohengramm··on Why was Apache Kafka created?
The problem is that writing genuinely performant Java code requires that you drop most if not all of the niceties of writing Java. At that point, why write Java at all? Just find some other language that targets the JVM. But then you're already treading such DIY and frictionful waters that just adopting some other cross-platform language/runtime isn't the worst idea.
von_lohengramm··on AGENTS.md – Open format for guiding coding agents
While the meaning of "source" may be intuitively obvious, it's still relatively unfamiliar as "src" is far more prevalent than "source" when referring to source files. While "id est" may be equivalent to "i.e.", you'd still naturally pause when reading text using the former instead of the latter, because the latter is far more prevalent in usage than the former.
von_lohengramm··on AGENTS.md – Open format for guiding coding agents
Have you considered that there are other metrics people are optimizing for nowadays? Perhaps typeability, screen real estate, familiarity/convention, etc.? Do you really want /User Files/Bob's Files/Coding Projects/Python Projects/Bob's Cool Python Library/Source Code/Model Files/SomeObject.py?
von_lohengramm··on Matt Godbolt sold me on Rust by showing me C++
> the program is no good for me dead

That may be true, but the program may actually be bad for you if it does something unexpected due to an unforeseen state.

von_lohengramm··on Just redesigned my personal site with a TTY-style interface
I instinctively pressed ^W to delete a word and closed the tab. Nice.
von_lohengramm··on Things Zig comptime won't do
It sounds like the sort of compile-time code that you're talking about is closer to "buildtime" code in Zig, that is Zig code compiled for the host platform and executed by the build system to generate code (or data) to be used when compiling for the target system. As it stands now, there's absolutely nothing special about buildtime code in Zig other than Zig's build system providing good integration.

On the other hand, "comptime" is actually executed within the compiler similar to C++'s `consteval`. There's no actual "emulation" going on. The "emulation" is just ensuring that any observable characteristic of the platform matches the target, but it's all smoke and mirrors. You can create pointers to memory locations, but these memory locations and pointers are not real. They're all implemented using the same internal mechanisms that power the rest of the compilation process. The compiler's logic to calculate the value of a global constant (`const a: i32 = 1 + 2;`) is the "comptime" that allows generic functions, ORMs, and all these other neat use cases.

von_lohengramm··on Show HN: XPipe, a shell connection hub for SSH, Docker, K8s, VMs, and more
On my desktop, but I am trying to access it "remotely" from the same machine. I have a Linux host and an LTSC KVM guest with GPU passthrough so I can cleanly isolate (and more easily reproduce) my Windows environment. Currently, I just use VSCode's Remote SSH to develop in Windows, but it leaves much to be desired.
von_lohengramm··on Show HN: XPipe, a shell connection hub for SSH, Docker, K8s, VMs, and more
> Windows enterprise systems are only supported with at least a XPipe Professional license. You can find information about upgrading to a professional license below.

Welp. If I have to choose between XPipe and LTSC, I'm afraid LTSC is gonna win. I have no interest running a version of Windows where Windows Update will randomly decide to brick my install or better yet, add even more Candy Crushes to my start menu.

von_lohengramm··on UTF-8 characters that behave oddly when the case is changed
Hardly fair to call it a murder-suicide. Ramazan killed Emine in self-defense.
von_lohengramm··on Rust for Embedded Systems: Current state, challenges and open problems
You would only ever do all that if you had no clue what you are doing (and most don't). It's rather trivial to bypass modern kernel anticheats, especially with a hacked up KVM or custom hypervisor. So much of anti-cheat nowadays is based off of automated (delayed) detection and user reports that you can easily ragehack to the the top ranks without ban if you just use silentaim (aimbot that doesn't need to change your view angles) and common sense.

In fact, I'd go so far as to say that a majority of players in the top ranks of most popular FPSs are cheaters or queue with cheaters. There's nothing quite like watching the enemy stare right at you through every wall across the map and then carelessly run in a straight line towards you. Even more concerning is how many streamers queue up with blatant cheaters and then use their connections with game moderators to manually ban other cheaters.

von_lohengramm··on Show HN: Startup funding simulator
I was expecting something similar to PhD Simulator: https://research.wmz.ninja/projects/phd/index.html
von_lohengramm··on Show HN: Cassette, a Personal Programming Language
> for code you love it is the devil

This doesn't have to be true! Zig's `zig fmt` doesn't wrap on column count but instead lets you insert breaks with a ",". While this does introduce a level of user discretion which can diminish the braindeadness of autoformatters, I find that it works a lot better because now I can choose where the reasonable place to break is. There may technically be more wiggle room for debate, but now you're spending less time debating variable names or whatever to get it to format not-awfully.

von_lohengramm··on Firefox for Android is adding support for 400 add-ons
Can you not create an add-on collection to install arbitrary extensions anymore?
von_lohengramm··on It's 2023 – why is it still so annoying to respec in singleplayer RPGs?
> Why even have classes at all at this point?

Perhaps this is the actual lesson? Instead of artificial opportunity cost in the form of exclusive choices, why not provide opportunity cost in the form of time/money/etc investment?

You're a Sword & Board fighter in need of stealing the MacGuffin. Instead of magically undoing the choices that got you here, you go out and practice Stealth until you're able to heist the famed MacGuffin.

Admittedly, this system does actually provide less immersion, meaningful choices, etc., but IMO this can be mitigated almost completely by making skilling up much harder. If you still want to promote class/archetype-based characters, then just make your character's class reduce the amount of XP needed to level up certain skills. While you're at it, make having high skills also reduce the XP cost of similar skills. Someone who's really good with two-handed weapons will probably pick up one-handed weapons much quicker than someone who's never even touched a weapon.

And if this isn't enough opportunity cost for truly meaningful choices, then limiting the availability of XP (in certain sections of the game?) is also an option.

von_lohengramm··on Mastering DOM manipulation with vanilla JavaScript
There's a reason why web developers have the reputation they do.
von_lohengramm··on I trapped scammers in an impossible maze [video]
I've done more things in asm than CSS, but I've spent far more time doing CSS.
Page 1 of 5Next →