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

synlogic · @synlogic
124 followers · 1736 posts · Server toot.io

"I'm jealous with all the attention 'threads' are getting lately."
Ā  - a process, however lowly & otherwise humble

"Me too!"
Ā  - a coroutineĀ 

"Honestly, same."
Ā  - a goroutineĀ 

"It me."
- a fiberĀ 

"My people!"
- a taskletĀ 

"Represent!"
- a greenlet, looking suspiciously like a fiber and tasklet, but colored greenĀ 

Ā 








#threads #programming #concurrency #threading #multithreading #parallelism #fibers #greenlets #processes

Last updated 1 year ago

synlogic · @synlogic
116 followers · 1690 posts · Server toot.io

as a fan of oldskool dystopic/apoc fiction & drama TV (esp from the 60s to 80s, & UK/Euro) let me just say Meta's choice of the Threads name is terrible... & PTSD-inducing

as a decades-long programmer with plenty of scars from doing & seeing multi-threaded programming at scale, well, let me just say Meta's choice of the Threads name is also terrible... & PTSD inducing










#meta #threads #programming #multithreading #concurrency #parallelism #threading #fibers #coroutines #goroutines #processes

Last updated 1 year ago

synlogic · @synlogic
109 followers · 1656 posts · Server toot.io

whenever I hear someone talk about using Meta/Facebook's new Threads I think, "Nah I'll just stick with Golang's channels-and-goroutines model instead, thanks!"









#go #golang #channels #goroutines #threading #parallelism #concurrency #threads #facebook #meta

Last updated 1 year ago

JMLR · @jmlr
672 followers · 269 posts · Server sigmoid.social

'MALib: A Parallel Framework for Population-based Multi-agent Reinforcement Learning', by Ming Zhou et al.

jmlr.org/papers/v24/22-0169.ht

#reinforcement #Agent #parallelism

Last updated 1 year ago

With just ONE line, decorate a function with ā€˜@njitā€™ to parallelize it automatically. Multi-core (CPu and GPU) and SIMD vectorization supported. *jaw drops* šŸ˜²

numba.pydata.org/

#python #simd #parallelism #numba #jit #decorators

Last updated 1 year ago

Ivan, the Language Mangler šŸ¦€ · @hywan
1250 followers · 1212 posts · Server fosstodon.org

To be fast, weld needs to link objects concurrently & simultaneously. A few days ago, Iā€™ve implemented a simple `ThreadPool` type, in the new `weld-scheduler` crate, github.com/Hywan/weld/blob/ea7.

Itā€™s able to send `Future`s on various threads where async workers execute them.

Itā€™s done with smol, a light & flexible set of crates to implement custom async runtimes, github.com/smol-rs/smol.

Next step: ā€œLinker Strategyā€ to link things for real!

#weld #rustlang #parallelism #concurrency #thread

Last updated 1 year ago

Nim is like Python on steroids. Crystal is like Ruby on steroids. Which one is suited for competitive programming involving data structures like doubly linked lists? And which language is best for multi-core parallelism? Would love to hear opinions.

#nim #crystal #python #ruby #golang #rust #parallelism #concurrency #competitiveprogramming #leetcode

Last updated 1 year ago

Josquin Debaz · @josquindebaz
237 followers · 354 posts · Server piaille.fr

"events are an invention of the devil"

@bortzmeyer

#parallelism #fosdem23

Last updated 2 years ago

aegilops :github::microsoft: · @aegilops
109 followers · 373 posts · Server fosstodon.org

@joxean glad you got it working!

If it is I/O bound then threads are better, and you can use a same-process Lock. I used them recently where a Python wrapper for a binary process silently uses threading, to sync output to avoid interlacing of the text.

If it is CPU bound then it's good to go for multiprocessing or concurrent.Futures with a process executor. Then you need to use IPC synchronisation, e.g. Pipe and Queue.

#python #parallelism #concurrency

Last updated 2 years ago

New Submissions to TMLR · @tmlrsub
158 followers · 336 posts · Server sigmoid.social

A portfolio approach to massively parallel Bayesian optimization

openreview.net/forum?id=hTHvYC

#optimization #parallel #parallelism

Last updated 2 years ago

Zelphir Kaltstahl · @zelphirkaltstahl
20 followers · 107 posts · Server mastodon.social
Zelphir Kaltstahl · @zelphirkaltstahl
17 followers · 80 posts · Server mastodon.social

Today I decided to solve another puzzle from . Solved day 14 part 01 and 02: notabug.org/ZelphirKaltstahl/a

It was somewhat unsatisfying, because I did not manage to gain much speedup using my futures-based parallel-map function. Often a simple map was faster. Tried to chunkify longer lists and run lambdas for those chunks in parallel, but also did not gain much speedup. Might need to try guile-parallel.

#adventofcode #programming #coding #guile #scheme #parallelism

Last updated 2 years ago

Zelphir Kaltstahl · @zelphirkaltstahl
15 followers · 68 posts · Server mastodon.social

Just finished solving day 13 part 01 of : notabug.org/ZelphirKaltstahl/a

Parallelized it, even if input size does not really require it.

Learning: One can use continuations to avoid encoding the 3 comparison (less, equal, greater) results into 3 values šŸ’”

#adventofcode #programming #coding #guile #scheme #parallelism #continuations

Last updated 2 years ago

Zelphir Kaltstahl · @zelphirkaltstahl
15 followers · 63 posts · Server mastodon.social

Solved day 12 part 02 of (2022): notabug.org/ZelphirKaltstahl/a

I parallelized it, but it is not using all cores and I am not sure why it is not; where something is blocking or a bottle neck šŸ¤” Maybe there is a clever approach, which allows for not computing as many things (cannot go into detail without spoilers), but since it finishes in reasonable time, I am too lazy to optimize further.

#adventofcode #programming #coding #guile #scheme #parallelism #futures

Last updated 2 years ago

Neil Smith (he/him) · @neilnjae
243 followers · 238 posts · Server dice.camp
Zelphir Kaltstahl · @zelphirkaltstahl
15 followers · 62 posts · Server mastodon.social

Some time ago I started working through project Euler problems [1] using GNU Guile there as well. Not very far yet. Sometimes it has been a drag, because the early problems are not very challenging algorithmically, but it takes time to code them up. However, the `lib` also contains possibly interesting stuff for using multiple cores, parallelizing work. Using that in some of the solutions.

[1]: notabug.org/ZelphirKaltstahl/g

#programming #coding #guile #projecteuler #parallelism #multicore #scheme

Last updated 2 years ago

CK's Technology News · @CKsTechNews
1667 followers · 1103 posts · Server cktn.todon.de

#cpus #vms #parallelism

Last updated 2 years ago

herchenroder · @herchenroder
189 followers · 328 posts · Server motern.media

I can't wait to "get earn Microsoft rewards points".

#parallelism #copyeditor

Last updated 2 years ago

The Billionaire @elonmusk@twitter.com on the streets of billionaire . Even shows some signs of imbalance.
New York en.wikipedia.org/wiki/Howard_H

#howardhughes #musk #parallelism #elonmusk

Last updated 2 years ago