Opens profile photo
Follow
Joyee Cheung
@JoyeeCheung
Spelled as Qiuyi Zhang (张秋怡) in Mandarin. She/Her. Hacking on JS engines and Node.js
github.com/joyeecheungJoined August 2012

Joyee Cheung’s Tweets

Can’t go out this weekend because I have an infected wound on my leg 😢 Saw a lot of pretty hydrangea flowers on my way back from the hospital though.
7
Welcome newest collaborator (onboarded a few hours ago by and nominated prior to that by )! 🎉
Quote Tweet
Node.js の core collaborator にしてもらいました。まだまだ勉強し足りひんけど、立場が人を強くするものだと思うのでこれからより一層頑張っていきます。 github.com/nodejs/node/pu Thank you for today's on-boarding sesion! @JoyeeCheung @watilde
7
16

Topics to follow

Sign up to get Tweets about the Topics you follow in your Home timeline.

Carousel

The plan is to make it available via command line options, vm contexts and workers (not necessarily in that order) after we collect enough feedback and fix the bugs (or if we just can't fix them for some reason, document them as caveats 😉)
2
Show this thread
Although currently this feature is still experimental and limited - it does not support user-land modules (which require more refactoring in the module loader and perhaps some kind of virtual file system support), and some JS states may not be snapshotable yet (which we can fix)
2
2
Show this thread
..with this you can bundle the state of the heap initialized by that code into the binary, so when loading the binary, there is no need to parse/run the initialization code, you just get an initialized heap deserialized from the snapshot.
1
4
Show this thread
A quick explanation about the difference between this and packaging solutions like pkg - with packaging you bundle the app source into a binary, and when the binary is loaded you still need to parse/run the source to get the app up and running.
1
1
Show this thread
$ cd /path/to/node/source $ ./configure --node-snapshot-main=your-bundled-app.js $ make node $ out/Release/node <- this is the binary with the bundled app For now you'll need to find a place to put your snapshotted states e.g. globalThis, stay tuned for better APIs!
2
7
Show this thread
The main blockers of making it available at run-time to a wider audience are a few (possibly) V8 issues and a deeper investigation into the Node.js builtins to find and synchronize out-of-sync states - so any early feedback is welcomed! (tracking issue is github.com/nodejs/node/is)
1
5
Show this thread
Just landed it as a build-time feature (i.e. embedding a bundled app into the binary if you compile Node.js from source). Looking into making it a run-time feature (i.e. generating/loading app snapshots from disk with the official Node.js binary) github.com/nodejs/node/pu
Quote Tweet
Managed to get the TypeScript compiler up and running with the Node.js user land snapshot prototype github.com/nodejs/node/pu
Image
3
19
61
Show this thread
Snapshot support for the class fields has been fixed since V8 9.8 and I just landed this in Node.js (apart from that, the CI showed there's no performance penalty switching from symbol properties to private fields in less-micro-benchmarks 😉) github.com/nodejs/node/pu
Quote Tweet
Replying to @lcasdev @JoyeeCheung and @robpalmer2
I don't remember the details, but one time we ran into certain classes with private properties (or was it symbols getters?) just completely getting V8 super confused. It is even difficult to keep our internal runtime code snapshotting consistently.
4
15
Made dumplings (with rice flour, which is apparently a Hakka tradition according to my dad) and winter squash rice cakes for the Lunar New Year.
Image
Image
1
7
Only managed to sleep for <2h before getting a surgery on my arm but I am not tired at all. I paid for one shot of adrenaline but not sure if they gave it to me or not, and they gave me additional anesthetic because it hurt when they started to cut.
Its Fine GIF
GIF
3
5
Last week I got a new soy milk machine which has a yogurt option (45c for 8h). So far I have lost 3 batches of milk. The 4th batch is in the fridge but it looks too grainy and I don’t think I am going to actually drink it.
2
Show this thread