Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
csande17
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
51 ms
·
691.
▲
by
csande17
7y ago
Something I've wondered about the "immutable updates" pattern discussed in the article: do JavaScript engines optimize it somehow? On its face, it seems like it would turn a constant-time "favorite post X" operation
692.
▲
by
csande17
7y ago
Red Hat will continue to support Python 2 until 2024: https://access.redhat.com/solutions/4455511
693.
▲
by
csande17
7y ago
> this time from Japanese company ‘유니콘미디어” That does not look like a Japanese company name to me.
694.
▲
by
csande17
7y ago
AGPL says roughly "you have to give the source code to anyone who accesses the software over a network". In other words, it's basically trying to say that software-as-a-service counts as "redistribution" for the pur
695.
▲
by
csande17
7y ago
In your first example, if invokeFunction() returns 0, the text "0" will be inserted into the page. 0 is falsey, so `0 && <p>Hi</p>` evaluates to 0, but 0 is a number so React pastes it into the page conten
696.
▲
by
csande17
7y ago
I'm not Wolfr_, and I haven't used that React-based library you link, but I have seen tailwindcss.com -- which, as far as I've heard, is one of the flagship "utility-first" CSS libraries -- used in medium-to-large s
697.
▲
by
csande17
7y ago
To clarify, by "systemd doesn't help with that", I meant "systemd does not attempt to manage, track service dependencies of, or restart applications I launch through my desktop's Applications menu or in a Terminal w
698.
▲
by
csande17
7y ago
At least on my desktop machine, there aren't a whole lot of services that directly depend on other services. Usually, a service will provide some functionality (e.g. sound) used by applications I launch. As far as I know, systemd doe
699.
▲
by
csande17
7y ago
If you're still wondering how to get the icon labels back on your tablet, one way is to install a third-party home screen app. (Unlike on iOS, on Android the "desktop" is just another app. If you don't like the one your
700.
▲
by
csande17
7y ago
Right, I guess I had it in my head that the Rust 2015-vs-2018 divide was that deprecation cycle .
701.
▲
by
csande17
7y ago
I'm a little confused by the decision to make breaking changes to the borrow checker in Rust 2015. Wasn't the whole point of Rust 2015 to allow old code that wasn't compatible with 2018's changes to compile? If keeping s
702.
▲
by
csande17
7y ago
Redux is a bit like Java: it's possible to write well-designed software with it, but it's also gotten a reputation for being used by the sort of programmers who blindly apply "best practices" and create nine layers of Ab
703.
▲
by
csande17
7y ago
I like the description on the bottle opener: > Safe, will not explode.
704.
▲
by
csande17
7y ago
If the number of app updates I get every year with "iOS XX compatibility" in the release notes is any indication, there must be a lot of really terrible app developers in the world!
705.
▲
by
csande17
7y ago
> The css value `100vh` meant the height of the viewport of the browser, until it didn't. Huh, what's it mean now? Is there some subtle difference, like it doesn't include the horizonal scroll bar or something?
706.
▲
by
csande17
7y ago
The most popular toolchain is devkitPro, which is based on GCC: https://devkitpro.org/wiki/Getting_Started The impression I've gotten is that the GBA is powerful enough that you can write most of your programs in
707.
▲
by
csande17
7y ago
Rust is great for when you're writing a serious, security-critical program that can't have any memory-corruption bugs or data races. It makes writing programs a little more challenging, and sometimes you sacrifice a bit of runtime
708.
▲
by
csande17
7y ago
I tried to get Zig running on a Game Boy Advance a while ago, but never really got to a point I was happy with. Great to see someone else working on it! It's cool that you got the built-in linker to work. When I tried, I got a bunch of
709.
▲
by
csande17
7y ago
It's important to note that a large portion of the frame time in that demo is spent in browser code, recalculating styles and redrawing. I modified the demo to display the amount of time spent in the actual function that updates the DO
710.
▲
by
csande17
7y ago
> what you see above [the 2000-cube demo] simply would not be possible without scheduling, that is a fact. you can't expect any renderer to handle that amount of stress, it's a matter of capacity. https://twitter.com
711.
▲
by
csande17
7y ago
From a marketing standpoint, I'm not sure demos like this that draw comparisons between JavaScript frameworks and 3D game engines are a great idea. The author describes updating 2000 cubes every frame as an "impossible amount of l
712.
▲
by
csande17
7y ago
Frameworks like Svelte focus on reducing the time spent running JavaScript. This project focuses on reducing the time spent on layout and rendering. Theoretically they'd complement each other, but in practice I imagine UIs for super-re
713.
▲
by
csande17
7y ago
What's wrong with pants?
714.
▲
by
csande17
7y ago
+1. A lot of design systems assume that, for instance, there are only a few amounts of vertical padding you'll ever want to have on an element. But sometimes, the designer really will tell you that something needs 10 pixels of padding,
715.
▲
by
csande17
7y ago
Right, but it goes from being something you get for free to being something you have to go out of your way to do. Which can matter, especially on projects where you're designing a site/theme to hand off to someone less technical.
716.
▲
by
csande17
7y ago
Not the parent, but the approach I've seen in React is to treat inline CSS as objects like "{ fontWeight: "bold", color: "#000" }". So to re-use it, you can either put it in a constant or make a component
717.
▲
by
csande17
7y ago
I think the utility-based approach overlooks an important point: semantic class names are useful for a lot of things besides writing your styles. "Codeless tracking" systems let you put in the CSS selector for a button and find ou
718.
▲
by
csande17
7y ago
At least React's "pass an object to the `style` prop" makes it relatively easy to do that overriding. With utility classes, your code has no way of knowing that "bg-red" should override "bg-blue". (And fre
719.
▲
by
csande17
7y ago
If your code relies on twos-complement integer arithmetic wrapping, you should use a function/operator/language that guarantees that behavior. Then, the function/compiler/interpreter can use the CPU instruction on platfo
720.
▲
by
csande17
7y ago
Personally, I like WebSub a lot more than ActivityPub for this use case. ActivityPub seems really complicated (there's inboxes and actors and objects and activities and like twenty different message types), while WebSub is pretty much
More ›