Better HN
topnewbestaskshowjobs
Log inSign up

andrewbarba

968 karma · joined Feb 22, 2014 (12y ago) · 129 submissions

Head of Engineering @BarstoolSports

Building @SwiftCloudApp

https://swift.cloud

https://github.com/AndrewBarba

http://abarba.me

Submissions

1.

Show HN: Specli – compile any OpenAPI spec to an agent optimized executable(github.com ↗)

1 points · by andrewbarba · 10mo ago · discuss

comment 1y ago · link · parent

This math doesn't account for the time it takes to get the water to a boil. Probably closer to 40% savings. Still, quite good!

3.

Amazon S3 Vectors(aws.amazon.com ↗)

48 points · by andrewbarba · 1y ago · 6 comments

4.

NPM blocking all packages with the word "camel"(status.npmjs.org ↗)

5 points · by andrewbarba · 1y ago · 2 comments

comment 2y ago · link · parent

Doesn't seem to work for me. I downloaded and ran on my Mac and proceeded to click the volume buttons on my iPhone but the count remains 0.

6.

Apple Rejects the Hey Calendar from Their App Store(world.hey.com ↗)

147 points · by andrewbarba · 2y ago · 77 comments

7.

Prettier 3.0: Hello, ECMAScript Modules(prettier.io ↗)

2 points · by andrewbarba · 3y ago · discuss

8.

The ChatGPT Memory Project(redis.com ↗)

3 points · by andrewbarba · 3y ago · discuss

comment 3y ago · link · parent

It will, most definitely, be end to end encrypted along with the rest of user data in the iCloud ecosystem.

10.

Deploy server side Swift applications on Vercel(swift.cloud ↗)

3 points · by andrewbarba · 3y ago · 1 comment

comment 3y ago · link · parent

Worth noting:

- We lost two tweeters (7 down to 5)

- We lost two mics (6 down to 4)

Really curious how the sound compares to the original.

comment 4y ago · link · parent

How could you possibly say this is doing it wrong? The only way you could batch requests in the way you describe is if you have 1 (or very small number) compute nodes. You would need all those requests to hit same node so you could try and batch. With serverless compute infrastructure (which is what this blog is demonstrating by using lambda) you can have 1 isolated process per request and therefore need a database that can actually handle this kind of load.

13.

Turbo – an incremental bundler and build system optimized for JavaScript(turbo.build ↗)

4 points · by andrewbarba · 4y ago · discuss

14.

Halide – iPhone 14 Pro 48mp RAW(twitter.com ↗)

3 points · by andrewbarba · 4y ago · discuss

comment 4y ago · link · parent

Love to hear that! Always feel free to reach out if you have any questions or run into issues.

comment 4y ago · link · parent

Thanks so much.

And short answer - Yes.

My guess is it's a matter of 'when' I have to deal with this. I've had the domain for a while, and this is something I've wanted to build for such a long time. Things fell into place when I was able to build a Swift SDK for Fastly's platform back in January this year. The stubborn engineer in me went ahead and used the domain anyway and launched what you see today.

comment 4y ago · link · parent

This is a shameless plug, but I built Swift Cloud to help people build scalable backends in Swift: https://swift.cloud

Behind the scenes we compile Swift to WASM and deploy to Fastly's edge network, Compute@Edge. At my day job we are using this in production and serving thousands of requests per second on our Swift app. Overall it's a lot of fun to deploy Swift on server, but the developer UX still leaves a lot to be desired. Running and testing locally is still non-trivial.

comment 4y ago · link · parent

Are there plans to release an HTTP API to make it easier to use with services like Fastly Compute@Edge and Cloudflare Workers? And if so would the API be global or region specific?

One thing I haven't seen with "serverless" databases is an easy way to dictate where data is stored. Mongo has a pretty clever mechanism in their global clusters to specify which regions/nodes/tags a document is stored in, and then you simply specify you want to connect to nearest cluster. Assuming your compute is only dealing with documents in the same region as the incoming request, this ends up working really well where you have a single, multi-region db, but in practice reads/writes go to the nearest node if the data model is planned accordingly.

A real world example of how I am using this in Mongo today: I run automated trading software that is deployed to many AWS regions, in order to trade as close to the respective exchange as possible. I tag each order, trade, position, etc. with the exchange region that it belongs to and I get really fast reads and writes because those documents are going to the closest node in same AWS region. The big win here is this is a single cluster, so my admin dashboard can still easily just connect to one cluster and query across all of these regions without changing any application code. Of course these admin/analytics queries are slower but absolutely worth the trade off.

19.

What’s New in Swift 5.7(hackingwithswift.com ↗)

1 points · by andrewbarba · 4y ago · discuss

20.

MongoDB Releases Queryable Encryption Preview(mongodb.com ↗)

120 points · by andrewbarba · 4y ago · 67 comments

21.

MongoDB Announces New Time Series Capabilities Coming for MongoDB 6.0(mongodb.com ↗)

4 points · by andrewbarba · 4y ago · discuss

comment 4y ago · link · parent

It's good for us too - we got proper Hikaru game recaps on YouTube.

comment 4y ago · link · parent

Is this something that could be exposed as a generic CLI tool to replace something like wasm-opt from Binaryen?

comment 4y ago · link · parent

Hah! We had the same idea.

comment 4y ago · link · parent

Kenji is an absolute legend in the culinary world. I highly suggest you checkout his youtube channel, his wealth of knowledge (backed by his own experiments) is simply unmatched.

comment 4y ago · link · parent

Wow thanks so much for pointing out the fixed length stream. I had been talking with a few people on your team and no one pointed me to that. That entirely solves our problem to getting things into production. Thanks a ton

27.

A real-world comparison between Cloudflare and Fastly(barstool.engineering ↗)

23 points · by andrewbarba · 4y ago · 5 comments

comment 5y ago · link · parent

Are we now saying donating unused things is inferior to donating things that could be used? I think this is a horrible take. Also two years since when? US had regular supply of vaccine only since March.

comment 5y ago · link · parent

One important piece missing from this article is that on Vercel you do not get global Serverless functions on any plan except the Enterprise plans. By default you can pick one preferred region for your Serverless functions and that's the region that's always used. In practice, assuming you have a somewhat decent caching strategy, this doesn't really matter as far as latency is concerned. Where it could potentially matter is that AWS region having an outage and now you can't fallback to another. We deploy all our functions to at least two regions and Vercel does handle region failover in this case.

Disclaimer: I'm a Vercel enterprise customer

12345