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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•12mo ago
Agreed

Anthropic leases Colossus 1 datacentre from Space X

https://www.ft.com/content/aa0239b8-0d57-4dc8-8c1a-ed7ac4d689fb
1•avianlyric•5m ago•0 comments

We Built an AI Recruiter That Conducts Interviews on Google Meet

https://brydg.app
1•sarh543•6m ago•0 comments

VCV Tower Vertical Construction Starts, Virginia's Tallest Building

https://constructionreviewonline.com/ls-greenlinks-vcv-tower-vertical-construction-starts-in-ches...
1•eatonphil•11m ago•1 comments

Show HN: Screen Adapt – auto-scaffolds responsive CSS and Tailwind variants

https://marketplace.visualstudio.com/items?itemName=ShawnKhoo.screen-adapt
1•Shawn_Something•14m ago•0 comments

Uninstalling Cilium from K3s

https://donotpassgo.me/posts/cilium-bpf-cleanup/
1•throwaway38294•15m ago•1 comments

DeepSeek V4 Pro at 75% off until 31 May

https://api-docs.deepseek.com/quick_start/pricing
4•nateb2022•18m ago•0 comments

App Store is hosting many clones of Google's discontinued Socratic app

https://apps.apple.com/us/iphone/search?term=socratic
1•tech234a•18m ago•1 comments

Pope Leo called his bank's customer service line. They hung up on him

https://www.usatoday.com/story/news/nation/2026/05/06/pope-leo-bank-customer-service-chicago/8996...
2•randycupertino•19m ago•0 comments

Hokusai's erotic art on display at a Kabukicho noh theater

https://www.japantimes.co.jp/culture/2026/04/25/art/shunga-art-exhibition-tokyo/
1•PaulHoule•21m ago•0 comments

Ads on Apple Maps

https://ads.apple.com/maps
2•Vortigaunt•22m ago•0 comments

Anthropic raises Claude Code usage limits, credits new deal with SpaceX

https://arstechnica.com/ai/2026/05/anthropic-raises-claude-code-usage-limits-credits-new-deal-wit...
6•koolba•22m ago•2 comments

Nevada AG files lawsuit against Discord: 'Go-to chat option for child abusers'

https://www.reviewjournal.com/news/civil-courts/nevada-ag-files-lawsuit-against-discord-go-to-cha...
3•anonymousiam•23m ago•0 comments

Show HN: Free tool to mark points and polygon regions

https://tack.pics
2•magikMaker•23m ago•0 comments

MicroSplit: Semantic unmixing of fluorescent microscopy data

https://www.nature.com/articles/s41592-026-03082-1
1•bookofjoe•26m ago•0 comments

Unmonitored Agents and a Local AI

1•jay_kyburz•28m ago•0 comments

Ask HN: Should show HN be renamed?

2•piratesAndSons•30m ago•0 comments

UK businesses brace for jet fuel rationing

https://bmmagazine.co.uk/news/uk-jet-fuel-shortage-rationing-goldman-sachs-warning/
26•OgsyedIE•33m ago•3 comments

Richard Dawkins concludes AI is conscious, even if it doesn't know it

https://www.theguardian.com/technology/2026/may/05/richard-dawkins-ai-consciousness-anthropic-cla...
4•embedding-shape•34m ago•0 comments

New Logic for Programmers (and the future of this newsletter)

https://buttondown.com/hillelwayne/archive/new-logic-for-programmers-and-the-future-of-this/
1•akshayshah•34m ago•0 comments

Grok Imagine Quality Mode API

https://x.ai/news/grok-imagine-quality-mode
3•surprisetalk•37m ago•0 comments

Late-night-regrets – piclaw-addons

https://rcarmo.github.io/piclaw-addons/addons/late-night-regrets/
1•rcarmo•37m ago•0 comments

Ten simple rules for optimal and careful use of generative AI in science

https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1013588
2•tacon•38m ago•0 comments

PawModel – Per-pet LoRA training for AI portraits that look acurate

https://pawmodel.com
2•cmackay•38m ago•0 comments

Show HN: Center-ish, 50 experiments related to centering content on a webpage

https://www.quaxio.com/centerish/
1•amenghra•39m ago•0 comments

The Enshittified States of America

https://www.thebulwark.com/p/the-enshittified-states-of-america
1•mooreds•41m ago•0 comments

David Sacks crashed and burned in the White House

https://www.theverge.com/column/925487/david-sacks-trump-administration-ai-model-review
36•PhotonHunter•43m ago•8 comments

The Disappearance of the Public Bench

https://placesjournal.org/article/the-disappearance-of-the-public-bench/
3•cainxinth•45m ago•0 comments

This Month in Redox – April 2026

https://www.redox-os.org/news/this-month-260430/
2•ladyanita22•47m ago•0 comments

Number of tokens shouldn't be the only metric

https://johnjwang.com/post/2026/05/06/tokens-shouldnt-be-the-only-metric/
1•johnjwang•48m ago•0 comments

Audio-only minimal pair trainer using ABX methodology for language acquisition

https://minimalpairs.co
1•michealbingham•49m ago•1 comments