/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

projectf.io
| | james.darpinian.com

You may know that all numbers in JavaScript are 64 bit double-precision floating point values. This is sometimes convenient and it works pretty well as a default for novice programmers, who are often confused by integer math, and rightfully so when 1 / 2 = 0. Unfortunately, it makes things slow. Doubles take a lot of memory and floating point math is slower than integer math on CPUs. It's also inconvenient if you want to port existing code to JavaScript, because existing code usually expects to use integ...
3.0 parsecs

Travel
| |
| | probablydance.com

Here is a rough approximation of float multiplication (source): float rough_float_multiply(float a, float b) { constexpr uint32_t bias = 0x3f76d000; return bit_cast(bit_cast(a) + bit_cast(b) - bias); } We're casting the floats to ints, adding them, adjusting the exponent, and returning as float. If you think about it for a second you will realize that since...
5.1 parsecs

Travel
| |
| | pchaigno.github.io

This post details the different versions of the eBPF instruction set. Their impact on program size and eBPF complexity is then evaluated.
4.8 parsecs

Travel
| |
| | book.hacktricks.xyz


23.9 parsecs

Travel
|