frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

unwrap-or: a TypeScript implementation of Rust's Option and Result types

https://github.com/hnatiukr/unwrap-or
2•hnatiukr•5h ago

Comments

hnatiukr•5h ago
It is a playground library that closely mirrors Rust's `Option` and `Result` API. While created primarily for fun and learning, it's robust enough for real-world applications. It allows for safer, more expressive handling of optional values through a monadic interface. snake_case is used for the plausibility of the original.

The name `unwrap-or` is a playful reference to both the `unwrap_or` method found in the `Option`/`Result` types, and a hint at the package's contents - "-OR" standing for O'ption and R'esult types. It also cleverly references the logical `OR` operation, reflecting how these monadic types encapsulate one of two possible states - either `Some` or `None` for `Option`; either `Ok` or `Err` for `Result`.

Today is the 40th anniversary of the song 'Money For Nothing'

https://www.youtube.com/watch?v=wTP2RUD_cL0
1•bookofjoe•1m ago•0 comments

Show HN: Reeyee.ai – Create Dashboards as Websites

https://reeyee.ai
1•jokera•3m ago•0 comments

Japan court awards rare victory to Pantech in SEP battle with Google

https://www.mlex.com/mlex/articles/2356054/japan-court-awards-rare-victory-to-pantech-in-sep-battle-with-google
3•redbell•17m ago•0 comments

I co-wrote the anonymous HHS report on pediatric gender medicine

https://www.washingtonpost.com/opinions/2025/06/26/hhs-review-anonymous-author/
2•rahimnathwani•18m ago•0 comments

OpenAI Loses Four Key Researchers to Meta

https://www.wired.com/story/four-openai-researchers-leave-meta/
3•Bluestein•20m ago•0 comments

Manage for Success, Not Comfort

https://terriblesoftware.org/2025/05/16/manage-for-success-not-comfort/
2•trashymctrash•22m ago•0 comments

Show HN: Leveraging Google ADK for Cyber Threat Intelligence

https://manta.black/leveraging-google-adk-for-cyber-intelligence.html
2•blackmanta•26m ago•0 comments

Show HN: The Commonbase Data Structure

https://github.com/your-commonbase/architecture
2•_bramses•26m ago•0 comments

Zo.computer: A personal computer in the cloud operated (mostly) conversationally

https://robc.substack.com/p/zo-computer
5•kousun12•27m ago•1 comments

The vengeful elephant and journalism's clickshare problem

https://savingjournalism.substack.com/p/the-vengeful-elephant-and-journalisms
2•thunderbong•28m ago•0 comments

Congress might block state AI laws for a decade. Here's what it means

https://techcrunch.com/2025/06/27/congress-might-block-state-ai-laws-for-a-decade-heres-what-it-means/
2•rntn•31m ago•0 comments

Alexander the Great poisoned? Science sheds new light on an age-old question

https://www.nationalgeographic.com/history/article/how-did-alexander-the-great-die-river-styx
3•Bluestein•31m ago•0 comments

What is the Value of Data?

https://admjs.substack.com/p/what-is-the-value-of-data
1•admjs•31m ago•0 comments

Show HN: Send Invisible Text

https://invisibletext.app/
1•artiomyak•32m ago•0 comments

Command line management for Google Workspace

https://github.com/GAM-team/GAM
1•mooreds•32m ago•0 comments

Your Infra Isn't Special: Why Open Source Infrastructure as Code (IaC) Wins

https://masterpoint.io/blog/why-open-source-iac-wins/
1•mooreds•32m ago•0 comments

What Is a Number?

https://www.idrisschebak.com/blog/what-is-a-number
2•idrisschebak•33m ago•1 comments

Werner's Nomenclature of Colours

https://www.c82.net/werner/
1•Tomte•34m ago•0 comments

Ask HN: Better-auth or Nextauth or something else

2•dasubhajit•38m ago•0 comments

The Unreasonable Effectiveness of Mathematical Experiments

https://arxiv.org/abs/2506.19787
2•belter•38m ago•0 comments

Sketchy Boats

https://sketchy.boats
2•iBotPeaches•42m ago•1 comments

People Keep Inventing Prolly Trees

https://www.dolthub.com/blog/2025-06-03-people-keep-inventing-prolly-trees/
2•lifty•44m ago•0 comments

'Living in Doodle Land' The million-dollar artist who drew himself crazy

https://www.theguardian.com/artanddesign/2025/jun/28/mr-doodle-sam-cox-psychosis-mental-health-interview
2•Hoasi•44m ago•0 comments

Ask HN: What are your favorite funny things from the old internet?

3•firefax•45m ago•1 comments

Notes on Software Engineering Beyond the Code

https://sevazhidkov.com/notes-on-software-engineering-beyond-the-code
1•sevazhidkov•47m ago•0 comments

Show HN: Vet – A tool for safely running remote shell scripts

https://getvet.sh
10•a10r•49m ago•3 comments

The Great Illusion: When We Believed BeOS Would Save the World

https://www.desktoponfire.com/haiku_inc/782/the-great-illusion-when-we-believed-beos-would-save-the-world-and-maybe-it-was-right/
3•naves•52m ago•3 comments

Bulletproof, Fire-Resistant and Stronger Than Steel: Superwood

https://www.wsj.com/tech/inventwood-superwood-material-engineered-wood-f7f558e9
2•bookofjoe•55m ago•1 comments

Tesla Robotaxi misses left-turn and drives into oncoming traffic lane casually

https://www.twitch.tv/themayor_mccheese/clip/TolerantTiredHippoUncleNox-5Mq4ALJVZ1t3x5-z
2•haunter•57m ago•0 comments

Show HN: Anti-Cluely – Detect virtual devices and cheating tools on exam systems

https://www.anti-cluely.com/
2•kkxingh•1h ago•0 comments