HackerNews Digest Daily

Subscribe
Archives
January 15, 2024

Hacker News Top Stories with Summaries (January 16, 2024)

    <style>
        p {
            font-size: 16px;
            line-height: 1.6;
            margin: 0;
            padding: 10px;
        }
        h1 {
            font-size: 24px;
            font-weight: bold;
            margin-top: 10px;
            margin-bottom: 20px;
        }
        h2 {
            font-size: 18px;
            font-weight: bold;
            margin-top: 10px;
            margin-bottom: 5px;
        }
        ul {
            padding-left: 20px;
        }
        li {
            margin-bottom: 10px;
        }
        .summary {
            margin-left: 20px;
            margin-bottom: 20px;
        }
    </style>
        <h1> Hacker News Top Stories</h1>
        <p>Here are the top stories from Hacker News with summaries for January 16, 2024 :</p>

    <div style="margin-bottom: 20px;">
        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td style="padding-right: 10px;">
                <div style="width: 200px; height: 100px; border-radius: 10px; overflow: hidden; background-image: url('https://hackernewstoemail.s3.us-east-2.amazonaws.com/hnd2'); background-size: cover; background-position: center;">

Bluesky has launched RSS feeds

https://openrss.org/blog/bluesky-has-launched-rss-feeds

Summary: BlueSky, the decentralized social media platform, has launched RSS feeds, enabling users to subscribe and receive updates from their favorite content creators. This move aims to provide a more open and user-friendly experience on the platform.

    <div style="margin-bottom: 20px;">
        <table cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td style="padding-right: 10px;">
                <div style="width: 200px; height: 100px; border-radius: 10px; overflow: hidden; background-image: url('https://miro.medium.com/v2/resize:fit:400/1*f6RPLSAVweX3KUcmwrIEyg.jpeg'); background-size: cover; background-position: center;">

Java virtual threads caused a deadlock in TPC-C for PostgreSQL

https://blog.ydb.tech/how-we-switched-to-java-21-virtual-threads-and-got-deadlock-in-tpc-c-for-postgresql-cca2fe08d70b

Summary: YDB.tech developers switched to Java 21 virtual threads to overcome concurrency limitations in the original TPC-C implementation for PostgreSQL. However, they encountered a deadlock issue due to unpredictable deadlocks deep inside the libraries used. Debugging the issue, they found that some virtual threads waiting for a session had pinned their carrier thread. The deadlock was resolved by wrapping the connection with a java.util.concurrent.Semaphore, allowing virtual threads to block on the semaphore and release the carrier thread. Java 21 virtual threads offer significant benefits if used carefully, enabling efficient async code with high concurrency.

Want to read the full issue?
Powered by Buttondown, the easiest way to start and grow your newsletter.