frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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

Is Trader Joe's the "Quince" of Food?

https://lesleysykes.substack.com/p/is-trader-joes-the-quince-of-food
1•mooreds•48s ago•0 comments

Show HN: nbpipe – A lightweight workflow runner for Jupyter notebooks

https://github.com/ngafar/nbpipe
1•nawazgafar•2m ago•0 comments

Analysis of changes in the Bun codebase after the rewrite from Zig to Rust

https://kant2002.github.io/en/llm/2026/05/16/bun-pr-analysis-en.html
2•kant2002•2m ago•1 comments

Vulnerability Cve-2026-7412

https://db.gcve.eu/vuln/cve-2026-7412
1•anonyoum•4m ago•0 comments

Vulnerability Cve-2026-7411

https://db.gcve.eu/vuln/cve-2026-7411
1•anonyoum•4m ago•0 comments

Colleges got more rural students to apply, challenge is getting them to attend

1•1659447091•4m ago•0 comments

Claude Session Manager – tile-based desktop manager for Claude Code

https://github.com/irfan-gowani/claude-session-manager
1•gnosis_hn•5m ago•0 comments

Too Much Is Happening Too Fast

https://www.theatlantic.com/technology/2026/05/too-much-happening-too-fast/687177/
1•malshe•5m ago•1 comments

Exploring Chemistry in Four Dimensions

https://blog.4denthusiast.net/
1•onestay42•6m ago•0 comments

Outcry: A four-layer activist AI that runs on a four-year-old phone

https://www.outcryai.com/research/how-to-create-activist-ai
1•micahwhite•7m ago•0 comments

Local, reviewable repo memory for coding agents

https://github.com/aictx/memory
2•Yannetto•8m ago•0 comments

Microsoft starts canceling Claude Code licenses

https://www.techbuzz.ai/articles/microsoft-starts-canceling-claude-code-licenses
1•Aldipower•8m ago•0 comments

Show HN: Got ghosted by tech companies so I built a tool to track ghost jobs

https://csvfirst.pythonanywhere.com/insights/hiring-data/job-listings-that-stay-open-for-years/
2•ktmartin•9m ago•0 comments

Ccls: A C/C++/Objective-C language server protocol implementation derived from C

https://github.com/MaskRay/ccls
1•fanf2•10m ago•0 comments

Share your shell and show your tricked-out terminals

https://arstechnica.com/information-technology/2026/05/ars-asks-share-your-shell-and-show-us-your...
1•twilight-code•17m ago•2 comments

Distributed Systems aren't just about scaling

https://brooker.co.za/blog/2024/06/04/scale.html
1•arn3n•20m ago•0 comments

The Impossibility of Supersized Machines (2017)

https://arxiv.org/abs/1703.10987
3•Luc•23m ago•0 comments

A tool to screen new ArXiv papers

https://github.com/ibaaj/arxiv-digest
1•newolive•23m ago•0 comments

Original Sony MiniDisc Announcement (1991)

https://www.minidisc.org/sony_announcement.html
1•Tomte•27m ago•0 comments

LLM models are not ready for orchestrating many agents

1•daemon_9009•27m ago•0 comments

"Run the agent program" in 1978

https://www.youtube.com/watch?v=4xPzYmj1QLs
1•Jonovono•35m ago•1 comments

Privacy is becoming more of a privilege

https://blog.avas.space/privacy-privilege/
3•speckx•36m ago•0 comments

OpenAI and Government of Malta partner to roll out ChatGPT Plus to all citizens

https://openai.com/index/malta-chatgpt-plus-partnership/
27•bookofjoe•38m ago•15 comments

The Quiet Renovation at Bitwarden

https://blog.ppb1701.com/the-quiet-renovation-at-bitwarden
5•DaSHacka•38m ago•1 comments

What breaks when you ship Next.js on Cloudflare Workers

https://finterm.xyz/blog/nextjs-on-cloudflare-workers
2•qemuguest•41m ago•1 comments

Microsoft Exchange Server Spoofing Vulnerability New

https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-42897
2•doener•42m ago•0 comments

Pretext-breaker, a configurable block-breaker easter egg for React apps

https://github.com/y-lakhdar/pretext-breaker
1•ylakhdar•42m ago•0 comments

Microsoft Exchange: Zero-day vulnerability is being attacked

https://www.heise.de/en/news/Microsoft-Exchange-Zero-day-vulnerability-is-being-attacked-11295808...
1•doener•42m ago•0 comments

Show HN: I stripped GNSS/BT/NFC from GrapheneOS and built a RAM-only messenger

https://arpokrat.com
2•anthonype•44m ago•0 comments

ClickBook – Offline Android eReader with local LLM inference via llama.rn

https://play.google.com/store/apps/details?id=com.clickbook.reader&hl=en_US
1•elcooo•47m ago•2 comments