Show newer

the use of <书社:link xlink:href="about:shushe?include=things/"> as a shorthand for doing a link with every file nested in things/ is definitely a little conceptually sus, especially once i get to supporting @xlink:show values other than "embed", but it is so convenient 😔

Show thread

the approach is to define a

<x:wrapper>
<书社:link xlink:href="about:shushe?include=things/" xlink:show="embed"/>
</x:wrapper>

which then gets all the files in $(INCLUDEDIR)/things/ and transforms to a

<书社:archive 书社:expanded="">
<html:article 书社:archived-as="index.html"><!--…--></html:article>
<!--…-->
</书社:archive>

not hard to do at all

Show thread

the thing with the approach of “treat everything as an include, create a conceptual archive containing the entire site, and then extract that into public” is that (1) being able to just xpath into any file at any time is actually extremely powerful, and (2) this does just mean loading your entire site into memory and doing every transformation on it all in one go

Show thread

this was a site with no scripting, to be clear

Show thread

they were doing source code transformations on typescript in there

Show thread

one time someone in fandom coders was complaining because their static site generator took like 10 seconds to rebuild their very simple site and i was just like “…what are they doing in there?”

Show thread

unrelatedly, i AM working on building a unified RDF/OWL ontology for my projects using ⛩️📰 书社 and it IS definitely stress-testing its capacity to handle “actual workloads”

jury is still out whether something complexly interconnected like that or something with Just A Lot Of Data (e·g a dictionary) will bog it down more

but i’m pretty sure it’s still faster than Any Static Site Generator

“just define a conceptual tarball and expand it” feels kludgy but solves like 95% of the situations where multiple files need to be produced from a single source file, more elegantly than anything else i’ve been able to come up with

Show thread

allllll of the “catalog”-related stuff in that makefile is going to be dropped, tho, and possibly also the subrepo approach in favour of expecting users to stich things together in the downstream repo

Show thread

basically i am leveraging the “expanded archive” functionality from ⛩📰 书社 to take this down to a single .xslt file, which really makes one wonder whether this needs a whole dedicated git repository, although i probably will keep it for the `make +category` functionality which is convenient and nontrivial

Show thread

git.ladys.computer/Caudex if you want to see the hard way of doing things before i finish up work on the easy way of doing things

if any homebrew maintainers follow me feel free to update those packages anytime

Show thread

(this is largely because homebrew is bad not because libxml2 and libxslt have recently cut a release or anything)

Show thread

no homebrew doesn’t even have them i have to build from source to check

Show thread

can’t believe this code only works in the latest versions of libxml2 and libxslt

@clarfonthey @eloy once people realized “oh, people can’t blog about this and run ads on their blog without violating cc nc”, a lot of people shifted away from using it (for non-software products), and by-sa effectively requires that any commercial product to also be freely distributable, so

@clarfonthey @eloy (cc by-sa is indeed considered a free license: <fsf.org/blogs/licensing/cc-by->)

the major problem with cc noncommercial licenses is that they preclude things like, for example, streaming using the application, making videos about the application, and other genuinely useful creative endeavours that you WANT people to be paid for aside from just literally repackaging the same exact product and turning a profit on it. of course, it can be argued (in the united states) that some of these uses are fair use, but it’s a lot more legally murky than a cc by-sa which allows any use so long as you ShareAlike

that's not to say by-nc-sa is Always Bad, but that it is definitely a compromise and you should carefully evaluate whether the good commercial uses you are forbidding are worthwhile collateral damage for the bad commercial uses you are trying to prevent

u·s·pol 

@jdp23 nothing against actors but teachers union is better, also

@coriander oh i was on the part of twitter which didn’t like kendrick for that line

@coriander well, fair would be if there weren’t billionaires to begin with

but it’s justice

Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.