Skip to content

Instantly share code, notes, and snippets.

View AndyMoreland's full-sized avatar

Andrew Moreland AndyMoreland

View GitHub Profile
@AndyMoreland
AndyMoreland / multi_namespace_main.go
Last active January 7, 2026 18:47
Golang examples for querying Chalk with multiple input namespaces (user.id and author.id) - with expected output
package main
import (
"context"
"fmt"
"log"
"github.com/chalk-ai/chalk-go"
)
@AndyMoreland
AndyMoreland / multi_namespace_main.go
Created January 7, 2026 18:35
Golang examples for querying Chalk with multiple input namespaces (user.id and account.id)
package main
import (
"context"
"fmt"
"log"
"github.com/chalk-ai/chalk-go"
)
@AndyMoreland
AndyMoreland / multi_namespace_main.go
Created January 7, 2026 18:32
Golang examples for querying Chalk with multiple input namespaces (user.id and account.id)
package main
import (
"context"
"fmt"
"log"
"github.com/chalk-ai/chalk-go"
)
Thread 73 (Thread 0x7ac1a62bc6c0 (LWP 1808) "telemetry-cpu15"):
#0 syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1 0x00007ac4815f37af in ?? () from /chalk_root/.venv/lib/python3.11/site-packages/libchalk.cpython-311-x86_64-linux-gnu.so
#2 0x00007ac48164282c in ?? () from /chalk_root/.venv/lib/python3.11/site-packages/libchalk.cpython-311-x86_64-linux-gnu.so
#3 0x00007ac474294fb1 in ?? () from /chalk_root/.venv/lib/python3.11/site-packages/libchalk.cpython-311-x86_64-linux-gnu.so
#4 0x00007ac47428c401 in ?? () from /chalk_root/.venv/lib/python3.11/site-packages/libchalk.cpython-311-x86_64-linux-gnu.so
#5 0x00007ac48165deac in ?? () from /chalk_root/.venv/lib/python3.11/site-packages/libchalk.cpython-311-x86_64-linux-gnu.so
#6 0x00007ac47419b393 in ?? () from /chalk_root/.venv/lib/python3.11/site-packages/libchalk.cpython-311-x86_64-linux-gnu.so
#7 0x00007ac48163b1ff in ?? () from /chalk_root/.venv/lib/python3.11/site-packages/libchalk.cpython-311-x86_64-linux-gnu.so

Keybase proof

I hereby claim:

  • I am andymoreland on github.
  • I am andymoreland (https://keybase.io/andymoreland) on keybase.
  • I have a public key ASCa2VlKr2QStLgs-6Yv1RS2eE1HBpM0okzaqzrnSHKa2go

To claim this, I am signing this object:

@AndyMoreland
AndyMoreland / init.el
Created December 21, 2015 23:53
Typescript compiler error regexp for emacs M-x compile
(add-hook 'typescript-mode-hook
(lambda ()
(add-to-list 'compilation-error-regexp-alist
'("^\\([_.[:alnum:]-/]*.ts\\)(\\([[:digit:]]+\\),\\([[:digit:]]+\\)).*$" 1 2 3))))
<html>
<head>
<style>
#container {
overflow-y: scroll;
overflow-x: hidden;
width: 100px;
height: 100px;
}
</style>
High Level: Log structured file system with RAM pointers into the log. Can reconstruct the RAM table by reading the log.
Arguing that power consumption will increase and that flash will get cheaper faster than CPU/DRAM.
* Naively, we need 1 watt of cooling for 1 watt of computation.
* They optimize for small-object random access workloads.
** Since it's small-objects and random access disk seeks suck.
* Can't use RAM because RAM is expensive and also power hungry.
* Flash pages are much larger
-object random access workloads.
** Since it's small-objects and random access disk seeks suck.
* Can't use RAM because RAM is expensive and also power hungry.
* Flash pages are much larger
* Flash translation layer is weird
* Flash failure model is optimistic
* Logs can be pre-deleted ahead of time so that writes are faster