Collecting my attempts to improve at tech, art, and life

2024-07-16

Tags: hackers-town look

Does any of this enlighten, entertain, or otherwise please you? Please consider a Tip. Every little bit helps!

I last updated this page

Activity Log

hackers.town: 2024-07-16 Tue 06:38

first tentative steps with a goroutine knocked export time from 1100ms to 784ms on the MBP (2200 ms -> 1400ms on Windows, 1400ms -> 960ms on Linux).

My brain hurts a little.

Was it worth it? For the current page count? On macOS not really. On Windows, yeah.

Considering the graph will only get more pages so hypothetically the benefit will increase over time, and I will want to run this export from whatever machine I’m sitting in front of, definitely.

hackers.town: 2024-07-16 Tue 07:41

We can politely describe my benchmarking process as “informal.”

I make the executable itself report elapsed time for a complete run (process args, import, clean export folders, export). I run it a few times and take the number that makes me happiest. If new code makes number go down, I give myself a cookie.

Then I get itchy for comparison and do the same before and after check on all systems (14" M1 Pro w/32GB RAM, dual boot PC w/ Intel i7-9700K and 96GB RAM running Win11 / EndeavourOS). That’s it.

Well – this morning I got itchy after committing, so I went into detached HEAD state to run from right before the relevant commit, then back to normal for after. And that was it.

If I’m particularly pleased with myself, I post numbers here, and then go “hey this should go in my notes too” and add an item to my daily journal.

hackers.town: 2024-07-16 Tue 08:03

@mia when I grumble about this I usually blame Facebook’s uniform profile pages discouraging folks from considering customization possibilities, and pixel-pushing CSS rules with a lot of !important discouraging folks from experimenting.

hackers.town: 2024-07-16 Tue 08:13

Thunderstorm and rain this morning.

Temperature up to 81F. Humidity down to 58%.

excuse me please yes i would like to speak to the manager

i ordered a “dry heat” and you have served me “muggy” again

hackers.town: 2024-07-16 Tue 09:16

The visiting family watching a news vlog which seems to mostly be collecting and discussing tweets about current events, which I’ve already explicitly referenced as a “bullshit review.”

If I want news, I’ll look for news. If I want spurious irrelevant opinions, I’ll listen to the voices in my head.

So I’m listening to #KEXP instead on my headset.

hackers.town: 2024-07-16 Tue 10:15

a couple more strategically placed goroutines and I’ve got export routinely hovering around 500ms on the Mac. If I want any better than that I’ll need to write actually good code.

Alas.

hackers.town: 2024-07-16 Tue 10:45

@masukomi the primary goal is to get comfortable with Go. The secondary goal is to simplify publishing my Logseq notes.

hackers.town: 2024-07-16 Tue 10:47

@masukomi well – “simplify”

Turn all my fiddly conventions and expectations into an automatic part of note export. This gets pretty fussy, as my expectations don’t meet those of the other Logseq note exporters I’ve encountered. Logseq’s a favorite target of mine for “do some fiddly learning.”

hackers.town: 2024-07-16 Tue 10:48

@masukomi you’d think so, but Logseq Org doesn’t export well without its own translation layer. And since it doesn’t get nearly as much attention as the otherwise equally problematic Logseq Markdown, I put more of my efforts on the Markdown side.

hackers.town: 2024-07-16 Tue 12:50

Published images have captions now – if their block has a caption property.

Getting closer and closer.

Browser view of an exported blog post about Logseq, including an image of a text editor with caption explaining that it’s the markup for that specific page

hackers.town: 2024-07-16 Tue 16:17

Go compiler giving me: “expected ‘;’, found string” on line 1300 (give or take)

problem was actually that I forgot a closing curly brace on line 1200 (give or take)

That’s a kind of syntax error I haven’t seen in a while, mostly because of writing Python. But also the admittedly few compilers I’ve toyed with in the last ten years have all been pretty good about “hey did you forget to close a block?”

hackers.town: 2024-07-16 Tue 18:25

Banner images are carried over, huzzah!

This works, and it’s fine, but I want to get some interactive capabilities in here that would be challenging with Hugo as the SSG.

Need to ponder.

A blog post about using Eleventy, with banner image of a broken wooden kitchen spoon with cookie batter still on it

hackers.town: 2024-07-16 Tue 19:17

@jamie that would be one of the more frustrated knitting posts I’m sure.

hackers.town: 2024-07-16 Tue 19:46

@thomasfuchs what you say is true, and also every reference starting with issue.* strongly suggests additional components can be extracted here and / or most of those chained logic output strings could be assembled up in the frontmatter.

They’re taking an awkward format and making it worse.

hackers.town: 2024-07-16 Tue 19:51

@thomasfuchs the part that hurts me to look at is Astro frontmatter is fully capable TypeScript. They can build their entire silly meme string up there and just { sillyMemeString } in the template body.

hackers.town: 2024-07-16 Tue 20:48

@thomasfuchs Page transitions, their db service — they’re always adding new stuff, and it doesn’t feel like the same effort has gone into solidifying the foundation since prep for 1.0.