frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Library for fast mapping of Java records to native memory

https://github.com/mamba-studio/TypedMemory
46•joe_mwangi•1h ago•14 comments

Nullsoft, 1997-2004 (2004)

https://slate.com/technology/2004/11/the-death-of-the-last-maverick-tech-company.html
169•downbad_•3d ago•54 comments

UCLA discovers first stroke rehabilitation drug to repair brain damage (2025)

https://stemcell.ucla.edu/news/ucla-discovers-first-stroke-rehabilitation-drug-repair-brain-damage
51•bookofjoe•3h ago•15 comments

Ratty – A terminal emulator with inline 3D graphics

https://ratty-term.org/
563•orhunp_•10h ago•181 comments

Gmail registration now requires scanning a QR code and sending a text message

https://discuss.privacyguides.net/t/google-account-registration-now-requires-sending-an-sms-via-p...
479•negura•13h ago•324 comments

Counting Fast in Erlang with:counters and:atomics

https://andrealeopardi.com/posts/erlang-counters-and-atomics/
46•malmz•2d ago•1 comments

Interfaze: A new model architecture built for high accuracy at scale

https://interfaze.ai/blog/interfaze-a-new-model-architecture-built-for-high-accuracy-at-scale
74•yoeven•4h ago•17 comments

Can Someone Please Explain Whether Cloudflare Blackmailed Canonical?

https://www.flyingpenguin.com/can-someone-please-explain-whether-cloudflare-blackmailed-canonical/
139•speckx•2h ago•62 comments

Training an LLM in Swift, Part 1: Taking matrix mult from Gflop/s to Tflop/s

https://www.cocoawithlove.com/blog/matrix-multiplications-swift.html
188•zdw•1d ago•9 comments

CUDA-oxide: Nvidia's official Rust to CUDA compiler

https://nvlabs.github.io/cuda-oxide/index.html
312•adamnemecek•5h ago•96 comments

AMÁLIA and the future of European Portuguese LLMs

https://duarteocarmo.com/blog/amalia-and-the-future-of-european-portuguese-llms
99•johnbarron•3d ago•49 comments

The Boston library where you still can borrow a giant puppet

https://binj.news/2026/05/06/the-boston-library-where-you-still-can-borrow-a-giant-puppet/
28•gnabgib•2d ago•2 comments

Bild AI (YC W25) Is Hiring Founding Product Engineers

https://bild.ai/jobs
1•rooppal•3h ago

Linux Terminal Memory Usage

https://gilesorr.com/blog/linux-terminal-memory-usage.html
15•speckx•1h ago•11 comments

Venom and Hot Peppers Offer a Key to Killing Resistant Bacteria

https://www.wired.com/story/mexican-science-transforms-scorpion-venom-and-habanero-chile-into-ant...
150•littlexsparkee•2d ago•58 comments

Building a web server in aarch64 assembly to give my life (a lack of) meaning

https://imtomt.github.io/ymawky/
83•theanonymousone•3d ago•28 comments

If AI Writes Your Code, Why Use Python?

https://medium.com/@NMitchem/if-ai-writes-your-code-why-use-python-bf8c4ba1a055
17•indigodaddy•21m ago•0 comments

Software engineering may no longer be a lifetime career

https://www.seangoedecke.com/software-engineering-may-no-longer-be-a-lifetime-career/
275•movis•6h ago•477 comments

From Buffon's Needle to Buffon's Noodle

https://mbmccoy.dev/posts/buffons-noodle/
18•_alternator_•4d ago•6 comments

The greatest shot in television: James Burke had one chance to nail this scene (2024)

https://www.openculture.com/2024/10/the-greatest-shot-in-television.html
325•susam•18h ago•181 comments

Microsoft Israel chief leaves amid ethical controversy

https://en.globes.co.il/en/article-microsoft-israel-chief-leaves-amid-ethical-controversy-1001542602
111•bhouston•3h ago•116 comments

Hardware Attestation as Monopoly Enabler

https://grapheneos.social/@GrapheneOS/116550899908879585
2041•ChuckMcM•1d ago•689 comments

Guitar tuner that uses phone accelerometer

https://tautme.github.io/phone-sensors/accel-tuner.html
139•adm4•3d ago•83 comments

Holding Community Space

https://supernuclear.substack.com/p/building-a-space-people-never-want
34•surprisetalk•3d ago•21 comments

Local AI needs to be the norm

https://unix.foo/posts/local-ai-needs-to-be-norm/
1722•cylo•1d ago•682 comments

Show HN: TikTok but for Scientific Papers

https://andreaturchet.github.io/website/index.html
81•ciwrl•5h ago•48 comments

I'm going back to writing code by hand

https://blog.k10s.dev/im-going-back-to-writing-code-by-hand/
888•dropbox_miner•19h ago•556 comments

Mythos Finds a Curl Vulnerability

https://daniel.haxx.se/blog/2026/05/11/mythos-finds-a-curl-vulnerability/
582•TangerineDream•14h ago•243 comments

590k buyers paid $59M for Trump's gold phone, but not one has shipped

https://finance.yahoo.com/markets/stocks/articles/590-000-buyers-paid-59-223500998.html
54•surprisetalk•47m ago•49 comments

Red Hot Chili Peppers ink $300M deal with Warner Music to sell catalog

https://www.hollywoodreporter.com/music/music-industry-news/wmg-acquired-red-hot-chili-peppers-ca...
40•randycupertino•1h ago•35 comments
Open in hackernews

Library for fast mapping of Java records to native memory

https://github.com/mamba-studio/TypedMemory
42•joe_mwangi•1h ago

Comments

wood_spirit•1h ago
This is interesting. Java desperately needs an array of struct for type safe sugar over high performance arenas, but the areas you’d turn to this would be in a zero allocation effort where the cost of the this library’s off-heap and the object allocation in the getters and setters etc largely negate the advantages for a lot of use cases.
joe_mwangi•59m ago
Yup. Totally agree. Java does needs an array of structs. Hopefully value classes will help out through flattened array. But in future, one can use value records with this library with probable zero cost allocation. But the library doesn't use any reflection calls for get and set hence high performance as a result, and using records helps a lot with escape analysis. Planning to do some serious benchmarks soon. Some preliminary tests shows it's similar to c code (example code in test package). Performance suffers if record fields are arrays due to heap allocation of arrays.
PaulHoule•24m ago
The thing I coded where I felt the weight of the GC the most was a chess engine in Java that needed transposition tables. Like using regular HashMap(s) or anything similar it was too slow to really speed up the engine. If my son had stayed interested in chess I would have coded up an off-heap transposition tables but he switched to guitar which changed my side projects.
fweimer•19m ago
I doubt value classes will be helpful here because the array would have to be immutable. Context: https://openjdk.org/jeps/401
joe_mwangi•5m ago
Yeaaah. You might be right. Hopefully we have this one day https://openjdk.org/jeps/8261007
kosolam•1h ago
Nice. Very clean api.
joe_mwangi•56m ago
Thanks. Main goal. Unions is where I decided to pause - no simple and ergonomic way to do it at the moment.
usernametaken29•34m ago
Why not use graal?
matt_heimer•20m ago
What is the positioning for this and how does it work? A comparison to SBE might be nice.

I understand the issue about using Layout and MemorySegment being verbose but the reason I'm using those things it to develop high performance software that uses off-help memory and bypasses object allocation.

What does "map Java record types onto native memory" actually mean? Did you somehow turn a Java record into a flyweight or is `Point point = points.get(0);` just instantiating a record instance using data read from off-help memory? If it's a dynamic mapping library using reflection, that's cool but doesn't it kill the performance goals for most Java off heap usage?

Is this more of a off-heap to heap bridge for pulling data into the normal Java space when performance isn't critical?

joe_mwangi•10m ago
I use c-struct layout. I should be more explicit in the readme. I use classfile api to generate bytecode during initialisation of the Mem<T> and bytecode stored in cache in case if initialised again somewhere based on the same record type (I don't cache for records that are declared locally in a method). The class created from implementing Mem is a hidden class. So, basically, given a record, one can be able to analyse the layout based on record state description, and then for that Mem implementation (hidden class) we generate static final field varhandles + layout, segment is an instance field, and then generate bytecode the get and set to avoid reflection (actually, this is where most headache is in implementation). Go to the test package and see simple code for some adhoc rudimentary java (and native) files for benchmarks. Planning to test JMH benchmarks soon.
jayd16•17m ago
At first glance it reminds me of C#'s Span<T>.
joe_mwangi•5m ago
Hahaha... inspired by it actually.
steve_barham•7m ago
I did something similar a few years back, with a slightly different approach to declaration, using interfaces to denote the layout of the struct. Mutation was opt-in by exposing setters using the (of the time) standard JavaBeans layout and an annotation processor took care of the codegen of an implementing class, which could be used where you wanted an on-heap box of an off-heap structure.

One benefit of this approach was that by using the interface as the type you could fairly easily support a flyweight pattern, reducing GC pressure when working with large off-heap collections. The parallels between stateless interfaces and offheap structs was also quite pleasing.

I'd love to see a similar effort using more modern techniques than Unsafe et al.