Skip to content

Instantly share code, notes, and snippets.

* minor fixes pr candidate items
* change comments
/* Use counter to keep track of number of '=' seen */ <- should be backticks?
* initially missed things
* popstate has a for loop surrounding most of its code
* atsign's non-default cases all return...the default case leads to code
after the switch statement (slightly confusing?)
* unknown items
@sogaiu
sogaiu / code-and-data-formatting-notes.md
Created August 23, 2025 12:40
code and data formatting notes
  • some reasons it's nice to have (semi-)automatic "formatting" of data
    • readable evaluation results
      • for efficient perception
      • for sharing with others
      • for recording as part of expressing a test
      • for documentation
@sogaiu
sogaiu / gist:9cd1e2699b60dff84da33358dc0968af
Created August 23, 2025 12:27
emsdk 4.0.5 tree-sitter test failure (fee50ad0ce3279f9c6f96576af24787601bbdc5f)
$ cargo test
Compiling proc-macro2 v1.0.93
Compiling unicode-ident v1.0.15
Compiling cfg-if v1.0.0
Compiling libc v0.2.172
Compiling shlex v1.3.0
Compiling equivalent v1.0.1
Compiling itoa v1.0.14
Compiling stable_deref_trait v1.2.0
Compiling serde_json v1.0.142
@sogaiu
sogaiu / gist:1105aa1c041a8c276c123eea900a6abe
Created August 23, 2025 12:25
emsdk 4.0.8 tree-sitter test failure (fee50ad0ce3279f9c6f96576af24787601bbdc5f)
$ cargo test
Compiling proc-macro2 v1.0.93
Compiling unicode-ident v1.0.15
Compiling cfg-if v1.0.0
Compiling libc v0.2.172
Compiling shlex v1.3.0
Compiling equivalent v1.0.1
Compiling itoa v1.0.14
Compiling stable_deref_trait v1.2.0
Compiling serde_json v1.0.142
@sogaiu
sogaiu / gist:91e3a2eb2099b36743b7152f920d4fc3
Created August 23, 2025 12:22
emsdk 4.0.9 tree-sitter test failure (fee50ad0ce3279f9c6f96576af24787601bbdc5f)
$ cargo test
Compiling proc-macro2 v1.0.93
Compiling unicode-ident v1.0.15
Compiling cfg-if v1.0.0
Compiling libc v0.2.172
Compiling shlex v1.3.0
Compiling equivalent v1.0.1
Compiling itoa v1.0.14
Compiling stable_deref_trait v1.2.0
Compiling serde_json v1.0.142
@sogaiu
sogaiu / gist:afa7c4a6a28b37112dfd9b09f2b7aa16
Last active August 23, 2025 12:21
emsdk 4.0.10 tree-sitter test failure (fee50ad0ce3279f9c6f96576af24787601bbdc5f)
$ cargo test
Compiling proc-macro2 v1.0.93
Compiling unicode-ident v1.0.15
Compiling cfg-if v1.0.0
Compiling libc v0.2.172
Compiling shlex v1.3.0
Compiling equivalent v1.0.1
Compiling itoa v1.0.14
Compiling stable_deref_trait v1.2.0
Compiling serde_json v1.0.142
@sogaiu
sogaiu / gist:149a9d6085694723dbe5c9042be19cbe
Last active August 23, 2025 12:21
emsdk 4.0.11 tree-sitter test failure (fee50ad0ce3279f9c6f96576af24787601bbdc5f)
$ cargo test
Compiling proc-macro2 v1.0.93
Compiling unicode-ident v1.0.15
Compiling cfg-if v1.0.0
Compiling libc v0.2.172
Compiling shlex v1.3.0
Compiling itoa v1.0.14
Compiling equivalent v1.0.1
Compiling stable_deref_trait v1.2.0
Compiling serde_json v1.0.142
@sogaiu
sogaiu / 0.indentation.diff
Last active August 18, 2025 03:22
indentation diff
diff --git a/lib/parser.janet b/lib/parser.janet
index d3c81ef..ec18ef5 100644
--- a/lib/parser.janet
+++ b/lib/parser.janet
@@ -345,9 +345,9 @@
(unless (= cols (length line))
(error "columns must be equal across rows")))
(array/push rows
- (map (fn [x] @{:type :td
- :indent 0