summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Wilkie <antigravityd@gmail.com>2023-09-21 18:30:31 -0500
committerDuncan Wilkie <antigravityd@gmail.com>2023-09-21 18:30:31 -0500
commit78c78126b8a0f3a666127cc7088844604e6f2456 (patch)
tree09e7115640f12da35eb970a9fe7fa56fff4aacf8
parent84b6d6c6a7e55a606373607c054906f95d0f4ad3 (diff)
Testing automatic git ops
-rw-r--r--.gitignore4
-rw-r--r--assets/.thumbnails/cv.pngbin0 -> 357618 bytes
-rw-r--r--assets/css/style.css~56
-rwxr-xr-xbuild-n-publish.sh5
-rw-r--r--dnw/forms.scm22
-rw-r--r--dnw/forms.scm~22
-rw-r--r--dnw/static-pages.scm3
-rw-r--r--org/actors/actors.org~37
8 files changed, 144 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..613514c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/assets/library/
+/gemini/
+/site/
+/posts/
diff --git a/assets/.thumbnails/cv.png b/assets/.thumbnails/cv.png
new file mode 100644
index 0000000..6025901
--- /dev/null
+++ b/assets/.thumbnails/cv.png
Binary files differ
diff --git a/assets/css/style.css~ b/assets/css/style.css~
new file mode 100644
index 0000000..5d197cd
--- /dev/null
+++ b/assets/css/style.css~
@@ -0,0 +1,56 @@
+html {
+ background-color: #0f1011;
+}
+
+pre {
+ font-family: Iosevka;
+ background-color: #292b2b;
+ border-radius: 0.5rem;
+ padding: 1rem;
+ overflow-x: auto;
+}
+
+body {
+ background-color: #1d1f21;
+ font-family: IBM Plex Sans;
+ color: #c5c8c6;
+ max-width: 54rem;
+ margin: 0.5rem auto;
+ position: relative;
+ padding: 1rem;
+ border-radius: 4px;
+ line-height: 150%;
+}
+
+img,
+picture,
+video {
+ max-width: 100%;
+}
+
+a {
+ outline: none;
+}
+
+a:link {
+ color: #81a2be;
+}
+
+a:visited {
+ color: #b294bb;
+}
+
+a:focus {
+ text-decoration: none;
+ background: #5a5b5a;
+
+}
+
+a:hover {
+ text-decoration: none;
+ background: #3f3f3f;
+}
+
+a:active {
+ color: #de935f;
+}
diff --git a/build-n-publish.sh b/build-n-publish.sh
index bcd0cdb..69a8bf0 100755
--- a/build-n-publish.sh
+++ b/build-n-publish.sh
@@ -49,4 +49,9 @@ cp $root/site/feed.xml $root/gemini/
rsync -r gemini/* root@$remotename:$remotedir
ssh root@functorial.xyz "systemctl restart agate"
+git add .
+echo 'Commit message: '
+read message
+git commit -m "$message"
+git push -v origin refs/heads/master\:refs/heads/master
# TODO: see if committing and pushing interactively here makes sense.
diff --git a/dnw/forms.scm b/dnw/forms.scm
index c163267..ba6d5a2 100644
--- a/dnw/forms.scm
+++ b/dnw/forms.scm
@@ -2,6 +2,7 @@
#:use-module (ice-9 peg)
#:use-module (ice-9 textual-ports)
#:use-module (ice-9 match)
+ #:use-module (ice-9 regex)
#:use-module (ice-9 string-fun)
#:use-module (srfi srfi-1)
#:export (forms.el->sxml))
@@ -15,7 +16,7 @@
;; but outputs an SHTML interface instead.
;; The necessary forms.el logic is basically:
;; - read in data from forms-file as lists based on field-separator value,
-;; - filter out the list elements according to forms-read-file-filter,
+;; - filter out the list nnelements according to forms-read-file-filter,
;; - replace the multi-line character with newlines,
;; - iterate over the list elements, setting up a proper execution environment (defining forms-fields/forms-enumerate),
;; - map over forms-format-list, replacing numbers with the corresponding field in the list element and evaluating code blocks,
@@ -133,7 +134,7 @@ SETQ < 'setq'")
(other other)))
-(define (forms.el->sxml control-file-contents data-file-contents extra-remapping)
+(define (forms.el->sxml control-file-contents data-file-contents extra-remapping result-edits)
(let* ((symbol-remapping (append extra-remapping
'((nil . ''())
(consp . pair?)
@@ -191,13 +192,25 @@ SETQ < 'setq'")
(eval format-entry (current-module)))))
forms-format-list))
""))
- split-data)))
+ split-data))
+ (edited-text-data
+ (map (lambda (record)
+ (fold (lambda (exp-sub-pair last-text)
+ (regexp-substitute #f
+ (string-match (car exp-sub-pair)
+ last-text)
+ 'pre
+ (cdr exp-sub-pair)
+ 'post))
+ record
+ result-edits))
+ textualized-data)))
`(div (@ (class "forms-carousel"))
(ul
,@(map (lambda (entry)
`(li (div (@ (class "form-entry"))
(p ,entry))))
- textualized-data)))))
+ edited-text-data)))))
;; TODO: explain that no modified characters can be parsed within the non-thrown-away variable settings.
;; TODO: explain that octal string escape characters will be parsed improperly/naively.
@@ -205,3 +218,4 @@ SETQ < 'setq'")
;; TODO: consider how to convert propertized string literals to HTML.
;; TODO: explain that check-number-of-fields must be set and each field the correct size.
;; TODO: add option for newline replacement character re-substitution.
+;; TODO: consider refactoring to build HTML trees, properly classed for styling and pruning purposes, rather than a raw string.
diff --git a/dnw/forms.scm~ b/dnw/forms.scm~
new file mode 100644
index 0000000..99813a7
--- /dev/null
+++ b/dnw/forms.scm~
@@ -0,0 +1,22 @@
+(define-module (dnw forms.el-to-html))
+
+;; Idea: function that takes in a git repository link pointing to something containing a forms file pair,
+;; and reads it in along with a mapping between whatever Elisp functions you use in forms-format-list
+;; and equivalent Scheme implementations (bc I can't figure out how to programmatically use Guile's Elisp support).
+
+(define (forms.el->shtml git-link))
+
+(define (forms.el-parse file)
+ (define-peg-string-patterns
+ "form-control-file <- (comment/whitespace/setq)+
+comment < ';' (!'\n')* '\n'
+whitespace < [\r\n\t ]+
+setq < '(' whitespace? 'setq' whitespace name-val-pair whitespace? ')'
+
+name-val-pair <- forms-file/forms-format-list/forms-number-of-fields/forms-field-sep
+/forms-read-only/forms-multi-line/forms-read-file-filter/forms-write-file-filter
+/forms-new-record-filter/forms-insert-after/forms-check-number-of-fields
+
+value <- string/quoted/
+
+"))
diff --git a/dnw/static-pages.scm b/dnw/static-pages.scm
index eab7e46..8e772e7 100644
--- a/dnw/static-pages.scm
+++ b/dnw/static-pages.scm
@@ -175,7 +175,8 @@
(p "The books I physically own, or want to own. I haven't quite digitized everything yet (just one moving box of like 4).")
,(forms.el->sxml (get-string-all (open-input-file "assets/library/library.el"))
(get-string-all (open-input-file "assets/library/library.tsv"))
- '())
+ '()
+ '(("====== Library Book ======\n\n" . "")))
(h2 "Blogs and Podcasts")
(ul
(li "Not Related"))
diff --git a/org/actors/actors.org~ b/org/actors/actors.org~
new file mode 100644
index 0000000..2ff6070
--- /dev/null
+++ b/org/actors/actors.org~
@@ -0,0 +1,37 @@
+#+TITLE: What Is An Actor?
+#+DATE:
+#+TAGS: Praxeology, Empiricism, Philosophy, Philosophy of Science
+
+I've been reading Mises' /Human Action/ recently, and engaging with the praxeological method. It's done wonders for my economic thinking, and stimulated some thoughts about philosophical and scientific frameworks in general. I've found Mises' lack of rigor in thought (compared to the mathematics and physics to which I'm accustomed) somewhat annoying; maybe this /Man, Economy, and State/ behemoth that's on the stack after HA will resolve that, or I'll be forced to do it myself. In any case, I've been thinking about what an "actor" in a Miscesian sense actually means, as that seems to be the obvious starting point for formalization.
+
+* Acting Man and His Problem of Perception
+
+I actually claim to be able to tackle the problem of knowledge in general from the perspective of human action, and therefore, develop a framework for analyzing all methodology. This starts from this analysis, how acting man perceives the world.
+
+Our favorite Robinson Crusoe washes up to his island with no memory. He encounters five fundamental givens, which together enable him to act:
+
+- Sensation,
+- Memory,
+- Thought,
+- Abstract thought[fn:1],
+- Unease, and
+- Agency.
+
+Sensation is the ultimate given; it is the substance on which thoughts act and of which memory is composed. It refers to particular /feelings/, in the strict sense: "input" to the brain's program, if one permits a computational analogy tortured all-too-easily. That which they happen to is "I." Memory is a collection of stored sensations not currently happening. Remembering itself is a sensation, and accordingly can be remembered—ordering the memory one remembers having by set containment yields a perception of time. The "I"s of these sensations throughout memory, ordered with respect to time, is the "self." Thought is the process of transforming, combining, manipulating, and producing sensation. It appears to be intentional and dynamical. It is a sensation itself. Abstract thoughts are a class of thoughts whereby the self identifies commonalities between sensations (happening across time, space, memories; across even abstract thoughts themselves) and concieves of that which is common as a sensation in itself, separate (although derived from) the sensations of first order. This can be things like "cup," "predator," "catallactics," or (after a couple thousand years of mathematical progress) "0." Unease is the sensation of there being some sort of grading or ranking on sensations (or, at least, on some of them). Some sensations are preferred to other sensations. Agency is the /belief/ that by thinking certain thoughts (including, but not limited to, thoughts inducing bodily responses) sensations engendering less unease may be made more common.
+
+These conditions are sufficient to meet Mises' prerequisites for action.
+
+They're also necessary for a mind to be capable of action (or, really, to be regarded as a "mind," I should think). For, what if our Crusoe has all but one? Each case leads to Miscesian "contentment or satisfaction." If he lacks sensation, then there is no "he," there is nothing for him to think on, there is nothing to perform action, nothing for his memory to record or his thoughts to abstract from. The case is vacuous. If he lacks memory, then even if he can think, sense, feel unease, and abstract, he is incapable of identifying temporal patterns through the abstract thought (which he may be nevertheless able to apply to information at hand in a particular instant), and accordingly unable to know that there existed an uneasy sensation he might otherwise avoid. As without thought there is no abstract thought, the next case is dispensed with for the same reasons. Without unease, there is no reason for him to prefer one particular sensation to any other, and so no reason for him to purposefully alter anything. Without agency he lacks, as Mises puts it, "the expectation that purposeful behavior has the power to remove or at least to alleviate the felt uneasiness," and so similarly lacks reason to take purposeful action.
+
+So, Crusoe takes action (by assumption). On the basis of his (confused, malformed, naïve) abstractions over sensation, he takes action designed to engender more propitious sensation. And inevitably fails. What is his recourse? Nothing, presuming he considers the entailing sensations to have less unease than those besetting him, other than reevaluating his abstractions and their suitability for his sensations on the basis of his memories regarding the action (those from before, the thoughts leading him to the action, and the sensation after). And so, he comes, through action, to optimize *perception*: the relation of sensations to abstractions.
+
+Perception always entails these two components. Without sensation, there obviously is no perception (what are you perceiving?). However, without abstractions there /also/ is no perception. With a raw sensation alone, there is /no/ way to decode the information into manageable components. How could I, without abstraction, deduce that the visual stimuli my brain is currently receiving support the sentence "there is a multimeter to the left of my computer monitor?" I must, on the basis of past experience deduce that material objects as such exist, and then that there are such objects called multimeters or computer monitors, that these objects have certain qualities that lead them to look certain ways, that abstract concepts like space, proximity, and direction exist, that "left" is one such direction, that it is that direction and not the other, and so on and so forth. And, importantly, not all sensations may be paired with all abstractions ("multimeter" seems not to be meaningfully related to "Turbo Lover by Judas Priest"). Even if I experience as bare a sensation I can think of, say "pain" with no further qualification, I must have the abstraction of the concept of pain, from past similar experience, to even note it as something deviating from the default.
+
+There are many conclusions one reaches in refining perception through action. Pretty quickly, one must realize that there are material objects that exist independent of your immediate sensing of them (object permanence). Less quickly, one might come to the conclusion that the abstract thoughts one has point to abstract objects independent of human experience (metaphysical platonism, a by-no-means-settled philosophical position). If one acts in the context of a society, one might learn the abstraction of language, and how to map sensations (including abstractions) onto words, or that other people exist whose input is sometimes valuable. These other people have acted in the past, have abstracted, related, and had that perception tested. Perhaps they've borrowed the perception of people still-older. Knowledge or classes of knowlege believed, on the basis of perception, to be inter-contextually or super-contextually useful in action is said to be "true."
+
+I therefore identify three approaches to increasing human knowledge (i.e. improving perception): finding new sensations, finding new abstractions, and improving the relation between the two, all on the basis of existing knowledge, in the interest of perfecting action's capacity to remove unease. The first may be termed "practice," or "experiment;" the second, "mathematics;" the third, "science." [fn:2]
+
+* Footnotes
+[fn:2] Note that this has the desirable epistemological property of characterizing fields of inquiry on the basis of eternal, /a priori/ categories of human experience, not on the basis of a particular methodology. This allows one to identify deeply historical developments as a primitive predecessor of modern understanding (e.g. myth as mathematics), and prevents the usual "No True Scotsman" nonsense that confounds traditional, analytical accounts of these fields on methodological basis. A reasonable criticism is that the additional things satisfying the definition merely confound terms; however, in arguing against those additional things, I believe you'll find their unsuitability for directing gainful action to be their ultimate rebuttal, and accordingly, it's more reasonable to consider them bad exemplars of the purpose they serve, common to their methodologically-developed analogs (and often derivatives) today.
+
+[fn:1] I use the slightly more unwieldly "abstract thought" as opposed to "abstraction" to avoid confusion in the final analysis, which adopts the platonist view that abstraction objects exist independent of human experience, as that which engenders abstract thought, just as material objects engender concrete sensation.