Show newer

Lunchtime project: statically linked "web server" in C++ under 700KiB running on Cloud Run. I'm using almost no C++ features so this could probably be even smaller if it was plain C.

I used GitHub's container registry but it looks like Cloud Run wants to deploy from their Google Container Registry (of course). Oh, well.

This was meant to be a reply to @m455 but I have forgotten how to Mastodon. Sorry. Also funny that you mention it looks like Java because Java's `Map<String,Integer>` syntax is borrowed from C++ and implemented totally differently, but I also used it first in Java so I know what you mean. It's familiar but different.

Show thread

I might go to hell for comparing C++ templates to Lisp macros, but the line `class sorter : binary_function<product,product,bool> {` is basically mapping `first_argument_type` and `second_argument_type` to `product`, and the result_type to `bool`. So it returns a boolean, depending on if the first parameter's second part is bigger than the second parameter's second part.

`pair<string,int> = make_pair("hi", 10)` is just like a `("hi" . 10)` in Scheme.

So I followed this tutorial on how to write a text editor in C:

I called mine Ceditor and the little endorphin kick I got when it compiles was waaaay more satisfying than moving images and text around a website using CSS + JS.

So I'm learning C instead. Via books. Because it makes me feel good doing this. And I'm old and books are good.

I'm also going to be using my editor to write C as well. Something something dogfooding something something #smalltech

Been an absentee admin and just caught up with the local timeline and luckily nothing at all happened that I should have taken action on. Phew. Good job everyone!

Told my kids that Cake were early investors in Google and that’s why YouTube Music recommends their back catalogue so much. Diversifying away from weed and brass instruments. In a world where Mark Wahlberg owns car dealerships in Columbus, Ohio, this is totally feasible.

Had a pleasant weekend of making things and maintaining equipment. One of the things I did was fill the bottom of my mechanical keyboard's case with silicone for additional thonk. This meant losing the battery and going back to USB instead of Bluetooth.

Wow. I wasn't aware how much that tiny latency (BT) was making my computer less pleasant to use. I've gone back to a wired mouse, too. There's a lot of things that contribute to modern comps feeling slow, but this seems like one of them, for me.

@selfsame had to check more than once that this wasn't your post. it's so exquisitely on brand for you.

Every time there are fireworks my beagle makes for the nearest bed and pees. We’re not even in America so whyyyy are there fireworks tonight?

broke thru my burnout on the mud and refactored the crap out of the scripting language and database layer... i want to switch from flat files to sqlite and it turns out that all my preemptive abstraction guesses were wrong

but now the script language can do list expressions like

for @p in @here.players where @p.is_wizard do tell @p "Something strange is happening for wizards.";

Hah the auto white balance on my phone is correcting it to a kind of gray, but I assure you it is amber!

Show thread

Finally executed on the idea of an OpenGL shader that tints your whole X session amber. This way I can avoid buying an amber CRT from eBay that I do not actually need, just to tickle that nostalgia part of my brain and get it to leave me alone.

Shader gist is here:

@tinyrabbit I enjoyed your 90% uptime post on your gemlog! I host a bunch of stuff from home for similar reasons (including a mastodon instance).

I did the math on power consumption and decided to move backups to Amazon S3 (out of my house) /but/ I moved my compute from VPS to my basement because Ontario's power is only 33% fossil fuel and I'd rather use that power than dirty power + carbon offsets that most VPS providers run on.

I think Facebook and other modern social networking has given me as "gotta catch em all" philosophy. It's so easy to "collect" all the people I've know in life; on Twitter, on LinkedIn and on Facebook -- back when I used it -- but I wasn't doing any of the work to maintain those relationships.

When I left FB I thought I'd lose touch with some of those people forever. I probably have. Is it so bad that I no longer know how to contact someone from my primary school I haven't spoke to in 30 years?

Show thread

When shutdown, most of the regulars from there had moved to already -- but I still felt that maybe some old-timer who had gone away for a months and come back would not know, and we'd lose them to the community forever.

Then I didn't log on to for weeks, then months, then years, and finally it's now gone -- given that its whole community effectively migrated away, it must have just been a burden for the admins.

Show thread

And that's okay. We don't need a permanent archive of everything. I like this instance, but if something happens to me -- honestly it's way down on the list of things that I need to care for. And it's just an instance. Hopefully everyone on here would find some new place and reconnect with their friends. Some people might never make that leap. Sometimes that's how communities lose people. That has to be okay, too.

Show thread
Show older
Tiny Tilde Website

ttw is the unofficial Mastodon instance of We're only smol, but we're friendly. Please don't be a dick.