frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

15 Years of Shader Minification

https://www.ctrl-alt-test.fr/2025/15-years-of-shader-minification/
49•laurentlb•2d ago

Comments

zombot•2h ago
>

  #define R return
OK, that was not what I thought of when reading "shader minification".
pests•1h ago
Thankfully that’s not what the article is about, three paragraphs later it is noticed this has no savings after compression.
keyle•24m ago
The author is referencing the demo scene, where they often have to meet very tight budgets in terms of space, so everyone is on an equal footing and it makes for very interesting wow moments.
monokai_nl•1h ago
Thank you for making this tool. I'm calling it in a custom webpack plugin so it transforms GLSL code into a single minified string on every build / watch event. I used this setup for my latest artwork: https://monokai.com/work/origin
akomtu•1h ago
With recursive #defines it would be possible to do LZW compression.
pjmlp•44m ago
The pain of GL shaders, only because they don't embrace modern programming like modules and bytecode delivery.

That is how one ends up with shader minification.

And this is still quite actual as pain point, given how shaders work in 3D Web APIs.

laurentlb•34m ago
I wrote this article mainly for the people in the demoscene. If anything is unclear or missing for the Hackernews audience, I'm happy to answer questions here.

If anyone wants to try it, I've made a web build: https://ctrl-alt-test.fr/minifier/

I might write a more general article later on writing code minifiers, e.g. how it compares to writing a code formatter, how to implement the transformations, etc.

On the tech side, the code is written in F#. The web build uses Bolero (Blazor for F#). So maybe I'll write later about my experience writing an open source project with F# and evolving it.

Firefox Moves to GitHub

https://github.com/mozilla-firefox/firefox
197•thefilmore•1h ago•102 comments

Fastvlm: Efficient vision encoding for vision language models

https://github.com/apple/ml-fastvlm
216•nhod•5h ago•38 comments

Persuasion Methods for Engineering Managers

https://newsletter.manager.dev/p/5-powerful-persuasion-methods-for
14•Liriel•34m ago•2 comments

Open Hardware Ethernet Switch project, part 1

https://serd.es/2025/05/08/Switch-project-pt1.html
100•luu•3d ago•14 comments

TransMLA: Multi-head latent attention is all you need

https://arxiv.org/abs/2502.07864
43•ocean_moist•3h ago•4 comments

Air Traffic Control

https://computer.rip/2025-05-11-air-traffic-control.html
144•1317•1d ago•39 comments

15 Years of Shader Minification

https://www.ctrl-alt-test.fr/2025/15-years-of-shader-minification/
49•laurentlb•2d ago•7 comments

The Barbican

https://arslan.io/2025/05/12/barbican-estate/
494•farslan•15h ago•171 comments

A conversation about AI for science with Jason Pruet

https://www.lanl.gov/media/publications/1663/0125-qa-jason-pruet
142•LAsteNERD•11h ago•116 comments

Revisiting Image Maps

https://css-tricks.com/revisiting-image-maps/
11•thm•3d ago•3 comments

Can you trust that permission pop-up on macOS?

https://wts.dev/posts/tcc-who/
256•nmgycombinator•12h ago•179 comments

RIP Usenix ATC

https://bcantrill.dtrace.org/2025/05/11/rip-usenix-atc/
163•joecobb•14h ago•34 comments

Understanding LucasArts' iMUSE System

https://github.com/meshula/LabMidi/blob/main/LabMuse/imuse-technical.md
104•todsacerdoti•8h ago•21 comments

Twitch star HasanAbi says he was detained, questioned by border agents

https://www.washingtonpost.com/immigration/2025/05/12/hasan-piker-detained-border-agents-twitch/
42•saubeidl•1h ago•22 comments

NASA study reveals Venus crust surprise

https://science.nasa.gov/science-research/astromaterials/nasa-study-reveals-venus-crust-surprise/
69•mnem•3d ago•74 comments

HealthBench – An evaluation for AI systems and human health

https://openai.com/index/healthbench/
142•mfiguiere•13h ago•123 comments

A community-led fork of Organic Maps

https://www.comaps.app/news/2025-05-12/3/
293•maelito•19h ago•192 comments

Launch HN: ParaQuery (YC X25) – GPU Accelerated Spark/SQL

113•winwang•15h ago•69 comments

Texas Senate passes bill requiring solar plants to provide power at night

https://thehill.com/policy/equilibrium-sustainability/5292792-texas-senate-bill-power-cost/
27•xbmcuser•1h ago•23 comments

University of Texas-led team solves a big problem for fusion energy

https://news.utexas.edu/2025/05/05/university-of-texas-led-team-solves-a-big-problem-for-fusion-energy/
237•signa11•18h ago•162 comments

Reviving a modular cargo bike design from the 1930s

https://www.core77.com/posts/136773/Reviving-a-Modular-Cargo-Bike-Design-from-the-1930s
168•surprisetalk•16h ago•133 comments

Ruby 3.5 Feature: Namespace on read

https://bugs.ruby-lang.org/issues/21311
197•ksec•17h ago•96 comments

Wtfis: Passive hostname, domain and IP lookup tool for non-robots

https://github.com/pirxthepilot/wtfis
84•todsacerdoti•8h ago•4 comments

Writing N-body gravity simulations code in Python

https://alvinng4.github.io/grav_sim/5_steps_to_n_body_simulation/
105•dargscisyhp•2d ago•21 comments

Policy of Transience

https://www.chiark.greenend.org.uk/~sgtatham/quasiblog/transience/
26•pekim•2d ago•1 comments

The Beam

https://www.erlang-solutions.com/blog/the-beam-erlangs-virtual-machine/
64•Alupis•3d ago•12 comments

Demonstrably Secure Software Supply Chains with Nix

https://nixcademy.com/posts/secure-supply-chain-with-nix/
103•todsacerdoti•16h ago•60 comments

Show HN: Lumoar – Free SOC 2 tool for SaaS startups

https://www.lumoar.com
74•asdxrfx•12h ago•28 comments

FedRAMP 20x – One Month in and Moving Fast

https://www.fedramp.gov/2025-04-24-fedramp-20x-one-month-in-and-moving-fast/
79•transpute•6h ago•51 comments

Universe expected to decay in 10⁷⁸ years, much sooner than previously thought

https://phys.org/news/2025-05-universe-decay-years-sooner-previously.html
201•pseudolus•21h ago•260 comments