frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

FastSafeStrings (safe, fast string library for C/C++)

https://github.com/clemcl/FastSafeStrings
2•Clemcl•1h ago

Comments

Clemcl•1h ago
I’ve been working on a C string library called FastSafeStrings.

The goal is to keep the performance of traditional C string handling while making it safer and avoiding repeated scans (strlen, strcat, delimiter searches).

Key ideas:

* Length-aware strings (O(1) length, no rescanning) * Bounds-safe operations (no buffer overruns) * Fixed-capacity model (no allocations) * Optional support for variable-length (VB-style) records to eliminate input scanning

In a simple real-world workload (processing 5M small records), it runs about ~7× faster than typical C code using fgets/strcat/strlen.

This is an early release — I’d really appreciate feedback on:

* API design (especially the macro-based C interface) * Benchmark fairness and methodology * Edge cases or safety concerns

GitHub: https://github.com/clemcl/FastSafeStrings

Clemcl•1h ago
Happy to answer questions.

This was partly inspired by older systems (PL/I-style descriptors and mainframe-style record processing), where strings and records are length-aware instead of repeatedly scanned.

The main idea is simple: a lot of C string work ends up rescanning the same data multiple times, and avoiding that can make a big difference in real workloads.

Chemical pollutants are rife across the oceans

https://www.nature.com/articles/d41586-026-00850-z
1•Brajeshwar•1m ago•0 comments

Norway's Consumer Council takes aim at enshittification

https://www.theregister.com/2026/03/06/forbrukerradet_aim_enshittification/
1•rbanffy•1m ago•0 comments

Electric plasma guided with ultrasonic fields

https://www.science.org/doi/full/10.1126/sciadv.adp0686
1•akshatjiwan•3m ago•0 comments

Show HN: Popoto – A Redis/Valkey ORM with Django-Like Syntax for Python

https://popoto.readthedocs.io/en/latest/
1•tomcounsell•6m ago•0 comments

O'Sullivan makes highest-ever break with historic 153

https://www.bbc.co.uk/sport/snooker/articles/cn4391l3lvxo
1•mellosouls•6m ago•1 comments

Mac OS X 25th Anniversary: The Foundation of Apple's Rise

https://www.goto10retro.com/p/mac-os-x-25th-anniversary-the-os
1•rbanffy•8m ago•0 comments

Show HN: Cybertt – Cybersecurity Tabletop

https://cybertt.xyz/
1•pluppen•11m ago•0 comments

Final Report of Grid Incident in Spain and Portugal on 28 April 2025 [pdf]

https://eepublicdownloads.blob.core.windows.net/public-cdn-container/clean-documents/Publications...
1•sam_lowry_•13m ago•1 comments

Show HN: ClawMUD – A persistent world where only AI agents play, humans spectate

https://clawmud.ai
1•allenhsutw•14m ago•0 comments

Things Fall Apart

https://en.wikipedia.org/wiki/Things_Fall_Apart
3•chistev•22m ago•1 comments

Show HN: Added API key support to my AI writing assistant extension

1•jerrygoyal•23m ago•0 comments

Essex police pause facial recognition camera use after study finds racial bias

https://www.theguardian.com/technology/2026/mar/19/essex-police-pause-facial-recognition-camera-u...
2•Brajeshwar•23m ago•0 comments

Dinit a systemd alternative without age-verification requirements

https://davmac.org/projects/dinit/?hs=1
1•grigio•25m ago•2 comments

Day 21. Iran is entering the Persian New Year, in digital darkness

https://mastodon.social/@netblocks/116260457585027609
1•us321•30m ago•0 comments

Free API-First Web Scrapers (YouTube, Bluesky, Reddit, Google Maps)

https://github.com/spinov001-art/awesome-web-scraping-2026
1•aimarketintel•30m ago•0 comments

VS Code Sessions: an attempt at competing with Cursor and Antigravity

https://twitter.com/_EDM115/status/2034577130630029632
1•EDM115•31m ago•0 comments

Portless replaces port numbers with stable .localhost URLs for local development

https://port1355.dev/
2•napolux•31m ago•0 comments

Uber to Invest Up to $1.25B in Rivian Robotaxis

https://www.wsj.com/business/autos/uber-to-invest-up-to-1-25-billion-in-rivian-robotaxis-8b295925
1•JumpCrisscross•34m ago•0 comments

The Trickonometry of Math Olympiad Inequalities (2025)

https://www.andreinc.net/2025/03/17/the-trickonometry-of-math-olympiad-inequalities/
1•vismit2000•35m ago•0 comments

Open standard for stable machine-readable facts for AI systems

https://groundingpage.com/
1•fhouser•36m ago•0 comments

List of Equipment of the Islamic Revolutionary Guard Corps Navy

https://en.wikipedia.org/wiki/List_of_equipment_of_the_Islamic_Revolutionary_Guard_Corps_Navy
1•JumpCrisscross•39m ago•0 comments

USS Ford forced to withdraw due to laundry fire and toilet sabotage [video]

https://www.youtube.com/watch?v=gy5fsq1hvqo
2•burnt-resistor•41m ago•1 comments

Role-based AI persona packs for Claude Code and Cursor

1•ratnesh_maurya•45m ago•0 comments

Managing Dotfiles with Chezmoi

https://stoddart.github.io/development/tools/open-source/reviews/2024/09/08/managing-dotfiles-wit...
2•wyclif•46m ago•0 comments

Tell HN: Claude Returning 429 in OpenCode

1•ramon156•51m ago•0 comments

NeXTSTEP 3.3 Developer Documentation (1995)

https://www.nextop.de/NeXTstep_3.3_Developer_Documentation/
2•h4ch1•51m ago•0 comments

What happened when an Arab neuroscientist took the helm at an Israeli university

https://www.science.org/content/article/what-happened-when-arab-neuroscientist-took-helm-israeli-...
2•tzury•51m ago•0 comments

Initial thoughts about the ThinkPad E14: wow

https://rubenerd.com/initial-thoughts-about-the-thinkpad-e14-wow/
3•Tomte•53m ago•0 comments

Show HN: OpsFabric – Infrastructure as data platform for server teams

https://opsfabric.io/blog/why-we-built-opsfabric.html
1•vlebo•54m ago•0 comments

Meta AI agent's instruction causes large sensitive data leak

https://www.theguardian.com/technology/2026/mar/20/meta-ai-agents-instruction-causes-large-sensit...
1•veltas•56m ago•0 comments