My first 40 subscribers came from direct friends and my LinkedIn network.
I got about 150 subscribers from a single popular post on Hacker News, posted here: https://news.ycombinator.com/item?id=43461618
The remainder have come from regular posting on BlueSky, Mastodon, LinkedIn, Substack notes, and starting to get search traffic from Google.
I've gotten no traction from Reddit (wow, the programming subreddits are so much angrier than every other subreddit where I contribute!) Twitter (seems like it's pay to play, which I won't do) or IndieHackers (I post milestones just for fun, but it hasn't amounted to anything).
I've found that I need to post twice a week to grow. I had a period where I was sick and was putting less effort into posts, and another period where I was dealing with a mortgage and had to post only once a week, and my subscriber growth treaded water instead of gradually growing. Even casual visitors to the site can tell the difference between moderate and minor effort.