Andrea Giammarchi

@webreflection
765 Followers
499 Following
538 Posts
Web, Mobile, IoT: all JS things since 00's - opinions are my own ™
JavaScript
Programming
Web Development
Bloghttps://medium.com/@webreflection

live demo on codepen:
https://codepen.io/WebReflection/pen/zxBRYby?editors=1010

try to compare its code with the original one 😉

in which I've found a way to have "protected" properties only the class owner can handle.

these can also be orchestrated as accessor:

static a(self, ..._) {
if (_.length) [self.#a] = _;
return self.#a;
}

A *HUGE* thank to @loucyx for bringing in the best TS I could dream about around the tiny `element` module 🥳

Everything is fully and properly inferred now, the editor just loves it already!

https://github.com/WebReflection/element#readme

@Firefox I was wrong about BroadcastChannel, the issue is with Atomics.pause() + there are inconsistencies all over the board 🤦

https://bugzilla.mozilla.org/show_bug.cgi?id=1752287#c25

that's a wrap

I am factoring out coincident/window (soon to be updated) to fully separate concerns and provide a standalone sub-project to nail that part of the stack.

If interested, I started explaining what's behind the scene here 👋
https://github.com/WebReflection/reflected-ffi?tab=readme-ov-file#reflected-ffi

nice and clean via Explicit Resource Management 🥳

https://v8.dev/features/explicit-resource-management

JavaScript's New Superpower: Explicit Resource Management · V8

The Explicit Resource Management proposal empowers developers to explicitly manage the lifecycle of resources.

I did mention that if your laptop is not connected, JIT/TurboFan behave very differently ... the good news is that my latest buffered-clone (jspack in the image) is still faster than cbor-x which became my reference for performance 🥳
it's happening ... my next version of buffered-clone has been fully rewritten after studying MessagePack and CBOR implementations and the good news is that it's going to be faster as general purpose binary serializer.
Not standards based, abstraction killed perf to me, yet great!

This is going to change forever the Python landscape for many purposes, including Server, Front End (PyScript) and DB related libraries.

I am super glad I was involved in shaping the next templating adventure in Python and I am very thankful to them too🤩
https://pep-previews--4124.org.readthedocs.build/pep-0750/

PEP 750 – Template Strings | peps.python.org

This PEP introduces template strings for custom string processing.

Python Enhancement Proposals (PEPs)

I was hoping for performance benefits around buffered clone but I couldn't expect it being up to 100X faster on complex postMessage round-trips 😱

https://github.com/WebReflection/buffered-clone/issues/2#issuecomment-2602216858

Brainstorming Features · Issue #2 · WebReflection/buffered-clone

Now that this module is fully covered and production ready, I’d like to write down thoughts around its application and how this can improve further to better tackle all use cases. Recursion Update ...

GitHub