TechBrief — بروزترین اخبار تکنولوژی

TechBrief — تازه‌ترین اخبار فناوری

مرجع روزانه خلاصهٔ اخبار و تحلیل‌های کوتاه از منابع معتبر.

آخرین خبرها

Leonid Radvinsky, the owner of OnlyFans, has passed away

OnlyFans owner Leonid Radvinsky has passed away at the age of 43 after a battle with cancer. 

The best deals you can already grab from Amazon’s Big Spring Sale

Amazon’s Prime Day sale may arrive earlier than usual this year, but there’s a deal event happening much sooner: Amazon’s annual Big Spring Sale, which is happening March 25th through the 31st. While it won’t be as big as Prime Day or Black Friday, it does offer you a chance to save money at a […]

Is it a pint?

Article URL: https://isitapint.com/

Comments URL: https://news.ycombinator.com/item?id=47491496

Points: 37

# Comments: 29

Show HN: Threadprocs – executables sharing one address space (0-copy pointers)

This project launches multiple independent programs into a single shared virtual address space, while still behaving like separate processes (independent binaries, globals, and lifetimes). When threadprocs share their address space, pointers are valid across them with no code changes for well-behaved Linux binaries.

Unlike threads, each threadproc is a standalone and semi-isolated process. Unlike dlopen-based plugin systems, threadprocs run traditional executables with a `main()` function. Unlike POSIX processes, pointers remain valid across threadprocs because they share the same address space.

This means that idiomatic pointer-based data structures like `std::string` or `std::unordered_map` can be passed between threadprocs and accessed directly (with the usual data race considerations).

This accomplishes a programming model somewhere between pthreads and multi-process shared memory IPC.

The implementation relies on directing ASLR and virtual address layout at load time and implementing a user-space analogue of `exec()`, as well as careful manipulation of threadproc file descriptors, signals, etc. It is implemented entirely in unprivileged user space code: <https://github.com/jer-irl/threadprocs/blob/main/docs/02-imp...>.

There is a simple demo demonstrating “cross-threadproc” memory dereferencing at <https://github.com/jer-irl/threadprocs/tree/main?tab=readme-...>, including a high-level diagram.

This is relevant to systems of multiple processes with shared memory (often ring buffers or flat tables). These designs often require serialization or copying, and tend away from idiomatic C++ or Rust data structures. Pointer-based data structures cannot be passed directly.

There are significant limitations and edge cases, and it’s not clear this is a practical model, but the project explores a way to relax traditional process memory boundaries while still structuring a system as independently launched components.


Comments URL: https://news.ycombinator.com/item?id=47491414

Points: 12

# Comments: 2

Startup Gimlet Labs is solving the AI inference bottleneck in a surprisingly elegant way

Gimlet Labs just raised an $80 million Series A for tech that lets AI run across NVIDIA, AMD, Intel, ARM, Cerebras and d-Matrix chips, simultaneously.

Littlebird raises $11M for its AI-assisted ‘recall’ tool that reads your computer screen

Littlebird is building an AI that reads your screen in real time to capture context, answer questions, and automate tasks, without relying on screenshots.

Some writing advice from Project Hail Mary’s Andy Weir

Andy Weir has done pretty well when it comes to adaptations. His first novel, The Martian, was turned into a movie in 2015, and the Ridley Scott-directed picture earned more than $600 million at the box office. And Project Hail Mary just had a huge opening weekend that puts it on track to be one […]

Grab to buy Foodpanda Taiwan from Delivery Hero for $600 million

Grab will acquire Delivery Hero’s Foodpanda business in Taiwan for $600 million, expanding beyond Southeast Asia and setting up a closer challenge to Uber Eats in a tightly contested market.

Apple’s four-pack of first-gen AirTags is down $60 for the first time

Despite the fact that Apple released a new AirTag in January, the first-gen AirTag is still a top-notch tracker if you’re embedded in Apple’s ecosystem. And right now, it’s on sale for $59.99 ($40 off) at Amazon, Walmart, and Best Buy, which marks a new low price.  If you’re an iPhone owner, the original AirTag […]

In-hub motors make this humble Hyundai a monster on ice

In-wheel motors have been around since the very beginning of electric motoring. Ferdinand Porsche developed one way back in 1900, and the US sent them to the moon in our Lunar Roving Vehicles in the early '70s. But, outside of e-bikes, they've never really gone mainstream. It looked like Lordstown Motors would be their time […]

دسته‌بندی‌ها

معمولی: گجت‌ها، نرم‌افزار، امنیت، AI، استارتاپ