Today I Learned - Rocky Kev

TIL more Javascript Environments

POSTED ON:

TAGS:

Today I learned about more Javascript environments.

The ones we know very well are the popular ones.

V8 is Google's open-source Javascript engine. (Node is built on that!)

SpiderMonkey is Mozilla's Open-source Javascript Engine.

JavascriptCore is used in Apple's WebKit engine. (Bun uses JavascriptCore!)

I was thinking about some others:

This is back to why Web Interop exists!
Because we have a specific Javascript standard (via ECMAScript Language Specs, by the TC39), and many many different companies/businesses who implement Javascript.


Related TILs

Tagged:

TIL what is npm Script

Despite their high usage they are not particularly well optimized and add about 400ms of overhead. In this article we were able to bring that down to ~22ms.

TIL fancy methods to transform Javascript Objects

You can use Object.entries(), Object.keys(), Object.fromEntries()...

TIL how to hide your JS code

ONE THING TO NOTE: Encrypting a script is stronger than obfuscation, both methods are still not adequate to protect secret content. Honestly, I don't think it's worth it on a production site, and instead just go with pure server-side if you want security. But it's fascinating.