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

Hybrid Reasoning Agents: 35–55% fewer tokens and up to 2.6× faster inference

https://arxiv.org/abs/2610.18861
2•allinonai•5m ago•0 comments

Netflix vmaf: Perceptual video quality assessment based on multi-method fusion

https://github.com/Netflix/vmaf
1•tosh•10m ago•0 comments

Amazon Acquires DuckLabs and Integrates DuckDB in Amazon Aurora PostgreSQL

https://www.infoq.com/news/2026/10/amazon-acquires-ducklabs/
1•mooreds•12m ago•1 comments

Show HN: LLM Usage Desktop Widget

https://github.com/aleph-void/LLM-Usage-Desktop-Widget
1•bootbloopers•12m ago•0 comments

RedMonk City Alerts

https://monksignal.com/
1•mooreds•13m ago•0 comments

Ever wondered how Noma-styled chefs build flavor pairings?

https://aroma-taste-matrix.vercel.app/
1•DrDizzle•14m ago•1 comments

Next-Concept Modeling: 9–31× faster than diffusion baselines

https://github.com/HazyResearch/ncm
1•allinonai•15m ago•0 comments

Qiling a True Instrumentable Binary Emulation Framework

https://github.com/qilingframework/qiling
2•Bluestein•18m ago•0 comments

Mark Gurman: Apple Made 'Major Mistake' with iPhone Duo Pre-Orders

https://www.macrumors.com/2026/10/18/gurman-says-iphone-duo-preorders-major-mistake/
2•dabinat•19m ago•0 comments

Free Hub for P2P Sharing, QR-Gen, File Converting, YouTube Video Extraction

https://hq.freedev.app/
3•Twombi_E•28m ago•1 comments

How to start your self-hosting adventure: a high-level overview

https://ounapuu.ee/posts/2021/03/17/how-to-start-your-self-hosting-adventure/
3•bo0tzz•31m ago•0 comments

It's time to admit that genes are not the blueprint for life

https://www.nature.com/articles/d41586-024-00327-x
3•Anon84•34m ago•0 comments

Chinese researchers solve 3D Ghys conjecture with homegrown AI model

https://news.cgtn.com/news/2026-10-15/Chinese-researchers-solve-3D-Ghys-conjecture-with-homegrown...
4•yogthos•34m ago•0 comments

Are we sleepwalking into World War III?

https://www.ft.com/content/3a56575e-ecfb-4fa9-af70-01aebd869729
5•themgt•36m ago•3 comments

Show HN: I built a CSV viewer and editor on the one true productivity layout

https://csvfile.tools/viewer
1•scottgpaulin•40m ago•0 comments

Deus Ex in the Browser

https://jeromem.dev/Experiments/Deus+Ex+in+the+Browser
1•measurablefunc•40m ago•0 comments

Programming Language Foundations in Agda

https://plfa.github.io/
2•solomonb•42m ago•1 comments

A 'Ludicrously Ugly' Bridge Is Exhibit a That Britain Has Lost Its Mojo

https://www.wsj.com/world/uk/a-ludicrously-ugly-bridge-is-exhibit-a-that-britain-has-lost-its-moj...
2•nextos•46m ago•1 comments

Show HN: Glider: A single-node vector database with S3 as its only durable state

https://github.com/omerfeyzioglu/glider
3•omerfeyzioglu•49m ago•0 comments

Wix.com blocked account after I transfered .com domain

2•wixcom•49m ago•0 comments

OpenBSD – Introducing Uncm(4)

https://www.undeadly.org/cgi?action=article;sid=20261018200218
3•peter_hansteen•50m ago•0 comments

Eight Bytes in One Register

https://www.yagiz.co/eight-bytes-in-one-register
1•f311a•52m ago•0 comments

MCP events: who writes the first prompt now?

https://timeline.differentiated.io/guides/mcp-events
2•marcelmarais•56m ago•0 comments

Colleges need to teach last-mile knowledge

https://hollisrobbinsanecdotal.substack.com/p/colleges-need-to-teach-last-mile
1•paulpauper•57m ago•0 comments

Show HN: Bullet Script (bs) – a Lisp(y) VM for shmup bullet patterns

http://bs.ell.dev/
4•ellg•57m ago•0 comments

O.J. Simpson, a Secret Informant and a Decades-Old Mystery

https://www.nytimes.com/2026/10/18/us/oj-simpson-ippolito-informant-accomplice.html
2•jgalt212•57m ago•0 comments

Vizen – Open-source overlays for Windows, crop any window over your game

https://github.com/kalinvisuals/VIZEN
1•kalinvisuals•58m ago•0 comments

My Favorite Restaurant Served Gas (2023)

https://bittersoutherner.com/feature/2023/my-favorite-restaurant-served-gas-kate-medley-kiese-lay...
1•wmchen•58m ago•0 comments

Monthly Roundup #47: October 2026

https://thezvi.substack.com/p/monthly-roundup-47-october-2026
1•paulpauper•58m ago•0 comments

Top Mathematician Announces New Institute for A.I. Safety

https://www.nytimes.com/2026/09/08/science/jacob-tsimerman-math-ai-safety.html
4•paulpauper•59m ago•0 comments