Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: frac Clear Filter

Liquid Glass in the Browser: Refraction with CSS and SVG

Liquid Glass in the Browser: Refraction with CSS and SVG Apple introduced the Liquid Glass effect during WWDC 2025 in June—a stunning UI effect that makes interface elements appear to be made of curved, refractive glass. This article is a hands‑on exploration of how to recreate a similar effect on the web using CSS, SVG displacement maps, and physics-based refraction calculations. Instead of chasing pixel‑perfect parity, we’ll approximate Liquid Glass, recreating the core refraction and a spec

Rust tool for generating random fractals

Chaos Game Fractal Generator A simple command-line application written in Rust for generating fractals using the 'Chaos Game' algorithm. Table of Contents Algorithm Description This application generates fractals using the following simple, iterative algorithm: Define the $n$ vertices of a regular polygon Choose a random initial point within the polygon Select one of the polygon's vertices at random Move the current point a specific ratio, $r$ , of the distance towards the chosen vertex Rep

Minesweeper thermodynamics

You know how sometimes you start a game of Minesweeper and immediately get stuck? Like maybe there are some cells that you know are mines, but there aren’t any places that are safe to click. In this example there are five different ways you could fill in the mines in the neighbouring cells. Note that there’s no cell which is safe in every possibility, so there’s nowhere we can safely click to get more information. So in order to plan our next click, it would be good to know how likely it is t

Physically Based Rendering in Filament

**Physically Based Rendering in Filament** ![](images/filament_logo.png) # About This document is part of the [Filament project](https://github.com/google/filament). To report errors in this document please use the [project's issue tracker](https://github.com/google/filament/issues). ## Authors - [Romain Guy](https://github.com/romainguy), [@romainguy](https://twitter.com/romainguy) - [Mathias Agopian](https://github.com/pixelflinger), [@darthmoosious](https://twitter.com/darthmoosious) # Overvi

Show HN: I built a toy TPU that can do inference and training on the XOR problem

Nobody really understands how TPUs work…and neither do we! So we wanted to make this because we wanted to take a shot and try to guess how it works–from the perspective of complete novices! We wanted to do something very challenging to prove to ourselves that we can do anything we put our mind to. The reasoning for why we chose to build a TPU specifically is fairly simple: None of us have real professional experience in hardware design, which, in a way, made the TPU even more appealing since w

Monte Carlo Crash Course: Quasi-Monte Carlo

Monte Carlo Crash Course Quasi-Monte Carlo We’ve learned how to define and apply Monte Carlo integration—fundamentally, it’s the only tool we need. In the remaining chapters, we’ll explore ways to reduce variance and successfully sample difficult distributions. Variance & Correlation In chapter two, we determined that the variance of a Monte Carlo estimator is inversely proportional to its sample count. Empirically, we confirmed that our integrators’ expected error scaled with $$\frac{1}{\sq

The Ski Rental Problem

Ski Rental Problem The ski rental problem is a classic example problem in online algorithms. It feels like a small but interesting problem that can be explained relatively easily while some clever tricks can be applied to it. In this article, I took these lecture notes by Debmalya Panigrahi and Hangjie Ji and tried to rewrite them in a way that is easier to understand (at least for me). Formulation You are going skiing in the mountains but you are unsure about the weather reports and don't k

Show HN: CUDA Fractal Renderer

CUDA Fractal Renderer Quickly render fractals in CUDA Example Fractal (seed=7) Example Fractals (seeds=0..8) Setup Install CUDA (https://developer.nvidia.com/cuda-downloads) and uv (https://docs.astral.sh/uv/). Install dependencies and create the virtual environment: uv sync Usage uv run cuda_fractal_renderer The --seed argument can be used to generate a different fractal. The default seed is 0. The --grid-size argument can be used to generate a square grid of fractals in parallel. The

Win, lose, or draw: trends in English football match results

Is the game getting more exciting? Football (soccer) fans like to see exciting matches. Draws are boring but wins or losses are interesting; fans want to see teams give their all on the pitch. Which begs the question, is the game getting more or less thrilling over time? One way to answer this question is to look at fraction of matches in a league that end in a draw. The most boring extreme is every game is a draw (draw fraction = 1). The most engaging extreme is that every game ends in a win/l

Jacobi Ellipsoid

Shape taken by a self-gravitating fluid body rotating at constant velocity Artistic rendering of Haumea, a dwarf planet with triaxial ellipsoid shape. A Jacobi ellipsoid is a triaxial (i.e. scalene) ellipsoid under hydrostatic equilibrium which arises when a self-gravitating, fluid body of uniform density rotates with a constant angular velocity. It is named after the German mathematician Carl Gustav Jacob Jacobi.[1] History [ edit ] Before Jacobi, the Maclaurin spheroid, which was formulate

The probability of a hash collision (2022)

The probability of a hash collision Tags: probability A hash function takes arbitrarily complex input - a word, a website, an image, a human being - and maps it to a single number. This is useful for various computer science stuffs, such as data storage and cryptography. For example, let's say you want to store a book in one of N N N boxes. If you put the book in a random box, it's quite likely that you'll forget which box you picked, especially as N N N gets bigger. What you can do instead i

The Probability of a Hash Collision

The probability of a hash collision Tags: probability A hash function takes arbitrarily complex input - a word, a website, an image, a human being - and maps it to a single number. This is useful for various computer science stuffs, such as data storage and cryptography. For example, let's say you want to store a book in one of N N N boxes. If you put the book in a random box, it's quite likely that you'll forget which box you picked, especially as N N N gets bigger. What you can do instead i

Twitch community guideline violations will now disappear from accounts after a set time

Twitch has rolled out a number of changes to its violation enforcement system. The biggest change is that now infractions will disappear from an account “after a set amount of time.” This is great news for long-time creators, as minor violations stacked. This led to folks getting suspended as these smaller infractions piled up. The platform says that most minor infractions, like cheating in an online game, will expire after 90 days. More serious violations, like participating in hateful conduct