Readit News logoReadit News
STRiDEX commented on You can just port things to Cloudflare Workers   sigh.dev/posts/you-can-ju... · Posted by u/STRiDEX
mittermayr · 14 days ago
Just be super careful to understand what CPU time means before you go ahead and waste time on this. They don't immediately flag this, but once you go past a very, very very small time threshold on used CPU time, they'll start aborting requests. This does not happen (as harshly) on fully paid accounts, of course.

But since many are comfortably being dragged into the Cloudflare vortex through their otherwise generously free offers, you'll find that the Cloudflare Worker CPU time limitation can turn into a huge waste of time, after the fact, once you realize the worker code you converted a few days ago and you're all joyful about suddenly starts failing a few days later.

Addendum: Just to illustrate the moment where you'll trip over it: here it casually mentions the default minimum being 30s, without being clear that this *only* applies to paid accounts. Only further down somewhere there's a tiny mention of 10ms! https://developers.cloudflare.com/workers/platform/limits/#c...

Here is the only other mention of it: https://developers.cloudflare.com/workers/platform/pricing/

So, if your script can get by with a max of 10 milliseconds of CPU time per invocation (not runtime), you'll be fine. You will, however, and this is crucial, only realize this a few days in. They're taking the average and eventually cap you and it stops responding.

STRiDEX · 14 days ago
I've found the memory limits to block more of my projects than cpu time. They seem to send multiple requests to a single node/process and if you're making some sort of remix app it easily breaks with any kind of load.
STRiDEX commented on The $14 Burrito: Why San Francisco Inflation Feels Higher Than 2.5%   foglinesf.com/p/the-14-bu... · Posted by u/KothuRoti
STRiDEX · a month ago
The other thing i've noticed about burritos is that more places take card or apple pay now. When I moved to sf in 2015 many of them were cash only, same with bars. I always assumed some amount of cash was being shuffled under the table.
STRiDEX commented on PGlite – Embeddable Postgres   pglite.dev/... · Posted by u/dsego
guardian5x · 2 months ago
What is the advantage of using something like this instead of the IndexedDB Browser Feature
STRiDEX · 2 months ago
run your backend tests against this in memory and tests can be run in parallel instead of using a single real postgres instance
STRiDEX commented on Why use mailing lists?   mailarchive.ietf.org/arch... · Posted by u/cnst
teeray · 4 months ago
I set one up for our HOA as a unified conversation and notification platform. Everyone now has exactly one email address to remember to notify everyone of, say, a graduation party where there might be some extra cars. Nobody needs Facebook, or a Google account for Groups, etc. When people move, their addresses just get updated in the list.

The only trouble I had moderating it is people just love searching for whatever email was sent last to the list, necroing the thread and changing topics to whatever is on their mind. I had to set threads to auto-lock after a week or two of inactivity to force people to start new topics for things that are, well, new topics.

STRiDEX · 4 months ago
Our HoA uses google groups. Mild spam, but overall pretty good for threads. Too many people spam everyone asking for a plumber or whatever
STRiDEX commented on Node 20 will be deprecated on GitHub Actions runners   github.blog/changelog/202... · Posted by u/redbell
OptionOfT · 5 months ago
Very sad they went from 20 to 24. No 22.

OTOH I've been moving from native NodeJS actions to packing them in a Docker container to separate code from compiled code.

If you wanted to use Typescript for your action you always had a 2 step process because GitHub Actions required you to pack dependencies with ncc or vite or webpack.

This packaged version was subsequently committed to the main branch.

Technically I could do a composite action where I compile the typescript on the fly, but that was fragile last time I tried it.

STRiDEX · 5 months ago
What are you doing that requires checking in the compiled version. Esbuild takes like one second
STRiDEX commented on Tinycolor supply chain attack post-mortem   sigh.dev/posts/ctrl-tinyc... · Posted by u/STRiDEX
paxys · 5 months ago
You can run the exact same script locally as you do in CI, with the only difference being the addition of a 2FA prompt.
STRiDEX · 5 months ago
That's a good point, I would lose package provenance that way. I guess that is fine since it didn't prevent anything here.

I can look into that.

STRiDEX commented on Tinycolor supply chain attack post-mortem   sigh.dev/posts/ctrl-tinyc... · Posted by u/STRiDEX
Scaevolus · 5 months ago
I was confused too. Was it your npm token stored in angulartics2 as a Github Actions secret, so it could publish new angulartics2 versions?
STRiDEX · 5 months ago
Yes, exactly.
STRiDEX commented on Tinycolor supply chain attack post-mortem   sigh.dev/posts/ctrl-tinyc... · Posted by u/STRiDEX
bikeshaving · 5 months ago
> Local 2FA based publishing isn’t sustainable...

Why is local 2FA unsustainable?! The real problem here is automated publishing workflows. The overwhelming majority of NPM packages do not publish often enough or have complicated enough release steps to justify tokens with the power to publish without human intervention.

What is so fucking difficult about running `npm publish` manually with 2FA? If maintainers are unwilling to do this for their packages, they should reconsider the number of packages they maintain.

STRiDEX · 5 months ago
That's fair, I'm referring to the number of mistakes that happen with local publishing. Publishing the wrong branch, not building from latest etc

u/STRiDEX

KarmaCake day825June 1, 2012View Original