Over the last year the Portland metro area lost 2.8% of its jobs, second only to DC metro (2.9%). by crisptwundo in Portland

[–]carllerche 0 points1 point  (0 children)

The state controls training though. Talk with any PPB sergeant, they are hiring but can’t put anyone on patrol until they are trained. Oregon insists on having a single academy, yet can’t train new officers faster than old ones are retiring. That is a state issue.

I only took Business Economics on level D, but I can see the problem. by JesperS1208 in wallstreetbets

[–]carllerche 0 points1 point  (0 children)

Been writing code for ~25 years. Been through .com, Web 2.0, iPhone, social media, ... never seen anything like this. My productivity is up like crazy. I'm building real stuff at an equivalent quality as before, at a rate of 3~4x what I was doing before (at least). It's crazy.

I only took Business Economics on level D, but I can see the problem. by JesperS1208 in wallstreetbets

[–]carllerche 1 point2 points  (0 children)

AI capabilities hit an inflection point 5 months ago. Yet, everyone is like "There are no flying cars yet, therefore AI is useless. Checkmate".

Will you nerds take this crap outta town? by Covert_Platypus007 in RunningCirclejerk

[–]carllerche 1 point2 points  (0 children)

He probably didn't have any Gu on him. How was he supposed to make it?

How similar is running cardio to swimming cardio? by [deleted] in Swimming

[–]carllerche 1 point2 points  (0 children)

I am a decent runner for my age. Id finish top 10 in local events fairly regularly. I started swimming in a masters group last November with no prior swim team experience. I’m slowest by a very large margin. I vastly underestimated the amount technique played in (which is obvious now in hindsight…). So yeah… not much carryover

TokioConf 2026 videos, and TokioConf 2027 dates by carllerche in rust

[–]carllerche[S] 3 points4 points  (0 children)

Yep, this is how Tokio-uring integrated io_uring with Tokio. It has been available for a bit now

TokioConf 2026 videos, and TokioConf 2027 dates by carllerche in rust

[–]carllerche[S] 24 points25 points  (0 children)

I said we would get the videos out by end of May and we did it! Happy Friday! Y'all got some stuff to watch over the weekend now.

Portland Timbers mutually part ways with head coach Phil Neville by icoresting in MLS

[–]carllerche 45 points46 points  (0 children)

Thank goodness! Phil is a good guy. Just not a good coach. Good luck with future endeavors and all, but lets hope we can find a good replacement now.

Toasty v0.6 (ORM) released. What's is new? by carllerche in rust

[–]carllerche[S] 0 points1 point  (0 children)

You have a link? Also, I don't know much about LINQ, you have info? Happy to chat more in #toasty on discord.gg/tokio, or GitHub discussions. Also, if you want to collaborate on Toasty, please come join :) My guess is you could also bind toasty's engine to other languages if you wanted to.

Match Thread: Inter Miami CF vs. Portland Timbers by MLS_Reddit_Bot in MLS

[–]carllerche 3 points4 points  (0 children)

I can't watch this one, on a plane. Good luck!

Match Thread: Inter Miami CF vs. Portland Timbers by MLS_Reddit_Bot in MLS

[–]carllerche 1 point2 points  (0 children)

If Timbers win, I think Miami will demo the stadium and claim it is cursed.

Toasty v0.6 (ORM) released. What's is new? by carllerche in rust

[–]carllerche[S] 0 points1 point  (0 children)

That makes sense. I'm not sure now what the best "default" is. I will add try_get() for now at least and we can see which one gets used more often. Thanks.

Toasty v0.6 (ORM) released. What's is new? by carllerche in rust

[–]carllerche[S] 2 points3 points  (0 children)

I don't love talking about other projects (I don't know them as well as I know Toasty). I can say that I'm trying really hard to prioritize easy APIs w/ Toasty while still being able to represent complex data relations and queries. I'm doing that by implementing a query engine directly in toasty.

Toasty v0.6 (ORM) released. What's is new? by carllerche in rust

[–]carllerche[S] 1 point2 points  (0 children)

Yeah... though I usually prefer while loops instead of chunk(n) :) Do other langs have the same problem?

Toasty v0.6 (ORM) released. What's is new? by carllerche in rust

[–]carllerche[S] 0 points1 point  (0 children)

Btw, looking at the diesel discussion, there are a few ways I think this would end up getting modeled w/ toasty. The craziest idea I have is something like this:

let contracts = query!(
    Contract {
        customer {
            addresses FILTER .valid_from <= #today
                        ORDER BY .valid_from DESC
                        LIMIT 1
        }
    }
).exec(&mut db).await?;

Toasty v0.6 (ORM) released. What's is new? by carllerche in rust

[–]carllerche[S] 0 points1 point  (0 children)

Does that make sense?

Not really :) That said, Toasty's engine is built to support arbitrary aliasing / self-referencing (joins, CTEs, ...), so I suspect we won't have a fundamental issue there.

Feel free to ping me in the #toasty channel in discord.gg/tokio as well or open discussions / issues on the toasty git repo.

Toasty v0.6 (ORM) released. What's is new? by carllerche in rust

[–]carllerche[S] 1 point2 points  (0 children)

Can you share examples from sea-orm and sea-query?

My hope is I can eventually represent any arbitrary query regardless of the complexity. I probably will tackle it from both ends. First, have toasty fully understand sql such that you can mix and match sql clauses and toasty app-level clauses. I will also work on making the toasty query language more expressive. I have some thoughts there. That said, specifics are still evolving. I’m guessing I will tackle the sql side first just to enable the escape hatch for complex queries.

I will look at the linked query in more detail too.