Houssam Miliani (@N0rmalizer_) header
Houssam Miliani (@N0rmalizer_) profile picture
Joined November 2023
Photo by Houssam Miliani (@N0rmalizer_)
Houssam Miliani retweeted
99% will fail Guess the fighter..
179
88
55
1,622
320,738
Houssam Miliani retweeted
XSS from a response header 🤯 Firefox will load an XSLT stylesheet from a data: URL in a Link header. Combined with a harmless XML body and you get JS running in the page origin. Plus Safari importing GIFs as SVG and more sanitizer bypasses
2
29
1
114
7,648
Houssam Miliani retweeted
Code optimization is absolutely fascinating. When you multiply something by a constant (let's say 24), LLVM replaces multiplication (imul) with a combination of left shift (shl) and load effective address (lea) Left shift by 3 is the same as multiplying by 8, load effective address does math of [base + index] in the brackets, and then stores its result. All of this literally to save 1 cycle. Because imul takes 3 cycles, and shl and lea take 1 each. And you can find tables with similar heuristics for a lot of different constants. These people who write optimizing compiler backends spend so much effort to save just one instruction, so don't throw it all away!
51
48
10
1,391
79,543
PHP Interpreter => Fil C => Sleep Now 😴
1
43
Heap-like Dynamic Score-Decomposed Tries for Top-k Autocomplete : ( by Niles Salter ) validark.dev/DynSDT/
27
any 0.17.0
Found an interesting quirk in zig 0.16 which looks like a regression. Zig's std.mem.eql is a quite nice;y optimized function but because it is pub fn without inline llvm doesn't inline it as often as I want which leads to worse results. Do you think I should submit a patch or they won't accept a patch from AI lab employee?
29
Houssam Miliani retweeted
Solving a Rubik's Cube with graph theory.
475
10,779
1,013
73,087
12,041,115
Houssam Miliani retweeted
If you can't switch your C to Rust immediately, consider at least enabling all the sanity checking the compiler can already do for free: -Wall -D_FORTIFY_SOURCE=2 -fsanitize=bounds fsanitize-undefined-trap-on-error -fstrict-flex-arrays (GCC 13+, Clang 16+)
12
71
3
434
Houssam Miliani retweeted
html tip. HTML: Custom Data Attribute
1
158