Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nolanl
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
nolanl
5mo ago
Welp, I fed it the first 3 paragraphs of an unpublished blog post I wrote a few years ago, and Opus 4.7 guessed right. ChatGPT guessed wrong though. My wife also got the same result, so I'm guessing it wasn't just because I was us
2.
▲
by
nolanl
6mo ago
The concept of "AI will review AI-authored PRs" seems completely wrong to me. Why didn't the AI write the correct code in the first place? If it takes 17 rounds of review from 5 different models/harnesses – I don't
3.
▲
by
nolanl
6mo ago
This is 100% my experience. Like, reading this thread right now, I notice the ringing in my ears. But otherwise I go months without thinking about it.
4.
▲
by
nolanl
6mo ago
I've had tinnitus for almost a decade now. It gets better. The first six months were hell because I kept focusing on how awful it was. Eventually you stop noticing it. It just becomes part of the background – like how the sky is blue,
5.
▲
by
nolanl
8mo ago
I've found Bugbot to be shockingly effective at finding bugs in my PRs. Even when it's wrong, it's usually worth adding a comment, since it's the kind of mistake a human reviewer would make.
6.
▲
by
nolanl
10mo ago
Right, but you do avoid worries like "will I have to update this dependency every week and deal with breaking changes?" or "will the author be compromised in a supply-chain attack, or do a deliberate protestware attack?"
7.
▲
by
nolanl
10mo ago
As someone who has actually worked on JavaScript frameworks, I think Marko is criminally underrated. The compile-time optimizations are extremely impressive: https://markojs.com/docs/explanation/fine-grained-bundli
8.
▲
by
nolanl
1y ago
Author here. I actually did some research on CSS selector performance: https://nolanlawson.com/2023/01/17/my-talk-on-css-runtime-pe... The TL;DW is: yes, class selectors are slightly more performant than attr
9.
▲
by
nolanl
2y ago
I use shadow DOM every day, but yes, it is often the part of WCs that baffles people – probably because they don't need it. Alternative approaches that may work for your use case: - "HTML web components" [1] - light DOM only,
10.
▲
by
nolanl
2y ago
I cover this in another post [1], but broadly: - Not every web app is perf-sensitive to every extra kB (eCommerce is, productivity tools typically aren't) - Plenty of frameworks have tiny runtimes, e.g. Svelte is 2.7kB [2] - I wouldn&#
11.
▲
by
nolanl
2y ago
Author here. I cover this in another post [1], but basically the interop benefits you get on the client just aren't there (yet) on the server. My north star: > Maybe in the future, when you can render 3 different web component frame
12.
▲
by
nolanl
3y ago
Thanks a lot! I was just trying to highlight the cool work that browsers do under the hood, but which wasn't very well-known. So I'm really glad that folks enjoyed the talk. :)
13.
▲
by
nolanl
3y ago
Author here! I struggled with the word "modern" – I could have said "current gen" or "post-React" or even "Solid-inspired" frankly, but I thought "modern" was succinct with the right amount
14.
▲
by
nolanl
3y ago
Author here. Thanks for the thoughtful reply! I did indeed mix up `useMemo` and `React.memo` – fixed it in the post. You're right, I am skipping a lot of details (hence "to grossly oversimplify"). I know that React doesn'
15.
▲
by
nolanl
4y ago
Thanks for the shout-out! I think I mention this in the talk, but note that YMMV. I designed that benchmark as a kind of "worst-case scenario" where shadow DOM / scoped styles really show a benefit. Depending on your CSS rule
16.
▲
by
nolanl
4y ago
Thank you! This is exactly what I had in mind. The streaming aspect of MPA pages is a great example of something you can't really do in an SPA. (Although there are hacks: https://jakearchibald.com/2016/fun-hacks-fa
17.
▲
by
nolanl
4y ago
(Author here.) I totally agree and feel that Service Workers are still underexplored in this area. If your main reason for writing an SPA is speeding up navigation (e.g. the Turbolinks approach), then you may be better served by just moving
18.
▲
by
nolanl
5y ago
It depends. For elements that are removed from the DOM, then yes, the event listener should also be automatically removed: https://jakearchibald.com/2020/events-and-gc/ However, if you're adding event listene
19.
▲
by
nolanl
5y ago
That's really interesting. I wonder if this is a Chromium-only issue? It may be worth filing a bug: https://bugs.chromium.org I'm not an expert in this space, but it seems to me that the JavaScript engine could eventua
20.
▲
by
nolanl
5y ago
Great point! This is exactly why fuite does a preflight iteration before the "real" iterations. One-time setup costs shouldn't count against the "leak" – only sustained memory growth.
21.
▲
by
nolanl
5y ago
Author here. I added support for custom scenarios, where you can define a "setup" step that logs in or does whatever you may need to do: https://github.com/nolanlawson/fuite/#extending-the-default-...
22.
▲
by
nolanl
5y ago
Author here. I wasn't aware of your talk, but it's super interesting! Showing info about the retain chain is a great idea, but I didn't get around to doing it in fuite. IME just counting the number of objects is actually pret
23.
▲
by
nolanl
5y ago
I wrote that article 7 years ago, and FWIW I would side more with Dale these days. It's probably a good thing we didn't just slap a half-baked API on top of SQLite and call it a web standard. The biggest problem is that yeah, WebS
24.
▲
Performance and usability of scrolling the main document vs. subscrollers
(nolanlawson.com)
2 points
by
nolanl
8y ago
|
0 comments
25.
▲
Accurately measuring layout on the web
(nolanlawson.com)
2 points
by
nolanl
8y ago
|
0 comments
26.
▲
by
nolanl
8y ago
Author of Pinafore here. Yes, ironically for an app and userbase that is so focused on privacy, things like private browsing, Privacy Badger, adblockers, etc. can cause compat issues with Pinafore. Interestingly, the reason is (as I discove
27.
▲
by
nolanl
9y ago
It looks like the Social CG is still active, and they're working on the new ActivityPub protocol which Mastodon 2.0 supports. Follower migration is one of the issues they're discussing: - https://www.w3.org/wiki&#x
28.
▲
by
nolanl
9y ago
A good place to start is https://instances.social/ or https://joinmastodon.org
29.
▲
by
nolanl
9y ago
It doesn't seem to offer a single-user version, but https://masto.host/ can give you a managed Mastodon instance at the click of a button.
30.
▲
by
nolanl
9y ago
Mastodon has a single-user instance mode: https://github.com/tootsuite/mastodon/blob/8392ddbf87f5522c4... Most instances would federate with you immediately since they're on a blacklist model, but some i
More ›