frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•1y ago
I'm curious about what people think of `def` vs `fn`, two short keywords for starting function definitions.

...Or maybe we should subscribe to the church of `df`, haha.

Comments

sitkack•1y ago
def could be for lots of things, fn is for functions. I don't think it matters much as long as you have one. C would have been so much easier to parse. Just copy Zig or Rust.
butlersean•1y ago
def means define, could be used to define all kinds of things

fn isnt a legitimate short form of function

fun doesnt work because of the amusement factor

func is the only alternative we have left

sitkack•1y ago
How about unicode or emojis?

These don't have the full fidelity as hn scrubs emojis

add = (a, b) -> a + b

a, b ⟹ a + b

λ add(a, b): ↪ a + b

johncoltrane•1y ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

China Has Matched Anthropic in Cybersecurity, Resetting AI Race

https://www.wsj.com/tech/ai/chinese-ai-anthropic-mythos-cybersecurity-574b02c2
1•madars•35s ago•1 comments

What Happens When You Run 10k Concurrent Lambda Functions Against DynamoDB

https://medium.com/@yalovoy/what-happens-when-you-run-10-000-concurrent-lambda-functions-against-...
1•zero-ground-445•1m ago•0 comments

Amble One

https://driveamble.com/pages/amble-one
1•dnw•4m ago•0 comments

Show HN: FSM – an advanced system monitor for Linux

https://github.com/mskrasnov/FSM
1•mskrasnov•6m ago•0 comments

The AI "Super Bubble" Warning Is a Filter, Not a Funeral

https://www.pentesty.co/blog/ai-super-bubble-cybersecurity-filter-2026
1•johnzoro107•9m ago•0 comments

Show HN: SpinnerRecruit – targeted job ads in CLI for AI wait states

https://www.spinnerrecruit.dev/
1•jamessmu•11m ago•0 comments

Response to AI slop is from Robin Williams

https://jayacunzo.com/blog/your-move-chief
4•herbertl•24m ago•0 comments

Chrome Extension to Bypass Paywalls

https://gitflic.ru/project/magnolia1234/bypass-paywalls-chrome-clean
1•thunderbong•24m ago•1 comments

Turning music into a chore is how I became a musician

https://the.scapegoat.dev/turning-music-into-a-chore-is-what-made-me-an-artist/
1•herbertl•30m ago•0 comments

Microchip June 2026: AVR LA Family [pdf]

https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/Brochures/AVR-L...
1•dragontamer•31m ago•1 comments

Show HN: Decomp Academy – Learn to decompile GameCube games into matching C

https://decomp-academy.dev
9•jackpriceburns•31m ago•2 comments

Show HN: Shopify UCP is insanely powerful

https://stack412.com/
2•westche2222•39m ago•2 comments

I designed and synthesized PAC-832 in a chemistry lab I built in my garage

https://twitter.com/DouglasYaoDY/status/2070904914050797582
2•gasull•42m ago•1 comments

People and Blogs Interview: David Cain, Raptitude

https://manuelmoreale.com/interview/david-cain
3•Curiositry•43m ago•0 comments

Why Entertainmentindustry.ai Will Not Be Developed in Australia

https://entertainmentindustry.ai/
2•DavidFrangiosa•49m ago•1 comments

From Prompting Agents to Loop Engineering

https://twitter.com/omarsar0/status/2068008743153832264
5•gmays•51m ago•1 comments

Slop, trust, and a three-line patch

https://klez.me/2026/06/28/slop-trust-and-a-three-line-patch/
2•the_kLeZ•52m ago•1 comments

Google Patent Reveals Satellite Messages May Carry Device Tracking Data

https://patentlyze.com/patent/google-stuffing-device-data-satellite-messages/
3•Dfol•59m ago•2 comments

Show HN: Moumantai – self-hosted, agent-driven apps you can use on any device

https://github.com/xiang-deng/moumantai
2•no_0044•1h ago•0 comments

AMD Strix Halo RDMA Cluster Setup Guide

https://github.com/kyuz0/amd-strix-halo-vllm-toolboxes/blob/main/rdma_cluster/setup_guide.md
13•jakogut•1h ago•0 comments

GTA 3 on a Volumetric Display (2025) [video]

https://www.youtube.com/watch?v=onYH5gvlnzE
2•Tiberium•1h ago•0 comments

Australia to double maximum penalty for platforms in breach of social media ban

https://www.bbc.co.uk/news/articles/c78yv5g74e9o
2•bbg2401•1h ago•1 comments

Never before have so many been trapped in place

https://kindofvoiceless.substack.com/p/there-will-be-nowhere-to-go
4•OgsyedIE•1h ago•0 comments

Why American data centers can't plug in

https://worksinprogress.co/issue/why-american-data-centers-cant-plug-in/
4•Gaishan•1h ago•0 comments

The Lost Discipline of the Alarm: What Notification Design Forgot [video]

https://www.youtube.com/watch?v=Ira28fgSF7M
3•jumpocelot•1h ago•0 comments

Nix Taco Sprint 2026

https://jrdsgl.com/nix-taco-sprint-2026/
6•alurm•1h ago•0 comments

Show HN: QR code renderer in a TrueType font

https://qr.jim.sh/
2•foodevl•1h ago•1 comments

Gary Marcus Trademarked a Rebranded Failed Prediction

https://aidatumpoint.substack.com/p/gary-marcus-trademarked-a-rebranded
2•MadCatBureau•1h ago•1 comments

Show HN: Engye – transfer files between any two devices by scanning a QR code

https://engye.fuzzyworld.net/
3•psafronov•1h ago•0 comments

Rhythm&timing in laughter: Human vocal plasticity falls on a hominid continuum

https://www.nature.com/articles/s42003-026-10499-z
2•bookofjoe•1h ago•0 comments