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: Cord – Agents that build their own coordination trees

https://www.june.kim/cord
1•kimjune01•55s ago•0 comments

Show HN: MegaHAL in Pure SQL

https://github.com/tgies/megahal-sql
1•tgies•1m ago•0 comments

Show HN: Master Golang, Fullstack Go web dev course, scratch to production

https://mastergolang.com/
1•mbvisti•1m ago•0 comments

How the US Won Back Chip Manufacturing

https://www.chinatalk.media/p/how-the-us-won-back-chip-manufacturing
1•iamnothere•2m ago•0 comments

Buses should not be "free"

https://mleverything.substack.com/p/no-buses-should-not-be-free
2•bko•3m ago•0 comments

The Biophysical World Inside a Jam-Packed Cell

https://www.quantamagazine.org/the-biophysical-world-inside-a-jam-packed-cell-20260218/
1•Brajeshwar•3m ago•0 comments

Show HN: VibeScan – Free client-side security scanner for AI-generated code

https://tools.pinusx.com/vibescan
1•dbhariprakash•3m ago•0 comments

The Human Exposome Project will map how environmental factors shape health

https://www.economist.com/science-and-technology/2026/02/18/the-human-exposome-project-will-map-h...
1•Brajeshwar•3m ago•0 comments

Brain-like computers could be built out of perovskites

https://www.economist.com/science-and-technology/2026/02/18/brain-like-computers-could-be-built-o...
1•Brajeshwar•3m ago•0 comments

New GoDaddy Terms of Service: we no longer serve "consumers"

https://domainnamewire.com/2026/02/19/new-godaddy-terms-of-service-we-no-longer-serve-consumers/
1•speckx•3m ago•0 comments

UMD Scientists Create 'Smart Underwear' to Measure Human Flatulence

https://cbmg.umd.edu/news-events/news/brantley-hall-umd-scientists-create-smart-underwear-measure...
1•ohjeez•4m ago•0 comments

The biggest app in the whole wide world

https://www.theverge.com/tech/876196/top-app-store-apps-developers
1•aarvinroshin•4m ago•0 comments

Google AI Studio and NBP are down

https://aistudio.google.com/status
3•boriskourt•4m ago•0 comments

Datadog: Give Your Agent a Puppy: Introducing Pup CLI

https://github.com/datadog-labs/pup
1•dpflan•4m ago•0 comments

Adquira agora Controle de VIPs e seguros para DayZ

https://www.dfg.com.br/pt/outros/gerenciador-de-seguros-e-vips-dayz-controle-vencimento-96422873
1•Baruki•5m ago•0 comments

Show HN: Design and print allergy cards for free in multiple languages

https://allergysafe.co/
1•dreadsword•5m ago•0 comments

Show HN: Feuxo – Real-Time hiring posts and contacts and personalized outreach

https://feuxo.com
1•KrishnaTorque•6m ago•0 comments

Gemini 3.1 Pro Preview

https://console.cloud.google.com/vertex-ai/publishers/google/model-garden/gemini-3.1-pro-preview?...
1•MallocVoidstar•7m ago•0 comments

Efficient Ralph Wiggum Loops on a Raspberry Pi

https://mfbt.ai/blog/efficient-ralph-wiggum-loop-raspberry-pi-mfbt/
1•shuss•7m ago•0 comments

You had a story

https://nolanlawson.com/2026/02/18/you-had-a-story/
1•MindGods•7m ago•0 comments

AICode: A VSCode methodology for long-term maintainable AI coding

https://marketplace.visualstudio.com/items?itemName=joelabenhaim.aicode-ja
1•bonjourjoel•9m ago•1 comments

Token Compression, achieving more with less

https://www.edgee.ai/blog/posts/2026-02-19-achieving-more-with-less-using-token-compression
6•sachamorard•10m ago•2 comments

Warning to Humanity: Why We Must Not Trust the AI "Fluency Trap"

2•jariamaria•10m ago•2 comments

Ask HN: Frameworks for 2D Browser Games?

3•tmaly•11m ago•1 comments

People Will Sometimes Just Lie About You

https://aella.substack.com/p/people-will-sometimes-just-lie-about
2•iamnothere•11m ago•0 comments

Waymo Faces Setback as New York Withdraws Robotaxi Service Plan

https://www.bloomberg.com/news/articles/2026-02-19/new-york-s-robotaxi-plan-pulled-in-setback-to-...
2•helsinkiandrew•11m ago•0 comments

The State of Machine Learning Competitions – 2025 Edition

https://mlcontests.com/state-of-machine-learning-competitions-2025/
1•willis77•12m ago•0 comments

How I launched 3 consoles and found true love at Babbage's store no. 9 (2013)

https://arstechnica.com/gadgets/2013/01/how-i-launched-3-consoles-and-found-true-love-at-babbages...
3•zepearl•12m ago•0 comments

Can LLMs Play Catan?

https://visakhmadathil.com/blog/2026-02-09-can-llms-play-catan
1•forwardalways•12m ago•0 comments

Canaries in the Coal Mine? Six Facts about the Recent Employment Effects of AI

https://digitaleconomy.stanford.edu/publication/canaries-in-the-coal-mine-six-facts-about-the-rec...
1•DGAP•13m ago•0 comments