Skip to content

Instantly share code, notes, and snippets.

Niels G. W. Serup nqpz

Block or report user

Report or block nqpz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View raster.fut
type pixel = { z: f32
, colour: i32
let closest (a: pixel) (b: pixel): pixel =
if a.z < b.z
then a
else b
let raster_onepass (w: i32) (pixel_pos: []i32) (pixels: []pixel) =
View gist:d61b09ba6baabeb2ca2d
// Only works for constants and arrays, so watch out.
#define write(s) syscall_write(1, s, sizeof(s))
void write_char(char c) {
syscall_write(1, &c, 1);
void write_int(int n) {
int k, leading_zeros, div;

Keybase proof

I hereby claim:

  • I am nqpz on github.
  • I am ngws ( on keybase.
  • I have a public key whose fingerprint is A281 1D02 FBC9 F96D 9521 CE40 7546 8AE4 8544 5363

To claim this, I am signing this object:

You can’t perform that action at this time.