frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Generalised plusequals

https://leontrolski.github.io/alt.html
12•leontrolski•5h ago

Comments

flebron•1h ago
The website asks what they do in Haskell. The answer is property modification and reading, as well as very powerful traversal constructs, use lenses (https://hackage.haskell.org/package/lens , tutorial at https://hackage.haskell.org/package/lens-tutorial-1.0.5/docs...).
rokob•1h ago
Yeah this looks like lenses at first glance
hatthew•1h ago
It seems like this is proposing syntactic sugar to make mutating and non-mutating operations be on equal footing.

> The more interesting example is reassigning the deeply nested l to make the cat inside older, without mutating the original cat

Isn't that mutating l, though? If you're concerned about mutating cat, shouldn't you be concerned about mutating l?

two_handfuls•1h ago
It doesn't mutate l exactly, it makes a new list slightly different from the original one and assigns it to l.

That means if someone has a reference to the original l, they do not see the change (because l is immutable. Both of them).

beaumayns•1h ago
q has the concept of amend, which is similar: https://code.kx.com/q4m3/6_Functions/#683-general-form-of-fu...

It's quite handy, though the syntax for it is rather clunky compared to the rest of the language in my opinion.

RodgerTheGreat•54m ago
In Lil[0], this is how ordinary assignment syntax works. Implicitly defining a dictionary stored in a variable named "cat" with a field "age":

    cat.age:3
    # {"age":3}
Defining "l" as in the example in the article. We need the "list" operator to enlist nested values so that the "," operator doesn't concatenate them into a flat list:

    l:1,(list 2,list cat),4
    # (1,(2,{"age":3}),4)
Updating the "age" field in the nested dictionary. Lil's basic datatypes are immutable, so "l" is rebound to a new list containing a new dictionary, leaving any previous references undisturbed:

    l[1][1].age:9
    # (1,(2,{"age":9}),4)
    cat
    # {"age":3}
There's no special "infix" promotion syntax, so that last example would be:

    l:l,5
    # (1,(2,{"age":9}),4,5)
[0] http://beyondloom.com/tools/trylil.html

Google plans to invest up to $40B in Anthropic

https://www.bloomberg.com/news/articles/2026-04-24/google-plans-to-invest-up-to-40-billion-in-ant...
378•elffjs•10h ago•418 comments

Paraloid B-72

https://en.wikipedia.org/wiki/Paraloid_B-72
35•Ariarule•2d ago•11 comments

My audio interface has SSH enabled by default

https://hhh.hn/rodecaster-duo-fw/
175•hhh•7h ago•47 comments

Iliad fragment found in Roman-era mummy

https://www.thehistoryblog.com/archives/75877
121•wise_blood•2d ago•32 comments

Sabotaging projects by overthinking, scope creep, and structural diffing

https://kevinlynagh.com/newsletter/2026_04_overthinking/
368•alcazar•12h ago•93 comments

Education must go beyond the mere production of words

https://www.ncregister.com/commentaries/schnell-repairing-the-ruins
20•signor_bosco•2h ago•2 comments

Humpback whales are forming super-groups

https://www.bbc.com/future/article/20260416-the-humpback-super-groups-swarming-the-seas
20•andsoitis•3d ago•6 comments

The Classic American Diner

https://blogs.loc.gov/picturethis/2026/04/the-classic-american-diner/
164•NaOH•8h ago•107 comments

There Will Be a Scientific Theory of Deep Learning

https://arxiv.org/abs/2604.21691
159•jamie-simon•8h ago•50 comments

Work with the garage door up (2024)

https://notes.andymatuschak.org/Work_with_the_garage_door_up
127•jxmorris12•3d ago•98 comments

How to be anti-social – a guide to incoherent and isolating social experiences

https://nate.leaflet.pub/3mk4xkaxobc2p
315•calcifer•16h ago•294 comments

Google Flow Music

https://www.flowmusic.app/
119•hmokiguess•6h ago•93 comments

Show HN: I've built a nice home server OS

https://lightwhale.asklandd.dk/
71•Zta77•5h ago•31 comments

Replace IBM Quantum back end with /dev/urandom

https://github.com/yuvadm/quantumslop/blob/25ad2e76ae58baa96f6219742459407db9dd17f5/URANDOM_DEMO.md
23•pigeons•2h ago•1 comments

Email could have been X.400 times better

https://buttondown.com/blog/x400-vs-smtp-email
134•maguay•1d ago•134 comments

The Overtom Chess Computer Museum

https://tluif.home.xs4all.nl/chescom/Engindex.html
19•semyonsh•2d ago•3 comments

Firefox Has Integrated Brave's Adblock Engine

https://itsfoss.com/news/firefox-ships-brave-adblock-engine/
27•nreece•1h ago•2 comments

MacBook Neo and how the iPad should be

https://craigmod.com/essays/ipad_neo/
217•jen729w•1d ago•123 comments

Diatec, known for its mechanical keyboard brand FILCO, has ceased operations

https://gigazine.net/gsc_news/en/20260424-filco-diatec/
96•gslin•10h ago•30 comments

DeepSeek v4

https://api-docs.deepseek.com/news/news260424
1827•impact_sy•1d ago•1427 comments

(Blender) Cosmology with Geometry Nodes

https://www.blender.org/user-stories/cosmology-with-geometry-nodes/
6•shankysingh•1h ago•0 comments

FusionCore: ROS 2 sensor fusion (IMU and GPS and encoders)

https://github.com/manankharwar/fusioncore
12•kharwarm•4h ago•6 comments

You don't want long-lived keys

https://argemma.com/blog/long-lived-keys/
26•kkl•3d ago•18 comments

I'm done making desktop applications (2009)

https://www.kalzumeus.com/2009/09/05/desktop-aps-versus-web-apps/
146•claxo•11h ago•175 comments

Generalised plusequals

https://leontrolski.github.io/alt.html
12•leontrolski•5h ago•6 comments

I cancelled Claude: Token issues, declining quality, and poor support

https://nickyreinert.de/en/2026/2026-04-24-claude-critics/
797•y42•11h ago•482 comments

CC-Canary: Detect early signs of regressions in Claude Code

https://github.com/delta-hq/cc-canary
45•tejpalv•9h ago•20 comments

SDL Now Supports DOS

https://github.com/libsdl-org/SDL/pull/15377
229•Jayschwa•10h ago•83 comments

Show HN: Browser Harness – Gives LLM freedom to complete any browser task

https://github.com/browser-use/browser-harness
89•gregpr07•12h ago•40 comments

SFO Quiet Airport (2025)

https://viewfromthewing.com/san-francisco-airport-removed-90-minutes-of-daily-noise-travelers-say...
134•CaliforniaKarl•8h ago•77 comments