brennansv, to random
@brennansv@sfba.social avatar

Heard of function coloring? It is about async code.

hywan, to rust
@hywan@fosstodon.org avatar

Tasks are the wrong abstraction, https://blog.yoshuawuyts.com/tasks-are-the-wrong-abstraction/.

Another excellent article by @yosh. I still need to digest it; I reckon it contains many (great) ideas I agree with.

wyri, to php
@wyri@haxim.us avatar

Been putting the finishing touches on Bunny's transformation into #fibers PR. One of the major things for me there is visualizing the changes, especially the breaking changes. For example switching from a promise based API to a fibers based API:

#php @reactphp #async

kubikpixel, to webdev
@kubikpixel@chaos.social avatar
kubikpixel,
@kubikpixel@chaos.social avatar

Modern current code should run asynchronously if possible and useful. Slowly but steadily, it is being implemented in almost all popular programming languages, including WebDev.

»New Disposable APIs in Javascript«

🔧 https://jonathan-frere.com/posts/disposables-in-javascript/


#webdev #javascript #api #disposable #js #async #asynchrone #programming #code #moderncode #coding

janriemer, to rust

Clippy's lints for dealing with in :

https://rust-lang.github.io/rust-clippy/master/#/async

(Note, that this is just a search for the term "async" in the Clippy docs - there is no special "category" involved here).

janriemer, to rust

Currently reading "Asynchronous Programming in Rust" by Carl Fredrik Samson 📕

https://www.packtpub.com/product/asynchronous-programming-in-rust/9781805128137

I'm 1/3 through and so far I have to say it is really well written! :ferris:

⭐ ⭐ ⭐ ⭐ ⭐

#Rust #RustLang

janriemer,

"Now that we’re at the end I want to thank you for reading all the way to the end. I wanted this book to feel like a journey we took together, not like a lecture. I wanted you to be the focus, not me.

I hope I succeeded with that, and I genuinely hope that you learned something that you find useful and can take with you going forward."

I definitely learned a lot! And a journey it has been indeed! This book will be my go-to reference for all things in !

Thank you, Carl Fredrik! ❤️

toxi, to FunctionalProgramming
@toxi@mastodon.thi.ng avatar

Phew... One key step closer to replicating & simplifying core https://thi.ng/rstream functionality via just standard async iterables: Just added a mult() base-operator to https://thi.ng/transducers-async [1] which allows splitting a single async iterable into multiple child async iterables (aka subscriptions, aka 1:N splitting), each of which can be added/removed dynamically and individually processed e.g. via transducers, vanilla for await() consumers, and/or used as input for downstream mult()s to construct entire graph topologies (cycles allowed) of async processors etc. Back pressure is handled by waiting for all child subscriptions to deliver the value before consuming a new one from the source...

[1] https://github.com/thi-ng/umbrella/blob/develop/packages/transducers-async/src/mult.ts

toxi, to typescript
@toxi@mastodon.thi.ng avatar

For @made and others who might have questions about the new https://thi.ng/transducers-async library, I've tried to illuminate the behind-the-scenes approach over here:

https://github.com/thi-ng/umbrella/discussions/461#discussioncomment-9102966

alvinashcraft, to dotnet
@alvinashcraft@hachyderm.io avatar

My book on parallel programming & concurrency in C# is part of the Mastery of C# and .NET Awaits Humble Bundle from Packt Publishing

#PayWhatYouWant for up to 22 eBooks!

https://www.humblebundle.com/books/mastery-c-sharp-and-dot-net-awaits-packt-books?partner=morningdew
#ref #dotnet #csharp #programming #learning #ebooks #async #sale #visualstudio

toxi, to opensource
@toxi@mastodon.thi.ng avatar

Sorry for recent silence, if I can summarize most of my past two weeks or so:

"Async all the thi.ngs, what colud posibsyl og wrngo!" [1]

  1. New package https://thi.ng/transducers-async (restarted development after originally stopping it in 2018 due to lack of async iterable support)
  2. Updates to https://thi.ng/rstream (adapters from/to async iterables)
  3. Upcoming, a new & simplified implementation of https://thi.ng/csp (currently still only on a feature branch[2]) for building blocks for Communicating Sequential Processes.
  4. Also still WIP only, async iterable support for https://thi.ng/rdom, i.e. in the same way as rstream subscriptions, such async iterables can soon be directly embedded as component/element bodies or attribute values and then perform pinpointed DOM updates each time their value changes...

As I said, async all the thi.ngs...

[1] h/t @sjb3d for an ancient tweet with a similar sentiment & outcome :)

[2] The CSP package too was somewhat deprecated (for similar reasons) and a while ago I added another alternative CSP implementation via https://thi.ng/fibers, but that package too might see some more refactoring/simplifying by switching to async generators...

#ThingUmbrella #Async #Transducers #OpenSource #TypeScript #JavaScript

felixxm, to django
@felixxm@fosstodon.org avatar

Check out my article on options if you want to serve an app or explore the world of ASGI servers 🕵️‍♂️ :django: @flydotio

https://fly.io/django-beats/asgi-deployment-options-for-django/

reactphp, to php
@reactphp@phpc.social avatar

Just released v1.10.0 of our async HTTP component! 🎉

Today's release introduces our new PSR-7 implementation, better request validation, improves performance, fixes a few bugs and more. 🚀

https://github.com/reactphp/http/releases/tag/v1.10.0

Enjoy!

jbzfn, to rust
@jbzfn@mastodon.social avatar

🧶 Why choose async/await over threads? - notgull.net

「 Smart programmers try to avoid complexity. So, they see the extra complexity in async/await and question why it is needed. This question is especially pertinent when considering that a reasonable alternative exists in OS threads 」

https://notgull.net/why-not-threads/

jakelazaroff, to random
@jakelazaroff@mastodon.social avatar

i can’t make this and i have so much fomo 😩 hopefully it comes back next year
https://mastodon.social/@localfirstconf/112134556853219647

jakelazaroff,
@jakelazaroff@mastodon.social avatar
ihor, to programming
@ihor@fosstodon.org avatar

Even though I came to terms with async functions with years, I still can't shake the feeling that something wrong there. 😏

peterrenshaw, to webassembly
@peterrenshaw@ioc.exchange avatar

“WASI Preview 2: What WebAssembly Can and Can’t Do Yet”

light on technical details, worthy as a ‘heads-up’, quick read.

/ / / / <https://thenewstack.io/wasi-preview-2-what-webassembly-can-and-cant-do-yet/>

paulox, to python
@paulox@fosstodon.org avatar
shuttle, to rust
@shuttle@mastodon.online avatar

What are some underappreciated crates you think more people should know about?

janriemer,

@shuttle

Parsing crates:

chumsky | A library for humans with powerful error recovery

https://crates.io/crates/chumsky

winnow | making a breeze

https://crates.io/crates/winnow


Crates in the ecosystem:

pollster | an incredibly minimal async executor for that lets you block a thread until a future completes

https://crates.io/crates/pollster

smol | A small and fast async runtime

https://crates.io/crates/smol

alvinashcraft, to dotnet
@alvinashcraft@hachyderm.io avatar
wyri, to php
@wyri@haxim.us avatar
reactphp, to php
@reactphp@phpc.social avatar

Just published the first #ReactPHP v3 roadmap ticket 🎉

Will post more in the next days, excited to move forward! 🚀 #nextgen #async #php

https://github.com/reactphp/event-loop/issues/271

tapforms, to swift
@tapforms@mastodon.social avatar

#Swift can be so much cleaner and more concise than #ObjectiveC. Really digging the new concurrency syntax with #ASync and #await for working with #CloudKit. Now if only I could convert my entire project to this. But 16 years of development has lots of legacy code. But I am slowly modernizing some of it and writing new stuff in Swift and SwiftUI.

Objective-C language screenshot with code that fetches all the record zones from CloudKit

vees, to Software
@vees@epistolary.org avatar

In our latest development team working agreement someone added the item "If you're going to someone a question, don't write 'hi' and then wait for them respond, just send the question." Friends, I never felt more seen than in that very moment.

reactphp, to php
@reactphp@phpc.social avatar

v3 is going to happen 🔥

happyborg, to rust
@happyborg@fosstodon.org avatar

Calling web gurus.

I'm using the 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

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. 😅

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