reactphp, to php
@reactphp@phpc.social avatar

v3 is going to happen 🔥#nextgen #async #php

happyborg, to rust
@happyborg@fosstodon.org avatar

Calling #Rust web gurus.

I'm using the #reqwest crate to call two different APIs. One is working fine, the other I had working intermittently but not sure what fixed/unfixed it.

The issue is that the await doesn't return even though using curl works fine.

Why would await not return after a few seconds when the curl request returns immediately?

happyborg,
@happyborg@fosstodon.org avatar

This issue appears not to be a problem with the API or my code using #reqwest to access it.

The request stays pending indefinitely. I'm not sure why yet, that code is full of futures dragons, but it suggests that there may be a problem caused by how I'm using futures, maybe causing a deadlock under the hood.

Just guessing, but going to call the web API from the outer loop alongside the other futures threads rather than inside its own future, maybe use blocking
#async #Rust

happyborg,
@happyborg@fosstodon.org avatar

A timely blog from Tyler Mandry supports the possibility that my issue could arise from the way I'm using futures.

He mentions some facerakes which can occur using select! rather than merge! to combine futures so that's another avenue to pursue. Bonus: I will learn to produce more reliable async code.

Very interesting and commendable blog post on the state and future [cough] of #async #Rust:

https://tmandry.gitlab.io/blog/posts/making-async-reliable/

happyborg,
@happyborg@fosstodon.org avatar

As suspected the issue was not in the code I created to use remote web APIs.

The issue was that using the async function which polls the web APIs as a tokio::future was preventing the await on the web request from ever returning, even though the remote web API was responding correctly.

I fixed this by doing the polling of the my async function manually alongside the select! macro which handles the other two futures, all within a loop.

For my use case this fine. 😅
#Rust #async #futures

janriemer, to linux

What is io_uring?

https://unixism.net/loti/what_is_io_uring.html

"io_uring is a new asynchronous I/O API for Linux created by Jens Axboe [...]. It aims at providing an API without the limitations of the current select(2), poll(2), epoll(7) or aio(7) family of system calls [...]."

andycarolan, to random
@andycarolan@social.lol avatar

< has just updated his general CV/Resumé

If you have a need for an illustrator/designer and want a copy to look through, ping me and I will send it across.

I may add it to my site, but I'm conflicted about that... I'm not sure it's needed as my site says more about me and my work than a Resumé ever could.

#remoteworking #async

hywan, to rust
@hywan@fosstodon.org avatar

Announcing smol-macros, smol-hyper and smol-axum, https://notgull.net/new-smol-rs-subcrates/.

smol is my favourite asynchronous runtime. It’s nice to see it becoming more user-friendly (it was already easy before, it’s just simpler now).

#RustLang #async #runtime

janriemer, to rust

Yay! @notgull is working on smol integration with ! :awesome:

https://github.com/notgull/smol-axum

The smol runtime:
https://github.com/smol-rs/smol

is not the end-all-be-all runtime. You should keep looking at alternatives and what unique features they can offer. ✨

Don't be blinded by "if it is the most popular, it must be the best" fallacy.

frankel, to rust
@frankel@mastodon.top avatar

Announcing async fn and return-position impl Trait in traits

https://blog.rust-lang.org/2023/12/21/async-fn-rpit-in-traits.html

#Rust #async

paulox, to python
@paulox@fosstodon.org avatar
beandev, to rust German
@beandev@social.tchncs.de avatar

Common Mistakes with #Rust Async

https://www.qovery.com/blog/common-mistakes-with-rust-async

> "Let’s be honest, #Async Rust is hard. It has many more rough edges than Sync Rust and requires a different mindset, but it solves a problem space well, that is hard to tackle otherwise. It allows safer network concurrency than C++ Boost.Asio and I would start this post by giving a big thanks to the Tokio team & ecosystem for the amazing work they provide to the community."

janriemer, to rust

This thing will (probably) blow up 🚀

mfio - Framework for #Async I/O Systems:

https://github.com/memflow/mfio

"mfio is a one-stop shop for custom async I/O systems. It allows you to go wild, beyond typical OS APIs.[...]"

  • Async
  • Automatic batching (vectoring)
  • Fragmentation
  • Partial success
  • Lack of color (full sync support)
  • I/O directly to the stack
  • Using without standard library

#Rust #RustLang #RustAsync #AsyncRust #Memflow #IO

cslinuxboy, to php
@cslinuxboy@mastodon.social avatar

Using #RevoltPHP for one of my new projects. It's very nice working with #PhpFibers and not dealing with generators/promises as much. Can't wait for other #Async #Frameworks to start refactoring to use it more. I know #AmpPhp has added it to their HttpServer lib already.

#PHP

billseipel, to dotnet

The behavior for the List<string> seems... weird.

I'm not quite certain it has the SAME instance for each iteration of the ForEach .

#dotnet #async #csharp

reactphp, to php
@reactphp@phpc.social avatar

Next releases are live, introducing v4.2.0, v3.2.0 and v2.2.0 of our Async component 🎉

Today's triple release adds Promise v3 template types for all public functions, full PHP 8.3 compatibility and more.

https://github.com/reactphp/async/releases/tag/v4.2.0

Happy coding! 🍻
#nextgen #async #php

reactphp, to php
@reactphp@phpc.social avatar

Just released v3.1.0, v2.11.0 and v1.3.0 of our Promise component 🎉

This triple release contains PHP 8.3 compatibility, improved type safety and some test suite updates.

https://github.com/reactphp/promise/releases/tag/v3.1.0

Enjoy! 🍻
#nextgen #async #php

reactphp, to php
@reactphp@phpc.social avatar

Released v1.5.0 of our core EventLoop component! 🎉

Today's release contains performance improvements for PHP 7.2+, PHP 8.3 compatibility and some test suite updates.

https://github.com/reactphp/event-loop/releases/tag/v1.5.0

Enjoy! #async #php 🚀

cjoly, to rust
@cjoly@fosstodon.org avatar

One of the big pain points for me with #async #rust is the gap between async features and the rest of the languages. For instance, you need external crates for async traits and closures and the errors become unreadable once they involve those async traits.

This seems about to change: https://without.boats/blog/a-four-year-plan/
This is awesome, looking forward to it!

notgull, to random
@notgull@hachyderm.io avatar

Answering a frequently asked question: how do you do concurrent combinators in smol?

https://notgull.net/futures-concurrency-in-smol/

janriemer,

@notgull This is such a good blog post. I've learned a lot!

Thank you for sharing. ❤️

"The best part is that the allocation, the Vec<smol::Task<()>>, isn’t even necessary. It could be one-time allocation that is just extended to hold the tasks."

Wow, this is mind-blowing to me - I haven't even considered this before! 🤯

Memory-reuse FTW! :awesome:

For more visibility => #Rust #RustLang #Async #RustAsync #Smol

cincura_net, to dotnet
@cincura_net@mas.to avatar

Blogged: Mastering asynchronous code, threading and parallelism workshop and .NET DeveloperDays 2023

https://www.tabsoverspaces.com/id/233928

#dotnet #visualstudio #debugging #async #threads

erik, to rust

Lobste.rs comments for "Why Async Rust" by withoutboats -- https://lobste.rs/s/6fjkeh/why_async_rust the discussion around cancel safety, and why the tokio Mutex is a not-very-good-mutex is good - quite a few Experts ( @rain et al ) chiming in and proposing a new async mutex that lives in the Oxide repo https://github.com/oxidecomputer/cancel-safe-futures/pull/6

janriemer, to rust

Local Async Executors and Why They Should be the Default - by Maciej (June 2022):

https://maciej.codes/2022-06-09-local-async.html

#Rust #RustLang #Async #Asynchronous

hywan, to rust
@hywan@fosstodon.org avatar

Stabilize async fn and return-position impl Trait in trait, https://github.com/rust-lang/rust/pull/115822.

The PR has been merged!

#RustLang #async #trait

janriemer, to rust

1 Hour Dive into Rust - by Herbert Wolverson:

https://farside.link/https://www.youtube.com/watch?v=0HwrZp9CBD4
(or YT: https://www.youtube.com/watch?v=0HwrZp9CBD4)

This is probably the best end-to-end overview of you can get! So much valuable information packed into 1 hour. Love it!

Thank you @herberticus for this excellent presentation. 🙏

Boost this to the moon, my fellow Rustaceans! :ferris: :boost_love: The video is one month old and only has ~1,500 views.😬

how, to random
@how@s10y.eu avatar

@async published number 10

with news on , , and

https://ps.zoethical.org/pub/asynchroniques-10-2023-09

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • InstantRegret
  • mdbf
  • ethstaker
  • magazineikmin
  • cisconetworking
  • rosin
  • thenastyranch
  • Youngstown
  • GTA5RPClips
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • megavids
  • Durango
  • everett
  • tacticalgear
  • tester
  • osvaldo12
  • modclub
  • normalnudes
  • ngwrru68w68
  • cubers
  • Leos
  • provamag3
  • anitta
  • lostlight
  • All magazines