Skip to content

Instantly share code, notes, and snippets.

@sogaiu
sogaiu / gist:4ce54e28d94049541aa95b563e23332c
Created October 19, 2026 01:20
lto experiments with janet's Makefile
# Symbols are (optionally) removed later, keep -g as default!
CFLAGS?=-O2 -g
# basic lto
#CFLAGS?=-O2 -g -flto -flto-partition=one
#CFLAGS?=-O2 -g -flto
# parallel lto
#CFLAGS?=-O2 -g -flto=1
#CFLAGS?=-O2 -g -flto=2
#CFLAGS?=-O2 -g -flto=auto
# XXX: -fwhole-program breaks use with dynamic modules?
@sogaiu
sogaiu / gist:312b0e52cb72b03e72946893f4d393cf
Created October 18, 2026 00:57
git pull failure for alpine linux aports
$ git pull
remote: Enumerating objects: 8251, done.
remote: Counting objects: 100% (7677/7677), done.
remote: Compressing objects: 100% (1552/1552), done.
remote: Total 2713 (delta 1558), reused 1873 (delta 785), pack-reused 0 (from 0)
remote: error executing git hook
remote: aborting due to possible repository corruption on the remote side.
Receiving objects: 100% (2713/2713), 2.13 MiB | 766.00 KiB/s, done.
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
@sogaiu
sogaiu / gist:3c7c6884a6ff091af83e51e78d338f37
Created October 13, 2026 01:29
janet-pm test output using janet built with `-fwhole-program -flto=2`
$ VERBOSE=1 janet-pm test
running test/suite-argparse.janet ...
✔ test/suite-argparse.janet:29: bad key: 100: true
✔ test/suite-argparse.janet:30: bad expr: : true
✔ test/suite-argparse.janet:31: bad thing: 123: true
✔ test/suite-argparse.janet:35: Option "thing" missing arg, but result is non-nil.: true
✔ test/suite-argparse.janet:39: Option "expr" missing arg, but result is non-nil.: true
✔ test/suite-argparse.janet:44: bad debug: true: true
✔ test/suite-argparse.janet:45: bad verbose: 5: true
✔ test/suite-argparse.janet:46: bad expr: abc def: true
* https://unit42.paloaltonetworks.com/passwordless-authentication-security-risks/
* https://www.hazetec.com/briefs/20260904-passkey-security-flaws-39-new-methods-to-compromise-authentication-revealed.html
* https://www.techradar.com/pro/security/researchers-reveal-that-passkeys-are-not-as-safe-as-we-think-they-are-heres-how-to-stay-safe
~/src/wattle $ rm -rf .zig-cache
~/src/wattle $ time zig build --summary all
Build Summary: 27/27 steps succeeded
install success
├─ install wattle success
│ └─ compile lib wattle Debug native success 200ms MaxRSS:88M
│ ├─ WriteFile success
│ ├─ compile obj wattle-runtime Debug native success 19s MaxRSS:423M
│ │ ├─ options success
│ │ ├─ options success
https://www.masbear.com/2026/02/why-apps-work-on-wifi-not-cellular.html
https://math.stackexchange.com/questions/31838/what-is-the-best-book-to-learn-probability
@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
issues
* be able to customize the ansi escape code for :code
in doc-format? see from around here:
https://janet.zulipchat.com/#narrow/channel/519748-chat/topic//near/623837136
bakpakin mentioned that styling and color can be turned off:
https://github.com/janet-lang/janet/pull/1886#issuecomment-5813103331