#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
We already have the future of democracy in our hands but we're too cowardly and entrenched to use it to make political decisions.

It's called Consensus.
https://en.wikipedia.org/wiki/Consensus_(computer_science)
Consensus (computer science) - Wikipedia
en.wikipedia.org
September 16, 2025 at 2:50 PM
r9os/r9: The R9 operating system R9 is a reimplementation of the Plan 9 operating system kernel written in Rust. The project supports multiple architectures including x86-64, aarch64, and RISC-V, a...

Origin | Interest | Match
Computer Science and Programming
Channel specialized for advanced topics of: * Artificial intelligence, * Machine Learning, * Deep Learning, * Computer Vision, * Data Science * Python Admin: @otchebuch Memes: @memes_programming Ads: @Source_Ads, https://telega.io/c/computer_science
t.me
July 19, 2025 at 12:41 PM
I really need to get some coding projects in when I get some time. Any suggestions? I could refine that machine learning model that predicts a student's grades based on the number of assignments they complete. #programming #machinelearning #computer_science #AI
April 14, 2026 at 12:17 AM
www.youtube.com/live/ynHy8Og... Join me at 10 PM EST tonight when I attempt to write a "Terryology" calculator. Let's see if we can make Terrence Howard's alternative math work. #programming #python #computer_science #math #mathematics
Let's use Python to create a Terence Howard approved calculator
YouTube video by Mad Computer Scientist
www.youtube.com
February 22, 2025 at 1:02 AM
Join me for Faulty Logic Fridays, where we find out that AI will destroy us all!

www.youtube.com/watch?v=7k7F...

#programming #computer_science #AI
Faulty Logic Fridays: AI Will Destory Us All!
YouTube video by Mad Computer Scientist
www.youtube.com
January 25, 2025 at 2:55 AM
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
OpenCost: Reflecting on 2025 and looking ahead to 2026 OpenCost, a CNCF incubating project for Kubernetes cost management, released 11 versions in 2025 with major features including Prometheus-opti...

Origin | Interest | Match
Computer Science and Programming
Channel specialized for advanced topics of: * Artificial intelligence, * Machine Learning, * Deep Learning, * Computer Vision, * Data Science * Python Admin: @otchebuch Memes: @memes_programming Ads: @Source_Ads, https://telega.io/c/computer_science
t.me
January 31, 2026 at 5:31 AM
Keycloak MCP Server: Manage Identity with Natural Language An MCP server enables natural language management of Keycloak identity and access management through AI assistants. The open-source projec...

Origin | Interest | Match
Computer Science and Programming
Channel specialized for advanced topics of: * Artificial intelligence, * Machine Learning, * Deep Learning, * Computer Vision, * Data Science * Python Admin: @otchebuch Memes: @memes_programming Ads: @Source_Ads, https://telega.io/c/computer_science
t.me
January 24, 2026 at 9:44 PM
TUIs A comprehensive collection of Terminal User Interface (TUI) applications that provide modern, interactive command-line alternatives to traditional GUI tools. The list includes TUI versions of ...

Origin | Interest | Match
Computer Science and Programming
Channel specialized for advanced topics of: * Artificial intelligence, * Machine Learning, * Deep Learning, * Computer Vision, * Data Science * Python Admin: @otchebuch Memes: @memes_programming Ads: @Source_Ads, https://telega.io/c/computer_science
t.me
September 16, 2025 at 4:26 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
<td><code class="language-plaintext highlighter-rouge">domain: computer_science</code></td>
<td>Configurable</td>
<td>Context-aware</td>
</tr>
<tr>
<td>User Feedback</td>
January 23, 2026 at 6:48 PM
<td><code class="language-plaintext highlighter-rouge">domain: computer_science</code> + <code class="language-plaintext highlighter-rouge">embedding: deep_thinking</code></td>
<td>DeepSeek-V3.2</td>
<td>Advanced code analysis</td>
</tr>
<tr>
<td>140</td>
January 23, 2026 at 6:46 PM
<p>→ Routes to <code class="language-plaintext highlighter-rouge">DeepSeek-V3.2</code> via <code class="language-plaintext highlighter-rouge">computer_science</code> + <code class="language-plaintext highlighter-rouge">deep_thinking</code> (high reasoning)</p>

<p><strong>Math Problem:</strong></p>
January 23, 2026 at 6:45 PM
<td><code class="language-plaintext highlighter-rouge">fast_coding</code></td>
<td><code class="language-plaintext highlighter-rouge">domain: computer_science</code> + <code class="language-plaintext highlighter-rouge">language: en</code></td>
<td>gpt-oss-120b</td>
January 23, 2026 at 6:43 PM
<td>145</td>
<td><code class="language-plaintext highlighter-rouge">code_deep_thinking</code></td>
<td><code class="language-plaintext highlighter-rouge">domain: computer_science</code> + <code class="language-plaintext highlighter-rouge">embedding: deep_thinking</code></td>
January 23, 2026 at 6:43 PM
<td><code class="language-plaintext highlighter-rouge">domain: computer_science</code> + <code class="language-plaintext highlighter-rouge">embedding: deep_thinking</code></td>
<td>DeepSeek-V3.2</td>
<td>Advanced code analysis</td>
</tr>
<tr>
<td>140</td>
January 23, 2026 at 6:30 PM
<p>→ Routes to <code class="language-plaintext highlighter-rouge">DeepSeek-V3.2</code> via <code class="language-plaintext highlighter-rouge">computer_science</code> + <code class="language-plaintext highlighter-rouge">deep_thinking</code> (high reasoning)</p>

<p><strong>Math Problem:</strong></p>
January 23, 2026 at 6:29 PM