Hacker Newsnew | past | comments | ask | show | jobs | submit | hiAndrewQuinn's commentslogin

I keep toying with the idea of writing a cron that implements a Poisson process. Say I give it a parameter of 3600; our `pcron` would ensure the jobs occur randomly but average out to once per hour, making the timing of the next run independent of the last via the memoryless property of the exponential distribution.

The next sleep interval would be calculated probably as as t = -\lambda \ln(U) (where U is a uniform random variable). This way you ensure that the probability of the job firing in the next 10 seconds is the same whether the last job finished an hour ago or just five seconds ago. But \lambda remains the average amount of time between jobs.

It’s compelling to me because it solves thundering herd problems at the architectural level, and also because it simply seems like a lot of fun to have to code very defensively against such chaos. Switching back to a deterministic schedule after surviving such chaos probably leads to a much more robust system overall.


> making the timing of the next run independent of the last via the memoryless property of the exponential distribution

Nit: you’re not relying on the memoryless property here but just plain old independent sampling. You’re right that memorylessness means that the elapsed time since the last job provides no information on when the job fires next, but this is orthogonal to the independence of the sleep intervals.


This sounds like a really fun idea.


Merry Christmas to you too! I'm fixing an issue in /etc/networking caused by a non atomic write process. Friends don't let friends copy unguarded!

So my understanding is, what Mullvad is to VPNs, and what Tarsnap is to S3 (kinda), Servury is to entire VMs. It's a prepaid model, you get an account identifier, and that's basically it.

This is very cool. I have wondered for a very long time why such a site does not exist. What pops to mind is that you could get better unit economics reselling really small VMs to the privacy obsessed. I know some netizens who would pay a dollar a month for, say, a tiny NetBSD VM and 64 MB of RAM to serve their tiny static demoscene website of yore. There are some real wizards of there.

Not sure if that's in your roadmap but definitely something to consider in this space.


I'm moving into a cybersecurity-focused role, and I for one would be very interested in this. A vetting process makes total sense, but complete lack of access seems like a market inefficiency in the making that the one area where we can't reliably get the frontier models to assist us in pentesting our own stuff without a lot of hedging.

I have lived in Finland for the past four years, having emigrated from the US like the other poster here, and the WHR is a common punching bag topic amongst locals here.

The odd thing however is that when I ask them whether they think the average Finn is happy, they say absolutely not, but when I ask them whether they themselves are happy, most of the time I get a "oh this place is actually pretty great for weirdos like me, I just mean like, normal people would hate it here". But that's the thing: No one normal chooses to live in Finland!


I'm brazillian, moved to Finland 2 years ago to work here, and can confirm the sentiment.

If you ask a Finn, most people are actually quite harsh to the Finnish government, economy, etc - specially as of recent, since Finland now has one of the worst unemployment rate in EU. But lifestyle here is quite sober, everyone has hobbies and are quite dedicated to them. I guess the Sauna and Avanto culture are the main happiness drivers here, and tbh after experiencing it, I wouldn't change for anything else.


This is a fairly common discrepancy between how people perceive the mean/median of a property is compared to the mean/median of how they themselves are.

You see it in things like business confidence going in both directions at various times, pessimism when things are going well, optimism when things are going poorly.

It is very convenient in politics, because you can choose which figure to report to make it seem like you are saying the same thing but you can switch between them to make things look good (or bad l, depending on your attention)


Friend of mine moved from Australia to Finland, and loved it there. I can't imagine dealing with all that cold after Aussie's wonderful heat, but he loved it.

Happiness is found in different places for different people, thankfully.


Even when it is extremely cold like -50 Celsius, one can still walk outside for hours with sufficiently warm clothes. But try the same when it is +50. And then spending weeks in air-conditioned apartments was strictly worse for me than in a heated home during the winter. Plus there is no insects when it is cold. So my preference is for colder climate.


The thing is, in cold places, it is possible for the temperature to remain consistently cold for several days on end, day and night. In hot places, even if day time temperatures approach 50 degrees, at night the temperature will almost certainly be below 35 degrees. So you can always go out at night and be fairly comfortable temperature wise.

How is that any better? Go out only at night vs. go out at any time?

Yup, it's easier to dress for the cold than for the heat. Shorts & sandals only take you so far.


I've lived in both, and my face hurts in the cold. There's nothing quite like that amazing feeling of walking through warm air, feels like the atmosphere is hugging me :) I prefer the warm :)

I have a relative who decided to move up to Baffin Island and get into long-distance arctic trekking. She'd probably fit right in.


Played hockey with several Finns. They always seemed grumpy about something. The Norwegians and Swedes I played soccer with always had a more cheerful disposition. They always made fun of the Northern Finns, saying, "You'd be grumpy AF too if you had to deal with Winter for 7 months every year!"


I'm Norwegian, and the Norwegian stereotype of Finnish people used to be that they are dour and introvert. And we're by and large culturally a lot less outwardly cheerful to people we don't know than the Danes.

Sometimes Norwegian TV would show Finnish dramas while I was growing up in the '80s, and the standing joke was that the typical Finnish drama had two guys hiking through the forest, one of them saying something, and then half an hour more of hiking before the other would reply. I don't remember whether that was accurate (it's not as if I'd have kept watching), but I suspect not.


Unrelated, but this reminds me of Americans' opinions of their congresscritters: Congresscritters as a whole are a terrible, corrupt bunch, but your own congresscritter is amazing!


As a Finn, I can confirm this.


A similar thing was recently reported for Germany as well. When asked how they believe the average German is doing, most people answered something along "worse than me".


Finns are amazing!


Loistavaa, what a perfectly tailored comment for me, I have like 80% the thing for you at https://finnish.andrew-quinn.me/ . Unfortunately I'm all in on Anki but maybe these will sway you nonetheless.

Every 6 months I create around 5000 Anki cards out of the last 6 months for reading practice of the YLE Selkouutiset news, on a sentence by sentence basis: https://github.com/Selkouutiset-Archive/selkokortti

For raw isolated vocabulary my finfreq10k Anki deck can't be beat! https://ankiweb.net/shared/info/1149950470

But in your case, and for writing practice, you may also like https://github.com/hiAndrewQuinn/finyap , which is self-hosted in the sense that a new deck is just a CSV file in "scenarios".

Tsemppiä vaimollesi!


Fantastic tools you've collected here! My rationale for building own decks for my wife is that I'm intending to start slow and easy, and I'll build new cards that are closely tied to days' lessons I'm giving her. I'm hopeful that after a while she gains confidence to start going through premade decks. With anki and similar tools it's important not to just memorize words without having some handle on how to build sentences etc. I spent a lot of time learning Japanese that way, only to find that I maybe memorized words but to build sentences with them...


> I do not know how to respond to such situations.

>I am a professional problem solver.

As it so happens, you can probably apply the latter to solve your knowledge gap re/ the former.

Unless you don't actually consider it a problem, but a facet of your personality or something. Valid. But, if you are capable of applying that thinking to yourself, why are you not able to extend the same grace to others, and wait until you're asked for a solution?


You don't need CGO for SQLite in most cases; I did a deep dive into it here.

https://til.andrew-quinn.me/posts/you-don-t-need-cgo-to-use-...


Same here in Finland, and it just makes no sense to me at all. So often I will talk with someone who lives in a city here, and hear them complain about how brutally expensive it is, how nobody makes enough money to save anything, and a few sentences later they're telling me about how annoyed they are that they have to drive 6 hours every weekend to their $30,000 hut in the middle of nowhere to patch up the leaking roof or stuff more dried moss between the logs, and that they should have sprung for the $50,000 one that's only 90 minutes away. By car. In a country where gas is regularly over $10 a gallon. When they could get to work just fine on the bus.

We'll stick with our quiet little apartment and our free time and our growing savings accounts, thank you very much.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: