HNHacker News
TopNewBestAskShowJobs

ben0x539

4,454 karma · joined September 23, 2010

submissionscomments
ben0x539··on Show HN: AGL a toy language that compiles to Go
Cool language. Only two weeks for this? Damn!

This seems to nicely smooth out a lot of the pain points I had back when I regularly wrote Go but also switched to other more expression-based languages occasionally. Being able to get all these conveniences while still being able to call into existing Go code seems amazing!

Also, I appreciate the pun, but did you have to use AI for the logo? Haha

ben0x539··on Memory safety is table stakes
All of these have implementations available under free software licenses so they are clearly and objectively not proprietary.

Trademarks are annoying but I can hardly imagine they're what anyone is worried about when picking a language in this context, they're not what's going to cause a language to disappear.

ben0x539··on Libxml2's "no security embargoes" policy
When I, as a little child (or at least that is how it feels now), got excited about contributing to open source, it was not the thought that one day my code might help run some giant web platform's infrastructure or ship as part of some AAA videogame codebase that motivated me. The motivation was the idea that my code might be useful to people even with no corporation or business having to be involved!
ben0x539··on Websites are tracking you via browser fingerprinting
> but why does the website that's sending me HTML and CSS and Javascript need to know?

The website doesn't get told by the browser, but the website is sending you Javascript, and the browser will tell the Javascript when the Javascript politely inquires as to the width and height of the root html element, or some element with text in a funny font in it, and the Javascript is then free to report home.

I think hiding layout information like that from Javascript isn't really within reach without a radically different model that breaks a ton of websites.

ben0x539··on Left-Pad (2024)
Really, what's the qualitative difference between reaching for a utility function that someone else already wrote within your project and reaching for a package that someone else already published within your ecosystem? They're obviously not the same thing but are they so far apart that you can't wrap your head around it wanting to treat them the same, given sufficiently advanced tooling?
ben0x539··on Why Android can't use CDC Ethernet (2023)
Five minutes after this popup exists, you won't be able to run any of the big "can't participate in your social life without these" apps anymore without granting them those elevated privileges.
ben0x539··on Ratatoi is a C libary that wraps stdlib's strtol (as atoi does), but it's evil.
Doesn't it set errno to 0 first thing?
ben0x539··on Have I Been Pwned 2.0
I got "radicalized" about these filter measures at my last job, where we operated a popular public-facing website, and we apparently adopted some third-party solution to reject otherwise valid logins based on some heuristics, with an intentionally vague "try again later"-style error message. Throughout a few months, I noticed a steady trickle of coworkers talking on the internal chat about being unable to log into the site citing that exact error, with varying degrees of urgency (eg. for myself, I noticed I couldn't log in using a private browsing window, but didn't worry too much because my long-lived session cookies were still fine). I like to think all of them were eventually pointed in the direction of the team working on the integration so that these false positives could be worked around, but definitely not everybody initially realized what was happening to them.

If even people within the same company fell victim to these filters, what chance would the wider public have? On the other side of my tenuous work/life balance, multiple friends that were long-time users of our product were also getting locked out of the site, and of course they had no means of understanding that they were false positives of a fraud detection heuristic, much less of getting individualized support. I know those people and that they were genuine good-faith users, but naturally, while I could pass on word of their struggle, I couldn't offer any actual help since that would disclose details about those heuristics that we were apparently paying good money for and wouldn't want the public to know anything about. I also saw social media discussions where other affected users were helplessly telling each other to try different browsers or reinstall Windows.

Of course, I understand the need to combat abuse of services (and I applaud this employer for many other measures taken in that effort), but it definitely did a number on my loyalty to the company and excitement to be part of the industry to realize that my friends and I would be readily sacrificed if push came to shove.

ben0x539··on HDR‑Infused Emoji
I guess not! I'm toggling something on and off and can't tell a difference. Maybe after my next upgrade!
ben0x539··on HDR‑Infused Emoji
What devices is this meant to work on? On my laptop I'm not seeing anything out of the ordinary.
ben0x539··on Cursor IDE support hallucinates lockout policy, causes user cancellations
When admitting fault with your a PR hat on after pissing off a decent(?) number of your paying customers, you're supposed to fully fall on your own sword, not assign blame to factors outside of your control.

Instead of saying "race condition that appears on very slow internet connections", you might say "race condition caused by real-world network latencies that our in-office testing didn't reveal" or some shit.

ben0x539··on A surprising enum size optimization in the Rust compiler
Showing up out of nowhere pretending like they haven't even thought about what it means isn't helpful though.
ben0x539··on A surprising enum size optimization in the Rust compiler
> I'm honestly befuddled why anyone would downvote this.

I think there's two parts to this. First, there's a bit of a history of people making disingenious jabs at Rust for not having an "ISO C++" style spec. Typically people would try to suggest that Rust can't be ready for production or shouldn't receive support in other ecosystems without being certified by some manner of international committee. Second, Rust by now has an extensive tradition of people discussing memory safety invariants, what soundness means, formal models of what is a valid memory access, desirable optimizations, etc, etc, so your question what undefined behavior means could be taken to be, like, polemically reductive or dismissive.

In context I don't think it's what you're doing, but I would also not be surprised if a lot of people reading Rust-related HN discussions are just super tired of anything that even slightly looks like an effort to re-litigate undefined behavior from first principles, because it tends to derail more specific discussions.

ben0x539··on xAI has acquired X, xAI now valued at $80B
Huh, why?
ben0x539··on Debian bookworm live images now reproducible
I'm not reading it as "it's not worse than python", I am reading it as "the choice was between bash and perl, python was not an option for reasons unrelated to its merits"
ben0x539··on The OBS Project is threatening Fedora Linux with legal action
What's the term for having to choose between an deprecated/EOL version or an unstable/regressed version? It seems like it comes up over and over again.
ben0x539··on Go Is a Well-Designed Language
Does this do what you want across/during DST switchover?
ben0x539··on Open Heart Protocol
The problem with comment sections on web sites is that the web sites are incentivized to have shitty comments for engagement and ease of moderation. If it's a browser plugin, it's out of the website's hands and as the user I could probably configure it so I only see comments from people I think are good at commenting, like my friends or people I follow on social media.
ben0x539··on Why I love Rust for tokenising and parsing
Yeah that's the code I mean
ben0x539··on Rust for tokenising and parsing
I think they're asking how the code in the Go runtime (not the compiler, that being an interesting but also maybe non-obvious distinction!) that implements the garbage collector, a core feature of the language, avoids needing the garbage collector to already exist to be able to run, being written in the language that it's a core feature of. I suspect the answer is just something like "by very carefully not using language features that might tempt the compiler to emit something that requires an allocation". I think it's a fair question as it's not really obvious that that's possible--do you just avoid calling make() and new() and forming pointers to local variables that might escape? Do you need to run on a magical goroutine that won't try to grow its stack with gc-allocated segments? Can you still use slices (probably yes, just not append() or the literal syntax), closures (probably only trivial ones without local captures?), maps (probably no)...?

I think the relevant code is https://github.com/golang/go/blob/master/src/runtime/mgc.go and adjacent files. I see some annotations like //go:systemstack, //go:nosplit, //go:nowritebarrier that are probably relevant but I wouldn't know if there's any other specific requirements for that code.

ben0x539··on Jaywalking legalized in New York City
Surely by following that directive you're altering your trajectory? It can't work in both directions!
ben0x539··on Arthur Whitney's one liner sudoku solver (2011)
Where are you getting the viewpoints thing from?
ben0x539··on Arthur Whitney's one liner sudoku solver (2011)
Wouldn't it be more productive/rewarding to instead engage with comments I do like?
ben0x539··on LsCs is a cross platform C++ GUI library focused on Medical Devices
> and I'm not even sure if people actually run GUIs with these legacy mainframes (plus the author's stating this will primarily support Linux, but are these mainframes even capable of running it?)

The next parapgraph sounded like they're concerned about bugs from not having the same integer representation as those systems:

> Passing 2's complement data to backend systems or front end sensors expecting 1's complement causes catastrophes.

I don't really understand their concern though--surely all actual C++ implementations that build QT apps and the platforms that run them are using twos complement anyway? Like, the C++ standard change is not making anyone change their integer representation, it's just telling the not-twos-complement people that they're on their own, right?

Of course I'm not surprised not to be following the logic since I have to count myself among "those who never went to college for Computer Science".

ben0x539··on Things you should know about Windows Input, but would rather not
Surely even in a shooter game you spend some amount of time in menus where you do have a cursor, right? Is this why I sometimes get completely 'wrong' cursor movement in games?
ben0x539··on Jeff Bezos' management rules are slowly unraveling inside Amazon
I think, just like theological debate, it looks arbitrary from the outside trying to reconstruct the whole discipline from first(/leadership) principles and ignoring the scholarship that has been done in the past couple thousand years/implicit understanding that has been built in years of meetings.
ben0x539··on Jeff Bezos' management rules are slowly unraveling inside Amazon
In my mind, it was to be temporary until the risk of infection at the office was back to pre-pandemic levels. I understand that at this point it's more likely that we'll define the problem away and normalize shifting that much more of a health risk onto employees, but going by the original "implicit" agreement we're still in that temporary period. Of course it's not serious to threat it as temporary because companies and people have made permanent adjustments that won't be rolled back.

My (Amazon subsidiary!) employer at no point made anyone(†) go back to the office. I happily returned when vaccines were widely rolled out, but quickly realized people were still getting infected left and right and decided to minimize office visists while strictly masking. A good half of the team moved out of state and never came back, future hires were fully remote as often as not. I got hit by layoffs eventually but as far as I have heard the remaining team has not gotten any less distributed.

I don't think it's reasonable to describe a forced move to full office attendance as an inevitable "return to normal", even if we back in March 2020 would have expected it to have happened by now. But now in 2024, the world has changed and it's an explicit employment policy decision that as a purpose-of-a-system-is-what-it-does thing aims to continue layoffs while paying less severance etc.

(† naturally from atop my ivory throne of tech-wrought hubris, I am discounting actual office staff like facilities and security as well as some portion of IT etc)

ben0x539··on Jeff Bezos' management rules are slowly unraveling inside Amazon
I think the idea is that input is things that you absolutely, directly control, and output is more like "outcomes". You can control the price and certainly you can impact revenue by setting a price and, like, doing the whole rest of your job, but you still don't directly set the revenue.

My understanding of why they make this distinction is that if you focus on output metrics and you don't meet the target, you can be rationalize it as "well, we did a really good job but we failed to meet the goal because of circumstances beyond our control/market conditions/...", but if you focus on an input metric you're more directly accountable on whether you did what you said you'd do, and you come up with more actionable steps on how to fix it if not.

ben0x539··on The secret of Minecraft (2014)
> Now there's villages which provide pre-made shelter, you can just trade and build up villager slaves to make all the resources for you, you can get a bed (which you find in all villages) which let's you skip the night phase completely, and they've even added in wings so people are flying everywhere.

Yeah, it really kinda surprised me that Minecraft went in that direction. What got me hooked was 100% the need for shelter and some landscaping to make sure you wouldn't have eg. a bunch of skeletons standing under each tree on your front lawn every morning, a creeper waiting around the corner of your house, etc. Being able to skip night completely means there's basically never monsters on the surface unless you want there to be, and without that sort of ever-present threat, there's just that much less pressure that the game can put on you towards cautious gameplay and 'functional' protective structures and so on. Of course people keep themselves entertained with amazingly extravagant builds and ridiculously complicated redstone machinery anyway, so I'm not saying it's a bad direction for the game, it obviously worked out well for them etc. I just really wish there was more gameplay directly motivated by basic survival, instead of progressing past survival in the first five minutes.

Conversely I think flying is entirely fine. Unless you're, like, speedrunning, flight is only available once you've progressed through basically the entire game, and I think at that point it's reasonable that there's a more convenient way to explore distant areas.

Now, shields, those are just too powerful for how early they're available!

ben0x539··on How did Facebook intercept their competitor's encrypted mobile app traffic?
Whenever I'm discussing something in person I think about how I would feel if it turned out my employer was breaking the law and me not putting it in writing stopped the injured parties from obtaining just compensation.
← PreviousPage 2 of 34Next →