Skip to content

Instantly share code, notes, and snippets.

View giannissc's full-sized avatar

John Skottis giannissc

  • Edinburgh, United Kingdom
  • 11:43 (UTC +01:00)
View GitHub Profile
@giannissc
giannissc / blog.md
Created November 30, 2024 22:29 — forked from matthunz/blog.md

UI and Declarative Programming in Rust

The graphical user interface (GUI) is the cornerstone of most modern applications. It is often the main interface to use a computer program, providing a bridge from your software to someone out there in the world. Therefore, to best represent our hard-earned application logic, a GUI should be responsive, robust, and accessible.

So let's use Rust, a modern language for efficient and robust software! Well...

Why are user interfaces so hard for Rust?

I've been working on open-source Rust projects for about 8 years now,

@giannissc
giannissc / CuteSort.hlsl
Created June 17, 2024 10:14 — forked from dondragmer/CuteSort.hlsl
A very fast GPU sort for sorting values within a wavefront
Buffer<uint> Input;
RWBuffer<uint> Output;
//returns the index that this value should be moved to to sort the array
uint CuteSort(uint value, uint laneIndex)
{
uint smallerValuesMask = 0;
uint equalValuesMask = ~0;
//don't need to test every bit if your value is constrained to a smaller range