Latest Tech News

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

Filtered by: float Clear Filter

Show HN: Ark v0.5.0 – A Minimal, High-Performance Entity Component System for Go

Features Installation To use Ark in a Go project, run: go get github.com/mlange-42/ark Usage Below is the classical Position/Velocity example that every ECS shows in the docs. See the User Guide, API docs and examples for details. package main import ( "math/rand/v2" "github.com/mlange-42/ark/ecs" ) // Position component type Position struct { X float64 Y float64 } // Velocity component type Velocity struct { X float64 Y float64 } func main () { // Create a new World world := ecs . NewWor

Speeding up PyTorch inference on Apple devices with AI-generated Metal kernels

Speeding up PyTorch inference by 87% on Apple devices with AI-generated Metal kernels tl;dr: Our lab investigated whether frontier models can write optimized GPU kernels for Apple devices to speed up inference. We found that they can: our AI-generated Metal kernels were 1.87x faster across 215 PyTorch modules, with some workloads running hundreds of times faster than baseline. Why use AI to generate kernels for Apple devices? AI models execute on hardware via GPU kernels that define each oper

Speeding up PyTorch inference by 87% on Apple with AI-generated Metal kernels

Speeding up PyTorch inference by 87% on Apple devices with AI-generated Metal kernels tl;dr: Our lab investigated whether frontier models can write optimized GPU kernels for Apple devices to speed up inference. We found that they can: our AI-generated Metal kernels were 1.87x faster across 215 PyTorch modules, with some workloads running hundreds of times faster than baseline. Why use AI to generate kernels for Apple devices? AI models execute on hardware via GPU kernels that define each oper

Introduction to Ada: a project-based exploration with rosettas

Context This practical walkthrough, designed as a short tutorial, was created upon joining AdaCore as a Field Engineer. In this new role, I’ll be working directly with customers to help them succeed with Ada. Although I was first introduced to the language nearly two decades ago, this new position inspired me to revisit its fundamentals, and I used the excellent https://learn.adacore.com portal as a quick refresher. While that platform takes a concept-based approach, I chose to complement it wit

Implementing a Foil Sticker Effect

In this post, I’ll walk you through how to create a custom shader in Three.js that simulates the look of a foil sticker, complete with angle-dependent iridescence and sparkling metallic flakes. The goal is to capture that premium, holographic effect you see on collectible stickers, trading cards, and high-end packaging, but to render it in real time directly in the browser. Iridescence If you’ve ever tilted a holographic sticker or watched sunlight catch on a soap bubble, you’ve seen iridescen

Scientists Have Identified the Origin of an Extraordinarily Powerful Outer-Space Radio Wave

The Earth is constantly receiving space signals that contain vital information about extremely energetic phenomena. Among the most peculiar are brief pulses of extremely high-energy radio waves, known as fast radio bursts (FRB). Astronomers compare them to a powerful lighthouse that shines for milliseconds in the middle of a rough, distant sea. Detecting one of these signals is an achievement in itself, but identifying its origin and understanding the nature of its source remains one of the grea

Scientists Have Identified the Origin of an Extraordinarily Powerful Outer Space Radio Wave

The Earth is constantly receiving space signals that contain vital information about extremely energetic phenomena. Among the most peculiar are brief pulses of extremely high-energy radio waves, known as fast radio bursts (FRB). Astronomers compare them to a powerful lighthouse that shines for milliseconds in the middle of a rough, distant sea. Detecting one of these signals is an achievement in itself, but identifying its origin and understanding the nature of its source remains one of the grea

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

Myths About Floating-Point Numbers (2021)

Floating-point numbers are a great invention in computer science, but they can also be tricky and troublesome to use correctly. I’ve written about them already by publishing Floating-Point Formats Cheatsheet and presentation “Pitfalls of floating-point numbers” (“Pułapki liczb zmiennoprzecinkowych” – the slides are in Polish). Last year I was preparing for a more extensive talk about this topic, but it got cancelled, like pretty much everything in these hard times of the COVID-19 pandemic. So in

Perfecting anti-aliasing on signed distance functions

← index Doing anti-aliasing on SDF is not as straightforward as it seems. Most of the time, we see people use a smoothstep with hardcoded constants, sometimes with screen space information, sometimes cryptic or convoluted formulas. Even if SDFs have the perfect mathematical properties needed for a clean anti-aliasing, the whole issue has a scope larger than it appears at first glance. And even when trivial solutions exist, it's not always clear why they are a good fit. Let's study that together

Show HN: QuickTunes: Apple Music player for Mac with iPod vibes

QuickTunes is a simple and fast Apple Music client for macOS. It aims to bring the simplicity of music players from the early 2000s like the iPod to your Mac. With QuickTunes, you can easily drill into your playlists, albums, artists, and songs, pick something, and press Play. Your browser does not support the video tag. The app is optimized to make navigating your music library a breeze with buttery smooth scrolling, keyboard navigation, and multi-touch gestures. The beautiful floating player

Show HN: PlutoFilter- A single-header, zero-allocation image filter library in C

PlutoFilter PlutoFilter is a single-header, zero-allocation image filter library written in C. It applies fast, chainable image effects without any dynamic memory allocation. Compatible with SVG and CSS filter semantics, it makes it easy to reproduce visual effects consistently across platforms. Installation PlutoFilter is a self-contained, single-header library written in standard C99. It can be used in two modes: header-only or implementation. In header-only mode, simply include the header

CUDA Ray Tracing 2x Faster Than RTX: My CUDA Ray Tracing Journey

Welcome! This article is a deep dive into how I made a CUDA-based ray tracer that outperforms a Vulkan/RTX implementation—sometimes by more than 3x—on the same hardware. If you're interested in GPU programming, performance optimization, or just want to see how far you can push a path tracer, you're in the right place. The comparison is with RayTracingInVulkan by GPSnoopy, a well-known Vulkan/RTX renderer. My goal wasn't just to port Ray Tracing in One Weekend to CUDA, but to squeeze every last

Topics: cuda float memory ray std

Ancient X11 scaling technology

People keep telling me that X11 doesn’t support DPI scaling, or fractional scaling, or multiple monitors, or something. There’s nothing you can do to make it work. I find this surprising. Why doesn’t it work? I figure the best way to find out is try the impossible and see how far we get. I’m just going to draw a two inch circle on the screen. This screen, that screen, any screen, the circle should always be two inches. Perhaps not the most exciting task, but I figure it’s isomorphic to any othe

Painting with Math: A Gentle Study of Raymarching (2023)

Most of my experience writing GLSL so far focused on enhancing pre-existing Three.js/React Three Fiber scenes that contain diverse geometries and materials with effects that wouldn't be achievable without shaders, such as my work with dispersion and particle effects. However, during my studies of shaders, I always found my way to Shadertoy, which contains a multitude of impressive 3D scenes featuring landscapes, clouds, fractals, and so much more, entirely implemented in GLSL. No geometries. No

Painting with Math: A Gentle Study of Raymarching

Most of my experience writing GLSL so far focused on enhancing pre-existing Three.js/React Three Fiber scenes that contain diverse geometries and materials with effects that wouldn't be achievable without shaders, such as my work with dispersion and particle effects. However, during my studies of shaders, I always found my way to Shadertoy, which contains a multitude of impressive 3D scenes featuring landscapes, clouds, fractals, and so much more, entirely implemented in GLSL. No geometries. No

OnePlus tablets are getting one of Android’s best, and one of its worst, productivity features

Ryan Haines / Android Authority TL;DR The latest OxygenOS 15 update brings Google’s Circle to Search and a new floating taskbar to the OnePlus Open and OnePlus Pad 2. Circle to Search allows users to quickly search anything on their screen by tapping, highlighting, or drawing over it. The floating taskbar, while aiming to balance productivity and screen real estate, lacks a quick toggle to switch styles and on tablets, it requires disabling gesture navigation for the fixed version. OnePlus m

Shaping Light – Volumetric Lighting

As I became more familiar with post-processing over the past few months, I was curious to push those newly learned techniques beyond pure stylization to achieve something more functional. I wanted to find new ways to enrich my 3D work which wouldn't be possible without leveraging effects and passes alongside custom shaders. As it turns out, post-processing is great entrypoint to enhance a 3D scene with atmospheric and lighting effects, allowing for more realistic and dramatic visuals. Because t