reddit_programming | Technologies

Telegram-канал reddit_programming - Reddit Programming

212

I will send you newest post from subreddit /r/programming

Subscribe to a channel

Reddit Programming

[link] (https://play.google.com/store/apps/details?id=com.pixelcraftlabs.algoscroll) [comments] (https://www.reddit.com/r/programming/comments/1tzxrpz/building_a_spaced_repetition_system_that_adapts/)

Читать полностью…

Reddit Programming

Tab Vacuum - click once to remove every duplicate Chrome tab and auto-group the rest by website
https://www.reddit.com/r/programming/comments/1tzx350/tab_vacuum_click_once_to_remove_every_duplicate/

<!-- SC_OFF -->I had 4 Chrome windows with ~80 tabs each, mostly duplicates of the same Stack Overflow page. Tried OneTab (saves to a list - not what I wanted) and Workona (cloud sync, overkill). So I wrote ~50 lines of vanilla JS. Click the toolbar icon → every duplicate tab across every window is removed (matched by URL) → survivors merge into one window → remaining tabs auto-group by hostname (collapsed). Two permissions: tabs, tabGroups. No background activity, no server, no analytics. Whole source is in the README so you can audit it before installing. Chrome Web Store: https://chromewebstore.google.com/detail/tab-vacuum/apdjhdjcejehjiomcolfgfgjhaedoieb GitHub: https://github.com/mayhsundar/tab-vacuum
Please give your comments <!-- SC_ON --> submitted by /u/mayhsundar (https://www.reddit.com/user/mayhsundar)
[link] (https://chromewebstore.google.com/detail/tab-vacuum/apdjhdjcejehjiomcolfgfgjhaedoieb) [comments] (https://www.reddit.com/r/programming/comments/1tzx350/tab_vacuum_click_once_to_remove_every_duplicate/)

Читать полностью…

Reddit Programming

The cover of C++: The Programming Language raises questions not answered by the cover
https://www.reddit.com/r/programming/comments/1tybuv7/the_cover_of_c_the_programming_language_raises/

submitted by /u/lelanthran (https://www.reddit.com/user/lelanthran)
[link] (https://devblogs.microsoft.com/oldnewthing/20260401-00/?p=112180) [comments] (https://www.reddit.com/r/programming/comments/1tybuv7/the_cover_of_c_the_programming_language_raises/)

Читать полностью…

Reddit Programming

My Software North Star
https://www.reddit.com/r/programming/comments/1txelfr/my_software_north_star/

submitted by /u/f311a (https://www.reddit.com/user/f311a)
[link] (https://kristoff.it/blog/north-star/) [comments] (https://www.reddit.com/r/programming/comments/1txelfr/my_software_north_star/)

Читать полностью…

Reddit Programming

Porting our Django backend to Rust improved the infra usage by 90%
https://www.reddit.com/r/programming/comments/1twww78/porting_our_django_backend_to_rust_improved_the/

submitted by /u/syrusakbary (https://www.reddit.com/user/syrusakbary)
[link] (https://wasmer.io/posts/ported-wasmer-backend-django-to-rust) [comments] (https://www.reddit.com/r/programming/comments/1twww78/porting_our_django_backend_to_rust_improved_the/)

Читать полностью…

Reddit Programming

Single responsibility, the distorted principle
https://www.reddit.com/r/programming/comments/1twlx1p/single_responsibility_the_distorted_principle/

<!-- SC_OFF -->Have you ever discussed the Single Responsibility Principle with your coworkers? Take a look at this article, where I explore why this principle might be a problem. What do you think? <!-- SC_ON --> submitted by /u/Illustrious-Topic-50 (https://www.reddit.com/user/Illustrious-Topic-50)
[link] (https://www.truehenrique.com/en/2021/10/27/single-responsibility-the-distorted-principle/) [comments] (https://www.reddit.com/r/programming/comments/1twlx1p/single_responsibility_the_distorted_principle/)

Читать полностью…

Reddit Programming

Tiny Static Site Generator with custom template engine
https://www.reddit.com/r/programming/comments/1twkr3z/tiny_static_site_generator_with_custom_template/

<!-- SC_OFF -->page URL : - https://mukul0x9.pages.dev/blog/tiny-ssg/ I wanted to understand how template engines and markdown parsers work internally. The project explores: compiling templates into Python functions using exec() block + inline markdown parsing simple AST construction stack-based inline parsing for nested formatting rendering the AST into HTML <!-- SC_ON --> submitted by /u/mukulx99 (https://www.reddit.com/user/mukulx99)
[link] (https://mukul0x9.github.io/blog/tiny-ssg/) [comments] (https://www.reddit.com/r/programming/comments/1twkr3z/tiny_static_site_generator_with_custom_template/)

Читать полностью…

Reddit Programming

Pandas as a reason to learn Python, even if you’re not doing data science
https://www.reddit.com/r/programming/comments/1twhl2t/pandas_as_a_reason_to_learn_python_even_if_youre/

<!-- SC_OFF -->I wrote a short article about why Pandas is worth learning from a general programming perspective, not just a data science one. A lot of everyday programming work involves tabular data - CSV files, reports, logs, exports, billing data, sales data, inventory data, operational spreadsheets, analytics extracts, etc. You can process that kind of data with loops and dictionaries, SQL, shell tools, or spreadsheets. But Pandas gives Python a very compact and expressive way to do filtering, grouping, aggregation, joins, and reshaping in code. The article uses a small sales/purchases CSV example and compares the Pandas approach with plain Python and spreadsheet-style thinking. I’m curious how other programmers think about this: is Pandas one of the libraries that makes Python worth learning, even for people whose main work is not data science? Or would you usually reach for SQL, spreadsheets, shell tools, or something else? <!-- SC_ON --> submitted by /u/Horror-Willingness74 (https://www.reddit.com/user/Horror-Willingness74)
[link] (https://blog.geekuni.com/2026/06/why-learn-pandas.html) [comments] (https://www.reddit.com/r/programming/comments/1twhl2t/pandas_as_a_reason_to_learn_python_even_if_youre/)

Читать полностью…

Reddit Programming

Elixir v1.20 released: now a gradually typed language
https://www.reddit.com/r/programming/comments/1twg7mu/elixir_v120_released_now_a_gradually_typed/

submitted by /u/f311a (https://www.reddit.com/user/f311a)
[link] (https://elixir-lang.org/blog/2026/06/03/elixir-v1-20-0-released/) [comments] (https://www.reddit.com/r/programming/comments/1twg7mu/elixir_v120_released_now_a_gradually_typed/)

Читать полностью…

Reddit Programming

Streaming Logs to RSigma for Real-Time Detection
https://www.reddit.com/r/programming/comments/1tw5biz/streaming_logs_to_rsigma_for_realtime_detection/

submitted by /u/Happycodeine (https://www.reddit.com/user/Happycodeine)
[link] (https://mostafa.dev/streaming-logs-to-rsigma-for-real-time-detection-72084b8041ad?source=friends_link&amp;sk=c99935781cd299a1af68f683acca1238) [comments] (https://www.reddit.com/r/programming/comments/1tw5biz/streaming_logs_to_rsigma_for_realtime_detection/)

Читать полностью…

Reddit Programming

[Sebastian Lague] - I Tried Optimizing my Rubik's Cube Solver
https://www.reddit.com/r/programming/comments/1tvrg4k/sebastian_lague_i_tried_optimizing_my_rubiks_cube/

submitted by /u/Pink401k (https://www.reddit.com/user/Pink401k)
[link] (https://www.youtube.com/watch?v=Eysf6-E3ino) [comments] (https://www.reddit.com/r/programming/comments/1tvrg4k/sebastian_lague_i_tried_optimizing_my_rubiks_cube/)

Читать полностью…

Reddit Programming

NULLs in ClickHouse can hurt performance
https://www.reddit.com/r/programming/comments/1tvnhbz/nulls_in_clickhouse_can_hurt_performance/

submitted by /u/f311a (https://www.reddit.com/user/f311a)
[link] (https://rushter.com/blog/clickhouse-nulls/) [comments] (https://www.reddit.com/r/programming/comments/1tvnhbz/nulls_in_clickhouse_can_hurt_performance/)

Читать полностью…

Reddit Programming

1-Click GitHub Token Stealing via a VSCode Bug
https://www.reddit.com/r/programming/comments/1tvftne/1click_github_token_stealing_via_a_vscode_bug/

submitted by /u/nicovank13 (https://www.reddit.com/user/nicovank13)
[link] (https://blog.ammaraskar.com/github-token-stealing/) [comments] (https://www.reddit.com/r/programming/comments/1tvftne/1click_github_token_stealing_via_a_vscode_bug/)

Читать полностью…

Reddit Programming

Bug hunt: Why you only need Paris to beat Pizza Tycoon (1994)
https://www.reddit.com/r/programming/comments/1tumfhb/bug_hunt_why_you_only_need_paris_to_beat_pizza/

submitted by /u/Optdev (https://www.reddit.com/user/Optdev)
[link] (https://pizzalegacy.nl/blog/bug-hunt-why-you-only-need-paris-to-beat-pizza-tycoon.html) [comments] (https://www.reddit.com/r/programming/comments/1tumfhb/bug_hunt_why_you_only_need_paris_to_beat_pizza/)

Читать полностью…

Reddit Programming

Programming as Theory Building, Naur (1985). PDF-link
https://www.reddit.com/r/programming/comments/1tuha5f/programming_as_theory_building_naur_1985_pdflink/

submitted by /u/patrixxxx (https://www.reddit.com/user/patrixxxx)
[link] (https://pages.cs.wisc.edu/~remzi/Naur.pdf) [comments] (https://www.reddit.com/r/programming/comments/1tuha5f/programming_as_theory_building_naur_1985_pdflink/)

Читать полностью…

Reddit Programming

https://www.reddit.com/r/programming/comments/1tzxrpz/building_a_spaced_repetition_system_that_adapts/

<!-- SC_OFF -->I built a flashcard app for interview prep and wanted to share some of the more interesting technical problems I ran into. The app has 1500+ questions across DSA and System Design, and the core challenge was: how do you order cards intelligently without it feeling robotic? Problem 1: Slot Assignment for Spaced Repetition Standard SR (like Anki) just shows the most overdue card next. That works for vocabulary but feels terrible for algorithms because you get 3 Hard questions in a row and want to quit. My approach: generate a target difficulty pattern (Easy, Medium, Easy, Medium, Hard, repeat) based on a 40/40/20 distribution, then assign due cards to matching-difficulty slots. Most-overdue cards get placed first within their tier. Unseen cards fill remaining slots. This means a Hard card that's overdue still lands in a Hard slot, not position 1. You get difficulty variety while still seeing overdue cards at the right time. fun assignSlots(pool: List, dueCards: List): List { val pattern = generatePattern(size = pool.size, distribution = "40/40/20") val dueByDifficulty = dueCards.groupBy { it.difficulty } val result = Array(pattern.size) { null } // Place due cards in matching slots, most overdue first for ((difficulty, cards) in dueByDifficulty) { val sorted = cards.sortedBy { it.nextReviewDate } val availableSlots = pattern.indices.filter { pattern[it] == difficulty && result[it] == null } sorted.zip(availableSlots).forEach { (card, slot) -> result[slot] = findQuestion(card, pool) } } // Fill remaining with unseen // ... } Problem 2: Re-ranking after every swipe without jank After each swipe, the deck needs to re-rank. But the top visible card (position 0) is already animating into view, so you can't move it. Solution: lock position 0, re-rank positions 1+, then check for constraint violations across the boundary (e.g., if locked card is Hard and new position 1 is also Hard, swap position 1 with the first non-Hard card deeper in the deck). This runs on every swipe so it needs to be fast. For 1000 cards, the greedy scoring + constraint check takes Problem 3: Encrypting 1500 questions without startup lag The question bank is AES-256-CBC encrypted in the APK (prevents trivial extraction). Decryption of 1.2MB happens on first load. On older devices this took 400ms, which blocked the UI. Moved it to Dispatchers.IO with a loading skeleton. The key is split across 4 byte arrays in the code to make static analysis harder (not bulletproof, but raises the bar above strings on the APK). Problem 4: Two-deck mode switching with shared progress The app has DSA and System Design as separate decks. Both share the same Room database for progress (same ProgressEntity table, IDs just have different prefixes). When switching modes, the current deck state is cached in memory so you can come back to where you left off. The tricky bit: daily goal and streak count swipes from both decks combined, but the ranker operates independently per deck. Problem 5: Animated sketches synced with code Each question can have a multi-step visual (array state changes, graph traversals). Steps are defined as data (JSON with cell states, highlights, pointers) and rendered by a custom Compose canvas. Code lines are highlighted in sync with each step via a codeLines map per step. The renderer handles 6 visualization types (array, tree, linked list, matrix, graph, string) with a single composable that dispatches by type. Stack: Kotlin, Jetpack Compose (Material 3), Room, Firebase, custom spaced repetition + ranking engine. App: https://play.google.com/store/apps/details?id=com.pixelcraftlabs.algoscroll If anyone's interested in the ranking algorithm details or the sketch rendering system, happy to go deeper. <!-- SC_ON --> submitted by /u/No-Position-7728 (https://www.reddit.com/user/No-Position-7728)

Читать полностью…

Reddit Programming

Stop Using Conventional Commits
https://www.reddit.com/r/programming/comments/1tydqbt/stop_using_conventional_commits/

submitted by /u/f311a (https://www.reddit.com/user/f311a)
[link] (https://sumnerevans.com/posts/software-engineering/stop-using-conventional-commits/) [comments] (https://www.reddit.com/r/programming/comments/1tydqbt/stop_using_conventional_commits/)

Читать полностью…

Reddit Programming

The perils of UUID primary keys in SQLite
https://www.reddit.com/r/programming/comments/1tyalr6/the_perils_of_uuid_primary_keys_in_sqlite/

submitted by /u/andersmurphy (https://www.reddit.com/user/andersmurphy)
[link] (https://andersmurphy.com/2026/06/05/the-perils-of-uuid-primary-keys-in-sqlite.html) [comments] (https://www.reddit.com/r/programming/comments/1tyalr6/the_perils_of_uuid_primary_keys_in_sqlite/)

Читать полностью…

Reddit Programming

A faster bump allocator for rust
https://www.reddit.com/r/programming/comments/1txe9b5/a_faster_bump_allocator_for_rust/

submitted by /u/Successful_Bowl2564 (https://www.reddit.com/user/Successful_Bowl2564)
[link] (https://owen.cafe/posts/stumpalo/) [comments] (https://www.reddit.com/r/programming/comments/1txe9b5/a_faster_bump_allocator_for_rust/)

Читать полностью…

Reddit Programming

Stealing from Biologists to Compile Haskell Faster
https://www.reddit.com/r/programming/comments/1twnahx/stealing_from_biologists_to_compile_haskell_faster/

submitted by /u/mooreds (https://www.reddit.com/user/mooreds)
[link] (https://www.iankduncan.com/engineering/2026-05-30-stealing-from-biologists-to-compile-haskell-faster/) [comments] (https://www.reddit.com/r/programming/comments/1twnahx/stealing_from_biologists_to_compile_haskell_faster/)

Читать полностью…

Reddit Programming

Scala Was an Experiment That Changed Programming - Martin Odersky | The Marco Show
https://www.reddit.com/r/programming/comments/1twl8ip/scala_was_an_experiment_that_changed_programming/

submitted by /u/makingthematrix (https://www.reddit.com/user/makingthematrix)
[link] (https://youtu.be/Xn_YpUtXWT4) [comments] (https://www.reddit.com/r/programming/comments/1twl8ip/scala_was_an_experiment_that_changed_programming/)

Читать полностью…

Reddit Programming

The Schema Proliferation Problem in Kafka and Flink Pipelines: How to Solve It
https://www.reddit.com/r/programming/comments/1twizqa/the_schema_proliferation_problem_in_kafka_and/

submitted by /u/nilukush (https://www.reddit.com/user/nilukush)
[link] (https://www.infoq.com/articles/schema-proliferation-problem/?forceSponsorshipId=9e025991-2977-45e6-8636-c740236b5bfc) [comments] (https://www.reddit.com/r/programming/comments/1twizqa/the_schema_proliferation_problem_in_kafka_and/)

Читать полностью…

Reddit Programming

Finding Hermite Normal Form and Solving Linear Diophantines Using LLL
https://www.reddit.com/r/programming/comments/1twglxs/finding_hermite_normal_form_and_solving_linear/

submitted by /u/DataBaeBee (https://www.reddit.com/user/DataBaeBee)
[link] (https://leetarxiv.substack.com/p/lll-applied-to-extended-gcd-hermite) [comments] (https://www.reddit.com/r/programming/comments/1twglxs/finding_hermite_normal_form_and_solving_linear/)

Читать полностью…

Reddit Programming

A tale about fixing eBPF spinlock issues in the Linux kernel
https://www.reddit.com/r/programming/comments/1tw9pl9/a_tale_about_fixing_ebpf_spinlock_issues_in_the/

submitted by /u/fagnerbrack (https://www.reddit.com/user/fagnerbrack)
[link] (https://rovarma.com/articles/a-tale-about-fixing-ebpf-spinlock-issues-in-the-linux-kernel/) [comments] (https://www.reddit.com/r/programming/comments/1tw9pl9/a_tale_about_fixing_ebpf_spinlock_issues_in_the/)

Читать полностью…

Reddit Programming

Every byte matters
https://www.reddit.com/r/programming/comments/1tvrvv4/every_byte_matters/

submitted by /u/lelanthran (https://www.reddit.com/user/lelanthran)
[link] (https://fzakaria.com/2026/06/01/every-byte-matters) [comments] (https://www.reddit.com/r/programming/comments/1tvrvv4/every_byte_matters/)

Читать полностью…

Reddit Programming

How Fast Can You Parse 1 Billion Rows in Java? – Insane Speed Test • Roy van Rijn
https://www.reddit.com/r/programming/comments/1tvo6ij/how_fast_can_you_parse_1_billion_rows_in_java/

<!-- SC_OFF -->Join me in this deep dive where I'll explain all the code changes and tricks that took me from the reference implementation which processes the billion records in 4+ minutes, to processing everything in under 2 seconds. Who knew Java could be this fast? <!-- SC_ON --> submitted by /u/goto-con (https://www.reddit.com/user/goto-con)
[link] (https://youtu.be/pHZF-zJ3Bpg?list=PLEx5khR4g7PINwOsYrkwz3lTTJUYoXC53) [comments] (https://www.reddit.com/r/programming/comments/1tvo6ij/how_fast_can_you_parse_1_billion_rows_in_java/)

Читать полностью…

Reddit Programming

How Rockstar fit an entire city into PlayStation 2 memory
https://www.reddit.com/r/programming/comments/1tvmk4y/how_rockstar_fit_an_entire_city_into_playstation/

submitted by /u/r_retrohacking_mod2 (https://www.reddit.com/user/r_retrohacking_mod2)
[link] (https://m.youtube.com/watch?v=cIbCxbrBCys) [comments] (https://www.reddit.com/r/programming/comments/1tvmk4y/how_rockstar_fit_an_entire_city_into_playstation/)

Читать полностью…

Reddit Programming

Branchless Quicksort faster than std::sort and pdqsort with C and C++ API
https://www.reddit.com/r/programming/comments/1tupr5n/branchless_quicksort_faster_than_stdsort_and/

submitted by /u/chkas (https://www.reddit.com/user/chkas)
[link] (https://tiki.li/blog/blqsort) [comments] (https://www.reddit.com/r/programming/comments/1tupr5n/branchless_quicksort_faster_than_stdsort_and/)

Читать полностью…

Reddit Programming

Sanglard analyzes the video compression techniques of Silpheed (Sega CD, 1993)
https://www.reddit.com/r/programming/comments/1tujc4v/sanglard_analyzes_the_video_compression/

submitted by /u/r_retrohacking_mod2 (https://www.reddit.com/user/r_retrohacking_mod2)
[link] (https://fabiensanglard.net/silpheed/index.html) [comments] (https://www.reddit.com/r/programming/comments/1tujc4v/sanglard_analyzes_the_video_compression/)

Читать полностью…

Reddit Programming

strace-ui, Bonsai_term, and the TUI renaissance
https://www.reddit.com/r/programming/comments/1tufrrb/straceui_bonsai_term_and_the_tui_renaissance/

submitted by /u/mttd (https://www.reddit.com/user/mttd)
[link] (https://blog.janestreet.com/strace-ui-bonsai-term-and-the-tui-renaissance/) [comments] (https://www.reddit.com/r/programming/comments/1tufrrb/straceui_bonsai_term_and_the_tui_renaissance/)

Читать полностью…
Subscribe to a channel