Warning: Undefined array key 0 in /var/www/tgoop/function.php on line 65

Warning: Trying to access array offset on value of type null in /var/www/tgoop/function.php on line 65
184 - Telegram Web
Telegram Web
Interesting trick, but there are usually easier ways to do typechecks during macro expansion in more specific cases
Yeah, I know, I am guilty af 😂
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
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.
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.
Actually a cool idea
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.
Porting a function from Go to Rust. Is it like minus 10 lines of code?😁
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.
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
2025/06/19 11:40:29
Back to Top
HTML Embed Code: