Eric Fredine
Eric Fredine
@fredine.bsky.social
Principal engineer writing code for fun and profit. Lapsed photographer. Husband. Father. Aspiring fly fisher.
253 followers787 following142 posts
The best abstractions tend to find new and unexpected uses.
Maybe template engines are just universally useful but I find it funny how Jinja, that I originally wrote for rendering HTML first survived for infrastructure scripting (YAML generation) after react killed most server uses, and now it's sitting well established in LLM land.
Eric Fredine reposted
Eric Fredine reposted
Eric Fredine reposted
Eric Fredine reposted
S3 gets *native* Iceberg support. 🤯 From the AWS blog: aws.amazon.com/blogs/aws/ne... We knew something like this was coming (bsky.app/profile/bene...), but it's an even deeper integration than I expected.
Something interesting is brewing in Iceberg-on-S3 land. 👀 lists.apache.org/thread/v7x65... cc @eatonphil.bsky.social
Eric Fredine reposted
I recently read this interesting article, "These languages are accumulating", about how different PLs generalize partial sums ([1, 4, 9] → [1, 5, 14]). Python has `itertools.accumulate`, Haskell has `scanl`, APL has the "outstanding" `\`. Some thoughts on this: jcarroll.com.au/2024/11/28/t...
The paper describing why it’s so fast is a good read: onlinelibrary.wiley.com/doi/10.1002/...
For a simplistic benchmark parsing on URLs from BBC, Ada is: > 4.6x faster than Rust's URL crate > 8.36x faster than cURL And, validating a URL is valid or not: > 6.59x faster than Rust's URL crate > 11.98x faster than cURL All of the benchmarks I've ran are available github.com/ada-url/ada/...
Lots of good responses - get in there and help out.
So what's everyone's favorite production-ready Rust crates for: * logging * err handling * observability/telemetry/metrics integrations * sql * anything else I'm missing for basic building blocks of a "backend" (not necessarily web) application #rust #rustlang (we'll see if these matter)
Eric Fredine reposted
✨ Curious which one companies use Rust? 🦀 Rust in Production: - list of companies use Rust - based on public information - not an exhaustive list github.com/ImplFerris/r... If you know anything missed(non-crypto), reply/pull request #rustlang
Eric Fredine reposted
A friend just DMed me that electrobun is on the front page of hackernews right now. What a great day. Feel free to upvote, and thanks whoever it was that submitted it ❤️ news.ycombinator.com/item?id=4219...
Eric Fredine reposted
Async in Rust doesn't even meet the critical criteria for the coloring problem in Bob Nystrom's original post: 🧵
i want people who get riled up about "function colors" to tell me whether they view the difference between `fn foo() -> String` and `fn foo() -> Result<String, Error>` to also be an example of problematic function coloring
Eric Fredine reposted
There's a "posts from your followers but not your mutuals" feed, which is very helpful for finding which followers you want to follow back. bsky.app/profile/jaz....
Fun with DuckDB
querying my bsky feed with @duckdb.org h/t @pedram.lol for doing something similar with the other site (1) get your user info: ``` create or replace table user_info as (select * from read_json_auto('https://public.api.bsky.app/xrpc/app.bsky.actor.getProfile?actor=matsonj.bsky.social')); ```
Eric Fredine reposted
Hyperlight is a library to execute functions as fast as possible while isolating them within a VM. Developers can use it to add server-less customizations to their application that are able to securely run untrusted code. Hyperlight is able to create new VMs in one to two milliseconds.
Hypervisor isolation is great for security, but not known for fast cold starts. Meet Hyperlight - an open source Rust library that can create new VMs in one to two milliseconds. opensource.microsoft.com/blog/2024/11...
Eric Fredine reposted
I set up a starter pack with #PyLadies on Bluesky - if you're also here and want to be included, let me know! I'm hoping to find more PyLadies over here ✨ bsky.app/starter-pack... @pyladies-bot.bsky.social
Eric Fredine reposted
New post! Materialized View turned one last week. 🎂 To celebrate, I wrote about what’s good and bad about DuckDB.
Eric Fredine reposted
Video of our #p99conf talk about cloud cost in the context of ML Feature Store: youtu.be/X7u3Q3tOG5U?... The cost topic is far broader than we managed to cover, tons of things have been left unspoken!
Eric Fredine reposted
This still seems like a pretty good place to consult when looking for Rust crates? blessed.rs/crates
Eric Fredine reposted
Interesting thread and promising that it’s developing here
I need *one* feature (the ability to unsafely create enums in-place with a "set discriminant" function) in Rust before I think I could make this happen, for postcard at least. Honestly though, I dunno how feasible doing another serde is. The need for trait impls in foreign crates is so high.
When I see static I think global variable because that’s how it was used in C and many languages that followed it. But that’s NOT what it means when used as ‘static lifetime in Rust. See also github.com/pretzelhamme...
I like this explanation of the ‘static lifetime. Lifetimes don't apply to types that don't borrow anything. So T: 'static will allow a type like String. It's not because String lives for as long as 'static but because it's not borrowing from any scope, so there's no lifetime limiting its usage.
In practice + 'static just means that temporary references are forbidden. It doesn't want things with a static lifetime. It wants to exclude temporary references, and these happen to always have less-than-static lifetime. From users.rust-lang.org/t/static-lif...
Eric Fredine reposted
allright I gave it a go: go.bsky.app/RtabAyB pls giff me feedback, I tried my best to go wide and varied but it's hard 🫠 (if you have self-noms pls dm them)
There is a lot of innovation happening in the Postgres eco system and it seems to compose? For example I suspect you could choose Hasura instead of Supabase if that’s your preference.
The best part is it just plugs into any postgres instance with logical WAL enabled (e.g. supabase). You just turn the zero server on, point it at your existing db, and you've got this incredibly simple reactive ORM thingy with optimistic updates and local caching built in.
Eric Fredine reposted
I've created a starter pack for all databases official accounts on Bluesky. Feel free to follow. If you notice any databases missing or accounts that aren't official, please leave me a message. go.bsky.app/Nd8hieE