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

Building geometry solvers for the IMO Grand Challenge(2020)

https://jesse.so/blog/imo-gc-geo/
1•nill0•34s ago•0 comments

Show HN: Router picks Cursor/Claude/Codex and effort per task, then launches it

https://github.com/nidhi-singh02/agent-router
1•nidhisinghattri•1m ago•0 comments

Sex Without the Shuffle

https://www.mpg.de/26975614/sex-without-the-shuffle-a-plant-that-breaks-the-rules-of-inheritance
1•jruohonen•1m ago•0 comments

A new PHP web server lets existing apps serve > 10x more users than all others

http://qbixserver.com/
1•EGreg•2m ago•0 comments

Routing only a few domains over a VPN

https://code.mendhak.com/route-a-single-domain-over-vpn/
1•speckx•6m ago•0 comments

Ireland to boycott Eurovision again over Israeli participation

https://www.theguardian.com/tv-and-radio/2026/sep/17/ireland-to-boycott-eurovision-again-over-ong...
2•Markoff•6m ago•0 comments

Show HN: Ax-Check.com – Can Agents Use Your Product?

https://www.ax-check.com/
1•0x63_Problems•7m ago•0 comments

Two Hundred and Fifty Years of Non-Linear Progress

https://www.archpaper.com/2026/08/america-250-roundup/
1•bryanrasmussen•9m ago•0 comments

Books of 2026 So Far

https://www.newyorker.com/best-books-2026
2•Brajeshwar•11m ago•0 comments

Walking Upright Is Written in the Bones of Our Ancestors

https://nautil.us/the-story-of-walking-upright-is-written-in-the-bones-of-our-ancestors-1285086
1•Brajeshwar•11m ago•0 comments

China's prefab home factories shift from Covid boxes to luxury exports

https://www.reuters.com/world/asia-pacific/quarantine-boxes-luxury-cabins-chinas-prefab-home-fact...
1•elinear•11m ago•1 comments

OpenAI Misalignment Reports

https://alignment.openai.com/misalignment-reports/
1•macleginn•11m ago•0 comments

Show HN: WFCLab – Interactive Wave Function Collapse Explorer (With Source)

https://angularangel.neocities.org/wfc-lab
1•Angle•11m ago•0 comments

Grafana Coding Agent Observability

https://github.com/grafana/agento11y/tree/main/plugins/agento11y
2•eventuallyacat•12m ago•0 comments

Show HN: Daily updated UI sections and components library

https://uitopic.com/index
2•nazbasho•14m ago•0 comments

When an AI Agent Deletes Your Database

https://www.obsidiansecurity.com/blog/when-an-ai-agent-deletes-your-database
1•misetech•15m ago•1 comments

Tutor-MCP – An adaptive learning engine for any subject

https://github.com/ArnaudGuiovanna/tutor-mcp
1•arngvna•16m ago•0 comments

Added a reusable retry client to try, thanks to Go 1.27's generic methods

https://github.com/nodivbyzero/try
1•nodivbyzero•16m ago•0 comments

Union Alpha is a multimodal model built for research, coding, agentic workflows

https://openrouter.ai/stealth/union-alpha
1•Bluestein•17m ago•0 comments

Just Prompt, Motherfucker

https://www.just-prompt-motherfucker.com/
1•fb03•18m ago•2 comments

Ask HN: Do you think the software industry has a good culture of whistleblowing?

2•general_reveal•18m ago•1 comments

Linjen

https://headless.design/portfolio/linjen
1•serhack_•20m ago•0 comments

Can an AI Scientist Start with a Dataset Instead of a Goal?

https://eamag.me/2026/can-an-ai-scientist-start-with-a-dataset-instead-of-a-goal
2•eamag•20m ago•0 comments

Zuckerberg on Slowing Down AI

https://twitter.com/finkd/status/2099997096896274533
1•CGMthrowaway•20m ago•0 comments

Show HN: The browser tab as a back end

https://github.com/ibr0r0/apeeye
1•ibr0r•21m ago•0 comments

Why housing reforms keep failing

https://www.worksinprogress.news/p/the-nimby-problem
1•eamag•22m ago•0 comments

AI machine 'helps save 25M Lego bricks'

https://www.bbc.com/news/articles/c689jqvnqw9jo
2•theanonymousone•23m ago•0 comments

iTorrents.org Compromised to Spread Windows Malware, Kaspersky Says

https://www.pcmag.com/news/itorrentsorg-compromised-to-spread-windows-malware-kaspersky-says
2•MC995•25m ago•0 comments

Thomson Reuters Built Its Own Legal AI Model

https://www.thomsonreuters.com/en-us/posts/innovation/thomson-reuters-built-its-own-ai-model-that...
1•droidjj•25m ago•0 comments

Magic Statics vs. Std:Call_once

https://devblogs.microsoft.com/oldnewthing/20260916-00/?p=112703
1•ibobev•25m ago•0 comments