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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•8mo ago
Agreed

Rain: "Cancelling Async Rust" – RustConf 2025

https://www.youtube.com/watch?v=zrv5Cy1R7r4
1•Brysonbw•2m ago•0 comments

Django 6.0 Tasks: a framework without a worker

https://www.loopwerk.io/articles/2026/django-tasks-review/
1•uneekname•3m ago•0 comments

Requiring 3D printers be equipped with certain blocking technologies

https://app.leg.wa.gov/billsummary/Home/NoScript
1•dymk•3m ago•0 comments

The "Kernel Contract": How PostgreSQL Decides What Goes in Core vs. Extension

https://dataarchipelago.substack.com/p/the-kernel-contract-why-logical-decoding
1•dataarchipelago•4m ago•0 comments

Metric-Registry

https://docs.base14.io/blog/metric-registry/
1•rnjn•7m ago•1 comments

Mastering the VCenter Control Plane: Optimization and Survival

https://www.rack2cloud.com/vcenter-control-plane-optimization/
1•NTCTech•10m ago•0 comments

DeepSeek kicked off 2026 with a new AI training method for scaling

https://www.businessinsider.com/deepseek-new-ai-training-models-scale-manifold-constrained-analys...
1•quietproof•11m ago•0 comments

Myanmar's election is derided as fake, but the suffering is all too real

https://www.japantimes.co.jp/news/2025/12/28/asia-pacific/myanmar-election-people-suffering/
1•PaulHoule•12m ago•0 comments

How to improve the efficiency of your website with simple steps

https://wp-expert.ch/en/2026/01/12/how-to-improve-the-efficiency-of-your-website-with-simple-steps/
1•swissgeek•12m ago•0 comments

Rhizomatic Creative Pedagogy

https://jimiwen.substack.com/p/rhizomatic-creative-pedagogy
1•jimiwen•12m ago•0 comments

Show HN: I built an AI tool to generate heaven pet tribute videos for lost pets

https://petmemories.io/
1•victoormt•13m ago•1 comments

Nonbinary teens are now banned from Hack Club's "Gender Empowering" Events

https://www.chiefdelphi.com/t/nonbinary-teens-are-now-banned-from-nonprofit-hack-clubs-gender-emp...
2•Agreed3750•13m ago•1 comments

The Egg

https://www.galactanet.com/oneoff/theegg_mod.html
1•kordlessagain•15m ago•1 comments

Go 1.26 Interactive Tour

https://antonz.org/go-1-26/
2•phren0logy•17m ago•0 comments

A look into the plastic injection mold of the AirGradient Go

https://www.airgradient.com/blog/airgradient-go-mold-making/
2•ahaucnx•17m ago•0 comments

How to brick your phone (on purpose)

https://bfeldman.me/posts/ios-app-blocker/
1•b_feldman•18m ago•0 comments

Pólya's Conjecture fails only at odd composites,even/prime variants hold to 100M

https://zenodo.org/records/18293931
1•robmurraylyon•21m ago•1 comments

Autistic Barbie sparks debate over what representation should look like

https://www.usatoday.com/story/life/health-wellness/2026/01/16/autistic-barbie-mattel-representat...
1•mhb•21m ago•0 comments

Show HN: create-vibe-app - a language-agnostic scaffold for AI-first coding

https://github.com/hscspring/create-vibe-app
1•evil_yam•22m ago•0 comments

We built Cedar with automated reasoning and differential testing (2023)

https://www.amazon.science/blog/how-we-built-cedar-with-automated-reasoning-and-differential-testing
1•mefengl•22m ago•0 comments

AI-Generated Content Sucks

https://realizeai.substack.com/p/ai-generated-content-sucks
2•rafaelmdec•22m ago•0 comments

Ask HN: How do engineers and inventors do prior-art searches in practice?

1•wireless_eng•23m ago•0 comments

Failed Startup Ideas to Steal

https://loot-drop.vercel.app/
1•nreece•27m ago•0 comments

Nissan's Response (?) To My Leaf Home Screen Widget

https://kevintechnology.com/posts/leaf-widget-response/
3•kcon•28m ago•2 comments

Aim-style interviews with early internet technologists

https://aiminterviews.com
2•sachinkesiraju•29m ago•0 comments

Attitude, Belief, Skill: A Hiring Priority Stack

https://inferal.com/blog/abs-hiring-framework/
1•gpi•30m ago•0 comments

We replaced our sales team with 20 AI agents

https://www.lennysnewsletter.com/p/we-replaced-our-sales-team-with-20-ai-agents
3•rebarbant•34m ago•2 comments

Unix v4 program found cleaning out an office at the University of Utah [video]

https://www.youtube.com/watch?v=m-3RJaKcw_4
2•alamortsubite•35m ago•0 comments

Intricuit Magic Screen Turns Any MacBook into a Touchscreen

https://techfusiondaily.com/intricuit-magic-screen-macbook-touchscreen-ces-2026/
1•dayli•41m ago•2 comments

Sony Xperia 1 IV and Xperia 5 IV gain LineageOS 23.0 support

https://9to5google.com/2026/01/19/sony-xperia-1-iv-and-xperia-5-iv-gain-lineageos-23-0-support/
2•thunderbong•44m ago•0 comments