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

Earlier today I released a new version of https://thi.ng/fibers aka building blocks and operators for coroutine-based multitasking and alternative to async-await. It's one of the more recent packages, but also one which is quickly cementing itself as one of the most powerful & flexible tools of the whole collection, similar to how https://thi.ng/transducers & https://thi.ng/rstream have done in other contexts...

Recent versions have included new helpers to improve interop between fibers and async functions and to simplify time-sliced processing of child tasks and/or iterables (incl. via transducers).

The attached code snippet shows an example excerpt of how this is used in the recent (and even more recently updated) Mastodon UI demo. See linked toot for demo link & fully commented source code...

https://mastodon.thi.ng/@toxi/111069280667363259

whynothugo, to random
@whynothugo@fosstodon.org avatar

#zerocost #async: if a given codebase never waits for more than one event source (i.e.: if all futures are ancestors or descendants of all other futures), then no runtime overhead should exist when compared to a blocking implementation of the same logic.

.

JamieMagee, to dotnet

The result of the .NET green thread experiment is here:

https://github.com/dotnet/runtimelab/issues/2398

happyborg, to rust
@happyborg@fosstodon.org avatar

Async Rust is a Bad Language by Matt Kline.

Very good intro and thought provoking article on and , and their use in .

It champions 's model of concurrency which takes me back. Back to the time I failed to get funding for a start-up to build an compiler targeting i386. Which was largely a ploy to get the UK government to buy me some neat kit 🤷‍♂️

Anyway, here's the article:
https://bitbashing.io/async-rust.html

reactphp, to php
@reactphp@phpc.social avatar

Released v1.14.0 of our async Socket component! 🎉

With last month's Promise v3 release we can now take advantage of template types for promises, a better test suite and more. 🚀

https://github.com/reactphp/socket/releases/tag/v1.14.0

Happy weekend, enjoy! #async #php

katianakamura, to django

📢 It’s time… We are finally talking ! 🎉

In this article, we offload the work from our application and run tasks using Celery workers on Fly Machines! 🚀

https://fly.io/django-beats/celery-async-tasks-on-fly-machines/

schizanon, to AWS

I fixed https://schizo.social's auth; had to index my #dynamoDB with a composite primary key (#aws is an art)

I'm a bit stumped about what to work on next.

The load time for the timelines bothers me; it's still occasionally timing out just loading 20 toots from two servers. I feel like introducing a #webSocket is my only choice, but I don't like the idea of adding client-side rendering.

#webDev #programming #mastodon #client

schizanon,

Right now, when you visit schizo.social/timelines/home the server fetches from the API before rendering the page using @enhance_dev

I like that the page comes down populated with content so there's no further delay, but there's still a significant delay from waiting on mastodon, so it kinda defeats the purpose.

I could use enhance-element to render the toots on the client instead; either by making an #async #API request, or with a #WebSocket.

#enhance #webDev #javaScript

hrefna, to random
@hrefna@hachyderm.io avatar

Got tired of typing the same thing again and again.

hrefna,
@hrefna@hachyderm.io avatar

Why go through all of this trouble rather than just using the #JaneStreet resource_cache?

Well, a big part of it is that I wanted to build an actor system with #eio as I was learning #OCaml and that I think the actors will be useful elsewhere in the #JsonLD project :p

Another piece of it is that the docs on resource_cache ( https://ocaml.org/p/resource_cache/latest/doc/Resource_cache/index.html ) are not entirely clear and it roots into #async, which isn't a problem per se but I've been trying to stay as close to eio alone as possible.

sanicframework, to python

📣 Version 23.6.0 is out for:

  • Sanic
  • Sanic Extensions
  • Sanic Testing
  • Sanic Routing

Release notes: https://sanic.dev/en/guide/release-notes/v23.6.html

#PythonSanic #Python #async #programming

Stark9837, to python
@Stark9837@techhub.social avatar

I am busy messing around with #Python #async, for API consumption, but the API library isn't implemented with asyncio.

I can either fork the library and possibly switch its request object with an async version, but often we might not be able to do this and we need to work with blocking functions.

I struggled to get this working in my current code, so I tried it in another file and got it to work. There are still a few things I could change, allowing for more threads and using an executor, but here is the #gist

https://gist.github.com/e-dreyer/82196b2781b3ebc9429c8bb6607651ff

robertology, to php

What do people like these days for #async in #php?

Not "put in the queue to do later" like send an email

But "do this while I do other things and I'll integrate the results when you're done" like make a few API calls

#amphp or something else?

hrefna, to random
@hrefna@hachyderm.io avatar

Well I'm glad we cleared that up. #OCaml #Async

hrefna, to random
@hrefna@hachyderm.io avatar

So far the biggest challenges I've been having with #OCaml are:

  1. the sheer amount of syntactic conventions that aren't part of the language per se, but that are widely understood by libraries or interpreted a particular way (e.g. "you want a module with sexp_of_t declared" or "let+ usually means this even with no requirement…")

  2. Sets, maps, etc.

  3. Documentation that is basically just an API refererence but that doesn't tell me how to use it or what the calls actually… do.

hrefna,
@hrefna@hachyderm.io avatar
wyri, to php
@wyri@haxim.us avatar

Been putting the template annotations into @reactphp's async package. This will make PHPStan understand that when you await a PromiseInterface<bool>, the await function returns a bool. All with this amazing view:

wyri,
@wyri@haxim.us avatar

This excites me because PHPStan and Psalm now understand that echoing directly a property from the await function is perfectly fine and opens up a very exciting future for @reactphp based projects:

#php #async

reactphp, to php
@reactphp@phpc.social avatar

Released v1.10.0 of our async PromiseTimer component! 🎉

With last week's Promise v3 release we can now take advantage of template types, better error handling and much more. 🚀

https://github.com/reactphp/promise-timer/releases/tag/v1.10.0

Make sure to check out Promise v3 and enjoy #async #php!

reactphp, to php
@reactphp@phpc.social avatar

Happy birthday #ReactPHP! 🎂🎊

To celebrate, we're releasing Promise v3, the next big step towards the future ReactPHP v3. Now reporting all unhandled promise rejections, better type safety & much more! 🔥

See blog for details!

https://clue.engineering/2023/announcing-reactphp-promise-v3

Enjoy! 🥳 #async #php

reactphp, to php
@reactphp@phpc.social avatar

Released v1.6.0 of our async PromiseStream component! 🎉

Better forward compatibility with Promise v3 by avoiding unhandled rejections, improve memory usage and more. All in preparation for the upcoming ReactPHP birthday next week! 🚀

https://github.com/reactphp/promise-stream/releases/tag/v1.6.0

Enjoy! #async #php

hywan, to rust
@hywan@fosstodon.org avatar

Tree-Structured Concurrency, https://blog.yoshuawuyts.com/tree-structured-concurrency/.

A pretty nice and short explanation on what is tree-structured concurrency:

  • Cancellation propagation,
  • Error propagation,
  • Ordering of operations.

The article explains why those properties are important and how Rust can help on that front.

#RustLang #async #concurrency #safety

hds, to rust
@hds@hachyderm.io avatar

Yesterday we had a new release of the #TokioConsole crates. That's tokio-console 0.1.9 and console-subscriber 0.1.10.

Console is a #debugger for #async #rust!

There were fewer new features in this release, but plenty of improvements and fixes.

Let's have a look at what's in there!

#tokio #rustlang

hds,
@hds@hachyderm.io avatar

tokio-console 0.1.9 release: https://github.com/tokio-rs/console/releases/tag/tokio-console-v0.1.9 (1/2)

Help View

There's a new help view modal on all screens when you press ?. It only shows the control keys now, but that list of keys has been reorganized and may include features you didn't realize were available.

Improved documentation

The docs.rs page for tokio-console now includes a description of all the columns in each view: https://docs.rs/tokio-console/latest/tokio_console/

#tokioConsole #tokio #async #rust #rustlang

ctietze, to swift
@ctietze@mastodon.social avatar

ChimeHQ/AsyncXPCConnection: Concurrency support for NSXPCConnection https://github.com/ChimeHQ/AsyncXPCConnection

#XPC #async-await #Swift

reactphp, to php
@reactphp@phpc.social avatar

Released v1.3.0 of our async Stream component 🎉

Adds full support for PHP 8.1 and PHP 8.2, avoids unneeded syscalls, some test suite improvements and more.

https://github.com/reactphp/stream/releases/tag/v1.3.0

Happy weekend! 🍻
#nextgen #async #php

hywan, to rust
@hywan@fosstodon.org avatar

async-hal, https://github.com/matthunz/async-hal.

Async hardware abstraction layer for embedded devices, in Rust.

#RustLang #embedded #hal #async

hywan, to rust
@hywan@fosstodon.org avatar

After 132 commits and 6 reviewers, https://github.com/mozilla/uniffi-rs/pull/1409 is finally merged \o/.

UniFFI can generate bindings for Rust async functions/methods to Python, Swift and Kotlin, with native async runtimes (resp. asyncio, Task and suspend).

That’s really exciting! Rust Future being driven by a foreign language async runtime, that’s pure fun.

hywan,
@hywan@fosstodon.org avatar

And now, we have cancellable Future, https://github.com/mozilla/uniffi-rs/pull/1684. How fun :-).

#RustLang #FFI #Kotlin #async

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