Explore >> Select a destination


You are here

www.paulsprogrammingnotes.com
| | arnorhs.dev
26.9 parsecs away

Travel
| | I read somewhere that a bitwise left shift was a faster method of removing a fraction of a floating point number in Javascript than using parseInt or Math.floor(). I wasn't surprised that parseInt was slow, since I think it parses the number as a string, but the left shift being faster than Math.floor() was a bit more puzzling to me. So I decided to make a JSPerf test to compare those three methods. Read on for the full results
| | guido.io
33.3 parsecs away

Travel
| | How to embed WebAssembly wasm source as base64 in Javascript.
| | raphael.medaer.me
32.4 parsecs away

Travel
| | If you are a front-end or a fullstack developer, you maybe already imported CSS files from a Javascript or a Typescript file. For instance: import styles from "./styles.css" A few months ago it would not have been possible out of the shelf. Indeed you would need a bundler (such as WebPack, Rollup,...) to "inline" the CSS file as a string in your Javascript file. Nowadays it's possible thanks to the "CSS Modules" (to not confuse with the homonym open-source project).
| | www.abubalay.com
46.5 parsecs away

Travel
|