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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

Show HN: Detecting coordinated financial narratives with embeddings and AVX2

1•ManuelGomes•35s ago•0 comments

Pi.dev: There are many coding agents, but this one is mine

https://pi.dev/
1•ozonhulliet•1m ago•0 comments

Show HN: PaperLab – Markdown editor that deliberately does less

1•kyleslight•4m ago•0 comments

Is a secure AI assistant possible?

https://www.technologyreview.com/2026/02/11/1132768/is-a-secure-ai-assistant-possible/
1•Brajeshwar•5m ago•0 comments

Apple and Google pledge not to discriminate against third-party apps in UK deal

https://www.theguardian.com/technology/2026/feb/10/apple-google-third-party-apps-app-store
1•Brajeshwar•6m ago•0 comments

The big AI job swap: why white-collar workers are ditching their careers

https://www.theguardian.com/technology/2026/feb/11/big-ai-job-swap-white-collar-workers-ditching-...
1•Brajeshwar•6m ago•0 comments

Thanks to AI, we can play a Roman game again

https://www.maastrichtuniversity.nl/news/thanks-ai-we-can-play-roman-game-again
1•Someone•8m ago•0 comments

Show HN: A calorie explorer for 5,796 foods (1–900 kcal)

https://mealjar.app/nutritional-facts
2•melvinzammit•15m ago•0 comments

The Role of Gas in Powering AI-Driven Energy Demand

https://www.igu.org/igu-reports/the-role-of-gas-in-powering-ai-driven-energy-demand
1•robin_reala•22m ago•0 comments

Show HN: AI that replaces the first 15 minutes of every client call

https://www.myclone.is/
3•vira28•22m ago•0 comments

DeepWiki and Increasing Malleability of Software

https://twitter.com/karpathy/status/2021633574089416993
1•ipnon•23m ago•0 comments

Inertia raises $450M to commercialize the only proven fusion science

https://finance.yahoo.com/news/inertia-raises-450-million-commercialize-133000927.html
2•conroy•23m ago•0 comments

When to Do What You Love

https://www.paulgraham.com/when.html
1•tosh•23m ago•0 comments

Something I believe to be true with the AI platform shift

https://twitter.com/stevesi/status/2021701369640759601
1•tosh•24m ago•0 comments

Introducing Pure Blog

https://kevquirk.com/introducing-pure-blog
2•Curiositry•24m ago•0 comments

Show HN: Building an open-source Google Scholar / Consensus alternative

https://github.com/QuriousAI/qurious
1•nexwastaken•25m ago•0 comments

The tools changed because the job changed

https://sjdonado.com/posts/2026-02-11-changes-in-my-developer-setup/
1•sjdonado•26m ago•1 comments

Show HN: The "Vat of Fluid" Model–Solving 7Systems Paradoxes ViaFirst Principles

1•michbroo•28m ago•0 comments

Choose wisely what you read (2020)

https://www.openculture.com/2020/12/carl-sagan-on-the-importance-of-choosing-wisely-what-you-read...
3•andsoitis•29m ago•0 comments

Staying on Top in the Age of LLMs

https://andrasgerlits.medium.com/staying-on-top-in-the-age-of-llms-818400f8ff0a
1•andras_gerlits•29m ago•0 comments

Show HN: Global Solo – Structural risk diagnostic for cross-border solo founders

https://www.globalsolo.global
1•jettfu•29m ago•0 comments

Why Modern Chinese Is Just 'English with Hanzi'

https://jingyu1623.substack.com/p/why-modern-chinese-is-just-english
3•United857•29m ago•0 comments

Carl Sagan's Baloney Detection Kit: Tools for Thinking Critically (2025)

https://www.openculture.com/2025/09/the-carl-sagan-baloney-detection-kit.html
2•nobody9999•30m ago•1 comments

Instagram chief likens social media addiction to being hooked on a Netflix show

https://www.cnbc.com/2026/02/11/meta-trial-instagram-mosseri-social-media-addiction.html
1•1vuio0pswjnm7•31m ago•0 comments

Show HN: PrintStack – macOS virtual printer to queue and merge PDFs

https://apps.apple.com/us/app/printstack-virtual-printer/id6758392188?mt=12
1•ismailcarlik•32m ago•2 comments

Ask HN: The role of trade unions in tech whistleblowing?

1•bm371613•33m ago•0 comments

Digitizing the "Shokunin": How we encoded a Master's hammer strike into AI

https://yusukekaizen.substack.com/p/the-mathematics-of-intuition-how
2•yusukekaizen•35m ago•2 comments

Ask HN: What are you working on this Thursday?

2•Sayyidalijufri•40m ago•1 comments

Show HN: Free, private developer tools in the browser

https://www.devutilityhub.me/
1•badboyshah•42m ago•0 comments

Sefaria – Torah Study Site

https://www.sefaria.org/texts
2•marysminefnuf•43m ago•1 comments