ainzzorl
This is an absolute disaster for us. I can't imagine how and when we recover from this. The damage already made to our country is going to be devastating, and it's not even over yet. I even envy Ukrainians a little because they have a future (if they survive all this of course), and we don't.
Most people in my bubble, including myself, are strongly against the war. Many are fleeing the country. I'm currently on vacation abroad, and I haven't made up my mind if I'm coming back.
SWEs like myself probably are going to be the least affected by this because most of us can work for foreign companies just fine and make decent money, but most other people don't have this privilege and have nowhere to run. Generations of people are doomed to live in poverty because of decisions made by our genius of geopolitics. The old man actually thought we would win this war in 3 days and get away with it. I don't think he has a plan B. And I take his threats of using nuclear weapons very seriously.
While I blame Putin for most of this, I also think the collective West has gone mad too. The campaign to cancel, ban, boycott and belittle everything and everyone that has anything to do with Russia is out of control. People are not to blame for the actions their government. The talks like "let's hurt the regular people so they revolt against Putin" are just like that villain from Shrek: "Some of you may die, but it's a sacrifice I am willing to make".
This is what I love about it. When something works for me (and Goodreads does), I don't want it to change.
I don't find the comments in the original code distracting, but I do like your version better.
> I'm also curious why burst is consumed, then budget. I would expect _budget_ to be consumed first (with refill) with overflow into burst? My expectation is for burst and budget to have different refill schedules in auto_replenish, so using burst first would result in more failures by missing refill opportunities.
This behavior is documented in the public API [0], so whatever is the reason why it was chosen, I don't think it can ever be changed.
> I don't understand why OverConsumption is different to Failure. Both will result in throttling by the caller. The reason for the difference should be documented.
My understanding is this. If the number of tokens requested is greater than the remaining budget but less than the size of the bucket, the call is rejected and the caller is blocked until it has enough tokens. But if the number of requested tokens is greater than the size of the bucket, the caller will never have enough tokens. Instead of blocking the caller forever, the rate limiter lets the call go through, but then blocks the caller for a while to compensate for the over-consumption. Here's the handling [1]. I wish it was documented better.
[0] https://github.com/firecracker-microvm/firecracker/blob/fc2e...
[1] https://github.com/firecracker-microvm/firecracker/blob/2f92...
I wonder if Protobuf wasn't open-sourced by Google, that comment would've been replaced with a link to a design doc. Google docs weren't a thing in early 2000s when Protobuf was originally written though.
E.g. Lambda ("run your code" without "start a cloud server" and "turn it off"), ECS (runs containers, can run a standalone task too), Fargate, Batch... The "running JupyterLab in the cloud, with automatic timeout" use case is supported by AWS Sagemaker.
Disclaimer: I'm a former AWS employee.
Will it support only "basic" DynamoDB features (reading/writing records) or some "advanced" things too, like GSIs/LSIs, streams, fine-grained access control, TTLs, backups?
Code Catalog: https://codecatalog.org
Code Catalog – a collection of code examples from prominent open-source projects
It's empty for now, but I included a few examples [1] of what I'm going to annotate and add there.
I'm working on a slightly similar project motivated by this problem: how do you learn from established open-source projects - most interesting ones are too big, too complex, to hard to get started with.
So I'm compiling a collection of interesting code examples from open-source projects and explaining/annotating them. I'm trying to pick examples that are:
- Taken from popular, established open-source projects.
- Somewhat self-contained. They can be understood with little knowledge of the surrounding context.
- Small-ish. The can be understood in one sitting.
- Non-trivial.
- Instructive. They solve somewhat general problems, similar to what some other coders on some other projects could be facing.
- Good code, at least in my opinion.
I'm planning to share it in a few weeks.