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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•6mo ago
Agreed

How do we train a frontier model (small) in 2025?

https://weirdfishes.substack.com/p/how-do-we-train-a-frontier-model
1•sert_121•5m ago•0 comments

Show HN: Hirelens – AI Resume Analyzer for ESL and Global Job Seekers

https://www.hirelens.co/
1•hl_maker•6m ago•0 comments

The State of Startups in 2025

https://supabase.com/state-of-startups
1•AznHisoka•7m ago•0 comments

An Open-Source HDMI Keyboard/Video/Mouse (KVM) Switch

https://github.com/thatoddmailbox/kvm
2•pabs3•7m ago•0 comments

Mathematically Formalizing the TOON Efficiency Revolution versus JSON

https://mateolafalce.github.io/2025/Mathematically%20Formalizing%20the%20TOON%20Efficiency%20Revo...
1•lafalce•7m ago•0 comments

Heat pumps of the 1800s are becoming the technology of the future

https://knowablemagazine.org/content/article/technology/2023/heat-pumps-becoming-technology-future
2•wjb3•8m ago•0 comments

Language and economic behaviour: Future tense use causes less temp discounting

https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0317422
1•DrierCycle•10m ago•0 comments

Event-Driven Flows

https://akrzemi1.wordpress.com/2025/11/16/event-driven-flows/
1•ingve•10m ago•0 comments

ChatGPT Achieves a New Level of Intelligence: Not Using the Em Dash

https://gizmodo.com/chatgpt-achieves-a-new-level-of-intelligence-not-using-the-em-dash-2000686253
1•leawi•21m ago•0 comments

Comparing PlanetScale PostgreSQL with Hetzner Local Postgres

https://mazeez.dev/posts/planetscale-vs-hetzner-postgres/
1•mazeez•21m ago•0 comments

What engineering can teach (and learn from) us (2021)

https://www.hillelwayne.com/post/what-we-can-learn/
1•smj-edison•22m ago•0 comments

PicoIDE – An open IDE/ATAPI drive emulator

https://picoide.com/
2•st_goliath•24m ago•0 comments

Private AI Compute

https://blog.google/technology/ai/google-private-ai-compute/
2•neehao•26m ago•0 comments

Britney Spears' Guide to Semiconductor Physics

https://britneyspears.ac/lasers.htm
17•lachlan_gray•28m ago•6 comments

I wish we could ignore Gates on the climate crisis. As a billionaire, we can't

https://www.theguardian.com/commentisfree/2025/nov/08/bill-gates-climate-crisis-billionaire-essay...
4•CharlesW•36m ago•0 comments

MCP traffic analysis tool with playground

2•devops-coder•37m ago•0 comments

Quantum chip gives China's AI data centres '1k-fold' speed boost

https://www.scmp.com/news/china/science/article/3332604/quantum-chip-gives-chinas-ai-data-centres...
2•GaryBluto•39m ago•0 comments

Goldman Sachs asks in biotech Report: Is curing patients a sustainable business?

https://www.cnbc.com/2018/04/11/goldman-asks-is-curing-patients-a-sustainable-business-model.html
38•randycupertino•42m ago•10 comments

Upgrading 200 GB Postgres within 10 minutes in Heroku

https://rosenfeld.page/articles/2025_11_16_upgrading_200_gb_postgres_within_10_minutes_in_heroku
1•sh_tomer•49m ago•0 comments

AWS, Google, Microsoft and OCI Boost AI Inference Performance with Nvidia Dynamo

https://blogs.nvidia.com/blog/think-smart-dynamo-ai-inference-data-center/
1•gmays•50m ago•0 comments

What the hell is wrong with Europe? [video]

https://www.youtube.com/watch?v=iH0aij_A08A
5•delichon•54m ago•1 comments

Online KIM-1 emulator – 1976 Single Board Computer

https://maksimkorzh.github.io/KIM-1/
1•gregsadetsky•56m ago•0 comments

ELI5 Explanation of the CAP theorem

https://lukasniessen.medium.com/this-is-a-super-simple-eli5-explanation-of-the-cap-theorem-5cd9e8...
1•birdculture•57m ago•0 comments

Show HN: Engineered doc accuracy at LinkedIn, made the truth layer for docs

1•aa_y_ush•1h ago•1 comments

9NEWS Questions Flock Safety CEO over Mass Surveillance and ICE Access

https://www.9news.com/article/news/investigations/flock-safety-ceo-addresses-mass-surveillance-ac...
9•mhb•1h ago•0 comments

Why your mock breaks later

https://nedbatchelder.com/blog/202511/why_your_mock_breaks_later.html
3•ingve•1h ago•0 comments

Show HN: A ready to use Stremio account for non technical friends and family

https://www.own-your.stream/
1•anonbuddy•1h ago•0 comments

Fun-reliable side-channels for cross-container communication

https://h4x0r.org/funreliable/
2•CharlesW•1h ago•0 comments

Show HN: My Side project a free email template builder for CRM, or any website

https://mailui.co/plugin
4•sifuldotdev•1h ago•0 comments

AI note taking startup started out as 2 guys pretending to be AI

https://www.linkedin.com/posts/sudotong_we-charged-100month-for-an-ai-that-was-activity-739369038...
4•yehudabrick•1h ago•2 comments