Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

100% Positive

Analyzed from 75 words in the discussion.

Trending Topics

#haskell#domain#newtype#https#org#performance#valhalla#cool#www#definition

Discussion (11 Comments)Read Original on HackerNews

mrkeen•about 14 hours ago
Oh cool. It's newtype from Haskell 1.3 (1996).

https://www.haskell.org/definition/from12to13.html#newtype

mrkeen•about 2 hours ago
No idea why dfa11's sibling comment got nuked. Looks correct to me.

I guess you can probably do the same with Unpacking.

https://wiki.haskell.org/Performance/Data_types

dfa11•1 day ago
Valhalla removes the historical performance tax on tiny domain objects. This article argues that value classes finally make domain‑safe primitives practical in real systems — strong invariants, flat layout, no wrapper overhead.

I’d love feedback from folks who’ve experimented with Valhalla or have opinions on modelling domain types in Java.