happyborg · @happyborg
431 followers · 3447 posts · Server fosstodon.org

Async Rust is a Bad Language

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:
bitbashing.io/async-rust.html

#concurrency #parallelism #rust #TonyHoare #csp #occam #rustlang #async

Last updated 1 year ago

Dimitris Evgenidis · @GCodergr
9 followers · 12 posts · Server mastodon.gamedev.place
Felix 🇨🇦 🇩🇪 🇺🇦 · @fst
15 followers · 559 posts · Server mstdn.io

Great overview of frameworks. I still like the framework as works with minimal code changes and no need for additional libs (just run 'apt search python3-aio' to see what I mean). The monkey patching still feels like magic fairy dust to me.

bitecode.dev/p/asyncio-twisted

#python #async #Gevent #asyncio

Last updated 1 year ago

Kátia Nakamura · @katianakamura
69 followers · 14 posts · Server fosstodon.org

📢 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! 🚀

fly.io/django-beats/celery-asy

#celery #async #django #python #tasks #machines

Last updated 1 year ago

postmodern · @postmodern
1323 followers · 1975 posts · Server ruby.social

Seems to work, but could use some syntactic sugar:

if @var
@var.value
else
@var = Async::Variable.new
value = # do work
@var.resolve(value)
return value
end

rubydoc.info/gems/async/Async/

#ruby #async

Last updated 1 year ago

postmodern · @postmodern
1323 followers · 1975 posts · Server ruby.social

Am I correct in assuming that Async::Variable can be used to safely wrap around `@ivar ||= ...` logic in multi-fiber async code?
rubydoc.info/gems/async/Async/

#ruby #async

Last updated 1 year ago

categulario 🐍 🦀 :manjaro: · @categulario
488 followers · 6348 posts · Server mstdn.mx

@toledano probé para un proyecto hace tiempo. No quedé encantado la verdad. A la fecha no tiene documentación de su y esto quiere decir que si quieres hacer algo que no cubre alguno de los tutoriales tienes que leer su código fuente.

Además está construido sobre la (falsa) premisa de que hay que reescribir todas las bibliotecas python usando

Ya teníamos async en python mucho antes de que la sintaxis entrara al lenguaje via y familia.

#fastapi #api #async #eventlet #greenlet

Last updated 1 year ago

Hrefna (DHC) · @hrefna
1323 followers · 5000 posts · Server hachyderm.io

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

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

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

#janestreet #eio #ocaml #jsonld #async

Last updated 1 year ago

CryptoNewsBot · @cryptonewsbot
686 followers · 36564 posts · Server schleuss.online

Bitcoin’s Lightning Network is growing, but there are still three major challenges - The Lightning Network is growing, but liquidity issues and a need... - cointelegraph.com/news/bitcoin

#zeus #async #breeze #phoenix #markets #opennode #watchtower

Last updated 1 year ago

Doug Parker · @develwithoutacause
235 followers · 914 posts · Server techhub.social

Devs often point out the flaws of languages with the concept of function , arguing that it places seemingly arbitrary restrictions on functions and their semantics, which is a criticism I can definitely understand.

journal.stuffwithstuff.com/201

Is 's borrowing rules just another form of "coloring"? Consider:

1. You can do anything with an owned object (red).
2. You can convert an owned reference (red) into a borrowed reference (blue).
3. You can't convert a borrowed reference (blue) into an owned ref (red).
4. You may copy a borrowed reference (blue) into a new owned ref (red).
5. You can have multiple borrows (blues) of the same value.
6. You can only have one owned reference (red).
7. A function cannot return a borrowed reference (blue) to a locally owned (red) value.
8. A value passed as an owned parameter (red) into a function cannot be referenced after the call.

The list goes on. Is borrowing just a form of "value coloring"?

#async #coloring #rust

Last updated 1 year ago

Open Cola :verified: · @opencola
44 followers · 86 posts · Server brands.town

Coming soon! A Python implementation of . Bubble sort with bubbles, fizzbuzz with fizz and start writing with a language that always keeps you .

#colang #refreshed #foss #lisp #async

Last updated 1 year ago

Ivan Enderlin 🦀 · @hywan
1459 followers · 1672 posts · Server fosstodon.org

And now, we have cancellable `Future`, github.com/mozilla/uniffi-rs/p. How fun :-).

#rustlang #ffi #kotlin #async

Last updated 1 year ago

Josep Pueyo-Ros :rstats: · @jospueyo
23 followers · 144 posts · Server fosstodon.org
\x1b orhun 👾 · @orhun
239 followers · 637 posts · Server fosstodon.org

I am pretty deep in the "obscure errors" realm.

🦀 Bogus `higher-ranked lifetime error` in an async block.

🤔 Issue: github.com/rust-lang/rust/issu

#rustlang #async #tokio

Last updated 1 year ago

stark@techhub:~$ █ · @Stark9837
448 followers · 2327 posts · Server techhub.social

I am busy messing around with , 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.github.com/e-dreyer/82196

#python #async #gist

Last updated 1 year ago

stark@techhub:~$ █ · @Stark9837
447 followers · 2325 posts · Server techhub.social

Recently, I was messing around with in and tried something where some class attributes were initialized in __init__() ny async functions.

This is not possible as __init__ may not return a coroutine. It should return None. Now, I am wondering if I can implement the getters and setters by using properties as async functions. Is this possible? I have been unable to get any documentation on this.

#async #python

Last updated 1 year ago

· @robertology
21 followers · 204 posts · Server phpc.social

What do people like these days for in ?

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

or something else?

#async #php #amphp

Last updated 1 year ago

d2718 · @d2718
11 followers · 208 posts · Server hachyderm.io

Okay, so I have been shaving a huge yak, and I've ended up with a new crate:

crates.io/crates/regex-chunker

docs.rs/regex-chunker/0.3.0/re

It's kind of like std::io::Split, but delimited by an arbitrary . There's also an type that implements Stream.

#rust #regex #async #rustlang

Last updated 1 year ago

Hrefna (DHC) · @hrefna
1166 followers · 4424 posts · Server hachyderm.io

Well I'm glad we cleared that up.

#ocaml #async

Last updated 1 year ago