#Computer_Science
Yet Another Performance Footgun in Rust - Multithreading Lock Edition
ntova: > I see that in your example, ASAP drop would indeed prevent a deadlock. However, to prevent deadlocks, you are generally advised to only ever lock resources in the same order and have a hierarchy of locks ( https://en.wikipedia.org/wiki/Deadlock\_(computer_science)#Prevention ). This would have prevented the deadlock in your example as well. If you look at the code, the locks are acquired in the same order. The issue stems from a "late join", because the main thread isn't blocked immediately after spawning a new thread, it becomes very easy to trigger a deadlock due to scope based drops. Why not block the main thread right away? Because the goal is to allow the main thread to continue executing other tasks in parallel, only blocking it when it reaches the point where it needs to retrieve the result from the worker thread. ntova: > the compiler would need to somehow track that anywhere in the struct `DangerZone` there is a pointer to the locked data. This may even be in another crate. Let's assume this would work. No, Rust has auto trait propagation, for instance, if one of the child components is `!Send`, the parent automatically becomes `!Send`. The `ASAP_drop` trait would work the same way, so the compiler simply need to query whether a given `T` is `ASAP_drop` or `!ASAP_drop`. ntova: > The problem I see here is that you would somehow need to know that `holds_pointer` has a pointer to B, therefore is implicitly `!ASAP_Drop`, and you would have to manually prevent A from getting dropped before B to ensure your lock hierarchy is kept intact. In my mind this a bigger potential footgun than the performance impact of keeping locks too long. This isn't an issue, as you can simply look at the parameters. There’s no need to worry about the order of operations, unlike with scope based dropping, A and B are not interdependent; they are entirely independent and do not reference one another, so concerning yourself with the order is pointless. "ASAP dropping" ensures that the lock held by A is released the moment it is no longer in use, the same applies to B, and, unlike scope based drop, it is not vulnerable to the "hierarchy footguns". If let's say, one of the fields in B points to field A, an "ASAP drop" won't drop it, because A is still being referenced by B, in other words, it’s still in use, it will drop the value once none is using A. If it’s a pointer, as I mentioned earlier, it becomes a "scope based drop.". And the MutexGuard doesn't drop the value, it calls the `unlock` method to unlock the lock, the dropping value happens later by the T's impl Drop not the MutexGuard's impl Drop. No, there are significant performance benefits : * It is memory efficient, scaling at O(n) relative to the size of the memory being held waiting end of scope and the duration until the end of the scope is reached. This results in a low peak memory usage, exactly equal to proper manual memory management (like C, Zig), because, in manual management, memory is freed immediately when it is no longer in use, rather than waiting for the execution to reach the end of a scope (which could involve many lines of code with unpredictable execution durations). * It offers low latency and high throughput multithreaded code, scaling at O(n) relative to the total duration of unnecessary blocking. To visualize this: if a channel processes tasks at 100 ns per task, a 200 ms thread block would result in the loss of 2 million tasks. This is a dynamic "footgun", it isn't fixed, the longer the blocking duration, the greater the loss in latency and throughput.
internals.rust-lang.org
November 1, 2026 at 1:32 PM
faculty_hiring: Faculty hiring networks (Comp. Sci., Business, History).

Three networks of faculty hiring in Computer Science Departments, Business Schools, and History Departments.

206 nodes, 4988 edges.

https://networks.skewed.de/net/faculty_hiring#computer_science

Ridiculogram:
October 18, 2026 at 4:00 AM
OH on slack: i'm sure reconciling state across partitions would be part of the hardest things in computer science, but it never arrived on the list

#sre #devops #swe #computer_science
August 25, 2026 at 11:56 PM
Computer Science: 1,825 open research gaps, free to browse, no account. On your
own topic: 10 guided steps → one pass → candidate gaps + key literature +
most-cited papers.
https://scienceaijournal.com/research-gaps/field/computer_science

Science AI Journal is our own tool.
August 4, 2026 at 5:40 PM
Sister Mary Kenneth Keller, the first woman to earn a doctorate in computer science in the United States, 1965
July 11, 2026 at 8:31 AM
Build Your Own X: Redis, Database, Compiler by build-your-own.org is the featured bundle of ebooks 📚 on Leanpub!

Link: leanpub.com/b/byo_redis_...

#c_and_cpp #networking #databases #computer_science #software_architecture #computer_programming #go #python #software_engineering
Build Your Own X From Scratch Books
Build Your Own X From Scratch Books: Redis, Database, Compiler
build-your-own.org
June 19, 2026 at 7:45 PM
エージェンティックAI ブック: 言語モデルからマルチエージェントシステムへ by Dr. Ryan Rad is a new release on Leanpub!

ペーパーバック版はamazonにて好評発売中。

Link: leanpub.com/EjentikkuAIB...

#books #ebooks #newreleases #leanpublishing #selfpublishing #ai #computer_science #deep_learning #data_science #gpt #neural_networks #machine_learning
June 17, 2026 at 9:45 PM
AI Masterclass by Henrik Kniberg, Obie Fernandez, and Andriy Burkov is the featured track of online courses 🛤️ on Leanpub!

Link: leanpub.com/set/leanpub/...

#digital_transformation #gpt #ai #software_architecture #ruby_on_rails #textbooks #data_science #computer_science #neural_networks
AI Masterclass
About the Track: AI Masterclass Artificial Intelligence is reshaping the way we live, work, and build technology. The AI Masterclass Track brings together three powerful courses from world-class…
leanpub.com
June 17, 2026 at 9:15 PM
AI Masterclass by Henrik Kniberg, Obie Fernandez, and Andriy Burkov is the featured track of online courses 🛤️ on Leanpub!

Link: leanpub.com/set/leanpub/...

#digital_transformation #gpt #ai #software_architecture #ruby_on_rails #textbooks #data_science #computer_science #neural_networks
AI Masterclass
About the Track: AI Masterclass Artificial Intelligence is reshaping the way we live, work, and build technology. The AI Masterclass Track brings together three powerful courses from world-class…
leanpub.com
June 16, 2026 at 6:45 PM
The Agentic AI book: From Language Models to Multi-Agent Systems by Dr. Ryan Rad is the featured book 📖 on Leanpub!

Link: leanpub.com/TheAgenticAI...

#ai #computer_science #deep_learning #data_science #gpt #neural_networks #machine_learning
The Agentic AI book
The definitive guide to agentic AI: LLMs, VLMs, RAG, prompt engineering, fine-tuning, agent architecture, and production-ready multi-agent systems.
leanpub.com
June 10, 2026 at 8:15 PM
AI Masterclass by Henrik Kniberg, Obie Fernandez, and Andriy Burkov is the featured track of online courses 🛤️ on Leanpub!

Link: leanpub.com/set/leanpub/...

#digital_transformation #gpt #ai #software_architecture #ruby_on_rails #textbooks #data_science #computer_science #neural_networks
June 8, 2026 at 6:45 PM
AI Masterclass by Henrik Kniberg, Obie Fernandez, and Andriy Burkov is the featured track of online courses 🛤️ on Leanpub!

Link: leanpub.com/set/leanpub/...

#digital_transformation #gpt #ai #software_architecture #ruby_on_rails #textbooks #data_science #computer_science #neural_networks
June 7, 2026 at 11:45 PM
AI Masterclass by Henrik Kniberg, Obie Fernandez, and Andriy Burkov is the featured track of online courses 🛤️ on Leanpub!

Link: leanpub.com/set/leanpub/...

#digital_transformation #gpt #ai #software_architecture #ruby_on_rails #textbooks #data_science #computer_science #neural_networks
AI Masterclass
About the Track: AI Masterclass Artificial Intelligence is reshaping the way we live, work, and build technology. The AI Masterclass Track brings together three powerful courses from world-class…
leanpub.com
June 6, 2026 at 8:15 PM
Spring 2026 Postsecondary Enrollment Shows Steady Undergraduate Growth Amid Graduate Enrollment Challenges#United_States#Herndon#Health_Professions#Computer_Science#National_Student_Clearinghouse
Spring 2026 Postsecondary Enrollment Shows Steady Undergraduate Growth Amid Graduate Enrollment Challenges
Spring 2026 saw an increase in undergraduate enrollments while graduate numbers remained stable, highlighting shifting trends in higher education.
third-news.com
June 4, 2026 at 12:34 PM
Step 1️⃣ 👣: Computer science
"Computer science is the study of computation, information, and automation. Included broadly in the sciences, computer science spans theoretical..."
#FiveStepsOfWikipedia #WhereNext
🧵 3/7
https://en.wikipedia.org/wiki/Computer_science
Computer science - Wikipedia
Computer science is the study of computation, information, and automation. Included broadly in the
en.wikipedia.org
June 1, 2026 at 7:57 PM
The Agentic AI book: From Language Models to Multi-Agent Systems by Dr. Ryan Rad is the featured book 📖 on Leanpub!

Link: leanpub.com/TheAgenticAI...

#ai #computer_science #deep_learning #data_science #gpt #neural_networks #machine_learning
The Agentic AI book
The definitive guide to agentic AI: LLMs, VLMs, RAG, prompt engineering, fine-tuning, agent architecture, and production-ready multi-agent systems.
leanpub.com
May 16, 2026 at 10:45 PM
faculty_hiring: Faculty hiring networks (Comp. Sci., Business, History).

Three networks of faculty hiring in Computer Science Departments, Business Schools, and History Departments.

206 nodes, 4988 edges.

https://networks.skewed.de/net/faculty_hiring#computer_science

Ridiculogram:
May 15, 2026 at 2:00 PM
The Agentic AI book: From Language Models to Multi-Agent Systems by Dr. Ryan Rad is the featured book 📖 on Leanpub!

Link: leanpub.com/TheAgenticAI...

#ai #computer_science #deep_learning #data_science #gpt #neural_networks #machine_learning
The Agentic AI book
The definitive guide to agentic AI: LLMs, VLMs, RAG, prompt engineering, fine-tuning, agent architecture, and production-ready multi-agent systems.
leanpub.com
May 6, 2026 at 8:15 PM
Skanska's Major Investment to Enhance Computer Science Center in New Jersey University#USA#New_Jersey#Skanska#Computer_Science
Skanska's Major Investment to Enhance Computer Science Center in New Jersey University
Skanska has embarked on a $305 million project to expand and renovate a university's computer science center in New Jersey, aiming for LEED Gold certification.
third-news.com
May 6, 2026 at 6:27 AM
faculty_hiring: Faculty hiring networks (Comp. Sci., Business, History).

Three networks of faculty hiring in Computer Science Departments, Business Schools, and History Departments.

206 nodes, 4988 edges.

https://networks.skewed.de/net/faculty_hiring#computer_science

Ridiculogram:
April 28, 2026 at 3:00 AM