How I Doubled My Lookup Performance with a Bitwise Trick
https://www.reddit.com/r/programming/comments/1m0tcd6/how_i_doubled_my_lookup_performance_with_a/
<!-- SC_OFF -->Hey folks, While working on a Cuckoo Filter implementation, I originally used a simple byte array to store 4-slot buckets, each holding 1-byte fingerprints. Then it hit me—those 4 bytes fit perfectly into a 32-bit integer. So why not treat the whole bucket as a single uint? That small insight led to a few evenings of playing with bitwise operations. Eventually, I replaced loops and branching with a compact SWAR (https://en.wikipedia.org/wiki/SWAR). Here's what it is in one line: ((bucket ^ (fp * 0x01010101U)) - 0x01010101U) & ~(bucket ^ (fp * 0x01010101U)) & 0x80808080U) != 0 Over 60% faster positive lookups and more than 2× faster negative lookups. I liked the result enough to write up the whole journey in an article: the idea, the math, step-by-step explanation, and the benchmarks. If that one-liner looks scary, don't worry—it's not as bad as it seems. And it was fun stuff to explore. <!-- SC_ON --> submitted by /u/axel-user (https://www.reddit.com/user/axel-user)
[link] (https://maltsev.space/blog/012-simd-within-a-register-how-i-doubled-hash-table-lookup-performance) [comments] (https://www.reddit.com/r/programming/comments/1m0tcd6/how_i_doubled_my_lookup_performance_with_a/)
https://www.reddit.com/r/programming/comments/1m0tcd6/how_i_doubled_my_lookup_performance_with_a/
<!-- SC_OFF -->Hey folks, While working on a Cuckoo Filter implementation, I originally used a simple byte array to store 4-slot buckets, each holding 1-byte fingerprints. Then it hit me—those 4 bytes fit perfectly into a 32-bit integer. So why not treat the whole bucket as a single uint? That small insight led to a few evenings of playing with bitwise operations. Eventually, I replaced loops and branching with a compact SWAR (https://en.wikipedia.org/wiki/SWAR). Here's what it is in one line: ((bucket ^ (fp * 0x01010101U)) - 0x01010101U) & ~(bucket ^ (fp * 0x01010101U)) & 0x80808080U) != 0 Over 60% faster positive lookups and more than 2× faster negative lookups. I liked the result enough to write up the whole journey in an article: the idea, the math, step-by-step explanation, and the benchmarks. If that one-liner looks scary, don't worry—it's not as bad as it seems. And it was fun stuff to explore. <!-- SC_ON --> submitted by /u/axel-user (https://www.reddit.com/user/axel-user)
[link] (https://maltsev.space/blog/012-simd-within-a-register-how-i-doubled-hash-table-lookup-performance) [comments] (https://www.reddit.com/r/programming/comments/1m0tcd6/how_i_doubled_my_lookup_performance_with_a/)
Hazel, a live functional programming environment featuring typed holes.
https://www.reddit.com/r/programming/comments/1m0ugrt/hazel_a_live_functional_programming_environment/
submitted by /u/gametorch (https://www.reddit.com/user/gametorch)
[link] (https://hazel.org/) [comments] (https://www.reddit.com/r/programming/comments/1m0ugrt/hazel_a_live_functional_programming_environment/)
https://www.reddit.com/r/programming/comments/1m0ugrt/hazel_a_live_functional_programming_environment/
submitted by /u/gametorch (https://www.reddit.com/user/gametorch)
[link] (https://hazel.org/) [comments] (https://www.reddit.com/r/programming/comments/1m0ugrt/hazel_a_live_functional_programming_environment/)
To be a better programmer, write little proofs in your head
https://www.reddit.com/r/programming/comments/1m0usy7/to_be_a_better_programmer_write_little_proofs_in/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://the-nerve-blog.ghost.io/to-be-a-better-programmer-write-little-proofs-in-your-head/) [comments] (https://www.reddit.com/r/programming/comments/1m0usy7/to_be_a_better_programmer_write_little_proofs_in/)
https://www.reddit.com/r/programming/comments/1m0usy7/to_be_a_better_programmer_write_little_proofs_in/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://the-nerve-blog.ghost.io/to-be-a-better-programmer-write-little-proofs-in-your-head/) [comments] (https://www.reddit.com/r/programming/comments/1m0usy7/to_be_a_better_programmer_write_little_proofs_in/)
Adding lookbehinds to rust-lang/regex
https://www.reddit.com/r/programming/comments/1m0uu5l/adding_lookbehinds_to_rustlangregex/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://systemf.epfl.ch/blog/rust-regex-lookbehinds/) [comments] (https://www.reddit.com/r/programming/comments/1m0uu5l/adding_lookbehinds_to_rustlangregex/)
https://www.reddit.com/r/programming/comments/1m0uu5l/adding_lookbehinds_to_rustlangregex/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://systemf.epfl.ch/blog/rust-regex-lookbehinds/) [comments] (https://www.reddit.com/r/programming/comments/1m0uu5l/adding_lookbehinds_to_rustlangregex/)
A quick look at unprivileged sandboxing
https://www.reddit.com/r/programming/comments/1m0uunh/a_quick_look_at_unprivileged_sandboxing/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://www.uninformativ.de/blog/postings/2025-07-13/0/POSTING-en.html) [comments] (https://www.reddit.com/r/programming/comments/1m0uunh/a_quick_look_at_unprivileged_sandboxing/)
https://www.reddit.com/r/programming/comments/1m0uunh/a_quick_look_at_unprivileged_sandboxing/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://www.uninformativ.de/blog/postings/2025-07-13/0/POSTING-en.html) [comments] (https://www.reddit.com/r/programming/comments/1m0uunh/a_quick_look_at_unprivileged_sandboxing/)
Poor man's bitemporal data system in SQLite and Clojure
https://www.reddit.com/r/programming/comments/1m0uvqg/poor_mans_bitemporal_data_system_in_sqlite_and/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://www.evalapply.org/posts/poor-mans-time-oriented-data-system/index.html) [comments] (https://www.reddit.com/r/programming/comments/1m0uvqg/poor_mans_bitemporal_data_system_in_sqlite_and/)
https://www.reddit.com/r/programming/comments/1m0uvqg/poor_mans_bitemporal_data_system_in_sqlite_and/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://www.evalapply.org/posts/poor-mans-time-oriented-data-system/index.html) [comments] (https://www.reddit.com/r/programming/comments/1m0uvqg/poor_mans_bitemporal_data_system_in_sqlite_and/)
How to Get Foreign Keys Horribly Wrong
https://www.reddit.com/r/programming/comments/1m0uvwp/how_to_get_foreign_keys_horribly_wrong/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://hakibenita.com/django-foreign-keys) [comments] (https://www.reddit.com/r/programming/comments/1m0uvwp/how_to_get_foreign_keys_horribly_wrong/)
https://www.reddit.com/r/programming/comments/1m0uvwp/how_to_get_foreign_keys_horribly_wrong/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://hakibenita.com/django-foreign-keys) [comments] (https://www.reddit.com/r/programming/comments/1m0uvwp/how_to_get_foreign_keys_horribly_wrong/)
Initial implementation of the experimental C++ Lifetime Safety Analysis (-Wexperimental-lifetime-safety) has just landed in Clang
https://www.reddit.com/r/programming/comments/1m0uw2t/initial_implementation_of_the_experimental_c/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://discourse.llvm.org/t/announcing-the-lifetime-safety-breakout-group/87333) [comments] (https://www.reddit.com/r/programming/comments/1m0uw2t/initial_implementation_of_the_experimental_c/)
https://www.reddit.com/r/programming/comments/1m0uw2t/initial_implementation_of_the_experimental_c/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://discourse.llvm.org/t/announcing-the-lifetime-safety-breakout-group/87333) [comments] (https://www.reddit.com/r/programming/comments/1m0uw2t/initial_implementation_of_the_experimental_c/)
A distributed systems reliability glossary
https://www.reddit.com/r/programming/comments/1m0uw44/a_distributed_systems_reliability_glossary/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://antithesis.com/resources/reliability_glossary/) [comments] (https://www.reddit.com/r/programming/comments/1m0uw44/a_distributed_systems_reliability_glossary/)
https://www.reddit.com/r/programming/comments/1m0uw44/a_distributed_systems_reliability_glossary/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://antithesis.com/resources/reliability_glossary/) [comments] (https://www.reddit.com/r/programming/comments/1m0uw44/a_distributed_systems_reliability_glossary/)
Transition to using 16 KB page sizes for Android apps and games
https://www.reddit.com/r/programming/comments/1m0ux29/transition_to_using_16_kb_page_sizes_for_android/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://android-developers.googleblog.com/2025/07/transition-to-16-kb-page-sizes-android-apps-games-android-studio.html) [comments] (https://www.reddit.com/r/programming/comments/1m0ux29/transition_to_using_16_kb_page_sizes_for_android/)
https://www.reddit.com/r/programming/comments/1m0ux29/transition_to_using_16_kb_page_sizes_for_android/
submitted by /u/ketralnis (https://www.reddit.com/user/ketralnis)
[link] (https://android-developers.googleblog.com/2025/07/transition-to-16-kb-page-sizes-android-apps-games-android-studio.html) [comments] (https://www.reddit.com/r/programming/comments/1m0ux29/transition_to_using_16_kb_page_sizes_for_android/)
Am I Becoming Irrelevant?
https://www.reddit.com/r/programming/comments/1m14tex/am_i_becoming_irrelevant/
submitted by /u/jrdi_ (https://www.reddit.com/user/jrdi_)
[link] (https://jordivillar.com/blog/becoming-irrelevant) [comments] (https://www.reddit.com/r/programming/comments/1m14tex/am_i_becoming_irrelevant/)
https://www.reddit.com/r/programming/comments/1m14tex/am_i_becoming_irrelevant/
submitted by /u/jrdi_ (https://www.reddit.com/user/jrdi_)
[link] (https://jordivillar.com/blog/becoming-irrelevant) [comments] (https://www.reddit.com/r/programming/comments/1m14tex/am_i_becoming_irrelevant/)
Are self maintained language frameworks worth it?
https://www.reddit.com/r/programming/comments/1m17sde/are_self_maintained_language_frameworks_worth_it/
<!-- SC_OFF -->I recently joined a company that uses Haskell for its backend. On top of that, they’ve built their own custom framework for it. Since I’m new to both Haskell and this in-house setup, I’ve been wondering: Was it really necessary to build a whole new framework? What kind of circumstances make maintaining your own framework worthwhile? Are the trade-offs—like developer ramp-up time and maintainability—justified in the long run? Curious to hear your experiences or opinions—especially if you’ve worked with in-house frameworks in lesser-used languages. <!-- SC_ON --> submitted by /u/Willing-Bookkeeper75 (https://www.reddit.com/user/Willing-Bookkeeper75)
[link] (https://github.com/juspay/euler-hs) [comments] (https://www.reddit.com/r/programming/comments/1m17sde/are_self_maintained_language_frameworks_worth_it/)
https://www.reddit.com/r/programming/comments/1m17sde/are_self_maintained_language_frameworks_worth_it/
<!-- SC_OFF -->I recently joined a company that uses Haskell for its backend. On top of that, they’ve built their own custom framework for it. Since I’m new to both Haskell and this in-house setup, I’ve been wondering: Was it really necessary to build a whole new framework? What kind of circumstances make maintaining your own framework worthwhile? Are the trade-offs—like developer ramp-up time and maintainability—justified in the long run? Curious to hear your experiences or opinions—especially if you’ve worked with in-house frameworks in lesser-used languages. <!-- SC_ON --> submitted by /u/Willing-Bookkeeper75 (https://www.reddit.com/user/Willing-Bookkeeper75)
[link] (https://github.com/juspay/euler-hs) [comments] (https://www.reddit.com/r/programming/comments/1m17sde/are_self_maintained_language_frameworks_worth_it/)
Clean and Testable Widgets with widget_driver in Flutter
https://www.reddit.com/r/programming/comments/1m18181/clean_and_testable_widgets_with_widget_driver_in/
submitted by /u/Consistent-Jicama932 (https://www.reddit.com/user/Consistent-Jicama932)
[link] (https://medium.com/@mobileatexxeta/clean-and-testable-widgets-with-widget-driver-in-flutter-c63bcb4a1171) [comments] (https://www.reddit.com/r/programming/comments/1m18181/clean_and_testable_widgets_with_widget_driver_in/)
https://www.reddit.com/r/programming/comments/1m18181/clean_and_testable_widgets_with_widget_driver_in/
submitted by /u/Consistent-Jicama932 (https://www.reddit.com/user/Consistent-Jicama932)
[link] (https://medium.com/@mobileatexxeta/clean-and-testable-widgets-with-widget-driver-in-flutter-c63bcb4a1171) [comments] (https://www.reddit.com/r/programming/comments/1m18181/clean_and_testable_widgets_with_widget_driver_in/)
Beyond the Hype: Real Talk on AI-Assisted Development • Jessica Kerr & Diana Montalion
https://www.reddit.com/r/programming/comments/1m182gh/beyond_the_hype_real_talk_on_aiassisted/
submitted by /u/goto-con (https://www.reddit.com/user/goto-con)
[link] (https://youtu.be/wUrIjKbktCk) [comments] (https://www.reddit.com/r/programming/comments/1m182gh/beyond_the_hype_real_talk_on_aiassisted/)
https://www.reddit.com/r/programming/comments/1m182gh/beyond_the_hype_real_talk_on_aiassisted/
submitted by /u/goto-con (https://www.reddit.com/user/goto-con)
[link] (https://youtu.be/wUrIjKbktCk) [comments] (https://www.reddit.com/r/programming/comments/1m182gh/beyond_the_hype_real_talk_on_aiassisted/)
Generative Geometry and CLACL Language: Key Concepts
https://www.reddit.com/r/programming/comments/1m1chwk/generative_geometry_and_clacl_language_key/
<!-- SC_OFF -->Theory of a new non-Cartesian logical geometry and CLACL programming language <!-- SC_ON --> submitted by /u/Maga565 (https://www.reddit.com/user/Maga565)
[link] (https://g.co/gemini/share/ade981b05669) [comments] (https://www.reddit.com/r/programming/comments/1m1chwk/generative_geometry_and_clacl_language_key/)
https://www.reddit.com/r/programming/comments/1m1chwk/generative_geometry_and_clacl_language_key/
<!-- SC_OFF -->Theory of a new non-Cartesian logical geometry and CLACL programming language <!-- SC_ON --> submitted by /u/Maga565 (https://www.reddit.com/user/Maga565)
[link] (https://g.co/gemini/share/ade981b05669) [comments] (https://www.reddit.com/r/programming/comments/1m1chwk/generative_geometry_and_clacl_language_key/)
A multi-client man in the middle proxy made for tcp connections with IPv4 over any ip and port desired.
https://www.reddit.com/r/programming/comments/1m1cxfg/a_multiclient_man_in_the_middle_proxy_made_for/
submitted by /u/yurtrimu (https://www.reddit.com/user/yurtrimu)
[link] (https://github.com/xyurt/tcp-mitm-proxy) [comments] (https://www.reddit.com/r/programming/comments/1m1cxfg/a_multiclient_man_in_the_middle_proxy_made_for/)
https://www.reddit.com/r/programming/comments/1m1cxfg/a_multiclient_man_in_the_middle_proxy_made_for/
submitted by /u/yurtrimu (https://www.reddit.com/user/yurtrimu)
[link] (https://github.com/xyurt/tcp-mitm-proxy) [comments] (https://www.reddit.com/r/programming/comments/1m1cxfg/a_multiclient_man_in_the_middle_proxy_made_for/)
Day 7: mergeMap vs switchMap vs concatMap — Which One Should You Use?
https://www.reddit.com/r/programming/comments/1m1dibu/day_7_mergemap_vs_switchmap_vs_concatmap_which/
submitted by /u/MysteriousEye8494 (https://www.reddit.com/user/MysteriousEye8494)
[link] (https://medium.com/devinsight/day-7-mergemap-vs-switchmap-vs-concatmap-which-one-should-you-use-9549eff7afe7) [comments] (https://www.reddit.com/r/programming/comments/1m1dibu/day_7_mergemap_vs_switchmap_vs_concatmap_which/)
https://www.reddit.com/r/programming/comments/1m1dibu/day_7_mergemap_vs_switchmap_vs_concatmap_which/
submitted by /u/MysteriousEye8494 (https://www.reddit.com/user/MysteriousEye8494)
[link] (https://medium.com/devinsight/day-7-mergemap-vs-switchmap-vs-concatmap-which-one-should-you-use-9549eff7afe7) [comments] (https://www.reddit.com/r/programming/comments/1m1dibu/day_7_mergemap_vs_switchmap_vs_concatmap_which/)
Show: ggc – A terminal Git client with both CLI and interactive UI
https://www.reddit.com/r/programming/comments/1m1eiu1/show_ggc_a_terminal_git_client_with_both_cli_and/
<!-- SC_OFF -->Hi all, I recently built ggc (https://github.com/bmf-san/ggc), a Git client that runs entirely in the terminal — offering both traditional subcommands and a fuzzy-search-based interactive UI. It started as a personal need: my Git aliases and shell scripts were growing out of control. I wanted something fast, lightweight, and shareable. So I wrote it in Go. 🔹 Highlights: - Run ggc to launch an interactive Git UI (branch checkout, staging, stashing, etc.) - Or run ggc for familiar subcommands - Built-in workflows like addcommitpush and stashpullpop - No external dependencies — just Go stdlib + x/term It’s open source, and I’d love to hear what you think — especially if you’ve built CLI tools or worked on similar ideas. Repo: https://github.com/bmf-san/ggc <!-- SC_ON --> submitted by /u/bmf_san (https://www.reddit.com/user/bmf_san)
[link] (https://github.com/bmf-san/ggc) [comments] (https://www.reddit.com/r/programming/comments/1m1eiu1/show_ggc_a_terminal_git_client_with_both_cli_and/)
https://www.reddit.com/r/programming/comments/1m1eiu1/show_ggc_a_terminal_git_client_with_both_cli_and/
<!-- SC_OFF -->Hi all, I recently built ggc (https://github.com/bmf-san/ggc), a Git client that runs entirely in the terminal — offering both traditional subcommands and a fuzzy-search-based interactive UI. It started as a personal need: my Git aliases and shell scripts were growing out of control. I wanted something fast, lightweight, and shareable. So I wrote it in Go. 🔹 Highlights: - Run ggc to launch an interactive Git UI (branch checkout, staging, stashing, etc.) - Or run ggc for familiar subcommands - Built-in workflows like addcommitpush and stashpullpop - No external dependencies — just Go stdlib + x/term It’s open source, and I’d love to hear what you think — especially if you’ve built CLI tools or worked on similar ideas. Repo: https://github.com/bmf-san/ggc <!-- SC_ON --> submitted by /u/bmf_san (https://www.reddit.com/user/bmf_san)
[link] (https://github.com/bmf-san/ggc) [comments] (https://www.reddit.com/r/programming/comments/1m1eiu1/show_ggc_a_terminal_git_client_with_both_cli_and/)
Node.js Interview Q&A: Day 20
https://www.reddit.com/r/programming/comments/1m1eyu7/nodejs_interview_qa_day_20/
submitted by /u/MysteriousEye8494 (https://www.reddit.com/user/MysteriousEye8494)
[link] (https://medium.com/devinsight/node-js-interview-q-a-day-20-f4fd5af32f57) [comments] (https://www.reddit.com/r/programming/comments/1m1eyu7/nodejs_interview_qa_day_20/)
https://www.reddit.com/r/programming/comments/1m1eyu7/nodejs_interview_qa_day_20/
submitted by /u/MysteriousEye8494 (https://www.reddit.com/user/MysteriousEye8494)
[link] (https://medium.com/devinsight/node-js-interview-q-a-day-20-f4fd5af32f57) [comments] (https://www.reddit.com/r/programming/comments/1m1eyu7/nodejs_interview_qa_day_20/)
Scalability is not performance
https://www.reddit.com/r/programming/comments/1m1hujc/scalability_is_not_performance/
submitted by /u/RecklessHeroism (https://www.reddit.com/user/RecklessHeroism)
[link] (https://gregros.dev/architecture/scalability-is-not-performance) [comments] (https://www.reddit.com/r/programming/comments/1m1hujc/scalability_is_not_performance/)
https://www.reddit.com/r/programming/comments/1m1hujc/scalability_is_not_performance/
submitted by /u/RecklessHeroism (https://www.reddit.com/user/RecklessHeroism)
[link] (https://gregros.dev/architecture/scalability-is-not-performance) [comments] (https://www.reddit.com/r/programming/comments/1m1hujc/scalability_is_not_performance/)