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: FinMind AI – what if Claude Code was built for Wall Street?

https://finmindai-moneyverse.vercel.app/
1•heroboy•4m ago•0 comments

From AI Job Board to Talent Pool and hitting $1k/mo in 6 months

https://www.indiehackers.com/post/from-ai-job-board-to-talent-pool-and-hitting-1k-mo-in-6-months-...
1•celadondev•5m ago•0 comments

Is Horsewood Safe? Understanding the Horse Wood Warning

https://finance.yahoo.com/sectors/healthcare/articles/horsewood-urgent-report-2026-horse-19110038...
1•fatnhaus•5m ago•0 comments

Asked ChatGPT, how to recover data from disk, "run wipefs"

https://chatgpt.com/share/6a322911-2f14-83e9-a357-559a6175df1e
1•TZubiri•6m ago•1 comments

A Red-Team Study of Anthropic Fable 5 and Opus 4.8 Models

https://arxiv.org/abs/2606.18193
1•ilreb•8m ago•0 comments

Intrusive Driving Aids make driving worst

https://www.youtube.com/watch?v=f-S76WEl25k
1•afarah1•9m ago•0 comments

Looped World Models

https://arxiv.org/abs/2606.18208
1•ilreb•12m ago•0 comments

GPT-2 124M checkpoint pre-trained on OpenWebText 27.5B tokens

https://github.com/workofart/ml-by-hand/releases/tag/gpt2-124m-openwebtext-56000
1•megadragon9•13m ago•1 comments

Dear Researchers: Help me deal with incidents [pdf]

https://surfingcomplexity.blog/wp-content/uploads/2026/06/dear-researchers.pdf
2•azhenley•13m ago•0 comments

The reason some American roundabouts are so dangerous [video]

https://www.youtube.com/watch?v=Pvqzei4HhFY
1•dataflow•15m ago•0 comments

Cursor Origin: code storage and Git hosting

https://twitter.com/cursor_ai/status/2067012220832329782
2•peterspath•15m ago•0 comments

The Slop Paradox

https://arxiv.org/abs/2606.17791
1•ilreb•16m ago•0 comments

Only Bounds

https://smallcultfollowing.com/babysteps/blog/2026/06/09/only-bounds/
1•yurivish•22m ago•0 comments

Cypriot Graffiti in Ancient Egypt

https://www.historytoday.com/archive/history-matters/cypriot-graffiti-ancient-egypt
1•benbreen•24m ago•0 comments

California's tectonic systems at highest levels of stress in 1k years

https://www.theguardian.com/us-news/2026/jun/16/california-earthquake-tectonic-systems-risk
2•andsoitis•26m ago•0 comments

Stop making AI looking landing pages

https://www.aibrandkits.com
2•mattmerrick•26m ago•2 comments

Show HN: IAGlobal – A multi-agent cognitive architecture inspired by biology"

https://github.com/josemarpoubel/iaglobal
1•josemarpoubel•28m ago•0 comments

Reflections on Trusting Trust (1984) [pdf]

https://www.cs.cmu.edu/~rdriley/487/papers/Thompson_1984_ReflectionsonTrustingTrust.pdf
1•_doctor_love•33m ago•0 comments

NetNewsWire Status

https://inessential.com/2026/06/15/netnewswire-status.html
3•droidjj•33m ago•0 comments

Fable is gone but the loop isn't

https://github.com/grainulation/bean
4•woptober•34m ago•0 comments

Session avoids shutdown as community donations save the project

https://cyberinsider.com/session-avoids-shutdown-as-community-donations-save-the-project/
1•Cider9986•41m ago•0 comments

GitHub Copilot Is Down

https://twitter.com/githubstatus/status/2067092904477122633
2•azhenley•44m ago•1 comments

Show HN: Whissle Gateway – Multi-Modal Voice AI in a 500MB Local Docker

https://whissle.ai/gateway
1•ksingla025•45m ago•0 comments

Ask HN: What are your best Claude hacks?

1•akashwadhwani35•48m ago•0 comments

2Day – A minimal, dark-themed web journal and daily timeline

https://play.google.com/store/apps/details?id=com.loftai.twodaylive&hl=en_US
1•pgjeon•49m ago•0 comments

How AI memory systems break at scale

https://tenureai.dev/writing/how-ai-memory-breaks-at-scale/
3•decorner•51m ago•1 comments

UK unveils social media ban for users under 16

https://techcrunch.com/2026/06/15/uk-unveils-sweeping-social-media-ban-for-users-under-16/
1•JimsonYang•52m ago•2 comments

Taleb: Time to Retire Standard Deviation (2014)

https://www.edge.org/response-detail/25401
1•aragonite•52m ago•0 comments

The feedback loops behind Kubernetes

https://planetscale.com/blog/the-feedback-loops-behind-kubernetes
5•farslan•53m ago•0 comments

An AI widget for support, payments, and scheduling

https://www.chatrai.app/
1•sammyjoze1•54m ago•0 comments