TIL you can use `@entity.Attributes.Lambda.Function` to group messages from multiple different log groups. Useful when you need to analyze cold starts from many Lambdas with a single cloudwatch query.
Chris Cook
@zirkelc.dev
software engineer at heart ❤️ co-founder of http://flyweight.io aws community builder
Here's Lambdalet.AI - an AI-powered bookmarking and read-it-later service. It saves any page you're reading into your own Notion database — full text, fully searchable, zero fuss. I built this for the AWS Lambda Hackathon!
✍️ New blog post by Chris Cook Flatten Array of Arrays using JSONata for AWS Step Functions #aws #programming #tutorial #javascript
Flatten Array of Arrays using JSONata for AWS Step Functions
The Map state of AWS Step Functions returns an array of arrays as a result. For further processing,...
dev.to
If your using JSONata instead of JSONPath for your AWS Step Function workflow, here's how you can flatten an array of arrays:
It would be nice if there was a way to pause Lambdas while waiting for a HTTP response. Like fire of a few requests, the Lambda goes into hibernate and automatically resumes when all requests have concluded.
Using a reasoning model for coding feels like driving a sports car in stop-and-go traffic
Long lived AWS IAM credentials for the management console would be nice
Glad it's open source github.com/gskinner/reg...
GitHub - gskinner/regexr: RegExr is a HTML/JS based tool for creating, testing, and learning about Regular Expressions.
RegExr is a HTML/JS based tool for creating, testing, and learning about Regular Expressions. - gskinner/regexr
github.com
Looks like my favorite Regex testing site is down 😭 regexr.com
Looks like my favorite Regex testing site is down 😭 regexr.com
Site not found · DreamHost
The owner of this domain has not yet uploaded their website.
regexr.com
In 2011, there was an proposal to change the type of null `typeof null === null` Too bad it didn't get accepted web.archive.org/web/20160331...
harmony:typeof_null [ES Wiki]
web.archive.org
Maybe soon we can use response streaming from AWS Lambda with @trpc.io 👀 github.com/trpc/trpc/pu...
feat: support lambda response streaming by zirkelc · Pull Request #6680 · trpc/trpc
Closes #4474 🎯 Changes This PR adds support for AWS Lambda response streaming. Response streaming is only supported by Lambda Function URLs, not by API Gateway. I decided to add a new adapter awsLa...
github.com
I started a discussion for a new asymmetric matcher for @vitest.dev that checks if a property does not exist. Basically, the opposite of `expect.anything()`, could be named `expect.nothing()` Would love to get some feedback 🙏 github.com/vitest-dev/v...
Asymmetric matcher for property NOT exists (opposite of `anything`) · vitest-dev vitest · Discussion #7324
Hey, is there a way check if an object does not have a certain property? Basically, the opposite of expect.anything(): import { expect, test } from 'vitest' test('object has "apples" key', () => { ...
github.com
TIL `$*` captures all positional arguments into a space separated string You can abuse this for a Git alias to avoid typing the commit message in double quotes: `gc my commit message`
I can't emphasize enough how great this post about quantization is!
Next up, "A Visual Guide to Quantization"! Over 60 custom visuals explaining quantization of LLMs. Explore (a)symmetric quantization, dynamic/static quantization, post-training techniques (e.g., GPTQ and GGUF), quantization-aware training (e.g., BitNet 1.58b), and more! #llms #ai
It's funny, @sindresorhus.bsky.social has a package for literally everything I search for. I should probably prefix my Google searches with "site:github.com/sindresorhus/"
I wrote a follow up on this topic on @dev.to dev.to/zirkelc/type...
TypeScript CLI: Automate Build and Deploy Scripts
I would like to follow up on my previous post about TypeScript CLIs. Here's how I want to proceed: I...
dev.to
I like to build local CLIs for my monorepo to automate build and deploy tasks that require more than just a few commands executed as npm scripts. By combining pnpm, commander.js and tsx, I can create executable programs in Typescript: ./cli <command> All the magic is in the shebang.
Building and deploying a React app to a static hosting service like Amazon S3 and CloudFront is a good example for a CLI in TypeScript. Adding Listr2 and Execa to create an easily extensible CLI with `build` and `deploy` command. asciinema.org/a/DFlVSxmoWD...
untitled
Recorded by zirkelc
asciinema.org
I like to build local CLIs for my monorepo to automate build and deploy tasks that require more than just a few commands executed as npm scripts. By combining pnpm, commander.js and tsx, I can create executable programs in Typescript: ./cli <command> All the magic is in the shebang.
I always wondered how people create these beautiful terminal recordings. github.com/asciinema/as...
GitHub - asciinema/asciinema: Terminal session recorder 📹
Terminal session recorder 📹. Contribute to asciinema/asciinema development by creating an account on GitHub.
github.com
It's so funny how confident LLMs are when they make mistakes. The model generates invalid code. You specifically ask them about lines of code. The model confidently explains how it works. You give them the error. The model is like "Ah, you're absolutely right - I apologize for my mistake!"
What if `expect(obj).toMatchPrompt("...")` was a thing It's probably a stupid idea, but I couldn't resist and quickly implemented @vitest.dev custom matcher
I wish VSCode would accept S3 URLs Cmd+P, paste S3 URL, enter and it opens the file
I love how you can use TypeScripts' unique symbols as a parking spot for types 👀 Here's a simple query helper function to attach the result type to an object and infer it back later I've shared a complete example on @dev.to: dev.to/zirkelc/uniq...
Just found out about Microsofts' GenAIScript and not sure how to feel about it Anyone tried it yet? github.com/microsoft/ge...
GitHub - microsoft/genaiscript: Automatable GenAI Scripting
Automatable GenAI Scripting. Contribute to microsoft/genaiscript development by creating an account on GitHub.
github.com
Vitest v3 has just been released 👀 github.com/vitest-dev/v...
Release v3.0.0 · vitest-dev/vitest
Vitest 3 is here! There are a few breaking changes, but we expect the migration to be smooth. This release page lists all changes made to the project during the beta. For the migration guide, pleas...
github.com
I noticed that Vercels' popular `ms` pkg for converting time units to milliseconds uses 365.25 as a multiplier for the days in a year. I know this is to account for leap years, but is that the right assumption to make here? Effectively this means that `ms(1y) != ms(365d)` without ppl knowing it
Here's @tkdodo.eu original post where I saw this pattern for the first time. It's also the first time that using TypeScripts' `unqiue symbol` has made any sense to me. tkdodo.eu/blog/the-que...
Inspired by React Query's `queryOptions()`, I made a little helper to add the type of the parameter and the return type to the query definition (yes, I know about ORM). The next step would be to use template literal types to parse the parameters and return type from the query string.
Inspired by React Query's `queryOptions()`, I made a little helper to add the type of the parameter and the return type to the query definition (yes, I know about ORM). The next step would be to use template literal types to parse the parameters and return type from the query string.
I just stumbled upon `unbuild` from @unjs.io Bundling for ESM and CJS is already super easy thanks to `tsup`, but `unbuild` looks even nicer! github.com/unjs/unbuild
GitHub - unjs/unbuild: 📦 A unified JavaScript build system
📦 A unified JavaScript build system. Contribute to unjs/unbuild development by creating an account on GitHub.
github.com