Eric Fredine
fredine.bsky.social
Eric Fredine
@fredine.bsky.social
Principal engineer writing code for fun and profit. Lapsed photographer. Husband. Father. Aspiring fly fisher.
Zig will be remembered as the language that inspired comp time programming in Mojo.
June 12, 2025 at 12:52 AM
Mojo has dependent types. What are the programming language nerds not all over this?
June 12, 2025 at 12:20 AM
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.
January 8, 2025 at 8:55 PM
This is the way
The #1 skill for delivering ML models at an eye watering pace is setting performance goals.

The goal is not to build the best model. The goal is to build a model that beats the status quo, and get it in production as fast as you can.

It works like this:
December 28, 2024 at 9:31 PM
Reposted by Eric Fredine
been wondering why software transactional memory never really took off

on one hand, when contention is low, you can just use a big lock and everything works out

when contention is high, well, stm will have performance cliffs that are hard to understand, predict, or prevent
December 10, 2024 at 11:07 PM
Reposted by Eric Fredine
Zero reward for the white supremacist killer who murdered a teen in Manhattan the same day. Yeremi Colino does not matter to these people.
December 7, 2024 at 9:45 PM
A typical sass app should use foreign keys.
December 5, 2024 at 3:52 AM
Reposted by Eric Fredine
Hey, for anyone processing the Bluesky #firehose, here are a couple open-source libraries you might want to look at. They both give you a thing you can push "patterns" at and then feed JSON blobs and it tells you which patterns matched. Why is this interesting?
December 5, 2024 at 2:54 AM
Reposted by Eric Fredine
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.
December 3, 2024 at 5:49 PM
We completed 100% of our commitments in the last quarter.
This is, technically, a sandwich.
December 1, 2024 at 7:25 PM
Reposted by Eric Fredine
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...
These Languages are Accumulating
I keep saying that the more programming languages you know, the more you will understand all the others you know - I’m now at the point where I want to solve every problem I see in a handful of differ...
jcarroll.com.au
December 1, 2024 at 6:04 PM
Fun variation on the theme. Will have to give a go tomorrow.
December 1, 2024 at 4:34 AM
The paper describing why it’s so fast is a good read: onlinelibrary.wiley.com/doi/10.1002/...
December 1, 2024 at 1:07 AM
Best explanation of pivot tables ever - a shorter and fatter group by that gives you data you can graph.
I used to have trouble with pivot tables. Eventually I came to understand that pivot is just shorter, fatter group by — explained at greater length here: gregat.es/pivot-shorte...
November 24, 2024 at 4:57 AM
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)
November 24, 2024 at 2:25 AM
Reposted by Eric Fredine
✨ 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
GitHub - ImplFerris/rust-in-production: Rust In Production
Rust In Production. Contribute to ImplFerris/rust-in-production development by creating an account on GitHub.
github.com
November 23, 2024 at 3:10 AM
This is huge and a great credit to all the people contributing to the project.
November 22, 2024 at 1:53 AM
What a cool idea.
Very cool #DuckDB MACRO generating Mermaid Entity-Relationship diagrams from your database schema, loaded in seconds using the DuckDB webMacro Comunity Extension

Inspired by @rotnroll666.bsky.social @duckdb.org
mermaid.sql
mermaid.sql. GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
November 21, 2024 at 3:03 PM
Reposted by Eric Fredine
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...
Electrobun: Cross-platform desktop applications written in TypeScript | Hacker News
news.ycombinator.com
November 21, 2024 at 3:03 AM
Reposted by Eric Fredine
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
November 21, 2024 at 12:22 AM
Reposted by Eric Fredine
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....
November 20, 2024 at 2:46 PM
This seems worth tracking - especially the Postgres plugin.

Also a testament to the power of SQL.
chris.blue Chris @chris.blue · Nov 20
This does make me wonder: are we on the cusp of many, many IVM implementations? If so, gives me strong vector search vibes. Useful, but, "is this a feature or a product," uneasiness.
In my POV, there was a decades long barrier to doing IVM well that the DBSP paper crossed (which is the foundation behind Feldera's IVM engine). You can learn more here: github.com/feldera/feld...
November 20, 2024 at 3:04 PM
This is an interesting use case and introduced me to a bunch of new features.
November 14, 2024 at 3:24 PM
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'));
```
November 14, 2024 at 12:36 AM
So in Rust Box::new($expr) de-sugars to something like:

let tmp = $expr;
let p = alloc(Layout::new::<typeof!(tmp)>());
p.write(tmp);
p

I suppose it’s obvious it would need to be like this but also blows my mind and makes me realize I didn’t really understand what was happening.
November 11, 2024 at 12:05 AM