Hacker Newsnew | past | comments | ask | show | jobs | submit | puskuruk's commentslogin

Finally! My local infra is waiting for it for months!


React Compiler(originally react-forget) is a build-time tool that automatically optimizes your React app by automatically memoizing your code. It only replaces the manual ceremony of useMemo, useCallback, and React.memo with automatic caching at compile time. So, it's fixing the problem they introduced by React itself or you we can call it a "trade-off" in a sense


How does this thing run so close to VanillaJS without carrying any extra baggage along for the ride?


I personally don't believe anything can beat hand-built and fine-tuned vanilla JS code, and in the benchmarks we see Gea beating vanilla JS implementation (for example in partial update or swap rows). One reason for this is Gea's compiler has special cases like row swap's to be as minimal calculations and DOM operations as possible. The compiler, also, is evolving to recognize more and more patterns, and compile them into a miniscule overhead.

One thing I borrowed from my earlier library erste is event delegation. Instead of creating event handlers bound to each DOM element (say, in a list render) which is memory-heavy and also consumes a lot of CPU cycles, Gea simply attaches one event listener per type on the body and uses a `.matches()` call to check whether that event applies to a given DOM element. This is one of the main reasons why Gea is so performant—there's no excess/unnecessary memory allocation or CPU cycles. This is also reflected in the benchmark results.


Thank you for your detailed answer!


GJ one your library

One random recommendation I could give based on my experimentations on both firefox and chromium

you can attach symbol based custom properties to each such dom node 'class'

and apart from using .matches(), symbol attribute check. this outperforms class based equality checks by a small margin.

very marginal but hey, you are clearly tryharding.


Thank you! Very interesting insight—I'll have a look.


Backbone still looks ugly


It’s just waste of time. JavaScript is the most natural computer language out there for now


This blog post doesn’t bring anything new to the table


HUH!


Hi there,

Thanks for sharing the opportunity!

Just a quick note — I believe the correct email might be hn@kittl.com, and the careers page seems to be https://jobs.ashbyhq.com/kittl. If that's not accurate, could you please let me know? I’ve already sent an email to hn@kittl.com and wanted to make sure it reached the right place.

Have a nice day!


Hey, thanks for the check on link! The email is correct - nh@kittl.com. Have a nice day!


There is nothing new. Why people upvoted this article?


Hey HackerNews Crew,

A while back, we kicked off this thing to mix tech with some heart. Today, I wanted to shoot the breeze about Dream Kid, this app we cooked up to add a bit of coolness to the lives of kids facing health stuff.

Why Dream Kid: Dream Kid ain't your run-of-the-mill app; it's like a tech buddy for kids going through tough times. With these stories we whipped up, we're hoping to dish out some comfort and guts to kids dealing with health challenges.

Key Features: - Each story is tailored dynamically for a unique experience every time. Stories seamlessly integrate beautiful illustrations and calming narration. - Kids can personalize characters and settings, envisioning themselves as the heroes of their own tales. - The inclusion of medical and psychological themes helps kids make sense of their experiences. - Dream Kid features a user-friendly interface, empowering children to navigate independently.

Feedback: Come hang with us on this techie ride, where every story is a fresh adventure and each one nudges us toward healing. I'm all ears for your thoughts, ideas, and whatever else to tweak Dream Kid.

Cheers, and happy coding!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: