From de3687b4b53cfbe0188309e3ea41de31ec769c92 Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 28 Jul 2026 15:40:18 -0700 Subject: redo date parsing stuff; add about section to homepage --- article-dates.lua | 31 ++++++++++++++++++++++--------- index.md | 42 ++++++++++++++---------------------------- make_html | 4 ---- template.html | 49 +++++++++++++++++++++++++++++++++++++------------ 4 files changed, 73 insertions(+), 53 deletions(-) diff --git a/article-dates.lua b/article-dates.lua index 72bdba5..df4e2a0 100644 --- a/article-dates.lua +++ b/article-dates.lua @@ -1,19 +1,32 @@ +local function parse_inlines(text) + return pandoc.read(text, "markdown").blocks[1].content +end + function Pandoc(doc) - local heading + local articles = pandoc.List() + local blocks = pandoc.Blocks({}) for _, block in ipairs(doc.blocks) do if block.t == "Header" and block.level == 1 then - heading = block - elseif heading and block.t == "Para" then - local date = pandoc.utils.stringify(block.content) - table.insert(heading.content, pandoc.RawInline( - "html", '' .. date .. "" - )) - heading = nil + local date = block.attributes["data-date"] + if not date or date == "" then + error("article is missing data-date: " .. pandoc.utils.stringify(block.content)) + end + + block.attributes["data-date"] = nil + + local label = pandoc.Inlines(block.content) + label:insert(pandoc.Span(parse_inlines(date), {class = "article-date"})) + articles:insert({pandoc.Plain({pandoc.Link(label, block.identifier .. ".html")})}) + + blocks:insert(block) + blocks:insert(pandoc.Para(parse_inlines(date))) else - heading = nil + blocks:insert(block) end end + doc.blocks = blocks + doc.meta["article-list"] = pandoc.MetaBlocks({pandoc.BulletList(articles)}) return doc end diff --git a/index.md b/index.md index 3a260dd..3c47448 100755 --- a/index.md +++ b/index.md @@ -2,8 +2,7 @@ pagetitle: yummers lang: en --- -# how do you evenly tile a column? -12 Jul 2026 +# how do you evenly tile a column? {data-date="12 Jul 2026"} While walking through town the other day, I saw a pillar that looks a bit like this: @@ -189,8 +188,7 @@ $$ e = 2r \tan{\frac{\pi}{n}} $$ -# histogram-preserving tri-planar projection -31 March 2026 +# histogram-preserving tri-planar projection {data-date="31 March 2026"} I've been messing around with Burley's "On Histogram-Preserving Blending for Randomized Texture Tiling" ([link](https://jcgt.org/published/0008/04/02/)) for @@ -242,8 +240,7 @@ The astute reader might find that just increasing contrast after the blend would produce a similar result, and I'm inclined to agree. The only possible advantage that this method has is that it doesn't demand fine-tuning. -# using linux as a desktop os in 2026 -9 Feb 2026 +# using linux as a desktop os in 2026 {data-date="9 Feb 2026"} About a month ago, my PC's boot drive died. I had been running Windows 11 with moderate dissatisfaction for a few months, so I decided to switch over to @@ -479,8 +476,7 @@ on Vulkan,~~* is what's keeping me from just deleting Windows. The Linux desktop is really good. You should give it a try. -# hemi-octahedral impostors -14 Jan 2026 +# hemi-octahedral impostors {data-date="14 Jan 2026"} *Note: this blog post is only like half way complete. I may or may not circle back to it. The stuff on octahedral mappings is all finished, but the @@ -768,8 +764,7 @@ wrong. *Note: I stepped away from this project and don't plan to revisit it soon. If I do, I'll post updates in a followup and link to it from here.* -# 6 wave dispersion relations with derivatives -21 Sep 2025 +# 6 wave dispersion relations with derivatives {data-date="21 Sep 2025"} Tessendorf's 2005 paper "[Simulating Ocean Water](https://people.computing.clemson.edu/~jtessen/reports/papers_files/coursenotes2004.pdf)" @@ -989,8 +984,7 @@ derivations of each derivative: Divide numerator and denominator by $\rho$ (or p in wolfram) to make them match. -# meow meow meow meow -10 Sep 2025 +# meow meow meow meow {data-date="10 Sep 2025"} meow meow meow meow meow meow meow meow'meow meow meow meow meow. meow meow meow meow. @@ -1103,8 +1097,7 @@ meow * meow meow meow meow meow meow meow meow meow meow meow, meow 8.8% meow meow meow meow meow ~55% meow meow meow meow. -# rasterized ray marching at scale -11 Jun 2025 +# rasterized ray marching at scale {data-date="11 Jun 2025"} I've long had the dream of creating high resolution chains on characters with raymarching. The problem is that Unity's object transform is based on the @@ -1357,8 +1350,7 @@ can correct for that in your SDF.) ![Visualize baked data in Unity.](./images/2025_06_11/fake_origins_39.jpg){width=80%} -# how much CO2 do American cars produce? -23 May 2025 +# how much CO2 do American cars produce? {data-date="23 May 2025"} TLDR: About $1.520 \cdot 10^{12}$ kg/year. This increases the CO$_2$ in the atmosphere by about $0.048$% per year. @@ -1489,8 +1481,7 @@ we have arrived at the same conclusion as the "entrenched academics": that the change in CO$_2$ in the atmosphere over the last 200 years is due to human activity. -# "big llms are memory bound" -22 May 2025 +# "big llms are memory bound" {data-date="22 May 2025"} There is wisdom oft repeated that "big neural nets are limited by memory bandwidth." This is utter horseshit and I will show why. @@ -1571,8 +1562,7 @@ In conclusion: bandwidth and compute dictate throughput in inverse proportion to model size. 3. People on the internet (especially redditors) are fucking stupid. -# meow meow meow meow -14 Apr 2025 +# meow meow meow meow {data-date="14 Apr 2025"} meow meow meow meow meow meow meow meow. meow meow meow meow, meow meow meow meow meow meow meow. @@ -1583,8 +1573,7 @@ meow meow; meow, meow meow meow meow meow meow meow. meow meow meow meow meow. meow meow meow. meow meow. -# riding crop -7 Apr 2025 +# riding crop {data-date="7 Apr 2025"} ![Image of a 3D model of a riding crop.](./vr_assets/riding_crop/cover_photo.jpg) @@ -1595,8 +1584,7 @@ the gumroad page for setup instructions. Gumroad suspended my account over this product. Yes, over a fucking *riding crop*. That's why it's hosted here. Enjoy the 100% discount <3 -# a panoply of frameworks -3 Apr 2025 +# a panoply of frameworks {data-date="3 Apr 2025"} I want to use electron. I know that raw CSS sucks dick so let's use a framework. Bootstrap sucks so let's use tailwind. Oh wait tailwind has a @@ -1611,8 +1599,7 @@ Good thing I actually read the electron docs. I want to die. -# electron first impressions -1 Apr 2025 +# electron first impressions {data-date="1 Apr 2025"} Occasionally I want to build some throwaway app for use by other people. CLIs are nice and all, but they're hard to launch from VR, and most people @@ -1647,8 +1634,7 @@ was around 30 MB with my entire STT app built in. Worse but IMO within the realm of reasonability. Time to first draw is pretty good - under a second according to the eyeball test. -# hello world :3 -20 Mar 2025 +# hello world :3 {data-date="20 Mar 2025"}