HNHacker News
TopNewBestAskShowJobs

von_lohengramm

541 karma · joined June 21, 2021

submissionscomments
von_lohengramm··on First Rust code shows up in the Windows 11 kernel
What's more important the amount of `unsafe` is if it's sound `unsafe`. The problem with `unsafe` is that it's even harder to write correctly than it is to write sound C/C++/Zig/etc. The thing about Undefined Behavior is that it gives the compiler free reins to introduce bugs anywhere in the program, safe or `unsafe`, and the thing about Rust is that it has much stricter rules about what is well-defined than most languages fraught with UB. And due to the nature of UB, these bugs may not appear until the function with unsound `unsafe` is called in a specific context, or you update your compiler, or you add a new dependency, or you add a line of code in a different file, or you delete a line of code in a different file, etc.. There are nearly infinite things that can set off the nasal demons you've given home to in your "mostly safe" Rust codebase. Here[0]'s an article talking about just this.

[0]: https://zackoverflow.dev/writing/unsafe-rust-vs-zig/

von_lohengramm··on Fuck being productive
I think this is all a misconception about what "productive" really means. It means making progress towards some goal.

If you're some temporarily embarrassed billionaire, then the startup grindset is quite productive towards your goal.

If filling your life with momentary happiness is your goal, then playing videogames is quite productive towards your goal.

If you're a good little worker bee or someone at the Bureau of Labor Statistics is holding your family hostage, then clocking in 18 hours a day/7 days a week at $BIGTECH is quite productive towards your goal.

If you're religious, then going to church, improving your behavior/mindset, etc. are quite productive towards your goal.

It just all comes down to: What do you want out of life? What do you see as the purpose of life? The purpose of your life? Looking at this problem any other way is just deferring your personal philosophy, beliefs, and values to someone else—someone who probably doesn't care one bit about you and what you want.

von_lohengramm··on Majority of gig economy workers are earning below minimum wage: research
I'm not sure that I agree that it is. You can be logged into both Uber and Lyft awaiting rides. Good luck trying to be employed at both McDonald's and Burger King awaiting compatible schedules. What makes gig work so different is that your "employer" can't demand you to work when you don't want to.

You're not going to get fired from Uber for being unable to cover a Friday night shift since you're at working at Lyft Friday night. Can't say the same about McDonald's and Burger King.

von_lohengramm··on The JavaScript ecosystem is delightfully weird
To be fair, so much of the C++ standard is literally just being explicit about what the standard does not define and often who defines it instead. But to be fair, it would probably be entirely reasonable to categorize that as essential language knowledge and a "part of the language."

Meanwhile, the ECMAScript spec really does not leave very much wiggle room. It (like every other web standard) is almost just documentation or often even pseudocode-ification of an actual implementation... Certainly makes you think.

von_lohengramm··on The JavaScript ecosystem is delightfully weird
There used to be a lot of nice default packages, but I'm not aware of any actively maintained ones (other than "company X's config"). So instead...

First, find the docs for ESLint and each of the integration packages that you've installed for each major dependency. Then just set each rule to the strictest setting. Then as you're developing, you'll start running into overzealous rules, prompting you to either disable the rule or write some override/exception.

TSConfig, on the other hand, isn't extensible so you can just throw a couple configs from github.com/tsconfig/bases in your `"extends": [...]`. The base config `@tsconfig/strictest` might be of interest to you.

von_lohengramm··on Infosec company pwned by 4chan user
Because this literal fugitive hacktivist is clearly incapable of finding creative ways to get diversified contributions to their Wikipedia page. Heck, they even proudly link to their WP page from their personal site. If they didn't write the article themself, then it was most likely a friend who's close enough to write something that screams self-authored page. Like c'mon, just look at the thing. Have you ever seen that many citations on something that isn't just spamming them trying to stave off the Wikipedia police?
von_lohengramm··on Intel OEM Private Key Leak: A Blow to UEFI Secure Boot Security
VACnet, not VAC. Server-side ML model analyzing player actions influencing their Trust Factor (or just straight up banning in more egregious cases).
von_lohengramm··on Intel OEM Private Key Leak: A Blow to UEFI Secure Boot Security
Yet it's still pretty dang easy to bypass VGK and cheat in Valorant if you even slightly know what you're doing. Now you have the worst of both worlds. In theory, Valve's VACnet and Trust Factor are the ideal solutions, but in practice... not so much.
von_lohengramm··on Errors and Zig
> which is still planned

Where are you getting that from? That proposal is not accepted.

von_lohengramm··on SPA view transitions land in Chrome 111
Probably because HN users typically

1. are strongly/over-opinionated

2. are power users - most of these design choices are inherently less functional than alternatives

3. understand that these things aren't just "the way they are" but are intentional, explicit things that designers & co. want and will push for over how things used to be as well as the status quo

von_lohengramm··on Flux Keyboard
This is exactly what I've been dreaming of ever since Hall effect switches came back. It's very reminiscent of the old school Zboard keyboard that had physical overlays tailored towards specific games. This digital approach seems a touch more scalable.
von_lohengramm··on Why DSLs Fail
As mentioned in the article, AWS CDK is (often) used with TypeScript.
von_lohengramm··on Roman church decorated with 4k skeletons
It sounds like you're entirely missing GP's point.
von_lohengramm··on How a Zig IDE Could Work
A significant portion of C(++)'s cruft comes from its catering to one-pass compilers. I will grant you that it simplifies the job of the IDE, but it comes with so many other costs.

The obvious is that it requires forward declaration. However, depending on how back & forth interdependence is, it requires multiple "tiers" of forward declaration to effectively iteratively redeclare (or augment? Now that's some added complexity for all parties involved…) incomplete types until you can complete them. It's one thing to have a nice list of "here's what exists", but it's another to manually detangle dependency graphs. It's bad enough in C++ which already doesn't allow very much interdependence, but it'd be completely infeasible for any language more complex than glorified assembly.

Next, how would compile-time execution work? It's one thing to forward declare the existence of something, but how do you execute it without knowing its definition? You literally have to add another pass. Similarly, how do you make an inline function call?

One-pass compilation also relies heavily on searching and referring back to data from earlier in the pass, making it rather cache-unfriendly unless you build data structures as you compile, but now you're using massive amount of memory since you have to build these structures for everything in the entire input. This scales incredibly poorly. If you use one thing from some imported header, you now need to add that header and its entire dependency tree into your one pass. This isn't the 70's anymore; more passes ≠ more slower.

It's actually the compiler and IDE people pushing against this one-pass mindset, because it's "simpler" but just worse for everyone… except maybe the developer reading a header file instead of documentation. And do note that complexity comes in forms other than fancy data structures & algorithms in compilers/tooling. I'd argue that a manual flattening of a real world dependency graph is much more complex and harder to grok & maintain. Regardless, it's the compiler/tool developer's job to take the burden of complexity to better serve their users.

von_lohengramm··on GPU-Backed User Interfaces
I absolutely hate how 60 FPS is the goal for these canvas-based solutions. I can render DOM at 240 FPS (and much higher if my monitor had a better refresh rate) no problem, but things like Flutter barely ever even make it to the triple digits. It's an embarrassing case of contentment. 60 FPS should not be considered ideal. It should be considered the absolute bare minimum and really only applicable for resource-constrained systems. If you're not doing absurd amounts of number crunching like raytracing, then you should aiming for 1000 FPS.
von_lohengramm··on GPU-Backed User Interfaces
> GPU-backed is faster than not

Not necessarily. I've seen far too many cases where GPU acceleration actually made things "slower." Throughput != latency

von_lohengramm··on Why I'm still using Python
I may be the outlier here, but I have a very hard time comprehending list comprehensions. They've always seemed like a SQL query compressed into a single line (or two if you're lucky!): readable when it's simple, Lovecraftian when it's not. I've always found the functional pipeline style much more readable and much easier to explain to others, especially with IDE type hints.
von_lohengramm··on Please restore our registers when you’re done with them
I'm sure some C++ lawyer can correct me, but isn't branching off of `m_ptr` (e.g. `CHECK()`ing the value) after `std::move(m_ptr)` technically Unspecified Behavior since `std::move(m_ptr)` leaves `m_ptr` as an Unspecified Value? It would be up to the compiler to define the behavior if they so pleased, but the C++ spec would not require such behavior to be defined at all.
von_lohengramm··on High-documentation, low-meeting work culture
Sure, but oftentimes technical documentation is severely lacking. PRFAQs, initial design docs, etc. are thoughtfully created and thoroughly reviewed, but the actual implementation lacks the documentation required to make onboarding (be it new team members or new dependent teams) as smooth as it could be. My favorite is finding an out of date Wiki page from 6 years ago that contains a partial list of API method names, descriptions if you're lucky, and then nothing else, not even a link to the service's AAA page/etc. or a high-level summary of what the service _does_ or _why_. With how many moving parts there are and how inaccessible non-platform-level documentation is, the new hire experience at Amazon can be rather daunting. Even SDE1/2s that are a year in often have a very incomplete picture of what's going on in their own domain space. Too much tribal knowledge.
von_lohengramm··on The journey to Nintendo Switch
For things that UBsan checks for, yes, but there's a ridiculous amount of things that are surprisingly UB in C(++).
von_lohengramm··on Hacking anything with GNU Guix
Well, Nix was mentioned a few posts up... But in general, Guix is directly based off of Nix and is seen by many as "Nix + Guile + GNU". Is it odd to see people talking about a different BSD in a {Free,Open,Net,*}BSD thread?
von_lohengramm··on Hacking anything with GNU Guix
You can do that with NixOS trivially.
von_lohengramm··on uBlock Origin Lite: Description
Have you seen how much money they receive and where they squander it all?
von_lohengramm··on Syntax highlighter is wrong (2014)
You mean "Not just Japan. China."
von_lohengramm··on Syntax highlighter is wrong (2014)
Japan
von_lohengramm··on Zig, the Small Language
> We've had -Werror forever, the consensus is it's a bad idea.

Says who? Package repo maintainers? -Werror is actually quite divisive.

von_lohengramm··on Terminal Latency (2017)
It is because of conhost. You can actually replace the default Windows one with the new OpenConsole and it makes your entire PC faster. Kinda neat.
von_lohengramm··on Intermittent fasting 2 days vs. 1 day per week
On average, sure, but there are plenty of metabolic outliers, and I doubt those seeking weight loss are on the higher end. My weight was surprisingly consistent at 1300kcal/day.
von_lohengramm··on Yes, the U.S. economy is likely in recession
Although unemployment[0] is back to the pre-pandemic low, the employment-population ratio[1] is still below pre-pandemic levels. People just don't want to work. Probably partially due to the same factors that gave way to /r/antiwork's and /r/workreform's explosions of popularity. I'm sure other factors like people moving in with their parents/friends during the lockdown and the stimulus checks are also contributing.

[0] https://fred.stlouisfed.org/series/UNRATE

[1] https://fred.stlouisfed.org/series/EMRATIO

von_lohengramm··on Ask HN: Why has quality of YouTube reduced drastically?
When it comes to music, it usually takes up to 5 songs on autoplay before YouTube will get in a rut and replay the same exact sequence of 8 songs. Every. Time. Forever. It's not that I dislike those songs, but I think I'm starting to at this rate.
← PreviousPage 3 of 5Next →