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

NYC Bans Hidden Hotel Fees Ahead of World Cup Tourist Influx

https://www.bloomberg.com/news/articles/2026-01-21/nyc-bans-hidden-hotel-fees-ahead-of-world-cup-...
1•toomuchtodo•39s ago•0 comments

Show HN: Infinate –O(k)constant-time spatial attention for unlimited LLM context

https://github.com/ch1pu/infinate
1•ch1pu•2m ago•0 comments

ChatGPT needs a persistent workspace layer

2•LostBeacon•2m ago•0 comments

Show HN: PFAS Reporting 2026 – Triage tool for the EPA's 2011–2026 lookback rule

https://pfasreporting2026.com
1•todaycompanies•3m ago•1 comments

NexPhone: Android, Linux, and Windows 11 in a single device

https://nexphone.com/
1•gessha•4m ago•0 comments

Show HN: Find what you should play next

https://gamebrain.co
1•dsky•4m ago•0 comments

The Truth About Toilet Swirl

https://www.smartereveryday.com/toiletswirl
1•ColinWright•4m ago•0 comments

Get Closer So I Can Hear the Birds

https://terratauri.com/blog/get-closer-so-i-can-hear-the-birds/
2•terramauthe•5m ago•0 comments

Show HN: Ably AI Transport - a transport layer for agentic apps

https://ably.com/docs/ai-transport
1•mchristensen•7m ago•0 comments

Face Shape Detector

https://whatismyfaceshape.net/
1•adilblati3•8m ago•1 comments

Show HN: Tandem – open-source cross-platform AI coworker (Tauri)

1•frumu•12m ago•1 comments

Show HN: TerabyteDeals – Compare storage prices by $/TB

https://terabytedeals.com
1•vektor888•12m ago•0 comments

Oldest Cave Art Discovered in Indonesia

https://www.barrons.com/news/world-s-oldest-cave-art-discovered-in-indonesia-3ddd2a48
1•wjb3•12m ago•0 comments

Typeframe PS-85 – portable inspired by Alien

https://www.typeframe.net/docs/ps-85
2•vpribish•13m ago•1 comments

Show HN: An Ishihara (colorblindness) test generator

https://connorboyle.io/ishihara/
1•connorboyle•14m ago•0 comments

What if AI is both good and not that disruptive?

https://deadneurons.substack.com/p/what-if-ai-is-both-really-good-and
1•nr378•15m ago•0 comments

Grok exposes detailed account suppression information

https://twitter.com/realstewpeters/status/2013848860771144075
3•gravisultra•15m ago•1 comments

TV Screen Type Explained [video]

https://www.youtube.com/watch?v=8x1imoz5nrs
1•debesyla•16m ago•0 comments

Yes, code review is the bottleneck, no you're not doing it right

https://cognition.ai/blog/devin-review
1•agtestdvn•16m ago•1 comments

eBay Explicitly Bans AI "Buy for Me" Agents in User Agreement Update

https://www.valueaddedresource.net/ebay-bans-ai-agents-updates-arbitration-user-agreement-feb-2026/
3•bdcravens•18m ago•0 comments

My First Product Launch

https://veloblanco.global/
1•TBaronG•18m ago•1 comments

NeurIPS accepted research papers with 100 AI-hallucinated citations

https://fortune.com/2026/01/21/neurips-ai-conferences-research-papers-hallucinations/
1•Jimmc414•18m ago•0 comments

Spain's rail network under scrutiny after second deadly crash in three days

https://www.theguardian.com/world/2026/jan/21/spain-rail-network-scrutiny-after-second-train-crash
1•geox•21m ago•0 comments

I Built a Localhost Tunneling Tool in TypeScript – Here's What Surprised Me

https://softwareengineeringstandard.com/2026/01/20/i-built-a-localhost-tunnel-in-typescript-and-h...
1•aussieguy1234•24m ago•0 comments

Stevey's Birthday Blog

https://steve-yegge.medium.com/steveys-birthday-blog-34f437139cb5
2•squirrel•26m ago•0 comments

Beam Bots – Resilient Robotics

https://beambots.dev/
3•lawik•27m ago•0 comments

High-Availability Feature Flagging at Databricks

https://www.databricks.com/blog/high-availability-feature-flagging-databricks
3•bcongdon•28m ago•0 comments

Safety, Efficiency, and Workload of Predictive Display in Simulated Teledriving

https://www.mdpi.com/1424-8220/26/1/221
1•PaulHoule•31m ago•0 comments

Comparing 15 AI video models side-by-side using identical prompts

https://lmarena.ai/?chat-modality=video
2•leanvector•32m ago•2 comments

A macOS cache cleaner for browser and dev and AI caches (Clean / DeepClean)

https://clutterfall.app
1•darekhta•33m ago•2 comments