Better HN
topnewbestaskshowjobs
Log inSign up

AttilaT

67 karma · joined Mar 23, 2025 (1y ago) · 10 submissions

github.com/attilatorda
Submissions

comment 1mo ago · link · parent

A new way to benchmark LLMs. Feel free not to trust me and go through the source code, I'm not stealing any API keys.

2.

Open Codenames: a new way to benchmark LLMs(github.com ↗)

1 points · by AttilaT · 1mo ago · 1 comment

3.

I built a tiny C library to catch memory bugs earlier without rewriting in Rust(github.com ↗)

2 points · by AttilaT · 7mo ago · discuss

comment 1y ago · link · parent

I made a small tool that deletes temporary files, it can be used to clean up Downloads or other temp files. Any comments or feature ideas are welcome!

5.

Temporary Folder Auto-Cleanup Tool(github.com ↗)

1 points · by AttilaT · 1y ago · 1 comment

comment 1y ago · link · parent

A minimalist .bat script that adds these right-click context menus to Windows Explorer:

-Add to System PATH -Instant CMD/PowerShell

Further ideas? eg. Should I add PATH removal?

7.

Windows Explorer Right-Click Tools(gist.github.com ↗)

4 points · by AttilaT · 1y ago · 1 comment

comment 1y ago · link · parent

I recently developed a new data structure called the Shift-To-Middle Array, designed as an alternative to std::deque, std::vector, and linked lists. My goal was to optimize insertion and deletion at both ends, while also improving cache locality and performance compared to traditional implementations.

What is the Shift-To-Middle Array? Unlike std::deque, which uses a fragmented block-based structure, the Shift-To-Middle Array maintains a contiguous memory layout. Instead of shifting elements inefficiently (like std::vector), it dynamically redistributes free space toward the middle, reducing unnecessary data movement.

Key Features: Fast insertions & deletions at both ends (amortized O(1)) Efficient cache utilization (better than linked lists) Supports fast random access (O(1)) No pointer chasing (unlike linked lists) Parallelization & SIMD optimizations possible

Performance Benchmarks I benchmarked Shift-To-Middle Array vs. std::deque vs. ExpandingRingBuffer vs. std::queue across different workloads. Some highlights:

Push-heavy workload → Shift-To-Middle Array showed improved insertion performance over std::deque.

Pop-heavy workload → Showed improvements in memory access and removal operations.

Random insert/remove workloads → Demonstrated better cache efficiency compared to linked lists.

(Full benchmarks and source code available below.)

When Should You Use It? High-performance queue-like structures

Game engines (handling real-time events efficiently)

Networking applications (handling packet buffers)

Dynamic sequences (e.g., computational geometry, physics sims)

Would love to hear thoughts and feedback from the community! Have you encountered similar performance bottlenecks with std::deque or other dynamic structures?

9.

Shift-to-Middle Array: A Faster Alternative to Std:Deque?(github.com ↗)

128 points · by AttilaT · 1y ago · 118 comments