Skip to content

Instantly share code, notes, and snippets.

@sogaiu
sogaiu / gist:e3c6a3f2a8fd99b89f7cfcf798faa75f
Last active March 6, 2024 00:45
some tree-sitter .wasm files that live in repositories
./github.com/julienhenry/tree-sitter-souffle/tree-sitter-souffle.wasm
./github.com/Ziemniakoss/tree-sitter-apex/tree-sitter-apex.wasm
./github.com/UserNobody14/tree-sitter-dart/tree-sitter-dart.wasm
./github.com/tree-sitter/tree-sitter-javascript/tree-sitter-javascript.wasm
./github.com/tree-sitter/tree-sitter-haskell/tree-sitter-haskell.wasm
./github.com/elm-tooling/tree-sitter-elm/docs/js/tree-sitter.wasm
./github.com/elm-tooling/tree-sitter-elm/docs/js/tree-sitter-elm.wasm
./github.com/FoamScience/tree-sitter-foam/tree-sitter-foam.wasm
./github.com/rolandwalker/tree-sitter-pgn/tree-sitter-pgn.wasm
./github.com/takegue/tree-sitter-sql-bigquery/playground/tree-sitter.wasm
https://www.reddit.com/r/Trackballs/wiki/index/
https://gemst.co.kr/pcacc/?q=YToxOntzOjEyOiJrZXl3b3JkX3R5cGUiO3M6MzoiYWxsIjt9&bmode=view&idx=16642405
@sogaiu
sogaiu / gist:c5c4a5a9cfd4e3a446e07b6417b324d3
Last active March 3, 2024 05:55
elpaca, straight, package, etc.
https://www.reddit.com/r/emacs/comments/19bs8w9/elpaca_vs_straightel/
https://www.reddit.com/r/emacs/comments/13caudx/if_you_like_straight_you_should_try_elpaca/
https://www.reddit.com/r/emacs/comments/11daqsz/elpaca_the_basics/
https://github.com/progfolio/elpaca/wiki/Migrating-to-Elpaca
@sogaiu
sogaiu / elpaca-startup.el
Last active March 1, 2024 12:57
partially analyzed elpaca startup code
;; going to assume for concreteness that `user-emacs-directory` is "~/.emacs.d"
(defvar elpaca-installer-version 0.6)
;; "~/.emacs.d/elpaca"
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory))
;; "~/.emacs.d/elpaca/builds"
(defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory))
;; "~/.emacs.d/elpaca/repos"
(defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory))
;; used in the `let` binding below and on the very last line
@sogaiu
sogaiu / janet-lang-org-repos-ideas.md
Last active March 1, 2024 04:10
janet-lang.org repository ideas
  • ideas about using different components

    • transition from mendoza to spork/mdz?
      • in the process enhance / modify / test out spork/mdz?
    • transition from circlet to spork/http*?
      • in the process enhance / modify / test out spork/http*?
    • transition from Makefile to project.janet?
      • multiplatform - more usable by windows users?
  • should file-watching capability of some sort be provided?

  • could that piece end up in spork?

@sogaiu
sogaiu / gist:422a8a3e53c2045408b31f5c4a2592e9
Created February 29, 2024 11:50
windows 11 iso use to access partitions (e.g. to copy drivers to partition when no network or usb drives work in windows)
at the windows setup dialog, press shift-f10 to start a command prompt
at the command prompt, start the diskpart command, then list volumes:
DISKPART> list volume
find the windows partition, suppose it is volume number 1
if it has something in the Ltr column (e.g. D), exit diskpart and
switch to the directory (e.g. D:)
@sogaiu
sogaiu / gist:8bc7c0c8befacc61e2db6a6ae13d4788
Created February 29, 2024 06:59
scanner.c by size, small -> large
545 github.com/yuja/tree-sitter-qmljs/src/scanner.c
561 github.com/tree-sitter/tree-sitter-typescript/tsx/src/scanner.c
603 github.com/tree-sitter/tree-sitter-typescript/typescript/src/scanner.c
651 github.com/stsewd/tree-sitter-comment/src/scanner.c
659 github.com/ObserverOfTime/tree-sitter-xml/tree-sitter-dtd/src/scanner.c
910 github.com/tree-sitter/tree-sitter-ocaml/interface/src/scanner.c
917 github.com/gleam-lang/tree-sitter-gleam/src/scanner.c
956 github.com/leo60228/tree-sitter-pioasm/src/scanner.c
989 github.com/tree-sitter/tree-sitter-ocaml/ocaml/src/scanner.c
1008 github.com/stsewd/tree-sitter-rst/src/scanner.c
@sogaiu
sogaiu / functions-in-loops.janet
Last active February 29, 2024 02:33
investigating functions defined in loops
(disasm (fn [] (for i 0 2 (defn my-fn [x] (+ x 1)))))
# =>
'{:arity 0
:bytecode @[(ldi 0 0)
(ldi 1 2)
(clo 2 1)
(call 2 2)
(retn)]
:constants @[]
:defs @[{:arity 1