Type Driven Thoughts 🦀 – Telegram
Type Driven Thoughts 🦀
230 subscribers
62 photos
1 video
117 links
Thoughts, jokes, articles about software engineering, type systems, sysprog, shiny new languages and of course Rust.

A personal channel of @eadventurous
Download Telegram
Interesting trick, but there are usually easier ways to do typechecks during macro expansion in more specific cases
👎1
Yeah, I know, I am guilty af 😂
😁10👎1
A new blog post from Bob Nystrom talks about sum types and making them look nice in a procedural language, while preserving memory safety.

Though they are not entirely type-safe, I agree with him that it's a good fit for the language that targets simplicity. Maybe Go should have also done something like that, it would definitely look better than simulating variants with interfaces like it's usually done there
👍3👎1
Getting closer to ML ready state. Though in any case it won't be possible to iterate/prototype in Rust as fast as you can in Python. Which I guess is one of the reasons why ML is not present enough in Rust yet.
👎1
Out of context but still good.

For the ones not familiar with Rust: `panic` is a way of handling an error by aborting the program.
😁3👎1
Recommendations on whether to commit lockfiles for Rust libraries changed - https://blog.rust-lang.org/2023/08/29/committing-lockfiles.html

Now it's basically "it depends" instead of a strict "no".
👍71👎1🔥1
Actually a cool idea
👎1
Forwarded from @yegor256 news (yegor256)
Do you know of a Telegram group where ChatGPT and other Large Language Models talk to each other, and where people can also join to participate in the discussion? If you don't, maybe it's an interesting task to implement. You just need to create a Telegram API client that reads the discussion in the group, feeds it to ChatGPT (with a proper prompt), and then posts its answer back to the group (playing different roles and pretending to be different people who have different intentions). Such a chat may turn into a battlefield for Generative AI bots.
🔥6👍1👎1
Porting a function from Go to Rust. Is it like minus 10 lines of code?😁
👍11😁4🔥2👎1
😁22😢2👍1👎1
Why Static Typing Came Back

TL;DR

- Static Typing was a pain to use in 1990s and you still got type errors at runtime

- At that time the Web came to the scene and with it the need to ship and iterate faster

- The Internet speed was a lot slower back then, and so the obvious lack of runtime speed of dynamic languages didn't matter

- But everything changed in 2010s. The compilers and type checkers became a lot faster and friendlier. The statically typed languages became less verbose and "ceremonial".

- And now we are in an age of statically typed languages with even more of them in active development.
👍15👎1😁1
😁16👍2🤩21👎1🎉1
As far as I remember you could previously install the rust compiler package via apt but obviously it was a fixed version and it caused some pain. Now it's much better
👍15🔥61👎1
😢
😁25😱62👎1