Skip to content

Instantly share code, notes, and snippets.

https://math.stackexchange.com/questions/31838/what-is-the-best-book-to-learn-probability
## Cloning
Cloning of indexed and dictionary types involves
shallow copying by default. This means that any
references to contained indexed or dictionary
types are copied instead of the content being
recursively duplicated. This is both for efficiency
reasons and because it's not always obvious or
well-defined as to how copying should occur.
@sogaiu
sogaiu / gist:954e71e8bc1c68dc72f307fe6a0e84b4
Last active August 23, 2026 01:54
notes about "how does an llm work"
* questionable term "ai assistant" 0:05
* "assistant" might be anthropomorphizing
* referring to "ai assistant" as "ai" 0:10
* "ai" is loaded term
* "sensible prediction of what word comes next" 0:17
* not actually words but tokens
* not actually sensible
@sogaiu
sogaiu / 1.table-questions.txt
Last active August 21, 2026 06:04
veqq questions
https://janet.zulipchat.com/#narrow/channel/409517-help/topic/table.2Fclone.20doesn.27t.20make.20a.20deep.20copy.3F/near/617777656
> The test is (surprisingly to me) not broken
i somehow didn't figure out what "the test" refers to. any hints?
> although eg filter shows "shallow". It's just that it copies the...references
> through instead of their values,
i think `filter` behaves the way it does because it just uses `array/push`.
questions
* how to address converting from .janet files in examples to content
appropriate for janet-lang.org's examples
* return value checking
* indeterminate in some cases (e.g. `next`)
* expected errors
issues
@sogaiu
sogaiu / efibootmgr-notes.md
Last active June 11, 2026 09:11
using efibootmgr to edit entries

use efibootmgr to show existing entries:

# efibootmgr

(-v can give more info)

creating a boot entry is a little involved...for nvme drive, use names like nvme0n1 for --disk / -d,

@sogaiu
sogaiu / linux-nvme-names.md
Created June 10, 2026 12:39
ssd device file names on linux: nvme0, nvme0n1, nvme0n1p1
(defn num-digits
[x]
(if (= x 0)
1
(math/floor (inc (math/log10 x)))))
(comment
(num-digits 0)
# =>

clone emacs, checkout emacs-31 branch, then:

TREE_SITTER_CFLAGS=-I$HOME/.local/include \
TREE_SITTER_LIBS="-L$HOME/.local/lib -ltree-sitter" \
./configure \
  --prefix=$HOME/.local/stow/emacs-31.x \
  --with-cairo \
  --with-tree-sitter \
 --with-gnutls=ifavailable