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•11mo 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•11mo 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•11mo 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•11mo 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•11mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

Reading Vault – free vocab tool that scores comprehension, not memory

https://www.readingvault.app
1•HimaghnaS•1m ago•0 comments

Modelling a Balanced Pencil(2014)

https://thatsmaths.com/2014/06/26/balancing-a-pencil/
1•o4c•3m ago•0 comments

Ask HN: What file sharing apps do you guys use?

1•samarthv•6m ago•0 comments

Can Frontier AI Labs make money?

https://janosmeny.com/blog/can-frontier-ai-labs-make-money/index.html
1•janos95•7m ago•0 comments

Trump evacuated from White House Correspondents' Dinner after shots fired

https://www.abc.net.au/news/2026-04-26/trump-evacuated-white-house-correspondents-dinner-shots-fi...
5•rport•24m ago•3 comments

Does Internet Advertising Work?

https://freakonomics.com/podcast/does-advertising-actually-work-part-2-digital-ep-441/
2•hackthemack•26m ago•3 comments

The American Kill Line

https://jbrr.dev/the-american-kill-line/
3•jbrr•31m ago•0 comments

Open-Source Inference is growing 10% week over week this year

2•luew•32m ago•0 comments

Culina – an OS for multi-location restaurant operations

https://app.getculina.app/login
1•SendjiLabs•33m ago•1 comments

Mechanical forces from the beating heart may help prevent cancer cell growth

https://medicalxpress.com/news/2026-04-mechanical-heart-cancer-cell-growth.html
1•bookmtn•35m ago•0 comments

Evolution Strategies at the Hyperscale [pdf]

https://eshyperscale.github.io/imgs/paper.pdf
1•Anon84•36m ago•0 comments

Aruana – Detects scams and blocks PII before it reaches AI chatbots (100% local)

https://aruana.maiaware.com/
1•rolsite•40m ago•0 comments

When the cheap one is the cool one

https://arun.is/blog/cheap-cool/
1•ddrmaxgt37•41m ago•0 comments

Why Volcanoes Sometimes Shoot Out Lightning

https://nautil.us/why-volcanoes-sometimes-shoot-out-lightning-1280235
1•Brajeshwar•42m ago•0 comments

Replacing an Apple Time Capsule? Skip the Ubiquiti UNAS-2

https://rachelbythebay.com/w/2026/04/24/unas/
1•drpixie•45m ago•1 comments

Trump Evacuated After Shots Fired at DC Event; Shooter Detained

https://www.bloomberg.com/news/articles/2026-04-26/alleged-shooter-at-white-house-press-event-in-...
8•anjneymidha•53m ago•0 comments

Tired of high costs, some Americans are importing homes straight from China

https://www.cnn.com/2026/04/25/business/china-imports-americans-homebuilding-costs
2•breve•58m ago•1 comments

Trump rushed out of dinner amid reports of shots fired

https://www.nytimes.com/live/2026/04/25/us/trump-whca-shooting
5•koolba•1h ago•1 comments

Multiple AI Models in One Platform

https://www.chatcomparison.ai/
1•chatcomparison•1h ago•0 comments

Zephyr Agent: Add AI chat to any website

https://zephyr-agent.sh/
2•daltonlcarr•1h ago•0 comments

My husband and son dived to see the wreck of the Titanic, and never came back

https://www.theguardian.com/world/2026/apr/25/my-husband-and-son-titan-submersible-christine-dawo...
3•pseudolus•1h ago•1 comments

Show HN: Get – get anything from your computer

https://github.com/Water-Run/get
1•linzhangrun•1h ago•0 comments

With A.I., Anyone Can Be an Influencer

https://www.newyorker.com/culture/the-lede/with-ai-anyone-can-be-an-influencer
1•petethomas•1h ago•0 comments

Tell HN: An app is silently installing itself on my iPhone every day

9•_-x-_•1h ago•5 comments

OpenAI shipped privacy-filter, a 1.5B PII tagger you can run locally

https://redactdesk.app/blog/openai-privacy-filter
3•kamban•1h ago•0 comments

Yalda Hakim on the collapse of 'seeing is believing'

https://www.reuters.com/lifestyle/culture-current/yalda-hakim-collapse-seeing-is-believing-2026-0...
1•petethomas•1h ago•0 comments

Decoupled DiLoCo for Resilient Distributed Pre-Training [pdf]

https://storage.googleapis.com/deepmind-media/DeepMind.com/Blog/decoupled-diloco-a-new-frontier-f...
2•gnabgib•1h ago•0 comments

The Race to Make the Most In-Demand Machine

https://www.wsj.com/business/the-race-to-make-the-worlds-most-in-demand-machine-092e8cea
2•petethomas•1h ago•0 comments

EarTrumpet: Volume Control for Windows

https://eartrumpet.app/
1•thunderbong•1h ago•0 comments

New Model May Explain Why You're Not a Twin

https://nautil.us/this-new-model-may-explain-why-youre-not-a-twin-1280219
1•Brajeshwar•1h ago•0 comments