summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--2026/talks/el-gpu.md63
1 files changed, 43 insertions, 20 deletions
diff --git a/2026/talks/el-gpu.md b/2026/talks/el-gpu.md
index f606d21d..844fc3af 100644
--- a/2026/talks/el-gpu.md
+++ b/2026/talks/el-gpu.md
@@ -11,26 +11,49 @@ Emanuel Berg (he/him) - Pronunciation: Swenglish, IRC: lacni, incal@dataswamp.or
[[!inline pages="internal(2026/info/el-gpu-before)" raw="yes"]]
-In this project, prepared especially for EmacsConf 2026, two modules -
-`el-gpu` and `pix-el` - for graphics on-board the GPU and CPU,
-respectively - have joined forces and been adapted to the newly added
-canvas format, an exciting new feature included in vanilla GNU Emacs.
-
-In this video we show no less than three games - a snake clone, which
-operates on a per-pixel basis; a Tetris game, with tiles loaded on the
-fly from any visual creation even as it only exists in drawing
-program, still a dynamic, editable object; and a Descent-like space
-shooter, powered-up by SDL and OpenGL, executing part CPU-side Emacs
-Lisp (Elisp), part CPU-side dynamic module C, and part all-GPU GLSL.
-
-el-gpu and pix-el, like their predecessor, bad.el (boxing after dark),
-which was demonstrated at EmacsConf 2025, comes with an interactive
-studio, that has its own UI; it offers OOP-style drawing, as well as
-explicit pixel-plotting, with layerjs, procedural shaders, functional
-alpha masks, and RGB bitwise blenders, including for transparency;
-with image editing, effects, rotation, and transformation, with new
-idiomatic GNU Emacs lisp, e.g. the `with-pixels` macro; also offering
-several ways of drawing text on the CPU as well as GPU; and much more.
+In this project, prepared especially for EmacsConf 2026, the two
+packages - `el-gpu` and `pix-el` - for graphics on the GPU as well as
+the CPU - have joined forces and been adapted to the CANVAS ARGB32
+format, an exciting feature recently added to vanilla GNU Emacs.
+
+We show no less than three games in this video:
+
+ 1. a snake clone, which operates on a per-pixel basis;
+
+ 2. a Tetris clone which loads its tiles on the fly from an arbitrary texture, even as that only exists in the drawing program as a dynamic, still editable object; and
+
+ 3. a Descent-like space game, powered-up by SDL (input, system glue) and OpenGL (3D graphics), executing part CPU-side Emacs Lisp (Elisp), part CPU-side dynamic-module C, and part all-GPU GLSL vertex and fragment shaders.
+
+Like its predecessor, known simply as "the studio" [1] `pix-el` comes
+with an interactive environment offering a touch-key graphic
+manipulation/control interface, inside an Emacs buffer, not to produce
+graphics necessarily, but to make it come alive. Features are
+
+ 1. OOP-style drawing moving around parameter-defined boxed data;
+
+ 2. but also explicit pixel-plotting;
+
+ 3. with independent layers;
+
+ 4. with procedural shaders for generative/glitch-style graphics, but also for effects, mood lighting, or the illusions of metal and other realistic materials;
+
+ 5. with alpha masks, expressed with familiar Elisp `lambda` and `defun`;
+
+ 6. with RGB bitwise and color channel wise blenders, to produce pleasant colors in general, or do specific things e.g. transparency;
+
+ 7. also with animated sprites and custom blitting to scale, flip, rotate, and transform any graphical object;
+
+ 8. `pix-el`, being optimized in many ways big and small primarily to be able to iterate a 1920x1080 pixel monitor, in both Elisp and C, for this purpose relies on a C dynamic module, for example to implement `emacs_gpu_array`, which is very similar to the Elisp `cl-replace`, i.e. to do bounded array manipulation between indexes, however being in C and not by all means native compiled Elisp, `emacs_gpu_array` is often 150 times faster;
+
+ 9. meanwhile, with new idiomatic GNU Emacs Lisp constructs, e.g. the `with-pixels` macro, as-fast-as-it-gets Elisp-side iteration and pixel access;
+
+ 10. `el-gpu` and `pix-el` have new, interesting ways of drawing text, and images, to the point drawing can happen exclusively on the GPU, drawing platonic polyhedra (from the theory of 3D drawing), to Minecraft adventure lands, or random web PNGs, to a usable, running instance of GNU Emacs itself.
+
+By Emanuel Berg <incal@dataswamp.org>
+
+<https://dataswamp.org/~incal/emacsconf2026/glsl-old-tiles.png>
+
+<https://dataswamp.org/~incal/emacsconf2026/ui-elements.png>
<https://dataswamp.org/~incal/el-gpu>