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: NexDM – A fast, 64-segment download manager in Rust and Tauri

https://nexdm.in/
1•Technews2026•1m ago•0 comments

'Huge Breakthrough' in the Math of Imbalance

https://www.quantamagazine.org/huge-breakthrough-in-the-math-of-imbalance-20260821/
1•pseudolus•11m ago•0 comments

Geometric ideas behind construction of complex structure on S^6 [pdf]

https://philip-engel.github.io/S6.pdf
1•ApesAreGreat•11m ago•0 comments

How much harder are discrete bandits?

https://louisabraham.github.io/articles/discrete-bandits
1•Bluestein•11m ago•0 comments

Feedback on Using Unified Builds

https://serge-sans-paille.github.io/pythran-stories/pros-and-cons-of-unified-build.html
1•serge-ss-paille•12m ago•0 comments

EasyContract – Upload any contract, get a risk analysis in seconds

https://easy-contract.app
1•vladimir_semch•12m ago•0 comments

Harvard Business School exploring European branch after Trump's visa threats

https://www.ft.com/content/4fbeebda-e40d-423a-8564-e410fbfb6e9f
1•Alien1Being•13m ago•0 comments

You could own AI.slop if applicant for new top-level domains get their way

https://www.theregister.com/networks/2026/08/27/you-could-own-aislop-if-applicant-for-new-global-...
1•nyku•13m ago•0 comments

Automating WhatsApp/telegram chats or personal chats with complete privacy

2•Shekar77•13m ago•0 comments

Why a room full of strangers can feel more human than anything on a screen

https://emsh.cat/en/the-people-are-still-there/
1•embedding-shape•15m ago•0 comments

Bug Translation Audio has someone screaming on it

https://kagifeedback.org/d/11343-audio-has-someone-screaming-on-it
1•alpineman•15m ago•0 comments

Why Diamond Transistors Are So Hard [video]

https://www.youtube.com/watch?v=NLmd5vL0zmk
1•lawrenceyan•16m ago•0 comments

Show HN: Running Linux GUI Apps on Android via Integrated TigerVNC and AOSP

https://github.com/openfde/openfde/blob/main/docs/Technical-Article01.md
1•aaaa5455555a•16m ago•1 comments

Anthropic Fix Your Auth

https://github.com/anthropics/claude-code/issues/79808
1•afterfiveguy•17m ago•1 comments

Google's anti-nausea Motion Assist dots rolling out on Android

https://arstechnica.com/gadgets/2026/08/google-begins-rolling-out-anti-motion-sickness-feature-on...
3•Bluestein•18m ago•0 comments

The people, the money and the ownership behind China's leading AI companies

https://wirescreen.ai/briefings/china-ai
2•chvid•20m ago•0 comments

My software development workflow is AI now & it feels exhausting and soulless

https://old.reddit.com/r/cscareerquestions/comments/1vi1i7m/my_entire_software_development_workfl...
2•bundie•26m ago•1 comments

Kalshi Partner Puts Parlay Loss Data Behind $40k Paywall

https://www.sportico.com/business/sports-betting/2026/kalshi-parlay-data-research-dune-access-123...
1•Bluestein•27m ago•0 comments

Sharedsky.app

https://sharedsky.app
1•rapttor_agency•27m ago•0 comments

Quantum Computing Failure Now Obvious [video]

https://www.youtube.com/watch?v=DX_oIQ-tA6M
1•mpweiher•28m ago•0 comments

Thinking Machines Lab Co-Founder Barret Zoph Joins Google

https://www.wsj.com/tech/ai/thinking-machines-lab-co-founder-barret-zoph-joins-google-49f594e6
2•tosh•32m ago•0 comments

Dante and the Tuscan Vernacular Gave Birth to the Italian Language

https://www.thecollector.com/dante-tuscan-vernacular-italian-language/
2•theanonymousone•34m ago•0 comments

CUDA Python 1.0: Stable APIs, One Foundation, Full Platform Access

https://developer.nvidia.com/blog/cuda-python-1-0-stable-apis-one-foundation-full-platform-access/
1•elashri•34m ago•0 comments

Ed Zitron on DOAC [video]

https://www.youtube.com/watch?v=Lf5oqGOCRCM
2•dhruv3006•35m ago•0 comments

LangChain-AI/deepagents: agent harness

https://github.com/langchain-ai/deepagents
1•OutOfHere•35m ago•0 comments

Nvidia NVLink Fusion Brings Nvhbm to Next-Generation AI Infrastructure

https://developer.nvidia.com/blog/nvidia-nvlink-fusion-brings-nvhbm-to-next-generation-ai-infrast...
1•elashri•36m ago•0 comments

SoundCloud will let artists sell music directly, without fees

https://dataconomy.com/2026/08/27/soundcloud-will-let-artists-sell-music-directly/
1•giuliomagnifico•36m ago•0 comments

Futurism Is Always Extreme

https://borretti.me/article/futurism-is-always-extreme
2•varjag•41m ago•0 comments

Mind sharing Google Colab pro or a VM?

1•mzubairtahir•41m ago•0 comments

Show HN: A 67-point scorer for engineers considering Canada

https://fswcalculator.com/
1•Sherry9695•42m ago•0 comments