frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

GPT-6 Astra cracks 217-year-old Napoleonic code in six hours

https://www.tomshardware.com/tech-industry/artificial-intelligence/chatgpt-6-astra-cracks-217-yea...
1•ortusdux•44s ago•0 comments

Together Link

https://www.together.ai/blog/together-link-frontier-quality-open-models-in-the-harness-you-alread...
1•ilreb•1m ago•0 comments

Show HN: I finetuned 1.5B Qwen to near GPT-4o level bash generation perf

https://dirac.run/posts/easycommand
1•GodelNumbering•2m ago•0 comments

AI Attribution (AIA) – Timothy Cook

https://timothyfcook.com/aia
1•pkaeding•2m ago•0 comments

Reporting AI Studies in Education (Raise) Framework

https://www.bera.ac.uk/blog/can-we-trust-ai-research-in-education-introducing-the-reporting-ai-st...
1•ilreb•4m ago•0 comments

N8N as My Sys Admin

https://blog.hutch.is/n8n-as-my-sys-admin/
1•austinhutch•4m ago•0 comments

Show HN: Open source Slack for agents and people

https://github.com/cw12574/abralo-workspace
1•cwbuilds•4m ago•0 comments

Thread Pool in Percona Server and MySQL (Part 1)

https://www.percona.com/blog/thread-pool-in-percona-server-and-mysql-part-1/
1•eatonphil•5m ago•0 comments

The future of Linux depends on these 4 distros

https://www.howtogeek.com/the-future-of-linux-depends-on-these-distros/
1•dxs•5m ago•0 comments

Replacing the battery in my electric toothbrush

https://janlukas.blog/posts/replacing-battery-toothbrush
1•jlelse•6m ago•0 comments

Show HN: Rei: ~370k params LM living inside a Game Boy Color

https://github.com/crashtheuniverse/chatgbc
1•crash-universe•6m ago•0 comments

Killing with Kindness

https://cuencahighlife.com/killing-with-kindness/
1•dxs•6m ago•0 comments

uBlock Origin Lite is back on Firefox add-ons

https://addons.mozilla.org/en-US/firefox/addon/ublock-origin-lite/
3•speckx•6m ago•0 comments

The future of independence is interdependence

https://onlys.ky/independence-is-interdependence/
1•eustoria•8m ago•0 comments

Temporal steering of entanglement decay with single-shot control

https://journals.aps.org/pra/abstract/10.1103/84n3-bcz8
1•arunc•8m ago•0 comments

The Private Eye: a story where the Cloud bursts, exposing everyone's secrets

https://en.wikipedia.org/wiki/The_Private_Eye
1•ttttannenbaum•9m ago•0 comments

People who refuse to let their gadgets die

https://www.theatlantic.com/technology/2026/10/meet-the-upgrade-holdouts/688874/
1•samizdis•10m ago•1 comments

Oxford Economics 2026 Global Cities Index

https://www.oxfordeconomics.com/global-cities-index/
1•dauertewigkeit•10m ago•1 comments

Awesome Sites Made with ChatGPT

https://awesomesites.ai/
1•eustoria•10m ago•0 comments

Chinese NAND Maker YMTC Reportedly Expects Memory Shortage to Last 3 More Years

https://www.techpowerup.com/353401/chinese-nand-maker-ymtc-reportedly-expects-memory-shortage-to-...
1•speckx•11m ago•1 comments

Can Safeworld convince people that GenAI robots won't hurt them?

https://techcrunch.com/2026/10/05/can-safeworld-convince-people-that-gen-ai-robots-wont-hurt-them/
1•firetix•12m ago•0 comments

Looking for language leaners French / Spanish / German

https://testflight.apple.com/join/RffWpmxn
1•prelire•13m ago•1 comments

What Coding Is Starting to Lose

https://caio.ca/blog/what-coding-is-starting-to-lose
2•airhangerf15•14m ago•0 comments

Lunatik 5.0: scripting the Linux kernel with Lua, now with eBPF integration

https://luainkernel.github.io/lunatik/
3•lneto•15m ago•0 comments

AI Survey and instant insights

https://crowdlee.com
1•areffhb•16m ago•0 comments

Reax – A reaction‑first app using Cloud Run to bypass Vercel's body‑size limits

https://www.getreax.com/
1•joeMorr•16m ago•0 comments

15 years after his passing, nobody is 'The Next Steve Jobs'

https://9to5mac.com/2026/10/05/15-years-after-his-passing-nobody-is-the-next-steve-jobs/
1•alwillis•19m ago•0 comments

Grok Voice tops new benchmark

https://veris.ai/leaderboard/vamos-pro
3•jrm-veris•19m ago•0 comments

Using Docker-compose with Podman rootless

https://elou.world/en/tutorial/podman-docker-compose
2•speckx•19m ago•0 comments

Ask HN: Which is the best useful online course you have completed?

1•learner_yearner•20m ago•0 comments
Open in hackernews

What changed in MSVC's implementation of std:string from the 2022 copy of RE4B?

1•cstyler•54m ago
I was reading this version of RE4B: https://github.com/Cactus-proj/RE-for-Beginners/releases/tag/v1.0.0

The section about std::string (3.21.4) claims that the MSVC implementation of std::string looks like this:

  struct std_string
  {
      size_t unk1;
      union
      {
          char buf[16];
          char *ptr;
      } u;

      size_t size;     // Mysize
      size_t capacity; // Myres
  };

However this structure is 24 bytes in 32 bit and 32 bytes in 64 bit. Meanwhile the current MSVC std::string is 28 bytes in 32 bit and 40 bytes in 64 bit.

I noticed that the book's implementation is exactly 1 size_t short, so i tried adding a size_t to the top of the struct, and it worked perfectly, as in this dump function now outputs correctly:

#include <string> #include <stdio.h>

struct std_string { union { char buf[16]; char ptr; } u;

    size_t size;     // Mysize
    size_t capacity; // Myres
};

void dump_std_string(std::string s) { struct std_string

p = (struct std_string *)&s; printf("[%s] size:%d capacity:%d\n", p->size > 16 ? p->u.ptr : p->u.buf, p->size, p->capacity); }; int main() { printf("sizeof std string: %d\nours: %d\n\n", sizeof(std::string), sizeof(struct std_string));

    std::string s1 = "a short string";
    std::string s2 = "a string longer than 16 bytes";
    dump_std_string(s1);
    dump_std_string(s2);
};

What has changed and what is that size_t that is now before the string buffer ? Is it some kind of reference counter ?