Better HN
topnewbestaskshowjobs
Log inSign up

snackbroken

674 karma · joined Dec 5, 2024 (1y ago) · 142 submissions

Submissions

comment 10h ago · link · parent

Straightforward yes, syntactically nice no. Ideally you should at least be able to write

  fn view() -> impl Widget {
or

  fn view() -> impl BasicWidget {
but even that feels a little bit clunky. You could imagine this working by a) having traits let you choose one of a few different ways to implement them and automatically deriving the rest and b) either not forcing you to specify the <T> of a generic type when the T can be inferred, or making BasicWidget an alias for Widget<()>, or automatically deriving Widget<()> for types that implement BasicWidget.

comment 1d ago · link · parent

Every browser will forever be KHTML, like Gecko.

comment 1d ago · link · parent

> no one is forcing you to use the quest markers

To further expand on this, the games that have quest markers are invariably terrible at giving directions without them.

Even within the same game series from the same studio the differences are stark. Compare Morrowind with Skyrim; In Skyrim, the quest markers tell you where to go and the NPCs give little to no information beyond "I went to a nearby cave" or whatever. The "nearby" cave in question could be anywhere between 50 meters away and halfway across the game world. In Morrowind, the quest journal is of marginal utility but NPCs typically give directions like "Take the road from here towards <town>, head east off the road when you see the dead tree and you will find the tomb. You will know you've found the right place if you see <distinguishing feature of the entrance>" or at worst hint at a region to search. How detailed their directions are usually makes sense from an in-world perspective.

P.S. If you like the FromSoft games, check out the recently released Queen's Domain. It has excellent level design and does very little hand-holding (some items glow to make them easier to spot, but that's about it). It's the first game I've played in a while where I felt it would be helpful to take notes. Secrets abound and paying attention to your surroundings is regularly rewarded. I should mention that combat in the first hour or two before you've unlocked a good amount of attack/movement options can feel a little tedious but is not representative of the rest of the game. ~30 hours to fight the titular queen, another ~30 hours to complete all of the post-game content. ~Halve those estimates if you are a veteran of the genre.

comment 4d ago · link · parent

That's a lot of post-hoc rationalization for justifying ruthlessly defending their competitive edge.

comment 4d ago · link · parent

Spammers operate out of countries where they have no fear of legal consequences, so all Signal has to do to deter them from the crypto option is make it more expensive than bulk phone numbers are.

comment 5d ago · link · parent

Every tool we bring to bear in programming, from control flow structures to type checking comes down to grappling with the fact that global mutable state is hard to reason about.

Viewing the CPU as a pure function from "state of the universe before a given clock cycle" to "state of the universe after said clock cycle" is not particularly helpful on its own, because you still need to care about all the state in the universe. What this change in perspective does however, is that it becomes a relatively small change to say "actually this part of the program doesn't care about the whole universe, and doesn't affect the whole resulting universe, only that tiny bit over there matters and only this tiny bit over here changes."

The win is that the compiler can help keep you honest about handling every possible state you depend on as input and that when you call a function, it doesn't unexpectedly change some state your function depends on behind your back. All the state you ever have to care about when writing (edit: or reasoning about) a pure function is "what are my arguments, and what are the return values of functions I call?"

comment 2w ago · link · parent

Funnily enough, Youtube recently changed how they count views to be more in line with its competitors, so now they do count views as soon as the video starts playing.

comment 3w ago · link · parent

Respectfully, talk is cheap. Every company says they take security and privacy seriously even after their database has been breached and their customers' plaintext passwords and credit card details have become public information.

If you were actually serious about prioritizing privacy above securing an ongoing service relationship you would ship local inference as the default and only (possibly later) offer a cloud service as an optional add-on for those who want/need it.

comment 2mo ago · link · parent

That's what I'm used to as well, but in my experience a lot of programmers take fold and reduce to be synonyms. A monoidal reduce is much less "scary" than a general fold. I suspect most programmers have never[1] heard the word monoid, let alone know what it means, and having to remember the meaning of a weird new word is enough to make most people dislike something compared to the simpler more familiar operations.

[1]Or if they have, their only encounter with it is the "a monad is just a monoid in the category of endofunctors" meme.

comment 2mo ago · link · parent

Right. It's just one more thing you have to think about with Reduce that's not something you have to consider with Map/Filter.

comment 2mo ago · link · parent

The accumulator is global state. If you're folding from list<int> to int you're right that it's (usually) effectively a pairwise operation on ints. If the fold is something like list<foo> -> tree<bar> then you have to reason about each intermediate (tree<bar>, foo) -> tree<bar>, i.e. how global state should evolve over time with each update.

comment 2mo ago · link · parent

Map and Filter are nice because they let you reason locally about a single element in isolation. Reduce(Fold) forces you to reason globally about intermediate results. Reduce also forces you to conjure up a "zero" value of the relevant type, which isn't usually difficult but it does constitute some extra mental overhead.

comment 2mo ago · link · parent

People seem to get on with Discord invite links just fine. You don't have to do the "confirm that all these emoji are the same on both your devices" dance to stop spam.

comment 2mo ago · link · parent

One possible solution is to only be able to contact someone if you have received an invitation code from them out of band. E.g. "scan this QR code to add me on signal". Such an invitation code should default to single-use but users should be allowed to generate standing invitations so that businesses and the like can print and post one in their store or whatever. Start getting spam from one of your standing invitations? Just revoke it and make a new one. Presumably the Signal folks can come up with more alternative solutions than the half baked one I came up with after thinking about it for a minute, they're clever cookies.

comment 2mo ago · link · parent

> Finns and Norwegians only are able to bike part of the year.

They very much bike all year round, even in the north where it regularly gets to -20C(-4F) in winter. Biking in snowy sub-freezing weather is really not a big deal as long as you maintain the bike paths as well as the streets.

Source: have lived there, everyone I knew had a bike they regularly used. The only time I can recall where people I knew who usually commuted by bike didn't do so was during an unusually heavy snowstorm. They instead had to walk about half a kilometer to/from where the city had managed to plow the streets and take a taxi. That was decades ago.

comment 2mo ago · link · parent

Heretic[1] is not that far off, though I suppose it's more along the lines of undoing the "for your own safety" lobotomy than explicitly specializing in unsafe things.

[1]https://github.com/p-e-w/heretic

comment 2mo ago · link · parent

Workplace safety improved massively when labor unions became a thing and workers got a say in safety standards.

comment 2mo ago · link · parent

You don't need explicit consent for functional cookies, e.g. a session cookie or to store what preferences the user has selected on your settings page. It is implicitly given by the user telling you to treat them a certain way. For that you just need a notice somewhere on the page that reads along the lines of "this website uses cookies". It can be an unobtrusive note in your footer.

comment 3mo ago · link · parent

>They "trust me"

>Dumb fucks.

Is an attitude he never grew out of.

comment 3mo ago · link · parent

Market forces are not effective at creating good outcomes when there is an oligopoly.

If there are two producers each with ~50% market share, it's not profitable for one of them to improve their product such that they capture an additional 5% of the market but reduces the profit margin of their product by 10%. If there are 50 producers each with ~2% market share, one of them would happily capture 5% of the market (more than doubling the size of their business!) by sacrificing 10% of their profit margin.

In the Google-Apple duopoly it's much more profitable to engage in tacit collusion than it is to defect.

comment 4mo ago · link · parent

First, copying information isn't wrong to begin with. It is literally the one thing that makes our species special.

Second, even if you are a copyright maximalist the output of an LLM is either

a) not subject to copyright because it is not the creative work of a human or

b) a derivative work of the original training material to which the LLM's operator has no rights.

Since the LLM's operator forcefully asserts that it is not infringing, any wrong that arises from taking their word for it and distilling one model into another rests squarely with the operator of the former.

comment 4mo ago · link · parent

It's not just good PR for politicians to pass "<specific instance> case of already illegal <generic> is explicitly illegal"-laws. Prosecuting a violation of <generic> tends to be a lot harder because in addition to providing evidence for <specific instance> it requires convincing a judge that <generic> even applies to <specific instance> in the first place. You get to short-circuit that ordeal by passing a law that clarifies the intent that yes, <specific instance> is in fact an instance of <generic> without having to go all the way through setting precedent in higher courts.

comment 4mo ago · link · parent

LLM text is like an optical illusion for the language part of your brain, only instead of the payoff being "Oh, cool! The dots aren't actually moving!" it's "Oh, 'cool'. You weren't actually trying to tell me anything worth my time."

comment 4mo ago · link · parent

50 years ago, publicly listed companies understood that chasing short-term growth targets undermined long-term sustainability. The current failure mode is not an inherent property of being a publicly listed company, it's a consequence of incompetent leadership and bad regulatory policy.

comment 5mo ago · link · parent

It is somewhat infuriating (though not unexpected) that the EC is parroting the AAA industry talking points when said talking points were/are blatantly obvious lies about what remedies the Stop Destroying Videogames ECI is actually seeking.

Unfortunately, the charitable interpretation of the EC's behavior is that they lack reading comprehension. Less charitably, maybe if the EC had fewer shady backroom meetings with industry lobbyists and more meetings with the constituents they are meant to serve, they would act differently.

comment 5mo ago · link · parent

It's jarring to see instant changes that don't make sense. Animations are primarily a way to paper over UI that sucks to begin with.

Many transitions in Android are perfectly fine at 0x animation speed. The majority of transitions that suck without animation suck because the pre-/post-transition layout sucks and the transition between the two states doesn't make sense as a result.

It's the same with several of the transitions in TFA. For example, the address bar placeholder text[1] should just be left-aligned all the time. The save dialog[2] should leave all the basic controls in their original location[3] when switching from the basic mode to the advanced mode. That means the "Where:" label should also remain in the advanced mode, and the controls[4] that pop up to replace it should either be moved to the right or below. The search bar should also be moved down.

These are some really basic details and it is my understanding Apple used to not screw them up nearly as badly.

[1]https://tonsky.me/blog/every-frame-perfect/safari@2x.mp4?t=1...

[2]https://tonsky.me/blog/every-frame-perfect/save@1x.mp4?t=178...

[3]https://imgur.com/ZpHLCsv Artist's rendition. Please excuse the minor jank and criminal amount of empty space; I couldn't be arsed to fiddle with the screenshots to get pixel-perfect positioning and shrink the advanced dialog horizontally. Bikeshedding over where exactly the new controls belong is welcomed but irrelevant to the point I'm making.

[4]Is it just me, or are their icons uselessly, impenetrably, unhelpful?

comment 5mo ago · link · parent

Yes, It's something you'd only want to do in particular situations where you know you'd otherwise keep swapping between two pairs of glasses annoyingly often.

comment 5mo ago · link · parent

An alternative to multifocals is glasses with one lens for near and the other for far or to use a contact lens in only one eye in addition to your normal glasses. This also obviously comes with downsides that take some getting used to but some people prefer it.

comment 5mo ago · link · parent

There is potential danger with a lens that can suddenly change to a second prescription. For example: imagine you're driving and your whole field of vision suddenly starts flickering in and out of focus. That would be incredibly distracting and pretty dangerous. Even if they just started focusing on 1 foot away it'd be quite bad.
12345