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

The op log was peer-to-peer the whole time

https://avelino.run/from-icloud-to-peers/
1•ethanplant•53s ago•0 comments

I built a free invoice generator for freelancers – no login, no subscription

https://quickinvoice-jade.vercel.app
1•Mini_dev•3m ago•0 comments

Operation RYaN

https://en.wikipedia.org/wiki/Operation_RYAN
1•valgaze•7m ago•0 comments

We built a P2P app with no servers. 1M users didn't miss them [Video]

https://www.youtube.com/watch?v=n76zGrt4aRY
1•danboarder•7m ago•0 comments

Tangled CI runs on microVMs

https://blog.tangled.org/spindle-microvm/
2•icy•11m ago•0 comments

Manifest-Driven Development

https://spacedock.md/blog/manifest-driven-development/
1•clkao•16m ago•0 comments

Meshtryoshka: Differentiable Mesh Rendering for Unbounded Scenes

https://danielxu9393.github.io/meshtryoshka-website/
1•E-Reverance•16m ago•0 comments

OGN 3D Viewer – glider flights replayed in 3D in the browser

https://s-celles.github.io/ogn-3d-viewer/
1•scls19fr•21m ago•0 comments

PostgreSQL Management Platform

https://gilliomfrontlinedigital.com/
1•Warfighter8714•21m ago•0 comments

There's this mystery of what, actually, is this thing?: DeepMind's philosopher

https://www.theguardian.com/news/ng-interactive/2026/jun/30/theres-this-deep-mystery-of-what-actu...
1•mellosouls•22m ago•1 comments

Can Facial Recognition tools track you online?

https://eyematch.ai/blog/privacy/can-facial-recognition-tools-track-you-online
1•anetagro•24m ago•0 comments

EU Commission HQ forced to shut down air-conditioning amid heatwave

https://www.politico.eu/article/eu-commission-heatwave-hq-forced-shut-down-air-conditioning-europe/
1•mdavid626•24m ago•1 comments

Vāgdhenu: Open-source meter-aware text-to-speech for Sanskrit

https://prathosh.in/vagdhenu/
1•bargavas•24m ago•0 comments

What Is Binning? A Basic Definition (2022)

https://www.tomshardware.com/reviews/glossary-binning-definition
1•thunderbong•32m ago•0 comments

Zero Trace AI – private AI chat with nothing to subpoena

https://zerotraceai.org
2•OrPrivacyGuy•37m ago•0 comments

I have open-sourced gojaja, a CLI for local multi-agent collaboration

2•zpwsmile•41m ago•0 comments

US Supreme Court Just Blew Up EU-US Data Transfers

https://noyb.eu/en/us-supreme-court-just-blew-eu-us-data-transfers
26•tomwas54•41m ago•7 comments

Show HN: Vaghenu, a meter aware sloka-to-chant, TTS for Sanskrit

3•init0•43m ago•0 comments

Popping the GPU Bubble

https://moondream.ai/blog/popping-the-gpu-bubble
36•radq•44m ago•5 comments

Show HN: No ads and noise from any page, get a clean AI reformat in one click

https://code.intellios.ai/cwsum/
1•coolwulf•44m ago•0 comments

Ferrari's marketing boss quits after troubled EV debut

https://www.euronews.com/business/2026/06/25/ferraris-marketing-boss-quits-after-troubled-ev-debu...
3•iancmceachern•45m ago•0 comments

A Berkeley AI professor makes provocative argument for decelerating AI research

https://www.fastcompany.com/91564629/a-berkeley-ai-professor-makes-a-provocative-argument-for-dec...
4•1vuio0pswjnm7•47m ago•0 comments

The Body It Asked For – AI, hardware, and the long way back to atoms

https://saqiba.substack.com/p/the-body-it-asked-for
1•saqibanajam•48m ago•0 comments

Hollow-core fiber trial pushes 51.3 TB/s over 128mi with out signal regeneration

https://www.tomshardware.com/networking/chinas-hollow-core-fiber-trial-pushes-51-3-tb-s-over-128-...
2•giuliomagnifico•49m ago•1 comments

Nimetic – Zero-JS Single Page Applications

https://yottadb.com/nimetic-zero-js-single-page-applications-with-nim-datastar-and-yottadb/
2•archargelod•49m ago•0 comments

Qwen3.5 2B burns all the output tokens while thinking

2•adithyaharish•51m ago•0 comments

Story about Crazy Frog [video]

https://www.youtube.com/watch?v=K063gZvP5JU
2•modinfo•52m ago•1 comments

ILockBox: Offline Private Photo Vault and Video Locker

https://apps.apple.com/us/app/ilockbox-photo-vault-locker/id1064360258
1•nitingohel•54m ago•0 comments

The bats working the pollinator night shift

https://www.batcon.org/a-world-tour-of-bat-pollination/
1•gscott•57m ago•0 comments

The end of the AArch64 desktop experiment

https://marcin.juszkiewicz.com.pl/2026/06/26/the-end-of-the-aarch64-desktop-experiment/
3•signa11•1h ago•1 comments