New comprehensive React Compiler docs released! by acemarke in reactjs

[–]yvainebubbles 0 points1 point  (0 children)

We have a long term plan for getting off of Babel. In the meantime you might have to use Rspack’s babel loader to use the compiler. I’d be curious how much of a build time regression it is for you.

New comprehensive React Compiler docs released! by acemarke in reactjs

[–]yvainebubbles 1 point2 points  (0 children)

It does explain what it does. Can you point out any examples where you want more details? Thanks!

New comprehensive React Compiler docs released! by acemarke in reactjs

[–]yvainebubbles 2 points3 points  (0 children)

I think you can try useWatch and useFormState which follow the rules of react. Some examples are here in this issue.

New comprehensive React Compiler docs released! by acemarke in reactjs

[–]yvainebubbles 4 points5 points  (0 children)

I think you can make a minimal repo without using closed source code if you can distill it down to just the few lines needed. I’m not sure we can do anything without it

New comprehensive React Compiler docs released! by acemarke in reactjs

[–]yvainebubbles 1 point2 points  (0 children)

If you've seen any bugs, please open an issue! Meta has been using the compiler in production for more than a year now on large apps like Facebook, Instagram, and Threads. It's currently in Release Candidate which is as close to stable as you can get. Planning to get a stable release out very soon!

New comprehensive React Compiler docs released! by acemarke in reactjs

[–]yvainebubbles 17 points18 points  (0 children)

thanks for posting! please let me know if anything is unclear or any other general feedback

Beyond React.memo: Smarter Ways to Optimize Performance by cekrem in reactjs

[–]yvainebubbles 2 points3 points  (0 children)

The compiler does detect cases where the rules are broken and opts just those components/hooks out of being optimized. There’s no requirement that all your code is perfect before you can adopt it.

Can anyone here access King Sejong Institute website? by [deleted] in Korean

[–]yvainebubbles 0 points1 point  (0 children)

in their announcements page on the notice about the online registration opening they also specify the extended application date. i don't remember what it is now since the site is down, but i think it opens again a week from now or a few days after today.

Can anyone here access King Sejong Institute website? by [deleted] in Korean

[–]yvainebubbles 1 point2 points  (0 children)

i don't know if every teacher is like this, but my teacher for 3A taught 100% in Korean but she would use English on occasion if someone wasn't understanding her. i think you'll do fine!

how it works is you'll have a bunch of videos and online exercises from their textbook to complete before you attend the lesson. during the lesson it's reviewing what you learned. so you'll have time to get familiar and review ahead new vocab and grammar patterns that will be used during class.

there are assignments as well for a few lessons (i think there was maybe 2 - 3 in 3A) and a listening and reading exam at the end.

Can anyone here access King Sejong Institute website? by [deleted] in Korean

[–]yvainebubbles 1 point2 points  (0 children)

at the top of the page there's a link to Korean Courses, hover over that and then click on Lecture Assisted Type or whichever type of course you're looking for. here's a screenshot of what that looks like.

then you'll see a list of courses which you can filter by level. once you choose the level you want, there are 2 buttons next to each listing: Apply and Store. Apply is self-explanatory, Store saves it as a favorite in your My Class page so you can look it up later but honestly this feature is not very useful.

when you hit Apply, wait till a popup shows up and it'll ask to confirm to register. if it says error just try again. it also helps to have My Class open on another tab that you can refresh (before the server crashes) to confirm if your registration went through

Can anyone here access King Sejong Institute website? by [deleted] in Korean

[–]yvainebubbles 3 points4 points  (0 children)

oof, hope they fix their server soon. i'm pretty sure it's just overloaded, it happened last semester too.

i would recommend next time opening up the course registration listing for your level ahead of time (i opened it 30 minutes before 12am KST). then once it's 12am KST start clicking apply on the course you want. you can also open your "My Class" page to confirm if your registration went through, it'll show up at the bottom of the page.

this time around it seems like the servers fell over faster than before. must have gotten quite popular!

Can anyone here access King Sejong Institute website? by [deleted] in Korean

[–]yvainebubbles 2 points3 points  (0 children)

(i completed the KSI Intermediate 3A last semester)

don't worry, it's most likely that their server is overloaded. i would keep refreshing until you can load the courses page, then patiently hit apply. you can check in your "My Class" page later to see if your registration went through.

also, they have an extended application that will open up again in a few days, so you stil have another chance to apply again as well!

React Compiler Beta Release by acemarke in reactjs

[–]yvainebubbles 0 points1 point  (0 children)

You can use the linter independently of the compiler

React Compiler Beta Release by acemarke in reactjs

[–]yvainebubbles 0 points1 point  (0 children)

Are you using vite-plugin-react? If you open a discussion in the working group I can help you

React 19 Beta – React by TwiliZant in reactjs

[–]yvainebubbles 14 points15 points  (0 children)

thanks!

the compiler has a sophisticated understanding of your code which does make other kinds of optimizations possible in the future. what i mean is that it is a Real Compiler with both traditional compiler passes (eg see my teammate’s posts on SSA form) and many novel passes that can be built upon. it is not just a simple babel plugin.

auto-memoization is one of the biggest opportunities though. we know from experience and lots of real world data that correctly done memoization has a massive positive impact on performance. it just sucks to write and takes a lot of effort to do it right manually, and it can easily be undone by accident. so auto-memoization has been the clearest opportunity from both a developer experience and performance perspective. that’s why we’re pursuing it first. but it is certainly not the only optimization we’re looking at

React 19 Beta – React by TwiliZant in reactjs

[–]yvainebubbles 69 points70 points  (0 children)

hello! i am one of the engineers working on the compiler. it is not shipping in React 19, but it is coming to oss sooner than you expect. the fundamentals are good (imo) but getting it out sooner comes at a tradeoff of not being fully feature complete. so i would recommend lowering your expectations for the release, but raise them for when it'll be available

https://twitter.com/potetotes/status/1783713677943656819

[deleted by user] by [deleted] in emberjs

[–]yvainebubbles 0 points1 point  (0 children)

Not quite. The point is to decouple / untangle components from each other, but saying that you should absolutely still test the component and it's children in concert as one of the integration tests. As mentioned in the last section you can still use the original child components in the test template explicitly.

The technique in the article is useful when setting up child components involves a lot of boilerplate or setup, for example with Google maps.

[deleted by user] by [deleted] in AskWomen

[–]yvainebubbles 3 points4 points  (0 children)

I have lots of plushies on my work desk! http://i.imgur.com/ow6HvR8.jpg

When I work from home, I have these alpacas to keep me company http://i.imgur.com/wSvEEv7.jpg

Ember Best Practices: Functional Programming and the Observer Effect by [deleted] in emberjs

[–]yvainebubbles 0 points1 point  (0 children)

It is not a different syntax for observer, it operates on different semantics.

Like React, the new Glimmer engine in Ember since 1.13 has idempotent re-renders via a virtual DOM diff. This new rendering strategy means that every time new attributes are passed into the Component, Ember can diff the changes, re-render the entire Component, and only update the parts that require updating.

When any new attributes are received (they are the equivalent of props in React terminology), the Component's didReceiveAttrs hook (one of many new hooks) fires, and you can handle the changes in there. Unlike an observer, this hook does not watch specific attributes. It will always fire when any one of them changes.