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

Show HN: Purple Flow – AI-first n8n alternative, 10k+ workflows on 512MB

https://github.com/leetheguy/purple_flow
1•leetheguy•1m ago•0 comments

Show HN: Run CalculiX, OpenFOAM and ParaView jobs on your office's idle PCs

https://omnibuscloud.io/blog/simulation/
1•dmitrat•4m ago•0 comments

Mullvad iOS Replaces WireGuardGo with GotaTun

https://github.com/mullvad/mullvadvpn-app/blob/main/ios/CHANGELOG.md
1•HelloUsername•4m ago•0 comments

Benchmarking S3 alternatives: How do cheap VMs compare to S3 on EC2

https://blog.gonzobea.nz/blog/43/
1•birdculture•4m ago•0 comments

The Real-World Data Dilemma

https://brownstone.org/articles/the-real-world-data-dilemma/
1•CGMthrowaway•4m ago•0 comments

Real-Time Video at Batch Size One

https://runway.com/news/research/real-time-video-at-batch-size-one
2•torutofu•4m ago•0 comments

Fable 5.2 vs. PCB routing and placing

https://www.pcbjam.com/blog/fable-blind-pcb-layout/
1•ViktorEE•5m ago•0 comments

De-fanging dangerous triggers in GitHub Actions across an organization

https://alpha-omega.dev/blog/de-fanging-dangerous-triggers-in-github-actions-across-an-organization/
1•miketheman•5m ago•0 comments

Tech Implementing CHERI in Gem5

https://arxiv.org/abs/2611.24460
1•chrsw•6m ago•0 comments

World Toilet Day

https://www.un.org/en/observances/toilet-day
1•enjoyyourlife•7m ago•0 comments

The RedMonk Agent Activity Index, Q3 2026

https://redmonk.com/sogrady/2026/11/18/agent-activity-index-q326/
1•mooreds•7m ago•0 comments

Show HN: Detect and mask PII, payment data and secrets in logs for Go

https://github.com/nao1215/embargo
1•nchika•8m ago•1 comments

Building a private family photo site with Claude Code

https://deepakmurugaian.substack.com/p/i-built-a-home-for-my-ride-photos
1•deepak_sozial•8m ago•1 comments

Attrition: Breaking Bad

https://attrition.org/errata/breaking_bad/
1•o_-_o•9m ago•0 comments

Show HN: ZXC 1.0 – Asymmetric compression codec in C, now in ClickHouse beta

https://github.com/hellobertrand/zxc/releases/tag/v1.0.0
2•pollop_•10m ago•0 comments

Show HN: ToolJet 4.0 – vibe-code internal tools with governance

https://tooljet.com
3•kriztle•11m ago•0 comments

European Tech Founders Demand Reform

https://pathfounders.com/p/tech-founders-worth-100bn-tell-europe-to-get-its-sh-t-together
1•FinnLobsien•11m ago•0 comments

Gemini 4 Neon has no opt-out of prompt logging

https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/abuse-monitoring
1•leafingensemble•12m ago•0 comments

UK loses bid to keep Apple 'backdoor' order secret

https://www.ft.com/content/46a5cf3c-a827-477f-b72f-e7415565e729
2•yubblegum•12m ago•2 comments

Altar II: a mechanical keyboard designed for Mac

https://daringfireball.net/linked/2026/11/10/altar-ii-kickstarter
2•aemerson_•15m ago•1 comments

I made a film in Excel [video]

https://vimeo.com/1241981102
5•sebg•17m ago•0 comments

A few of my favorite software documentaries

https://nate.spot/software-documentaries/
3•surprisetalk•18m ago•0 comments

Java4Shell: CPU matrix and cloud instance mappings

https://xbow.com/research/java4shell-cpu-matrix/cpu-matrix/index.html
4•_xor_•19m ago•0 comments

Canva Will Let Users Switch Off Most Generative AI

https://www.engadget.com/2321318/canva-will-let-users-switch-off-most-generative-ai/
3•thm•20m ago•0 comments

Automodel: A skill for agentic model discovery

https://arxiv.org/abs/2611.24347
3•marco_virgolin•20m ago•1 comments

National Geographic Reveals Its Pictures of the Year for 2026

https://www.nationalgeographic.com/photography/graphics/pictures-of-the-year-2026
2•pryanshu89•22m ago•0 comments

The 5k Episodes a Week AI-Podcast Company Has Pivoted

https://www.hollywoodreporter.com/business/digital/the-5000-episodes-a-week-ai-podcast-company-pi...
1•speckx•23m ago•0 comments

NHS data contract to stay with Palantir until 2029

https://www.bbc.co.uk/news/articles/cqvg27zpm8w8o
1•asplake•24m ago•0 comments

I Tested 7 Ways to Translate a WordPress Site in 2026 [video]

https://www.youtube.com/watch?v=GOgbRpKeEXw
1•leoloso•25m ago•0 comments

Agentic Trio: 12 theses on digital product development

https://agentictrio.org/
2•simonharrer•26m ago•0 comments