9,663 karma · joined Jun 14, 2010 (16y ago) · 1,502 submissions
comment 2y ago · link · parent
Of the performance tips at the end, the interface vs. intersection type one is the suggestion I find the most annoying. That’s because it’s the most common pattern, and using interfaces is conceptually a lot less clean. It’s terrible that a linter effectively forces you into writing worse code.
I really wish the TypeScript team got their act together and fixed the performance of their linter somehow. Finding clever optimizations, porting to Go/Rust, whatever is necessary. (3rd-party reimplementations won’t do: they’ll never catch up with a corporate-funded moving target.)
comment 2y ago · link · parent
> The sort of thing you'd solve in 30 seconds with Google in 2024.
This is unfortunately becoming increasingly untrue, as the forums where stuff like that was posted are rotting away, and Google’s advertisement optimized result ranking neglects the long tail.
And to the extent it is still true, it’s because pioneers like you figured it out and shared their results!
comment 2y ago · link · parent
https://arstechnica.com/information-technology/2023/02/man-b...
comment 2y ago · link · parent
comment 2y ago · link · parent
It's common enough that articles have been written against this usage: https://web.archive.org/web/20170224220253/http://jackieokay...
So this usage of functor may never have been "official", but it's widespread in the community.
comment 2y ago · link · parent
You could, but you’d be wrong. The CSS selector specificity algorithm has nothing in common with OO inheritance, and classes are only one of many equivalent ways to interact with that algorithm.
comment 2y ago · link · parent
It would to a simulated being standing next to the fire.
> You can write a perfectly accurate equation for splitting an atom, but the equation does not release energy.
It releases simulated energy inside the simulation.
Every material interaction is simulated. If you believe that consciousness can't exist in the simulation, then you believe that consciousness is not a material interaction, q.e.d.
comment 2y ago · link · parent
It will be wet to the simulated being that's swimming in it.
> Consciousness may be a result of carbon being a substrate in the interactions.
Are you conscious? If so, how did you find out that you're made from actual carbon atoms and not simulated ones?
comment 2y ago · link · parent
To illustrate this point, here's an argument with the same structure that would similarly "prove" that gravity doesn't cause things to fall down:
1. In our world, there is gravity and things fall down.
2. There is a logically possible world where there is gravity yet things do not fall down.
3. Therefore, things falling down is a further fact about our world, over and above gravity.
4. So, gravity causing things to fall down is false.
comment 2y ago · link · parent
If you think the answer might be no, then congratulations, you actually believe in immaterial souls, no matter how materialist or rationalist you otherwise claim to be.
comment 2y ago · link · parent
But the space of functions from R to countable subsets of R is so vast (and so far removed from the physical world) that I don't think it's possible to have any "intuition" of what's possible in that space. And indeed, we see that there's a construction of a function f that doesn't conform to the "intuition". If there's an "intuitive" line of reasoning and a formal one, and they disagree, shouldn't we just conclude that our intuition is flawed?
comment 2y ago · link · parent
comment 2y ago · link · parent
I can't judge the React compiler yet, but in general, compilation steps don't cause cognitive load if they work. How many different levels of interpretation and compilation does V8 do? And do you care? Do you have to? No, and that's the point. Whether React Compiler reaches the same level of "it just works", we'll have to see.
comment 2y ago · link · parent
I don’t get that logic. There’s extra space; more battery could fit in there. The fact that higher density batteries exist in no way invalidates that.
(You might perhaps have a point if battery life was already excellent and the more important goal might be to save weight, but that’s not the case at all.)
comment 2y ago · link · parent
The ports I personally need are HDMI, lots of USB-C ports, sometimes USB-A (but less and less), and sometimes an SD card. I know everybody has different requirements, but I'm also sure that's at least somewhat typical. And given that, I can't be the only one who thinks it's silly to reserve space for several 4x3x1 cm large USB-C-to-USB-C converters in a space-constrained device.
[1] https://frame.work/de/en/products/usb-c-expansion-card?v=FRA...
comment 2y ago · link · parent
The battery life using Linux isn't good, the screen is isn't that good, the touch pad is okay, but not great, the layout of the arrow keys is ridiculous. I don't get how something can market itself as an enthusiast laptop and come with arrow keys like these. And I agree that for this price, you should expect best-in-class components.
But the killer for me was seeing the modular port concept in action. It's the kind of thing that sounds great on paper, but in practice doesn't really work. It just wastes space that could be used for a larger battery, while limiting the number of ports that the laptop can fit at any one time. It's not a Linux laptop, but just for comparison, a Macbook Pro has way more ports, and all of them are usable at once.
I'm sure things will improve, but basically my impression is that the Framework concept doesn't seem that well thought out yet. And the upgradability guarantee might lock them into their unfinished ideas for a lot longer than other manufacturers would be. I really hope they can solve these issues, because what they're trying to do is fantastic, but it’s not for me just yet.