Post 9v2nbvefzdc7BsmPp2 by sir@cmpwn.com
(DIR) More posts by sir@cmpwn.com
(DIR) Post #9v1VuJNSO7nlDnVk6S by sir@cmpwn.com
2020-05-14T02:33:40Z
1 likes, 2 repeats
I bought a domain to illustrate my point:https://shouldiusethreads.com
(DIR) Post #9v1W0oUpbM9jTN3p32 by nergal@linuxrocks.online
2020-05-14T02:35:40Z
0 likes, 0 repeats
@sir no one seems to own imgcru.sh anymore.
(DIR) Post #9v1WTmW02wF5j5Q7DU by nergal@linuxrocks.online
2020-05-14T02:40:54Z
0 likes, 0 repeats
@sir what about hyperthreading?
(DIR) Post #9v1WXDdpeE4Ij3isUq by nergal@linuxrocks.online
2020-05-14T02:41:32Z
0 likes, 0 repeats
@sir what about hyperthreading? Does that breach the "no threads" rule?
(DIR) Post #9v1WokC5s4kybo6Zfs by sir@cmpwn.com
2020-05-14T02:42:16Z
0 likes, 0 repeats
@nergal it gets more complicated when you start talking about kernels and hardware. The answer is still "no", but with more caveats.
(DIR) Post #9v1lrrPuyI3TBwW0jQ by slow@mstdn.io
2020-05-14T05:31:55Z
0 likes, 0 repeats
@sir Link to footnote 4 seems to return an error 404
(DIR) Post #9v1oCacEpiVf4aI3CS by stsquad@mastodon.org.uk
2020-05-14T05:58:15Z
0 likes, 0 repeats
@sir I feel as though at least some of QEMUs use of threads in justified. I'm less certain of our use of coroutines 😉
(DIR) Post #9v1oymCL4dD4tX9YfY by wasamasa@lonely.town
2020-05-14T06:06:54Z
0 likes, 0 repeats
@sir You should link all these pages using vanity domains on another page for ease of reference, like the git send-email and git rebase one.
(DIR) Post #9v1to9IpKY1N8bwKC8 by foxcpp@puppo.space
2020-05-14T07:01:02Z
0 likes, 0 repeats
@sir "Share by communicating, not communicate by sharing."
(DIR) Post #9v1uWd65uqakHnC6Fs by mort@fosstodon.org
2020-05-14T07:09:06Z
0 likes, 0 repeats
@sir It could maybe even be worth mentioning that shared memory is a thing, so you don't even need to give up performance if you're doing something like image processing where there's a ton of shared state - just explicitly put that state in shm.The advantage of threads though is cross platform support (Windows can't multiprocess) and that a multiprocessing event loop system is way more code than `#pragma omp parallel for`.
(DIR) Post #9v2OVKHjWWIohKnrkm by federico3@mastodon.social
2020-05-14T12:45:01Z
0 likes, 0 repeats
@sir A lot of application use multithreading where coroutines would be enough and make the execution non-deterministic for no good reason. Yet, unfortunately, there are CPU bound tasks where the cost of spawning processes and doing messaging is too high and that makes threads useful. I blame languages for not abstracting the concurrency problem better.
(DIR) Post #9v2nRWEpdah1SwjAUS by 0shame@eldritch.cafe
2020-05-14T17:24:19Z
0 likes, 0 repeats
@sir You seem to do that a lot, what with useplaintext.email and git-send-email.io. What's the reasoning for spreading stuff across many domains?
(DIR) Post #9v2nbvefzdc7BsmPp2 by sir@cmpwn.com
2020-05-14T17:24:41Z
0 likes, 0 repeats
@0shame they're cheap and memorable ¯\_(ツ)_/¯
(DIR) Post #9v2qM72EDOfliJwhsW by mobop@mstdn.social
2020-05-14T17:56:53Z
0 likes, 0 repeats
@sir 🔥
(DIR) Post #9v2qb1Zqmyal8AmbZI by mobop@mstdn.social
2020-05-14T17:57:38Z
0 likes, 0 repeats
@sir very good. thank you.
(DIR) Post #9v6u1xd5x899UGHvJA by nitox@fosstodon.org
2020-05-16T16:58:21Z
0 likes, 0 repeats
@sir Awesome! now everytime i use the "threading" module on python i will remember your site, i may end up not using threads and link the domain at the top as a reason of it.
(DIR) Post #9v7GlsP3ukNvaf1XBA by peexea@fosstodon.org
2020-05-16T21:11:52Z
0 likes, 0 repeats
@sirI just put page from #rustbook here:https://doc.rust-lang.org/book/ch16-00-concurrency.html
(DIR) Post #9v7GuPs5MevJhrfgMS by sir@cmpwn.com
2020-05-16T21:12:14Z
2 likes, 0 repeats
@peexea thanks, I just ran out of toilet paper, I'll print this out
(DIR) Post #9vAREVikuLAUejPKHA by musicmatze@mastodon.technology
2020-05-18T09:53:24Z
0 likes, 0 repeats
@sir I wholeheartedly agree.
(DIR) Post #9vARayMx4gQJsUv5Bg by f2k1de@cuties.social
2020-05-18T09:57:22Z
0 likes, 0 repeats
@sir Thats why I use php. It can't do threads.
(DIR) Post #9vAZ1x5ocy2vPviT0y by el_joa@mastodon.social
2020-05-18T11:20:49Z
0 likes, 0 repeats
@sir 1. what a good reason to buy a domain! :-)2. I thought it was about "threads" in the Fediverse/Mastodon (spoiler: it's not)
(DIR) Post #AL7CqIKwBfLlHSSr4q by applejack@gameliberty.club
2022-07-03T13:03:46Z
0 likes, 0 repeats
@mort @sir Shared memory across threads completely kills the cache though