674 karma · joined Dec 5, 2024 (1y ago) · 142 submissions
comment 10h ago · link · parent
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
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 5d ago · link · parent
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 3w ago · link · parent
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
[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
comment 2mo ago · link · parent
comment 2mo ago · link · parent
comment 2mo ago · link · parent
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
comment 3mo ago · link · parent
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
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
comment 4mo ago · link · parent
comment 5mo ago · link · parent
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
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