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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

What it would take to rebuild U.S. manufacturing might

https://www.axios.com/2026/05/27/us-manufacturing-china-imports
1•petethomas•48s ago•0 comments

Human in the loop and the autonomous agent problem

https://openenvelope.org/writing/hitl-autonomous-agent-problem/
1•ashconway•2m ago•0 comments

Smartphone Sales Are Tumbling

https://www.msn.com/en-us/news/technology/ar-AA24cVZL
2•CarbonBasedUnit•4m ago•1 comments

South America Travel Costs in 2026: Which Cities Are Cheap Now

https://jackmaguire.org/blog/south-america-travel-costs-2026/
2•magicroot75•8m ago•1 comments

Google Security Engineer Arrested in Million-Dollar Polymarket Trading Scheme

https://www.wired.com/story/google-employee-accused-of-polymarket-one-million/
1•1vuio0pswjnm7•10m ago•0 comments

Google Employee Charged with Insider Trading

https://www.justice.gov/usao-sdny/pr/google-employee-charged-insider-trading
2•1vuio0pswjnm7•10m ago•0 comments

Show HN: SwiperTab – clean up your tabs in a fun way

https://addons.mozilla.org/en-US/firefox/addon/swipertab/
2•Realman78•11m ago•0 comments

AgingBench: AI Agents Age Too

https://agingbench.github.io
2•zfancy•11m ago•0 comments

Severe Latency Impacting All Slack Services

https://slack-status.com/2026-05/fd9a431182c72eeb
4•xyru•13m ago•1 comments

Trump admin drawing up plans to stop processing intl flights in sanctuary cities

https://www.theguardian.com/us-news/2026/may/27/dhs-international-flights-sanctuary-cities
4•standardUser•16m ago•0 comments

New method for testing AI using real work-flows

https://github.com/AssimilatedHuman/LLM-Inquisitor
1•ballista2026•17m ago•0 comments

Show HN: My Attempt at QR as a Captcha

https://qr.arcades.click
1•jwally•22m ago•0 comments

Ask HN: I am about to go from SWE to Product Manager, what is your day 1 advice?

1•mr_00ff00•25m ago•2 comments

A Luxury Survivalist Community Is Tearing Itself Apart

https://www.wsj.com/us-news/a-luxury-survivalist-community-is-tearing-itself-apart-53d2a99f
1•tortilla•25m ago•2 comments

Why is Slack allowed to get away with lying?

5•slack_is_lying•29m ago•1 comments

AGH is the First open-network protocol for AI Agents

https://www.agh.network/
1•pedronauck21•30m ago•1 comments

How can we get politicians to listen? Surely there's a tech solution: Voice News

https://voicenews.app
1•henrystaley•30m ago•3 comments

Rise and Fall of Hosting Provider Gandi.net

https://gagliardoni.net/#20260528_gandi_downfall
2•tomgag•31m ago•2 comments

Google Engineer Charged with Insider Trading on Polymarket

https://www.bloomberg.com/news/articles/2026-05-27/google-engineer-charged-with-insider-trading-o...
9•forthwall•34m ago•1 comments

Charter Communications confirms data breach of apparently 40M records

https://www.techradar.com/pro/security/charter-communications-confirms-data-breach-shinyhunters-b...
2•lschueller•34m ago•0 comments

Wikipedia: Wiki Workers United Solidarity

https://en.wikipedia.org/wiki/Wikipedia:Wiki_Workers_United_solidarity
3•choult•35m ago•0 comments

I built three Wikipedia-based search tools as alternatives to Google AI

https://www.calishat.com/2026/05/21/three-search-alternatives-to-googles-brave-new-ai-world/
1•Calishat•36m ago•1 comments

NASA's Psyche Mission Aces Mars Flyby, Targets Metal-Rich Asteroid

https://www.nasa.gov/missions/psyche-mission/nasas-psyche-mission-aces-mars-flyby-targets-metal-r...
1•bookofjoe•37m ago•0 comments

Interesting possible new Tinder scam at scale

https://www.youtube.com/watch?v=rjxAYdUe8uU
1•lifeisstillgood•38m ago•0 comments

What Emerges When You Don't Break Sustained Coherent Human-AI Interaction

https://zenodo.org/records/20332884
1•Depiphany_Reb•40m ago•0 comments

Taking Naval Options Away from China –| Peter Zeihan [video][4m53s]

https://www.youtube.com/watch?v=NRkZprxYOzQ
1•Bender•40m ago•0 comments

China is keeping its best AI talent to itself via travel restrictions

https://techcrunch.com/2026/05/27/china-is-increasingly-keeping-its-best-ai-talent-to-itself/
1•jnord•41m ago•0 comments

A Google employee allegedly used inside information to win $1.2M on Polymarket

https://www.theverge.com/tech/938635/google-polymarket-insider-trading-prediction-market-bets
4•1vuio0pswjnm7•41m ago•0 comments

Halide Mark III

https://www.lux.camera/halide-mark-iii/
2•witweb•42m ago•0 comments

Keyboard Latency Probe

https://xkqr.org/bellwether/keyboardtest.html
2•birdculture•45m ago•0 comments