frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Portal v5.2

https://www.npmjs.com/package/@ibnlanre/portal
2•ibnlanre•3h ago

Comments

ibnlanre•3h ago
Just released Portal v5.2 yesterday and I'm really excited about the improvements

Major Performance Upgrades:

- Replaced useState/useEffect subscription pattern with useSyncExternalStore for better React 18+ compatibility and performance - Switched to Proxy-based stores instead of manually injecting methods - this gives much more stable references in React components AND enforces immutability by preventing direct property assignment (you can only modify state through $set) - Completely rewrote the internal cloning algorithm. It's now significantly faster than existing alternatives and I've released it as a separate library for anyone to use

New Features:

- useAsync: Built-in async state management with automatic loading/error/data states. No more manually tracking loading states! - useSync: Like useMemo but with deep dependency comparison for complex objects/arrays - useVersion: Deep dependency tracking that you can use with native React hooks (useMemo, useEffect, etc.) - createContextStore(): Initialize stores with React props/context data, eliminating the common prop-syncing boilerplate

Developer Experience:

- Primitive stores now handle circular references (honestly not sure why you'd need this since primitives get replaced entirely, but the consistency is nice!) - 600+ comprehensive tests covering edge cases, proxy behavior, circular references, async operations, and more

What makes Portal special: Portal automatically infers whether you need a primitive store (single values) or composite store (nested objects). The Proxy implementation means you get type-safe property access while maintaining strict immutability - direct assignments are silently ignored, forcing you to use $set for all mutations.

The new async hooks are game-changers for data fetching, and the deep dependency comparison means you can finally trust that your memoized computations only re-run when they actually need to.

If you're looking for type-safe state management that grows with your app's complexity and enforces good patterns, definitely worth checking out

Boston Dynamics' Atlas does backflips (lesson and breakdown)

https://app.vidyaarthi.ai/ai-tutor?session_id=2YBSyF3WNzMNn_80jygEp&action=replay&shared=true
1•boulevard•3m ago•1 comments

Warp.dev Terminal – Overpriced, Buggy, and AI-Sabotaged My Code

2•MistermanX•4m ago•0 comments

Show HN: ui-mcp-server, let your AI generate UI specs

https://github.com/ShaojieJiang/ui-mcp-server
1•NeuralNotwork•5m ago•0 comments

Trump announces EU trade deal with 15% tariffs

https://www.cnbc.com/2025/07/27/trump-european-union-eu-trade-tariffs.html
2•breadwinner•6m ago•0 comments

Protest footage blocked as online safety act comes into force

https://freespeechunion.org/protest-footage-blocked-as-online-safety-act-comes-into-force/
3•Bogdanp•7m ago•0 comments

AI-Free Content Deserves a Badge

https://notbyai.fyi/
2•smartmic•9m ago•0 comments

Show HN: No Hype AI – get oriented in using LLM tools for software engineering

https://nohypeai.dev
1•SupremumLimit•9m ago•0 comments

Show HN: ImageGPT – Image Editor – RIP Photoshop

https://imagegpt.com/
1•elco_us•10m ago•0 comments

The Satya of Satya's Layoff Memo

https://om.co/2025/07/26/the-satya-of-satyas-layoff-memo/
7•mgrayson•14m ago•0 comments

Carbon Chauvinism

https://en.wikipedia.org/wiki/Carbon_chauvinism
4•bookofjoe•15m ago•0 comments

Researchers create safer nonstick surface, cutting use of 'forever chemicals'

https://phys.org/news/2025-07-safer-nonstick-surface-chemicals.html
2•mikhael•16m ago•0 comments

The Depopulation Bomb, Two Economists Make the Case for Humans

https://mishtalk.com/economics/the-depopulation-bomb-two-economists-make-the-case-for-humans/
2•Bluestein•16m ago•1 comments

National Aviation Reporting Center on Anomalous Phenomena

https://www.narcap.org
2•handfuloflight•17m ago•0 comments

Is Jeff Bezos killing The Washington Post on purpose or by accident?

7•dotcoma•21m ago•4 comments

Russian networks flood Internet with propaganda, aiming to corrupt AI chatbots

https://thebulletin.org/2025/03/russian-networks-flood-the-internet-with-propaganda-aiming-to-corrupt-ai-chatbots/
5•dotcoma•28m ago•0 comments

Satirist Tom Lehrer dies at 97

https://www.bbc.com/news/articles/cpv02yd2714o
4•Teever•29m ago•0 comments

Navigate Gates

https://mht.wtf/post/navigate/
3•martinhath•31m ago•0 comments

The size and homogeneity of acquaintanceship networks in the Netherlands

https://www.sciencedirect.com/science/article/pii/S0378873325000383
2•PaulHoule•31m ago•0 comments

Revontuli Colorscheme Collection

https://codeberg.org/akselmo/Revontuli
2•todsacerdoti•33m ago•0 comments

Watching the world, one quintillionth of a second at a time

https://knowablemagazine.org/content/article/physical-world/2025/studying-the-world-an-attosecond-at-a-time
3•rntn•35m ago•0 comments

An empirical approach to economic intelligence in World War II [pdf]

https://www.cia.gov/readingroom/docs/CIA-RDP79R01001A001300010013-3.pdf
4•downboots•38m ago•1 comments

I Tested ChatGPT Agent vs. Manus AI [video]

https://www.youtube.com/watch?v=hPnCZFWgdWo
4•dulldata•39m ago•0 comments

Fuck Microsoft

https://studium.dev/tech/fuck-microsoft
8•jerlendds•42m ago•2 comments

Scaling 'Frontier' ZK Proofs on Solana

https://sculpt.fun/bloom
2•nikshepsvn•43m ago•1 comments

Every Model Learned by Gradient Descent Is Approximately a Kernel Machine

https://arxiv.org/abs/2012.00152
3•LordNibbler•44m ago•0 comments

TIL: Exception.add_note

https://daniel.feldroy.com/posts/til-2025-05-exception-add_note
3•todsacerdoti•45m ago•0 comments

Apparently a mail my server sent was stalled for 22 years??

https://old.reddit.com/r/sysadmin/comments/1ma2nlk/apparently_a_mail_my_server_sent_was_stalled_for/
2•taubek•45m ago•0 comments

IncuNest, an open-source, low-cost incubator for babies

https://www.medicalopenworld.org/en/proyecto-incunest/
2•fodmap•45m ago•0 comments

Figma Make Is Not the Future of Design

https://stackdiver.com/posts/figma-make-is-not-the-future-of-design/
5•low_tech_punk•52m ago•1 comments

Tom Lehrer, song satirist and mathematician, dies at 97

https://apnews.com/article/tom-lehrer-son-satirist-mathematician-dies-9caa7ee01faf4fbfb793d7ba984c179d
7•thedailymail•53m ago•0 comments