hn.today

Easl – Enhanced Abstraction Shader Language

easl-lang.org14 points2 comments
Screenshot of Easl – Enhanced Abstraction Shader Language

EASL, or Enhanced Abstraction Shader Language, is a Lisp-like language for writing shaders with higher-level programming features, including closures, higher-order functions, and sum types. Its central aim is to make shader code more expressive while allowing the same language to run on the CPU as well as the GPU. It can also share state across that boundary without requiring users to write synchronization code. The project is explicitly a work in progress, so its features and interfaces may change.

The sample program illustrates EASL’s use for interactive graphics: it defines vertex and fragment shaders, computes animated distortions and lighting-like shading, and starts a window that renders the result. The site itself uses a live EASL program as its background when the browser supports WebGPU, and offers an editor for exploring it. A command-line tool provides a way to run programs locally: users can install it through Cargo, then execute an example file. The language may interest shader programmers seeking abstraction beyond traditional shader languages, or developers curious about sharing code and state between CPU and GPU, though its changing status is worth considering before adopting it for a project.

Read on easl-lang.org2 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Laravel Rust

Laravel Rust

Laravel for Rust is a full-stack web framework with routing, validation, database tools, background jobs, and real-time features. It also supports Inertia for frontend integration and is released under the MIT license. (github.com)

The Uberization of Software

The Uberization of Software

Ride-hailing apps greatly expanded demand for trips but undercut the value of taxi medallions and squeezed driver earnings by removing the supply limits that had protected them. The essay argues that software engineering faces a similar paradox: rising demand can lower workers’ pay when technology rapidly expands the supply of labor. (lsrx.net)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.