Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Two Writes, One Row: Who Wins? (itsnas.me)
    —discuss
  2. The Bayeux Tapestry Makes Landfall at the British Museum (wsj.com)
    —discuss
  3. Christophe Laudamiel (worldsensorium.com)
    —discuss
  4. Time, Layers, and Climate Futures (blue-continuum.com)
    —discuss
  5. I built a tool that gives any website an API and MCP
    —discuss
  6. An API that beats GPT-4V, Gemini and Claude at detecting photo rotation (blueveta.com)
    —discuss
  7. The Greatest Pun in JavaScript (shukla.io)
    —discuss
  8. Book Review: Lee Kuan Yew's Memoirs (astralcodexten.com)
    —discuss
  9. NASA's Roman Team Confirms Ground Stations Receiving Data (nasa.gov)
    —discuss
  10. Orca – Agent Development Environment (ADE) for shipping with coding agents (olegdubovoi.com)
    1comments
  11. ABIT motherboards, Taiwan, website last updated 20 years ago (abit.com.tw)
    —discuss
  12. Agentboxd – Email inboxes for AI agents that treat mail as hostile (agentboxd.com)
    —discuss
  13. Recreating Jamie Fenton's GORF 2 arcade source code (arcadeblogger.com)
    1comments
  14. Uncle's frozen Mac says it's infected after viewing a Google ad. Now what? (arstechnica.com)
    —discuss
  15. Learned Helplessness and Medium's Stats (medium.com/luminasticity)
    —discuss
  16. Breaking Up with Google Play: Why Conversations Is Now Free (gultsch.de)
    —discuss
  17. Brightline, a high-speed railway service based in Florida, filed for bankruptcy
    1comments
  18. Bring cybercriminals to justice: CyberCrime Bounty Program (crimestoppersinternational.org)
    —discuss
  19. Mega Duck (wikipedia.org)
    —discuss
  20. OpenAI Says Its Models Engaged with US Government Websites in New Disclosure (securityweek.com)
    3comments
  21. Reading’s Bayeux Tapestry (diamondgeezer.blogspot.com)
    —discuss
  22. ChatGPT Maps (chatgpt.com)
    —discuss
  23. How SendCutSend is changing the way we build [video] (youtube.com)
    —discuss
  24. Show HN: Catescape (catescape.dev)
    —discuss
  25. Alex Karp: AI Models Are Stealing Your Data and the AI Safety Truth [video] (youtube.com)
    —discuss
  26. Stalker: Free Browser Fingerprint and Privacy Checker Tool (geeksta.net)
    —discuss
  27. NIH details $170M biomedical research reproducibility effort (science.org)
    —discuss
  28. Ares: a cross-platform, open-source, multi-system emulator (github.com/ares-emulator)
    —discuss
  29. Some HEP-TH News (columbia.edu)
    —discuss
  30. Show HN: CStructSharp – C-struct (de)serialization for C# and JavaScript (WASM) (github.com/vvollers)
    —discuss

Show HN: CStructSharp – C-struct (de)serialization for C# and JavaScript (WASM)

1 pointsby 58m agogithub.com
0 comments
I've been working on this for a while now (I made a POC for myself some years ago which I didn't release. But AI helped me a lot to finally complete/polish it).

Inspired by digital forensic toolkits, this library allows a user to take a c-struct definition and use that to serialize an deserialize binary data.

It is a flexible library which features modern c# mechanisms and conventions. I tried to make it easy to use, easy to understand, performant and powerful. You can both use it to parse and use runtime user defined structures as well as use the C# source generator feature to build parsers/serializers at compile time.

I also build and published a WASM version/javascript library which is used to showcase the features of the library (see the binary inspector demo app (https://vvollers.github.io/cstructsharp/inspector/) which you can use to run the library against various files, it includes sample definitions for many file formats). The library is quite usable on its own.

I'm interested to hear your thoughts and if you have any questions feel free to ask.

A quiet thread, for now.Start the conversation on HN ↗