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
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
Name squatting is a huge problem on crates.io Now also malicious intent was detected in some of the crates with popular names like
postgress - https://blog.phylum.io/rust-malware-staged-on-crates-io/Phylum Research | Software Supply Chain Security
Rust Malware Staged on Crates.io
Phylum routinely identifies malware and other software supply chain attacks targeting high-value, critical assets: an organization’s software developers. Most recently, we’ve reported on a flurry of sophisticated attacks targeting JavaScript developers, respawning…
😱9👍2🔥2👎1😁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".
Now it's basically "it depends" instead of a strict "no".
blog.rust-lang.org
Change in Guidance on Committing Lockfiles | Rust Blog
Empowering everyone to build reliable and efficient software.
👍7❤1👎1🔥1
So time for a bit of offline socializing. If anybody will be in Moscow on 7th of September - join us at a Rust meetup. I'll give a talk there on Async and Runtimes in Rust.
progmsk.timepad.ru
Rust — современный язык программирования / События на TimePad.ru
Винсент Амбо и Егор Ивков расскажут о проектах, которые они пишут на Rust. Доклады будут полезны и опытным Rust-программистам, которые хотят расширить свои горизонты, и Rust-новичкам, которые хотят погрузиться в язык и посмотреть, чего он стоит.
👍7🔥4👎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
Finally
Now it will be possible to write something like this:
async fn and return impl Trait are being stabilized!Now it will be possible to write something like this:
trait Foo {
async fn foo();
fn bar() -> impl Bar;
}GitHub
Stabilize `async fn` and return-position `impl Trait` in trait by compiler-errors · Pull Request #115822 · rust-lang/rust
Stabilization report
This report proposes the stabilization of #![feature(return_position_impl_trait_in_trait)] (RPITIT) and #![feature(async_fn_in_trait)] (AFIT). These are both long awaited featu...
This report proposes the stabilization of #![feature(return_position_impl_trait_in_trait)] (RPITIT) and #![feature(async_fn_in_trait)] (AFIT). These are both long awaited featu...
🔥16🎉3👍2👎1😁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.
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.
YouTube
Why Static Typing Came Back • Richard Feldman • GOTO 2022
This presentation was recorded at GOTO Copenhagen 2022. #GOTOcon #GOTOcph
https://gotocph.com
Richard Feldman - Functional Programming Language Expert & Author of “Elm in Action” @rtfeldman
RESOURCES
https://www.roc-lang.org
https://twitter.com/sw_unnoscripted…
https://gotocph.com
Richard Feldman - Functional Programming Language Expert & Author of “Elm in Action” @rtfeldman
RESOURCES
https://www.roc-lang.org
https://twitter.com/sw_unnoscripted…
👍15👎1😁1
It seems like OCaml will be the next (actually used) language to get a borrow checker - https://blog.janestreet.com/oxidizing-ocaml-ownership/
Jane Street Blog
Oxidizing OCaml: Rust-Style Ownership
OCaml with Jane Street extensions is available from our public opam repo. Only a slice of the features described in this series are currently implemented.
🔥6👍2❤1👎1
I will be speaking at RustCon Moscow this Friday. So I am looking forward to meeting you there! The conference will be also streamed online, though you'll still have to acquire a ticket to join the stream.
🔥11👎1
Forwarded from RustCon - конференция по языку программирования Rust
Многие rust-разработчики уже имеют опыт работы с асинком или как минимум читали асинхронный код. Но практически всегда используется готовый рантайм, чаще всего tokio.
Ведущий разработчик Picodata Егор Ивков расскажет, как получилось, что им пришлось писать собственный асинк рантайм и набор примитивов для работы с ним. И как этот рантайм оказался построен поверх совершенно другой концепции многозадачности — файберов.
Приходите 1 декабря на RustCon 2023, чтобы услышать его доклад «Case study: Rust Async on Top of Fibers
(Bringing 2 concurrency patterns together)».
Егор не только опытный Rust-разработчик, но и опытный спикер: в 2022 году он уже выступал на RustCon с докладом. Так что будет вдвойне интересно побывать на его новом выступлении.
Конференция RustCon состоится 1 декабря 2023 года в Москве, будет организована онлайн-трансляция. Билеты можно купить на сайте.
Ведущий разработчик Picodata Егор Ивков расскажет, как получилось, что им пришлось писать собственный асинк рантайм и набор примитивов для работы с ним. И как этот рантайм оказался построен поверх совершенно другой концепции многозадачности — файберов.
Приходите 1 декабря на RustCon 2023, чтобы услышать его доклад «Case study: Rust Async on Top of Fibers
(Bringing 2 concurrency patterns together)».
Егор не только опытный Rust-разработчик, но и опытный спикер: в 2022 году он уже выступал на RustCon с докладом. Так что будет вдвойне интересно побывать на его новом выступлении.
Конференция RustCon состоится 1 декабря 2023 года в Москве, будет организована онлайн-трансляция. Билеты можно купить на сайте.
👍12👎1
Hey! Happy New Year everybody! I wish you to have lots of inspiration and energy for everything you do next year!
🎉14❤4👍1👎1