Skip to content

Instantly share code, notes, and snippets.

View meshula's full-sized avatar
💭
Exploring liminal spaces

Nick Porcino meshula

💭
Exploring liminal spaces
View GitHub Profile
@meshula
meshula / threetimes.md
Created September 6, 2022 17:49
threetimes.md

You need to build a system three times

  • the first time you don't know what you actually need, it's an exploration, plan to throw it away
  • the second time you think you know what you need so you over-architect, it'll be too restrictive, plan to throw it away
  • the third time you build what actually works

I like to think I came up with it at LucasArts twenty years ago, but at this point I don't know if it was generally in the zeitgeist.

@meshula
meshula / cli.md
Last active November 9, 2022 01:23
command line parsers for c/c++

notes from Siggraph 2022, USD Industry Council, Aaron Luk moderating

  • ifc requested by many https://en.wikipedia.org/wiki/Industry_Foundation_Classes although it sounds like many consider it to be on a ramp to obsolence

  • discussion of an "interning" schema for IoT data streams bridged via fabric or directly into usd available in usd via dynamic payload

@meshula
meshula / studio-timescales.txt
Created July 28, 2022 16:49
studio-timescales.txt
rapid | hot fix animation tools
| one off pipeline hacks simulation tools
| one off task UI nodes for procedural graphs
| build systems
| rigging systems
|
|
slow | looks foundational architecture
@meshula
meshula / usdcondam1-20220620.md
Last active June 26, 2022 22:34
usd/conda/m1/20220620

SON OF USD BUILD CLUB

Building a native Apple Silicon version of UsdView

This version of UsdView will have an Apple Silcon, Metal-native viewer, openimageio, and alembic support. It does not yet include MaterialX, OpenColorIO, or any of the other many options build_usd.py supports.

Successfully get usdview running on conda and M1 as follows:

Using the PySide6 PR by Jon Creighton

@meshula
meshula / pipeline.labfx
Created December 23, 2021 02:38
pipeline program
--- labfx version 1.0
name: Particles
version: 1.0
-------------------------------------------------------------------------------
buffer: gbuffer
has depth: yes
@meshula
meshula / zig.md
Last active December 21, 2021 17:29
zig notes

by our incantations we manipulate the dance of electrons in the microcosm, the very fabric of the universe itself

.? is equivalent to orelse unreachable. So to unwrap you can either do const y = x orelse <default>; or if (x) |unwrapped_x| {};

One way to debug ZLS lookups is to do zig run zls/zig-out/bin/build-runner.zig --pkg-begin "@build@" path/to/your/build.zig --pkg-end and make sure it outputs a list of packages.

Using slices for a stringmap

@meshula
meshula / README.md
Created December 13, 2021 05:31 — forked from pfgithub/CALLOC.md
wrapper to use a zig allocator in c code

usage

export allocation functinos from zig

comptime {
    @import("calloc").wrapAllocator(struct {
        pub fn getAllocator() std.mem.Allocator {
            return …;
 }
1>------ Build started: Project: tinyusd, Configuration: RelWithDebInfo x64 ------
1>main.obj : error LNK2001: unresolved external symbol "class pxrInternal_v0_22__pxrReserved__::Usd_PrimFlagsConjunction const pxrInternal_v0_22__pxrReserved__::UsdPrimDefaultPredicate" (?UsdPrimDefaultPredicate@pxrInternal_v0_22__pxrReserved__@@3VUsd_PrimFlagsConjunction@1@B)
1>main.obj : error LNK2001: unresolved external symbol "private: static char * * pxrInternal_v0_22__pxrReserved__::Sdf_Pool<struct pxrInternal_v0_22__pxrReserved__::Sdf_PathPrimTag,24,8,16384>::_regionStarts" (?_regionStarts@?$Sdf_Pool@USdf_PathPrimTag@pxrInternal_v0_22__pxrReserved__@@$0BI@$07$0EAAA@@pxrInternal_v0_22__pxrReserved__@@0PAPEADA)
1>main.obj : error LNK2001: unresolved external symbol "private: static char * * pxrInternal_v0_22__pxrReserved__::Sdf_Pool<struct pxrInternal_v0_22__pxrReserved__::Sdf_PathPropTag,24,8,16384>::_regionStarts" (?_regionStarts@?$Sdf_Pool@USdf_PathPropTag@pxrInternal_v0_22__pxrReserved__@@$0BI@$07$0EAAA@@pxrInternal_v