Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lhorie
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
68 ms
·
721.
▲
by
lhorie
5y ago
Are you hijacking the topic to rehash the well-known tirade about energy usage? The article says less mining being concentrated in China means more decentralization (which is "good" as far as the philosophy of cryptocurrencies goe
722.
▲
by
lhorie
5y ago
There were news recently about Fidelity expanding crypto-related staff by some 70%. I hear crypto is also growing in popularity in Central/South America (the El Salvador Bitcoin move, Brazil's Mercado raising money w/ Softban
723.
▲
by
lhorie
5y ago
I recall reading that the effect on gender has been documented in classical musician auditions (women were selected more frequently with the introduction of blind auditions)
724.
▲
by
lhorie
5y ago
Detecting that a value is an Object as opposed to an Array/Arguments/etc (or more generally, reading the StringTag of a value) still requires a toString.call(value) AFAIK. This is still used a lot in recursive polymorphic code lik
725.
▲
by
lhorie
5y ago
> The Array.from() static method creates a new, shallow-copied Array instance from an array-like or iterable object[0] So, do this instead: Array.from($nodeList, myFn) [0] https://developer.mozilla.org/en-US/
726.
▲
by
lhorie
5y ago
const mapNodeList = (...nodeList) => nodeList.map(myFn); mapNodeList(...$nodeList) Garbage collection really isn't the biggest of concerns here considering this code is susceptible to a stack overflow...
727.
▲
Friday Fun: Svelte-like variable reactivity in 7LOC with with Proxy
(gist.github.com)
1 points
by
lhorie
5y ago
|
0 comments
728.
▲
by
lhorie
5y ago
> Fires happened all the time in the last million years No offense, but this sounds awfully like the "temperature rises occurred before" rhetoric, while ignoring magnitude[0] Yes forest fires can be natural, but for this speci
729.
▲
by
lhorie
5y ago
GP didn't mention global warming though. They're just observing that there appears to be an awful lot of bad things happening lately. Re: climate change, I don't quite get the call for "less conclusions from single incid
730.
▲
by
lhorie
5y ago
> I really think this is the best of both I think this approach definitely has a lot of merit, but in terms of absolutes, it's still not quite there. Specifically, you're still going to be diffing as many bindings as a componen
731.
▲
by
lhorie
5y ago
> reaches for a complicated library way to do it This is neither here nor there. Some people write awful React code too. > having the level of understanding TO write surgical DOM manip code should be a basic floor of ability for any w
732.
▲
by
lhorie
5y ago
innerHTML has been slower than the DOM API for a few years. React had a big refactor at one point to rip out innerHTML logic precisely due to this. To make matters more interesting, the order of DOM API calls also mattered. In IE, building
733.
▲
by
lhorie
5y ago
The scale argument is really just a chicken-and-egg thing. A few years ago, people were saying the same thing about how Vue wasn't "proven" at scale. But these days there are sizable teams using Vue just fine. The entire poin
734.
▲
by
lhorie
5y ago
There's some nuance. DOM mutations are still expensive if you interpolate reading and writing operations. The declarative paradigm allows frameworks to batch same-type operations to prevent double repaints. This is the upsell of virtua
735.
▲
by
lhorie
5y ago
Interesting timing. Duolingo is a bit like Zoom in the sense that they got insane growth last year due to everyone being stuck at home. That should make the financial numbers look exceptionally good for IPO.
736.
▲
by
lhorie
5y ago
Some googling led me to some commentary suggesting the proof is flawed: https://math.stackexchange.com/questions/4185354/is-kumar-es...
737.
▲
by
lhorie
5y ago
Blog pingbacks already exist for ages. The point of comment sections is to provide a convenient avenue for discussion close to the source. The problem, IMHO, is commenters seem to have become too entitled and forgot that comment sections ar
738.
▲
by
lhorie
5y ago
Tinder is like Instagram, everyone is incentivized to fake or exaggerate how nice their life is. Honestly, the best remedy is find new hobbies. Some people mentioned sports/martial arts and religion/spiritualism, those are all fin
739.
▲
by
lhorie
5y ago
I think you're casting too wide of a net there. Just because you've detected something early doesn't mean you automatically need aggressive interventions like chemotherapy. The impact might just end up being a line in your me
740.
▲
by
lhorie
5y ago
Depends on what your career goals are. If your goal is to just live a comfy enough life doing coding, sure. If your goal is to be making staff engineer salaries at FAANG, probably not.
741.
▲
by
lhorie
5y ago
JIT compilers like V8 are able to optimize from Object hashmaps to structs, but the problem is that it has trouble figuring out how to group arbitrary object literals into the same bucket in order to get monomorphism guarantees (this is a v
742.
▲
by
lhorie
5y ago
I don't think so. Compilers have gotten smart, but so have people. See for example stuff like this[0]. Hot path stuff still sees hand-written assembly even in this day and age because even modern compilers aren't able to provide e
743.
▲
by
lhorie
5y ago
"Luck Is What Happens When Preparation Meets Opportunity" - Seneca IMHO, the key point here isn't so much about making the best out of a bad situation, it's that if you just stay cooped up in your comfort zone, the bread
744.
▲
by
lhorie
5y ago
TFA isn't saying it isn't a sunk cost, it's saying it's an investment in addition to being a sunk cost
745.
▲
by
lhorie
5y ago
> There's never any guarantee that JS that optimizes perfectly today won't hit a performance cliff in a new JIT implementation tomorrow. Yep. As someone who played this game a few years ago, JIT implementations do change (e.g.
746.
▲
by
lhorie
5y ago
I mean, the sentence itself doesn't seem all that bad IMHO, it's the context that makes the difference. If I'm in a real time conversation actively trying to fix the issue, saying "oof, so sorry about this" seems li
747.
▲
by
lhorie
5y ago
For the record, in case it wasn't clear, I was talking primarily about US. But if we must compare, in some parts of the world anything under the LGBT umbrella is considered a crime punishable by death. I'm not aware of any place i
748.
▲
by
lhorie
5y ago
I read that trans people suffer from high rates of violence, homelessness, etc. In contrast, amputees and blind people don't usually get kicked out by their parents or randomly stabbed. If BLM (vs e.g. StopAsianHate) is any indication,
749.
▲
by
lhorie
5y ago
Not everything must necessarily be a religion-vs-atheism competition (in fact it's tiresome that some people insist on putting every religion-related discussion in that light). I believe I was clear enough when I indicated that I'
750.
▲
by
lhorie
5y ago
> The parent mentioned specifically religious believes as a tool for good child upbringing. No, I merely pointed out that religious upbringing is explicit about some topics in ways that non-religious one usually aren't. Your counter
More ›