frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Programming Extensible Data Types in Rust with CGP – Part 1: Modular App Constr

https://contextgeneric.dev/blog/extensible-datatypes-part-1/
3•todsacerdoti•4h ago

Comments

maybevoid•4h ago
Hi everyone, I’m excited to share the latest progress in Context-Generic Programming (CGP), which now includes support for extensible records and variants in Rust.

For those of you coming from functional languages, this development effectively brings the power of datatype-generic programming, structural typing, row polymorphism and polymorphic variants to Rust. These are advanced type system features commonly found in languages like Haskell, PureScript and OCaml, and their availability in CGP represents a major leap in what is possible with the type system in Rust.

If you're new to the concept, extensible data types allow us to read from, construct, and extract data from a generic struct or enum without needing to know its concrete type definition. This opens the door to powerful design patterns, such as building generic builders or visitors that can operate flexibly over a wide range of data structures.

In the first post of this new blog series, I walk through a simple example that shows how to use extensible builders to construct an application context in a modular way.

I’d love to hear what you think — especially whether the approach feels practical or insightful for your own work. I’ll be sharing more updates over the next few days, so stay tuned!

mtndew4brkfst•9m ago
With the limited sample set of previous writing about this tooling - my impression is that it seems impossible to offer a succinct but still compelling description of this particular dialect of Rust.

There are thousands of words of prose to describe it between this and the shell-scripting post, and a lot of code-level seams and abstractions introduced in the snippets. Yet I still can't tell you why I should want to do the new things that this code style would make possible for me to do.

I also probably wouldn't enjoy trying to onboard a new contributor to a hypothetical project using this style, no matter how experienced with Rust they might be. DSLs, which I would consider CGP to be one, have a pretty high friction rate if they haven't become dominant/widespread.

Gothub.org (OpenBSD’s Game of Trees) now has a hosted community

https://exquisite.social/@gothub/114794810380054113
1•grapesodaaaaa•3m ago•1 comments

Show HN: We built a multi-player web browser

https://tablbrowser.com/
2•yamatokaneko•5m ago•0 comments

Why Your "Brilliant Prompt" Isn't Working

https://twitter.com/TenZorroAI/status/1942550572936131049
1•paulo20223•6m ago•0 comments

Being a psychologist to your (over)thinking LLM

https://specy.app/blog/posts/being-a-psychologist-to-your-overthinking-llm
1•specy_dev•8m ago•0 comments

Show HN: Brandiseer – AI turns any idea into a full brand identity in 10 min

https://brandiseer.com/
2•srkdaniel•9m ago•0 comments

Ingram Micro Issues Statement Regarding Cybersecurity Incident

https://ir.ingrammicro.com/press-releases/detail/945/ingram-micro-issues-statement-regarding-cybersecurity-incident
1•mystcb•10m ago•0 comments

Renoise 3.5

https://forum.renoise.com/t/renoise-3-5-and-redux-1-4-released/76590
1•xz18r•11m ago•0 comments

Show HN: 120 HN – A free native, cross-platform Hacker News client

https://120.dev/120-hn
1•120-dev•13m ago•0 comments

Show HN: Free Unlimited Photo Enhancer, Background Remover, AI Image Gen, etc.

https://github.com/d60/picwish
1•d60•15m ago•0 comments

NRF54L15 Electromagnetic Fault Injection

https://blog.syss.com/posts/nrf54-emfi/
1•GTP•19m ago•0 comments

Show HN: Rmon – A TUI system monitor written in Rust

https://github.com/codedsleep/rmon
1•codedsleep•20m ago•0 comments

The Decision-Making Framework Every Engineering Team Needs

https://leadthroughmistakes.substack.com/p/the-decision-making-framework-every
2•mooreds•22m ago•0 comments

Britain's 5G experience 'among the worst in Europe' says MedUX

https://www.theregister.com/2025/07/08/britains_5g_experience_among_the/
1•rntn•22m ago•0 comments

A Marco Rubio impostor is using AI voice to call high-level officials

https://www.washingtonpost.com/national-security/2025/07/08/marco-rubio-ai-imposter-signal/
1•someothherguyy•23m ago•0 comments

Technology Was Supposed to Help. What Happened?

https://substack.com/home/post/p-167705712
3•mooreds•23m ago•0 comments

Generic Interfaces

https://go.dev/blog/generic-interfaces
1•yurivish•24m ago•0 comments

AWS IAM Anywhere: Bridging PKI and Cloud Access for Non-Human Identities

https://ciamweekly.substack.com/p/aws-iam-anywhere-bridging-pki-and
1•mooreds•24m ago•0 comments

Experimental drug burns fat and reduces blood sugar while preserving muscle mass

https://medicalxpress.com/news/2025-06-experimental-drug-fat-blood-sugar.html
2•PaulHoule•25m ago•0 comments

Making openat(2) and friends more useful in OpenBSD

https://undeadly.org/cgi?action=article;sid=20250529080623
1•fanf2•27m ago•0 comments

How AI on Microcontrollers Actually Works: The Computation Graph

https://danielmangum.com/posts/ai-microcontrollers-computation-graph/
1•hasheddan•28m ago•0 comments

StatementSheet

https://statementsheet.com/en/home/
1•Roger_T•30m ago•0 comments

Free Online Image and PDF Local Compression Tool

https://www.compress.run
1•cnych•30m ago•0 comments

AI Agents Under the Hood

https://blog.surkar.in/ai-agents-under-the-hood
1•manthan1674•31m ago•0 comments

Bear-Sized Giant Beavers Once Roamed North America, Now the State Fossil of MN

https://www.smithsonianmag.com/smart-news/bear-sized-giant-beaver-once-roamed-north-america-and-theyre-now-the-official-state-fossil-of-minnesota-180986937/
1•mkmk•31m ago•0 comments

Motion Camouflage

https://en.wikipedia.org/wiki/Motion_camouflage
2•repost_bot•32m ago•0 comments

Tell HN: I Lost Joy of Programming

3•Eatcats•32m ago•2 comments

Firefox is fine. The people running it are not

https://www.theregister.com/2025/07/08/firefox_isnt_dead/
3•LorenDB•34m ago•0 comments

Instruction Aware Embeddings – Why Your Retriever Is Failing

https://dipkumar.dev/posts/rag/instruction-aware-embeddings/
1•immortal3•34m ago•0 comments

Scents, Sounds, and the Little Things in Between

https://worldsensorium.com/scents-sounds-and-the-little-things-in-between-a-conversation-with-jenny-hval/
1•dnetesn•34m ago•0 comments

Dtype_dispatch: A Beautiful Hack

https://graphallthethings.com/posts/dtype-dispatch
2•yeknoda•35m ago•0 comments