Carl Lerche

5.1K posts

Carl Lerche

Carl Lerche

@carllerche

Creator of @tokio_rs. Building Toasty, an ORM for Rust (https://t.co/1Fm2upgNyK). Prev: Cargo, Ruby's Bundler, and others. Ruby on Rails core team alum.

Portland, OR Katılım Nisan 2007
218 Takip Edilen6.4K Takipçiler
Carl Lerche
Carl Lerche@carllerche·
@tursodatabase Is Toasty good? This was just posted to Discord: "how you designed the relations with Deferred for everything then a nested Option or Vec etc... is amazing! It's very intuitive and works perfectly. Simply dropping Deferred to make the field always included is really simple"
English
0
0
4
629
Carl Lerche
Carl Lerche@carllerche·
A big Toasty release (async ORM for Rust)! The relation declaration API improved, added support for multi-step relations, update! macro with ops like increment / add / push, and support for @tursodatabase. github.com/tokio-rs/toast…
English
2
5
44
7.9K
Carl Lerche
Carl Lerche@carllerche·
@theojaffee Because they didn't want to get bumped into the next tax bracket. They would have gotten less money if they did that.
English
0
0
5
720
Theo Jaffee
Theo Jaffee@theojaffee·
Why didn't Anthropic just price their round at $1T for aura farming purposes?
English
52
24
1.8K
132K
Ryan Dahl
Ryan Dahl@rough__sea·
great for people submitting changes to deno
Ryan Dahl tweet media
English
6
5
152
12.9K
Carl Lerche
Carl Lerche@carllerche·
@MrJayLC #[repr(C)] is not unsafe. It has no impact on safety. It sounds like you have no idea how Rust works.
English
1
0
0
22
John
John@MrJayLC·
@carllerche now you're trading unsafe territory, my guy. :^)
English
1
0
0
18
Carl Lerche
Carl Lerche@carllerche·
I guess all this time I thought I was starting from "what do I want the CPU to do" while writing Rust, it was just a lie?
RustRover, a JetBrains IDE@rustrover

“Zig over Rust?” 👀 @VBragilevsky asked Andrew Kelley a simple question, and the answer turned into a very interesting take on language tradeoffs, tooling, and choosing the right tool for the job. Full interview in the comments 👇

English
25
6
115
24.1K
John
John@MrJayLC·
@carllerche You give way right here. I say "machine alignment", as in how close the language can mirror the underlying architecture with minimal sacrifices in convenience. You went right for the Rust:tm: safetyism of memory. The dabbling is just bandwagon and propaganda.
English
1
0
0
17
Christian Legnitto
Christian Legnitto@LegNeato·
@Leik0w0 @carllerche @vectorware Yep, that was me. Blog post soon(ish). We have two pillars, bringing CPU code to the GPU and writing advanced GPU-native code from scratch. Both relevant to your interests 😎
English
1
0
1
17
Carl Lerche
Carl Lerche@carllerche·
@nevgeniev @penberg You could make that argument, I would argue that it what rust does is fine for 99% case and there are libs for explicit allocs in collections, but that has nothing to do with the borrow checker or traits, or rust as a language.
English
0
0
0
31
nevgeniev
nevgeniev@nevgeniev·
@penberg @carllerche Ok. Flame mode on :). To me the main difference between these two languages is CARELESS allocs in rust vs fine grained allocs in zig. Talk me out :)
English
2
0
1
87
Carl Lerche
Carl Lerche@carllerche·
@MrJayLC My lord. Do you have any idea what is being written in Rust? I align my memory with ease when I need to. You think the Linux kernel would be adopting Rust if it were hard?
English
1
0
5
72
John
John@MrJayLC·
@carllerche If committees, marketers and decision makers get to make the choices, yes. Rust has (had?) branding, the "safetyism". But it turns out it's not that useful, and the most dangerous things are not about memory. Machine alignment is more important.
English
2
0
0
96
Carl Lerche
Carl Lerche@carllerche·
@thrawn01 I think Zig is great and there should be more programming languages in general.
English
0
0
1
93
Carl Lerche
Carl Lerche@carllerche·
@thrawn01 I think you didn’t read anything I said if you think I made a comment about Zig. I commented that it is none sense to try to claim that the language being adopted for infrastructure and OS kernels pushes you away from writing for the hardware.
English
1
0
1
203
Jane Manchun Wong
Jane Manchun Wong@wongmjane·
guys i feel like i’m not blending in well in portland :((
Jane Manchun Wong tweet media
English
19
1
332
38.7K
Carl Lerche
Carl Lerche@carllerche·
@penberg Someone should warn those kernel developers using Rust that they aren't thinking about the hardware.
English
0
0
0
182
Carl Lerche
Carl Lerche@carllerche·
@penberg It's why everyone is writing infrastructure with Rust. Because it forces you away from thinking about the CPU.
English
1
0
10
1.1K
Carl Lerche
Carl Lerche@carllerche·
I mean.. how does he say that with a straight face when Rust adoption is growing at the OS kernel level? You think Rust would be used in the Linux & Windows kernels if it forced you away from the hardware?
English
1
0
13
857
Carl Lerche
Carl Lerche@carllerche·
Or as Bjarne Stroustrup says, writing safe C++ is easy, just don't do anything wrong (paraphrasing).
English
3
1
32
1.9K
Carl Lerche
Carl Lerche@carllerche·
@RaykiruS You can just say "I don't like Rust". Totally legit. There is a reason Rust adoption is growing at the infrastructure level, including OS kernels. It isn't because it forces you away from the CPU. I don't think it would be used in Linux/Windows kernels if it did.
English
1
0
0
37
Raykiru Shiroyshi
Raykiru Shiroyshi@RaykiruS·
@carllerche As for the compiler translation point, rust is simply language leaning heavely into declarative code whereas zig leans more towards procedural: in declarative you write <what>, in procedural you write <how>. Is the difference between these 2 paradigms non-existant?
English
1
0
1
62
Carl Lerche
Carl Lerche@carllerche·
@RaykiruS You know that you don't have to write that, right? Not to mention, the *exact* same argument can be made with any language. You think any modern compiler emits asm that resembles anything you write? Only write ASM if you want to be close to the hardware at all times.
English
2
0
0
53
Raykiru Shiroyshi
Raykiru Shiroyshi@RaykiruS·
@carllerche ... the CPU know what lifetimes are? What ownership is? Bottom line is, with rust you don't tell the CPU what to do, you tell the compiler what result you want and it decided what to tell the CPU
English
1
0
0
45