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

Chinese Memory Penetrates Global PC Supply Chains

https://www.chosun.com/english/industry-en/2026/02/08/ZHVGQTPLQ5CQ5BE2YBT22GTS2M/
1•Qem•28s ago•0 comments

CleanCloud v1.3.0 – 20 rules to find what's costing you money in AWS and Azure

1•sureshcsdp•1m ago•0 comments

Maybe America Needs Some New Cities

https://www.nytimes.com/2026/02/12/business/economy/america-new-cities-irvine.html
1•woldemariam•2m ago•0 comments

The Rev. Jesse Jackson, pioneering civil rights activist, dies at 84

https://www.cnn.com/2026/02/17/us/reverend-jesse-jackson-death
1•rmason•3m ago•0 comments

I attacked my own LangGraph agent system. All 6 attacks worked

1•mohith_km•4m ago•1 comments

OpenFactBook – The World Factbook

https://openfactbook.org/
1•bovermyer•5m ago•0 comments

Show HN: Free domain health monitoring tool

https://check-server.iqtechnology.io/
1•bodyast1010•5m ago•0 comments

'All records broken' as storm leaves swaths of France under water

https://www.france24.com/en/france/20260214-all-records-broken-storm-nils-leaves-swathes-southwes...
1•geox•6m ago•0 comments

A phone is stolen in London every seven to eight minutes

https://www.bbc.com/news/articles/cdx4762znr6o
1•woldemariam•8m ago•0 comments

Hunt Globally

https://arxiv.org/abs/2602.15019
1•salkahfi•8m ago•0 comments

Fast Sorting, Branchless by Design

https://00f.net/2026/02/17/sorting-without-leaking-secrets/
1•jedisct1•11m ago•0 comments

You Only Debug Once? Think Again

https://singularitynow.substack.com/p/you-only-debug-once-think-again
1•danduma•20m ago•1 comments

How Mitchell Hashimoto Builds Ghostty [video]

https://www.youtube.com/watch?v=ljoNEH39lyw
2•TheWiggles•23m ago•0 comments

OpenAI Tapped for Voice Control Tech in US Drone Swarm Challenge

https://www.bloomberg.com/news/articles/2026-02-13/openai-tapped-for-voice-control-tech-in-us-dro...
1•macleginn•24m ago•1 comments

Stop Using Lovable for Prototyping – Use Storybook and Claude Instead

https://atfzl.com/stop-using-lovable-for-prototyping-use-storybook-claude-instead/
1•atfzl•25m ago•0 comments

Smart-KNN: A production-focused, feature-weighted KNN optimized for CPU

https://github.com/thatipamula-jashwanth/smart-knn
1•Jashwanth01•25m ago•1 comments

Show HN: Inkog – Pre-flight check for AI agents (governance, loops, injection)

https://inkog.io
1•benban•26m ago•0 comments

UK gov want to use AI to prevent at-risk children from falling into crime

https://www.standard.co.uk/news/politics/artificial-intelligence-predict-criminals-future-governm...
1•giuliomagnifico•26m ago•1 comments

Is Show HN Dead? No, but It's Drowning

https://www.arthurcnops.blog/death-of-show-hn/
18•acnops•26m ago•7 comments

SpaceX to Compete in Pentagon Contest for Autonomous Drone Tech

https://www.bloomberg.com/news/articles/2026-02-16/spacex-to-compete-in-pentagon-contest-for-auto...
2•macleginn•27m ago•2 comments

Frontier Models Exhibit Sophisticated Reasoning in Simulated Nuclear Crises

https://arxiv.org/abs/2602.14740
1•salkahfi•29m ago•0 comments

Obituary for Jesse Jackson

https://www.theguardian.com/us-news/2026/feb/17/jesse-jackson-civil-rights-icon-dies
4•Archelaos•32m ago•0 comments

Uswds: The United States Web Design System – U.S. Web Design System (Uswds)

https://designsystem.digital.gov/
1•todd8•33m ago•0 comments

Show HN: Help Me Write AI – an assistant to help you write

https://chromewebstore.google.com/detail/help-me-write-ai/ghiabjooehfjphelpcfolmmeccplgejb
1•mda_damico•36m ago•0 comments

German Wikipedia bans AI generated text completely

https://de.wikipedia.org/wiki/Wikipedia:WikiProjekt_KI_und_Wikipedia/Wikiversum
2•doener•36m ago•0 comments

Show HN: LinkedRecords – Back End-as-a-Service with Auth and Real-Time

https://github.com/wolfoo2931/linkedrecords
1•WolfOliver•37m ago•0 comments

1984 Bhopal Disaster

https://vvesh.de/death/bhopal
2•pryncevv•40m ago•0 comments

Show HN: PgCortex – AI enrichment per Postgres row, zero transaction blocking

https://github.com/supreeth-ravi/pgcortex
1•supreeth_ravi•41m ago•0 comments

Two-thirds of Ukraine intelligence today comes from France

https://militarnyi.com/en/articles/france-s-space-intelligence-where-does-two-thirds-of-ukraine-s...
2•giuliomagnifico•43m ago•0 comments

I built a free alternative to Datadog Synthetic Monitoring using Playwright

2•rizqtek•44m ago•0 comments