Skip to content

Instantly share code, notes, and snippets.

@sogaiu
sogaiu / windows-11-ssd-free-space-wiping.md
Last active March 7, 2024 11:29
windows 11 ssd free space wiping

During the 1970s, before my life became politicized by horrible events, I was just going along making one extension after another for various programs, and most of them did not have anything to do with Lisp. But, along the way, I wrote a text editor, Emacs. The interesting idea about Emacs was that it had a programming language, and the user's editing commands would be written in that interpreted programming language, so that you could load new commands into your editor while you were editing. You could edit the programs you were using and then go on editing with them. So, we had a system that was useful for things other than programming, and yet you could program it while you were using it. I don't know if it was the first one of those, but it certainly was the first editor like that.

This spirit of building up gigantic, complicated programs to use in your own editing, and then exchanging them with other people, fueled the spirit of free-wheeling cooperation that we had at the AI Lab then. The idea was that

@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
@sogaiu
sogaiu / gist:453e20569d62f9817d7bfac45d56c008
Last active March 3, 2024 14:25
mendoza and spork/mdz comparison
* no :nav-title in `spork/mdz`?
* `spork/mdz` lacks:
* file-watching
* syntax-highlighting
* templating - but may be `spork/temple` is somewhat along those lines?
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 / mendoza-questions.md
Last active March 1, 2024 03:49
mendoza questions
  • how does :order work and can non-integers be used? based on mendoza/sitemap.janet, it seems like non-integers should be usable.

  • the watching seems a bit flaky -- i.e. making changes to .mdz files doesn't always appear to lead to regenerated content. at least with fswatch. inotifywait seemed to give better results. not sure if watchful would be better in some cases...eye works on windows and it seems to claim portability so that might be one path toward cross-platformness. though perhaps these remarks are more geared toward what janet-lang.org's repository might provide.

  • what do various files do?

    • mdz - cli with various subcommand (e.g. build, clean, server, watch, etc.)
    • mendoza/init.janet - connects other pieces and provides the init, clean, serve, build, and watch functions -- it's what mdz imports
  • mendoza/markup.janet - provides markup, a function that parses mendoza marku