News for hackers. Stuff that matters.

Malipeddi

Re:Vercel April 2026 security incident on Sunday April 19, 2026 @12:24PM (#47825448)
Same with Chrome on Windows 11. I opened the vercel home page using the url once after which it stopped crashing when clicking on the logo.
Re:Microsoft is walking back Windows 11's AI overload on Monday February 02, 2026 @07:46AM (#46855372)
I will believe it when I see it. I have been feeling really helpless and hopeless recently about Windows. So hopefully this news turns into something real.
Re:Adjacency Matrix and std:mdspan, C++23 on Thursday September 11, 2025 @04:54PM (#45216008)
Same thing caught my eye. They are usually sparse.
Re:Randomly selecting points inside a triangle on Thursday September 11, 2025 @04:42PM (#45215932)
There are other quite elegent methods for triangle and simplices.

For a triangle, drawing α and β uniform over [0,1) the barycentric coordinates given by (1-sqrt(α), sqrt(alpha)(1-β), βsqrt(alpha)) is uniform over the triangle. No rejection and no test for flipping.

For simplices (triangle, tetrahedron, 5-cell etc) barycentric coordinates obtained by drawing uniformly from (0,1] taking a log and normalizing will be uniform within the simplex.

I wrote about this and other related sampling below.

https://abhila.sh/writing/5/Random_Sampling.html

https://abhila.sh/writing/8/Random_Sampling_2.html

Re:Gaussian Integration Is Cool on Monday June 09, 2025 @10:52AM (#44225118)
This is a neat and accessible introduction to the topic. Nice work! I want to mention nesting quadratures like Gauss-Kronod like Clenshaw-Curtis/Fejér. The nesting means that the quadrature points for lower order are included in the points required for higher orders. This allows you to increase your order of accuracy if required with fewer total evaluations.
Re:A New Sudoku Layout with 81 Uniquely Shaped Cells on Thursday March 13, 2025 @06:29PM (#43357850)
This is quite nice! Thank you for sharing it. I think i came here after the good feedback had been incorporated. So i did not find anything confusing. It was quite fun to solve.
Re:Ask HN: Who wants to be hired? (March 2025) on Monday March 03, 2025 @06:31PM (#43248146)
I'm a computational physicist (PhD, Mechanical & Aerospace Engineering) and postdoc at UofM, researching high-performance algorithms for multiscale, multiphysics phenomena. I co-develop Crimson (www.crimson.software), a blood flow simulation tool for vascular research and surgical planning. Skilled in high-performance computing, optimization, and novel computational methods, I also consult extensively within and beyond my research group. Transitioning from academia to industry, I seek roles in applied research, computational engineering, or software development tackling open-ended problems.

Location: Anywhere in US

Remote: Open to remote.

Willing to Relocate: Yes

Technologies: C++, Fortran, Python, HPC stack; experienced with Docker deployments, GPU computing, and modern infrastructure strategy.

Resume/CV: https://abhila.sh

Email: absh [at] umich.edu

Re:Morton: Bit Interleaving in C/C++ on Saturday April 20, 2024 @11:40AM (#40098179)
Related write-ups below along with comparison of performance of different approaches. BMI2 instruction set based method seems to be the fastest of the lot.

1. https://www.forceflow.be/2013/10/07/morton-encodingdecoding-...

2. https://www.forceflow.be/2016/01/18/libmorton-a-library-for-...

3. https://github.com/Forceflow/libmorton

I used it to accelerate nearest neighbor detection for collision processing in particle-laden flow for modeling complicated domains in 3d (for biological fluids simulation). I was using it as a locality sensitive hashing to put particles near each other in the same bucket in an hash map. I came across the ideas of BIGMIN (big minimum) and LITMAX (little maximum) for range search in a morton encoded data that I found to be cool.

Re:Uniformly Sample Points in a Disk on Thursday May 26, 2022 @10:35AM (#31518817)
Normal distribution is not the same as uniform distribution. I edited in a normal distribution sampler in your codepen example.

https://pastebin.com/raw/CP4yNRE9