LWN.net featured content https://lwn.net/Articles/ This feed contains pointers to all feature articles (those containing LWN original content and posted as standalone items) found on the site. en-us Sat, 09 Nov 2024 01:01:01 +0000 Sat, 09 Nov 2024 01:01:01 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net LWN.net Weekly Edition for October 31, 2024 https://lwn.net/Articles/995490/ https://lwn.net/Articles/995490/ corbet The LWN.net Weekly Edition for October 31, 2024 is available. Thu, 31 Oct 2024 00:42:27 +0000 An update on Apple M1/M2 GPU drivers https://lwn.net/Articles/995383/ https://lwn.net/Articles/995383/ jake The kernel graphics driver for the Apple M1 and M2 GPUs is, rather famously, written in Rust, but it has achieved conformance with various graphics standards, which is also noteworthy. At the <a href="https://indico.freedesktop.org/event/6/">X.Org Developers Conference (XDC)&nbsp;2024</a>, Alyssa Rosenzweig gave an update on the status of the driver, along with some news about the kinds of games it can support (<a href="https://www.youtube.com/watch?v=TtLP5sAXYKo">YouTube video</a>, <a href="https://indico.freedesktop.org/event/6/contributions/284/attachments/230/310/slides.pdf ">slides</a>). There has been lots of progress since her talk at XDC last year (<a href="https://www.youtube.com/watch?v=O36VFNdQHsE">YouTube video</a>), with, of course, still more to come. Wed, 30 Oct 2024 16:23:29 +0000 A new approach to validating test suites https://lwn.net/Articles/995276/ https://lwn.net/Articles/995276/ daroc <p> The first program that Martin Pool ever wrote, he said, had bugs; the ones he's writing now most likely have bugs too. The talk Pool gave at <a href="https://rustconf.com/">RustConf</a> this year was about a way to try to write programs with fewer bugs. He has developed a tool called <a href="https://mutants.rs/"> cargo-mutants</a> that highlights gaps in test coverage by identifying functions that can be broken without causing any tests to fail. This can be a valuable complement to other testing techniques, he explained. </p> Tue, 29 Oct 2024 17:01:12 +0000 The performance of the Rust compiler https://lwn.net/Articles/995125/ https://lwn.net/Articles/995125/ daroc <p> Sparrow Li presented virtually at <a href="https://rustconf.com"> RustConf</a>&nbsp;2024 about the current state of and future plans for the Rust compiler's performance. The compiler is relatively slow to compile large programs, although it has been getting better over time. The next big performance improvement to come will be parallelizing the compiler's parsing, type-checking, and related operations, but even after that, the project has several avenues left to explore. </p> Mon, 28 Oct 2024 16:10:27 +0000 AutoFDO and Propeller https://lwn.net/Articles/995397/ https://lwn.net/Articles/995397/ jake Rong Xu and Han Shen described the kernel-optimization techniques that Google uses in the <a href="https://lpc.events/event/18/sessions/180/#20240918">toolchains track</a> at the <a href="https://lpc.events/event/18/page/224-lpc-2024-overview">2024 Linux Plumbers Conference</a>. They talked about <a href="https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/45290.pdf">automatic feedback-directed optimization</a> (AutoFDO), which can be used with the <a href="https://research.google/pubs/propeller-a-profile-guided-relinking-optimizer-for-warehouse-scale-applications/">Propeller</a> optimizer to produce kernels with better performance using profile information gathered from real workloads. There is a fair amount of overlap between these tools and the <a href="https://github.com/llvm/llvm-project/tree/main/bolt#bolt">BOLT</a> post-link optimizer, which was the subject of a <a href="https://lwn.net/Articles/993828/">talk</a> that directly preceded this session. Mon, 28 Oct 2024 15:15:19 +0000 OSI readies controversial Open AI definition https://lwn.net/Articles/995159/ https://lwn.net/Articles/995159/ jzb <p>The <a href="https://opensource.org/">Open Source Initiative</a> (OSI) has been working on defining <a href="https://opensource.org/ai">Open Source AI</a>&mdash;that is what constitutes an AI system that can be used, studied, modified, and shared for any purpose&mdash;for almost two years. Its <a href="https://opensource.org/about/board-of-directors">board</a> will be voting on the <a href="https://opensource.org/ai/drafts/the-open-source-ai-definition-1-0-rc2">Open Source AI Definition</a> (OSAID) on Sunday, October&nbsp;27, with the 1.0 version slated to be published on October&nbsp;28. It is never possible to please <em>everyone</em> in such an endeavor, and it would be folly to make that a goal. However, a number of prominent figures in the open-source community have voiced concerns that OSI is setting the bar too low with the OSAID&mdash;which will undo decades of community work to cajole vendors into adhering to or respecting the original <a href="https://opensource.org/osd">Open Source Definition</a> (OSD).</p> Fri, 25 Oct 2024 21:02:36 +0000 Kernel optimization with BOLT https://lwn.net/Articles/993828/ https://lwn.net/Articles/993828/ jake A pair of talks in the <a href="https://lpc.events/event/18/sessions/180/#20240918">toolchains track</a> at the <a href="https://lpc.events/event/18/page/224-lpc-2024-overview">2024 Linux Plumbers Conference</a> covered different tools that can be used to optimize the kernel. First up was Maksim Panchenko to describe the <a href="https://github.com/llvm/llvm-project/tree/main/bolt#bolt">binary optimization and layout tool</a> (BOLT) that Meta uses on its production kernels. It optimizes the kernel binary by rearranging it to improve its code locality for better performance. A <a href="https://lwn.net/Articles/995397/">subsequent article</a> will cover the second talk, which looked at <a href="https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/45290.pdf">automatic feedback-directed optimization</a> (AutoFDO) and other related techniques that are used to optimize Google's kernels. Fri, 25 Oct 2024 19:39:48 +0000 realloc() and the oversize importance of zero-size objects https://lwn.net/Articles/995196/ https://lwn.net/Articles/995196/ corbet Small objects can lead to large email threads. In this case, the GNU C Library (glibc) community has been having an extensive debate over the handling of zero-byte allocations. Specifically, what should happen when a program calls <a href="https://man7.org/linux/man-pages/man3/malloc.3.html"><tt>realloc()</tt></a> specifying a size of zero? This is, it seems, a topic about which some people, at least, have strong feelings. Thu, 24 Oct 2024 15:36:41 +0000 LWN.net Weekly Edition for October 24, 2024 https://lwn.net/Articles/994575/ https://lwn.net/Articles/994575/ corbet The LWN.net Weekly Edition for October 24, 2024 is available. Thu, 24 Oct 2024 00:42:13 +0000 Toward safe transmutation in Rust https://lwn.net/Articles/994334/ https://lwn.net/Articles/994334/ daroc <p> Currently in Rust, there is no efficient and safe way to turn an array of bytes into a structure that corresponds to the array. Changing that was the topic of Jack Wrenn's talk this year at <a href="https://rustconf.com"> RustConf</a>: <a href="https://jack.wrenn.fyi/blog/safety-goggles-for-alchemists/"> "Safety Goggles for Alchemists"</a>. The goal is to be able to "transmute" — Rust's name for this kind of conversion — values into arbitrary user-defined types in a safer way. Wrenn justified the approach that the project has taken to accomplish this, and spoke about the future work required to stabilize it. </p> Wed, 23 Oct 2024 17:40:38 +0000 Free-software foundations face fundraising problems https://lwn.net/Articles/993665/ https://lwn.net/Articles/993665/ jzb <p>In July, at the GNOME <a href="https://lwn.net/Articles/983203/">annual general meeting</a> (AGM), held at <a href="https://foundation.gnome.org/2023/12/20/guadec-2024-in-denver-colorado/">GUADEC 2024</a>, the message from the GNOME Foundation board was that all was well, financially speaking. Not <em>great</em>, but the foundation was on a break-even budget and expected to go into its next fiscal year with a similar budget and headcount. On October&nbsp;7, however, the board <a href="https://foundation.gnome.org/2024/10/07/update-from-the-board-2024-10/">announced</a> that it had had to make some cuts, including reducing its staff by two people. This is not, however, strictly a GNOME problem: similar organizations, such as the Python Software Foundation (PSF), KDE&nbsp;e.V., and the Free Software Foundation Europe (FSFE) are seeing declines in fundraising while also being affected by inflation.</p> Wed, 23 Oct 2024 14:52:28 +0000