Swift Profile Recorder: Identifying Performance Bottlenecks in Production
https://www.reddit.com/r/programming/comments/1nzqzta/swift_profile_recorder_identifying_performance/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://www.swift.org/blog/swift-profile-recorder/) [comments] (https://www.reddit.com/r/programming/comments/1nzqzta/swift_profile_recorder_identifying_performance/)
https://www.reddit.com/r/programming/comments/1nzqzta/swift_profile_recorder_identifying_performance/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://www.swift.org/blog/swift-profile-recorder/) [comments] (https://www.reddit.com/r/programming/comments/1nzqzta/swift_profile_recorder_identifying_performance/)
Anthony of Boston’s Secondary Detection: A Beginner’s Guide on Advanced Drone Detection for Military Systems
https://www.reddit.com/r/programming/comments/1nzuqby/anthony_of_bostons_secondary_detection_a/
submitted by /u/thedowcast (https://www.reddit.com/user/thedowcast)
[link] (https://anthonyofboston.substack.com/p/anthony-of-bostons-secondary-detection) [comments] (https://www.reddit.com/r/programming/comments/1nzuqby/anthony_of_bostons_secondary_detection_a/)
https://www.reddit.com/r/programming/comments/1nzuqby/anthony_of_bostons_secondary_detection_a/
submitted by /u/thedowcast (https://www.reddit.com/user/thedowcast)
[link] (https://anthonyofboston.substack.com/p/anthony-of-bostons-secondary-detection) [comments] (https://www.reddit.com/r/programming/comments/1nzuqby/anthony_of_bostons_secondary_detection_a/)
Bold Devlog - Text Editing and Undo/Redo
https://www.reddit.com/r/programming/comments/1nzwe1j/bold_devlog_text_editing_and_undoredo/
submitted by /u/levodelellis (https://www.reddit.com/user/levodelellis)
[link] (https://bold-edit.com/devlog/25-09-summary.html) [comments] (https://www.reddit.com/r/programming/comments/1nzwe1j/bold_devlog_text_editing_and_undoredo/)
https://www.reddit.com/r/programming/comments/1nzwe1j/bold_devlog_text_editing_and_undoredo/
submitted by /u/levodelellis (https://www.reddit.com/user/levodelellis)
[link] (https://bold-edit.com/devlog/25-09-summary.html) [comments] (https://www.reddit.com/r/programming/comments/1nzwe1j/bold_devlog_text_editing_and_undoredo/)
Announcing a 10-Week Graduate-Style Seminar on OS Trade-Offs for Engineers
https://www.reddit.com/r/programming/comments/1nzwu3b/announcing_a_10week_graduatestyle_seminar_on_os/
<!-- SC_OFF -->Hi everyone, The Tock Foundation / Better Bytes (the non-profit behind the Tock operating system) is launching a new virtual graduate-style seminar for practicing engineers, and we wanted to share it with this community. Title: Operating System Trade-Offs: Performance, Extensibility, and Security Description: The course is a 10-week deep dive into the fundamental trade-offs in systems design. The goal is to help engineers become better systems builders and researchers by identifying and analyzing these trade-offs through a curated list of foundational and modern papers. Instructor: It's led by Dr. Amit Levy, a well-known researcher in the OS community. Format: This is designed for a professional schedule. It’s a weekly 1-hour live discussion (Tuesdays, 11am-12pm PT) based on 1-2 papers. The seminar runs from Oct 21 to Dec 23, 2025. Audience: It's intended for SWEs with a background in systems programming. The cost is $2,000 USD, and proceeds support our non-profit's mission. We know this is a significant cost, and it's structured to be a good fit for company professional development/education budgets. You can find all the details on the landing page here: https://betterbytes.org/courses/seminars/ I'm one of the organizers and am happy to answer any questions you might have. <!-- SC_ON --> submitted by /u/exobrain (https://www.reddit.com/user/exobrain)
[link] (https://betterbytes.org/courses/seminars/) [comments] (https://www.reddit.com/r/programming/comments/1nzwu3b/announcing_a_10week_graduatestyle_seminar_on_os/)
https://www.reddit.com/r/programming/comments/1nzwu3b/announcing_a_10week_graduatestyle_seminar_on_os/
<!-- SC_OFF -->Hi everyone, The Tock Foundation / Better Bytes (the non-profit behind the Tock operating system) is launching a new virtual graduate-style seminar for practicing engineers, and we wanted to share it with this community. Title: Operating System Trade-Offs: Performance, Extensibility, and Security Description: The course is a 10-week deep dive into the fundamental trade-offs in systems design. The goal is to help engineers become better systems builders and researchers by identifying and analyzing these trade-offs through a curated list of foundational and modern papers. Instructor: It's led by Dr. Amit Levy, a well-known researcher in the OS community. Format: This is designed for a professional schedule. It’s a weekly 1-hour live discussion (Tuesdays, 11am-12pm PT) based on 1-2 papers. The seminar runs from Oct 21 to Dec 23, 2025. Audience: It's intended for SWEs with a background in systems programming. The cost is $2,000 USD, and proceeds support our non-profit's mission. We know this is a significant cost, and it's structured to be a good fit for company professional development/education budgets. You can find all the details on the landing page here: https://betterbytes.org/courses/seminars/ I'm one of the organizers and am happy to answer any questions you might have. <!-- SC_ON --> submitted by /u/exobrain (https://www.reddit.com/user/exobrain)
[link] (https://betterbytes.org/courses/seminars/) [comments] (https://www.reddit.com/r/programming/comments/1nzwu3b/announcing_a_10week_graduatestyle_seminar_on_os/)
Ranking Enums in Programming Languages
https://www.reddit.com/r/programming/comments/1nzy61x/ranking_enums_in_programming_languages/
submitted by /u/BlueGoliath (https://www.reddit.com/user/BlueGoliath)
[link] (https://www.youtube.com/watch?v=7EttvdzxY6M) [comments] (https://www.reddit.com/r/programming/comments/1nzy61x/ranking_enums_in_programming_languages/)
https://www.reddit.com/r/programming/comments/1nzy61x/ranking_enums_in_programming_languages/
submitted by /u/BlueGoliath (https://www.reddit.com/user/BlueGoliath)
[link] (https://www.youtube.com/watch?v=7EttvdzxY6M) [comments] (https://www.reddit.com/r/programming/comments/1nzy61x/ranking_enums_in_programming_languages/)
The (software) quality without a name
https://www.reddit.com/r/programming/comments/1o06n10/the_software_quality_without_a_name/
submitted by /u/kieranpotts (https://www.reddit.com/user/kieranpotts)
[link] (https://kieranpotts.com/the-quality-without-a-name) [comments] (https://www.reddit.com/r/programming/comments/1o06n10/the_software_quality_without_a_name/)
https://www.reddit.com/r/programming/comments/1o06n10/the_software_quality_without_a_name/
submitted by /u/kieranpotts (https://www.reddit.com/user/kieranpotts)
[link] (https://kieranpotts.com/the-quality-without-a-name) [comments] (https://www.reddit.com/r/programming/comments/1o06n10/the_software_quality_without_a_name/)
This Month in Redox - September 2025
https://www.reddit.com/r/programming/comments/1o0g8c3/this_month_in_redox_september_2025/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://www.redox-os.org/news/this-month-250930/) [comments] (https://www.reddit.com/r/programming/comments/1o0g8c3/this_month_in_redox_september_2025/)
https://www.reddit.com/r/programming/comments/1o0g8c3/this_month_in_redox_september_2025/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://www.redox-os.org/news/this-month-250930/) [comments] (https://www.reddit.com/r/programming/comments/1o0g8c3/this_month_in_redox_september_2025/)
My First Contribution to Linux
https://www.reddit.com/r/programming/comments/1o0gdef/my_first_contribution_to_linux/
submitted by /u/Xaneris47 (https://www.reddit.com/user/Xaneris47)
[link] (https://vkoskiv.com/first-linux-patch/) [comments] (https://www.reddit.com/r/programming/comments/1o0gdef/my_first_contribution_to_linux/)
https://www.reddit.com/r/programming/comments/1o0gdef/my_first_contribution_to_linux/
submitted by /u/Xaneris47 (https://www.reddit.com/user/Xaneris47)
[link] (https://vkoskiv.com/first-linux-patch/) [comments] (https://www.reddit.com/r/programming/comments/1o0gdef/my_first_contribution_to_linux/)
The evolution of Lua, continued [pdf]
https://www.reddit.com/r/programming/comments/1o0g0n4/the_evolution_of_lua_continued_pdf/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://www.lua.org/doc/cola.pdf) [comments] (https://www.reddit.com/r/programming/comments/1o0g0n4/the_evolution_of_lua_continued_pdf/)
https://www.reddit.com/r/programming/comments/1o0g0n4/the_evolution_of_lua_continued_pdf/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://www.lua.org/doc/cola.pdf) [comments] (https://www.reddit.com/r/programming/comments/1o0g0n4/the_evolution_of_lua_continued_pdf/)
Tokenization from first principles
https://www.reddit.com/r/programming/comments/1o0ggdu/tokenization_from_first_principles/
submitted by /u/ashvar (https://www.reddit.com/user/ashvar)
[link] (https://ggrigorev.me/posts/tokenizer-superbpe/) [comments] (https://www.reddit.com/r/programming/comments/1o0ggdu/tokenization_from_first_principles/)
https://www.reddit.com/r/programming/comments/1o0ggdu/tokenization_from_first_principles/
submitted by /u/ashvar (https://www.reddit.com/user/ashvar)
[link] (https://ggrigorev.me/posts/tokenizer-superbpe/) [comments] (https://www.reddit.com/r/programming/comments/1o0ggdu/tokenization_from_first_principles/)
Cache-Friendly B+Tree Nodes with Dynamic Fanout
https://www.reddit.com/r/programming/comments/1o0m2dc/cachefriendly_btree_nodes_with_dynamic_fanout/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://jacobsherin.com/posts/2025-08-18-bplustree-struct-hack/) [comments] (https://www.reddit.com/r/programming/comments/1o0m2dc/cachefriendly_btree_nodes_with_dynamic_fanout/)
https://www.reddit.com/r/programming/comments/1o0m2dc/cachefriendly_btree_nodes_with_dynamic_fanout/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://jacobsherin.com/posts/2025-08-18-bplustree-struct-hack/) [comments] (https://www.reddit.com/r/programming/comments/1o0m2dc/cachefriendly_btree_nodes_with_dynamic_fanout/)
Locality, and Temporal-Spatial Hypothesis
https://www.reddit.com/r/programming/comments/1o0ov3x/locality_and_temporalspatial_hypothesis/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://brooker.co.za/blog/2025/10/05/locality.html) [comments] (https://www.reddit.com/r/programming/comments/1o0ov3x/locality_and_temporalspatial_hypothesis/)
https://www.reddit.com/r/programming/comments/1o0ov3x/locality_and_temporalspatial_hypothesis/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://brooker.co.za/blog/2025/10/05/locality.html) [comments] (https://www.reddit.com/r/programming/comments/1o0ov3x/locality_and_temporalspatial_hypothesis/)
Composable State Machines: Building Scalable Unit Behavior in RTS Games
https://www.reddit.com/r/programming/comments/1o0ukwq/composable_state_machines_building_scalable_unit/
submitted by /u/EgregorAmeriki (https://www.reddit.com/user/EgregorAmeriki)
[link] (https://medium.com/@galiullinnikolai/composable-state-machines-building-scalable-unit-behavior-in-rts-games-7b3b56cb4906) [comments] (https://www.reddit.com/r/programming/comments/1o0ukwq/composable_state_machines_building_scalable_unit/)
https://www.reddit.com/r/programming/comments/1o0ukwq/composable_state_machines_building_scalable_unit/
submitted by /u/EgregorAmeriki (https://www.reddit.com/user/EgregorAmeriki)
[link] (https://medium.com/@galiullinnikolai/composable-state-machines-building-scalable-unit-behavior-in-rts-games-7b3b56cb4906) [comments] (https://www.reddit.com/r/programming/comments/1o0ukwq/composable_state_machines_building_scalable_unit/)
Chandler Carruth: Memory Safety Everywhere with Both Rust and Carbon | RustConf 2025
https://www.reddit.com/r/programming/comments/1o0vlzd/chandler_carruth_memory_safety_everywhere_with/
submitted by /u/BlueGoliath (https://www.reddit.com/user/BlueGoliath)
[link] (https://www.youtube.com/watch?v=FYLuom6gg_s) [comments] (https://www.reddit.com/r/programming/comments/1o0vlzd/chandler_carruth_memory_safety_everywhere_with/)
https://www.reddit.com/r/programming/comments/1o0vlzd/chandler_carruth_memory_safety_everywhere_with/
submitted by /u/BlueGoliath (https://www.reddit.com/user/BlueGoliath)
[link] (https://www.youtube.com/watch?v=FYLuom6gg_s) [comments] (https://www.reddit.com/r/programming/comments/1o0vlzd/chandler_carruth_memory_safety_everywhere_with/)
Walrus: A 1 Million ops/sec, 1 GB/s Write Ahead Log in Rust
https://www.reddit.com/r/programming/comments/1o0hdn9/walrus_a_1_million_opssec_1_gbs_write_ahead_log/
<!-- SC_OFF -->Hey r/programming (https://www.reddit.com/r/programming), I made walrus: a fast Write Ahead Log (WAL) in Rust built from first principles which achieves 1M ops/sec and 1 GB/s write bandwidth on consumer laptop. find it here: https://github.com/nubskr/walrus I also wrote a blog post explaining the architecture: https://nubskr.com/2025/10/06/walrus.html you can try it out with: cargo add walrus-rust just wanted to share it with the community and know their thoughts about it :) <!-- SC_ON --> submitted by /u/Ok_Marionberry8922 (https://www.reddit.com/user/Ok_Marionberry8922)
[link] (https://nubskr.com/2025/10/06/walrus.html) [comments] (https://www.reddit.com/r/programming/comments/1o0hdn9/walrus_a_1_million_opssec_1_gbs_write_ahead_log/)
https://www.reddit.com/r/programming/comments/1o0hdn9/walrus_a_1_million_opssec_1_gbs_write_ahead_log/
<!-- SC_OFF -->Hey r/programming (https://www.reddit.com/r/programming), I made walrus: a fast Write Ahead Log (WAL) in Rust built from first principles which achieves 1M ops/sec and 1 GB/s write bandwidth on consumer laptop. find it here: https://github.com/nubskr/walrus I also wrote a blog post explaining the architecture: https://nubskr.com/2025/10/06/walrus.html you can try it out with: cargo add walrus-rust just wanted to share it with the community and know their thoughts about it :) <!-- SC_ON --> submitted by /u/Ok_Marionberry8922 (https://www.reddit.com/user/Ok_Marionberry8922)
[link] (https://nubskr.com/2025/10/06/walrus.html) [comments] (https://www.reddit.com/r/programming/comments/1o0hdn9/walrus_a_1_million_opssec_1_gbs_write_ahead_log/)
Bringing NumPy's type-completeness score to nearly 90%
https://www.reddit.com/r/programming/comments/1o0gd22/bringing_numpys_typecompleteness_score_to_nearly/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://pyrefly.org/blog/numpy-type-completeness/) [comments] (https://www.reddit.com/r/programming/comments/1o0gd22/bringing_numpys_typecompleteness_score_to_nearly/)
https://www.reddit.com/r/programming/comments/1o0gd22/bringing_numpys_typecompleteness_score_to_nearly/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://pyrefly.org/blog/numpy-type-completeness/) [comments] (https://www.reddit.com/r/programming/comments/1o0gd22/bringing_numpys_typecompleteness_score_to_nearly/)
Qt 6.10 Released, with Flexbox in QML
https://www.reddit.com/r/programming/comments/1o0m3kj/qt_610_released_with_flexbox_in_qml/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://www.qt.io/blog/qt-6.10-released) [comments] (https://www.reddit.com/r/programming/comments/1o0m3kj/qt_610_released_with_flexbox_in_qml/)
https://www.reddit.com/r/programming/comments/1o0m3kj/qt_610_released_with_flexbox_in_qml/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://www.qt.io/blog/qt-6.10-released) [comments] (https://www.reddit.com/r/programming/comments/1o0m3kj/qt_610_released_with_flexbox_in_qml/)
Python Release Python 3.14.0
https://www.reddit.com/r/programming/comments/1o0ik5m/python_release_python_3140/
submitted by /u/BrewedDoritos (https://www.reddit.com/user/BrewedDoritos)
[link] (https://www.python.org/downloads/release/python-3140/) [comments] (https://www.reddit.com/r/programming/comments/1o0ik5m/python_release_python_3140/)
https://www.reddit.com/r/programming/comments/1o0ik5m/python_release_python_3140/
submitted by /u/BrewedDoritos (https://www.reddit.com/user/BrewedDoritos)
[link] (https://www.python.org/downloads/release/python-3140/) [comments] (https://www.reddit.com/r/programming/comments/1o0ik5m/python_release_python_3140/)
Ghosts of Unix Past: a historical search for design patterns (2010)
https://www.reddit.com/r/programming/comments/1o0gcis/ghosts_of_unix_past_a_historical_search_for/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://lwn.net/Articles/411845/) [comments] (https://www.reddit.com/r/programming/comments/1o0gcis/ghosts_of_unix_past_a_historical_search_for/)
https://www.reddit.com/r/programming/comments/1o0gcis/ghosts_of_unix_past_a_historical_search_for/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://lwn.net/Articles/411845/) [comments] (https://www.reddit.com/r/programming/comments/1o0gcis/ghosts_of_unix_past_a_historical_search_for/)
I pushed Python to 20,000 requests sent/second. Here's the code and kernel tuning I used.
https://www.reddit.com/r/programming/comments/1o087dh/i_pushed_python_to_20000_requests_sentsecond/
<!-- SC_OFF -->I wanted to share a personal project exploring the limits of Python for high-throughput network I/O. My clients would always say "lol no python, only go", so I wanted to see what was actually possible. After a lot of tuning, I managed to get a stable ~20,000 requests/second from a single client machine. The code itself is based on asyncio and a library called rnet, which is a Python wrapper for the high-performance Rust library wreq. This lets me get the developer-friendly syntax of Python with the raw speed of Rust for the actual networking. The most interesting part wasn't the code, but the OS tuning. The default kernel settings on Linux are nowhere near ready for this kind of load. The application would fail instantly without these changes. Here are the most critical settings I had to change on both the client and server: Increased Max File Descriptors: Every socket is a file. The default limit of 1024 is the first thing you'll hit.ulimit -n 65536 Expanded Ephemeral Port Range: The client needs a large pool of ports to make outgoing connections from.net.ipv4.ip_local_port_range = 1024 65535 Increased Connection Backlog: The server needs a bigger queue to hold incoming connections before they are accepted. The default is tiny.net.core.somaxconn = 65535 Enabled TIME_WAIT Reuse: This is huge. It allows the kernel to quickly reuse sockets that are in a TIME_WAIT state, which is essential when you're opening/closing thousands of connections per second.net.ipv4.tcp_tw_reuse = 1 I've open-sourced the entire test setup, including the client code, a simple server, and the full tuning scripts for both machines. You can find it all here if you want to replicate it or just look at the code: GitHub Repo: https://github.com/lafftar/requestSpeedTest On an 8-core machine, this setup hit ~15k req/s, and it scaled to ~20k req/s on a 32-core machine. Interestingly, the CPU was never fully maxed out, so the bottleneck likely lies somewhere else in the stack. I'll be hanging out in the comments to answer any questions. Let me know what you think! Blog Post (I go in a little more detail): https://tjaycodes.com/pushing-python-to-20000-requests-second/ <!-- SC_ON --> submitted by /u/Lafftar (https://www.reddit.com/user/Lafftar)
[link] (https://tjaycodes.com/pushing-python-to-20000-requests-second/) [comments] (https://www.reddit.com/r/programming/comments/1o087dh/i_pushed_python_to_20000_requests_sentsecond/)
https://www.reddit.com/r/programming/comments/1o087dh/i_pushed_python_to_20000_requests_sentsecond/
<!-- SC_OFF -->I wanted to share a personal project exploring the limits of Python for high-throughput network I/O. My clients would always say "lol no python, only go", so I wanted to see what was actually possible. After a lot of tuning, I managed to get a stable ~20,000 requests/second from a single client machine. The code itself is based on asyncio and a library called rnet, which is a Python wrapper for the high-performance Rust library wreq. This lets me get the developer-friendly syntax of Python with the raw speed of Rust for the actual networking. The most interesting part wasn't the code, but the OS tuning. The default kernel settings on Linux are nowhere near ready for this kind of load. The application would fail instantly without these changes. Here are the most critical settings I had to change on both the client and server: Increased Max File Descriptors: Every socket is a file. The default limit of 1024 is the first thing you'll hit.ulimit -n 65536 Expanded Ephemeral Port Range: The client needs a large pool of ports to make outgoing connections from.net.ipv4.ip_local_port_range = 1024 65535 Increased Connection Backlog: The server needs a bigger queue to hold incoming connections before they are accepted. The default is tiny.net.core.somaxconn = 65535 Enabled TIME_WAIT Reuse: This is huge. It allows the kernel to quickly reuse sockets that are in a TIME_WAIT state, which is essential when you're opening/closing thousands of connections per second.net.ipv4.tcp_tw_reuse = 1 I've open-sourced the entire test setup, including the client code, a simple server, and the full tuning scripts for both machines. You can find it all here if you want to replicate it or just look at the code: GitHub Repo: https://github.com/lafftar/requestSpeedTest On an 8-core machine, this setup hit ~15k req/s, and it scaled to ~20k req/s on a 32-core machine. Interestingly, the CPU was never fully maxed out, so the bottleneck likely lies somewhere else in the stack. I'll be hanging out in the comments to answer any questions. Let me know what you think! Blog Post (I go in a little more detail): https://tjaycodes.com/pushing-python-to-20000-requests-second/ <!-- SC_ON --> submitted by /u/Lafftar (https://www.reddit.com/user/Lafftar)
[link] (https://tjaycodes.com/pushing-python-to-20000-requests-second/) [comments] (https://www.reddit.com/r/programming/comments/1o087dh/i_pushed_python_to_20000_requests_sentsecond/)
The childhood game that explains AI’s decision trees
https://www.reddit.com/r/programming/comments/1o0t8ml/the_childhood_game_that_explains_ais_decision/
<!-- SC_OFF -->An engineer recently explored how the classic board game Guess Who? reveals the underlying logic of AI decision trees. In the game, players don’t guess — they ask the question that gives the most information, systematically eliminating possibilities until only one remains. This mirrors how decision trees in machine learning split data: each “question” (feature) aims to reduce uncertainty and create cleaner partitions. The project draws direct parallels between the game’s yes/no mechanics and predictive ML processes, such as feature selection and information gain. Just as a player might ask, “Does your character wear glasses?” to remove half the options, a model might ask, “Is blood pressure high?” to refine its classification. By using a nostalgic, visual example, the engineer illustrates how understanding question efficiency in a simple game can demystify how AI models learn to make accurate predictions with minimal steps. <!-- SC_ON --> submitted by /u/shift_devs (https://www.reddit.com/user/shift_devs)
[link] (https://shiftmag.dev/how-guess-who-logic-shapes-ai-decision-trees-and-predictive-ml-5874/) [comments] (https://www.reddit.com/r/programming/comments/1o0t8ml/the_childhood_game_that_explains_ais_decision/)
https://www.reddit.com/r/programming/comments/1o0t8ml/the_childhood_game_that_explains_ais_decision/
<!-- SC_OFF -->An engineer recently explored how the classic board game Guess Who? reveals the underlying logic of AI decision trees. In the game, players don’t guess — they ask the question that gives the most information, systematically eliminating possibilities until only one remains. This mirrors how decision trees in machine learning split data: each “question” (feature) aims to reduce uncertainty and create cleaner partitions. The project draws direct parallels between the game’s yes/no mechanics and predictive ML processes, such as feature selection and information gain. Just as a player might ask, “Does your character wear glasses?” to remove half the options, a model might ask, “Is blood pressure high?” to refine its classification. By using a nostalgic, visual example, the engineer illustrates how understanding question efficiency in a simple game can demystify how AI models learn to make accurate predictions with minimal steps. <!-- SC_ON --> submitted by /u/shift_devs (https://www.reddit.com/user/shift_devs)
[link] (https://shiftmag.dev/how-guess-who-logic-shapes-ai-decision-trees-and-predictive-ml-5874/) [comments] (https://www.reddit.com/r/programming/comments/1o0t8ml/the_childhood_game_that_explains_ais_decision/)