Plurrrr

Thu 08 Jul 2021

Compiling Rust is NP-hard

...though it's not the flagship borrow checking that's at fault. What I noticed, and would like to share with you today, is that the exhaustiveness checking performed by the Rust compiler on match patterns is a superset of the SAT problem.

Source: Compiling Rust is NP-hard.

How JavaScript Works: deep dive into call, apply, and bind

Call, Apply, and Bind help keep our code clean. And they make possible some advanced design patterns in JavaScript.

Also, they are extremely powerful tools in functional programming in JavaScript. They all have a relationship with the this variable in JavaScript and they can be applied in concepts such as function currying, function borrowing, and function binding.

Source: How JavaScript Works: deep dive into call, apply, and bind, an article by Lawrence Eagles.