Skip to content

Instantly share code, notes, and snippets.

View tommythorn's full-sized avatar

Tommy Thorn tommythorn

View GitHub Profile
| "OS Build Version" = "21G217"
+-o J313AP <class IOPlatformExpertDevice, id 0x100000216, registered, matched, active, busy 0 (84188 ms), retain 32>
| | | | "perf-states" = <0000000090010000007b9a175402000000a4781f7a0200000054ea2aac020000001f13370703000000ea3b436103000080bb2c4ca9030000>
| | | | "gfx-shared-region-base" = <0080f7ff0b000000>
| | | | "gpu-num-perf-states" = <06000000>
| | | | "AGXParameterBufferMaxSizeEverMemless" = 574881792
| | | | "AGXParameterBufferMaxSizeNeverMemless" = 287440896
| | | | "gpu-core-count" = 8
| | | | "AGXParameterBufferMaxSize" = 862322688
| | | | "GPUConfigurationVariable" = {"gpu_gen"=13,"num_gps"=4,"num_cores"=8,"core_mask_list"=(255),"num_frags"=8,"num_mgpus"=1}
@tommythorn
tommythorn / pingpong.rs
Created May 10, 2022 06:02
Failed attempt at Using Stakker
use stakker::*;
use std::time::{Duration, Instant};
struct Foo {
bar: Actor<Bar>,
}
impl Foo {
pub fn init(cx: CX![], bar: Actor<Bar>) -> Option<Self> {
call!([cx], run());
@tommythorn
tommythorn / evil.c
Created April 4, 2020 22:30
RVC Decoder aka. GCC destroyer
// RVC decoder, Copyright (C) 2020 Tommy Thorn
/* This file is based on RVC.scala, licensed under Apache License Version 2.0 */
// *** WARNING ***
// This is work-in-progress
// Released just to show how it totally destroys GCC (~ 2 lines/s and
// 6 GiB working set)
#include <stdint.h>
#include <stdio.h>
@tommythorn
tommythorn / README.txt
Created January 14, 2020 20:24 — forked from dabeaz/README.txt
PyCon India 2019, Code from Keynote Presentation by @dabeaz
Code from PyCon India 2019 Keynote Talk
David Beazley (https://www.dabeaz.com)
======================================
This code is presented "as is" and represents what was live-coded
during my closing keynote presentation at PyCon India, Chennai,
October 13, 2009. I have made no changes to the files.
Requires: Python 3.6+, numpy, pygame
@tommythorn
tommythorn / bakergc.html
Created February 11, 2018 00:14
Baker Real-Time GC
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Emscripten-Generated Code</title>
<style>
body {
font-family: arial;
margin: 0;

Keybase proof

I hereby claim:

  • I am tommythorn on github.
  • I am tommythorn (https://keybase.io/tommythorn) on keybase.
  • I have a public key whose fingerprint is 6786 DA28 4DDD E836 1F30 F5F1 3390 3D06 E044 92A7

To claim this, I am signing this object:

:20100400DDE5DD210000DD3921EFFF39F92A0460DD75F7DD74F8DD36F5CADD36F60BDD369C
:20102400F340DD36F4FC210000E3DD36F100DD36F200DD7EF5DD86F1DD77FEDD7EF6DD8EB7
:20104400F2DD77FF3A0060DD96F7201D3A0160DD96F820152A0260DD75F7DD74F821290C57
:20106400DD7EFE7723DD7EFF77DD7EF7C601DD77FCDD7EF8CE00DD77FDDD7EF7FD210E61EE
:20108400FD9600200CDD7EF8FD210E61FD9601284FDD6EF7DD66F87EDD77FBD60A2841DD32
:2010A4007EF1D630DD7EF2DE003026DD7EF1DD77F9DD7EF2DD77FADD34F12003DD34F2DDFD
:2010C4007EF9DD86F56FDD7EFADD8EF667DD7EFB77DD7EFCDD77F7DD7EFDDD77F8C3361095
:2010E400DD6EFEDD66FF3E30DD96F15F3E00DD9EF257D5012000C5E5CDDE1621060039F974
:20110400DD7EF5DD86F3DD77F5DD7EF6DD8EF4DD77F6DD36F340DD36F400DD7EF7FD210E17
:2011240061FD9600200CDD7EF8FD210E61FD9601280CDD7EFCDD77F7DD7EFDDD77F8DD348C