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 even IS runtime infrastructure?

https://blog.bridgexapi.io/why-developers-need-programmable-evm-runtime-infrastructure
1•Bridgexapi•4m ago•0 comments

Explore Punks NFT Collection on Polygon Blockchain

https://punks_4.x.rarible.com
1•demro•6m ago•1 comments

Show HN: Clark-Browser – Stealth Chromium

https://github.com/clark-labs-inc/clark-browser
1•stan_kirdey•7m ago•0 comments

Google: Continued commitment to Chromebooks, and looking ahead

https://cloud.google.com/blog/products/chrome-enterprise/our-continued-commitment-to-chromebooks-...
2•pabs3•10m ago•0 comments

Sieve – scans Cursor/Claude chat history for leaked API keys

https://apps.apple.com/us/app/sieve-secret-scanner/id6767409365?mt=12
1•helpful_human•10m ago•0 comments

The Mac mini just became infrastructure

https://thenewstack.io/mac-mini-agent-infrastructure/
1•rav3ndust•13m ago•0 comments

Walmart, Target and Dollar General Spend Billions to Make Stores Look Nicer

https://www.nytimes.com/2026/05/11/business/retailers-stores-renovations.html
2•lxm•14m ago•0 comments

We built a runtime activation layer for autonomous AI agents

https://www.santaclawz.ai/
1•evan-k-global•16m ago•0 comments

PgBackRest Will Continue

https://pgbackrest.org/news.html#will-continue
2•thunderbong•17m ago•0 comments

Peter Salus has died

https://www.tuhs.org/pipermail/tuhs/2026-May/033750.html
9•speckx•20m ago•0 comments

Material Nonpublic Information at Hughes High

https://arcove.substack.com/p/material-nonpublic-information-at-hughes-high
1•jfil•21m ago•0 comments

AI Grant Writing Assistant

https://grantbot.pl
1•tredi•24m ago•0 comments

Research shows a clear and communicated AI stance acts as a powerful amplifier

https://dora.dev/capabilities/clear-and-communicated-ai-stance/
1•riffic•24m ago•0 comments

Shuffle multiple artists' full discographies on Spotify (Chrome extension

https://chromewebstore.google.com/detail/discogmix-multi-artist-sh/oejdmfhdpfpimljokmknjifehccmanko
1•esayli•30m ago•0 comments

The down fall of bug bounties

https://shubs.io/the-down-fall-of-bug-bounties/
2•infosecau•31m ago•0 comments

Vault Pro – AI Scaffolder for Obsidian Project Notes (Node/Claude)

https://checkout.stripe.com/c/pay/cs_live_a1T5cP4xxXFYhY045VE1ui9fm1NJj0ACL1umdUosCWtXUSR8CKrdNPs...
1•bshelby88•32m ago•0 comments

Living 35 ft underground: inside a preserved Titan II nuclear missile silo

https://www.youtube.com/watch?v=rSFSnOBYlbM
1•bane•36m ago•0 comments

An Overview of the Mathematical Theory of Communication for Philosophers [pdf]

https://theinformationalturn.net/wp-content/uploads/2012/03/MTC_overview.pdf
2•teleforce•37m ago•0 comments

Baseball is learning to live with shorter attention spans

https://www.ft.com/content/f499089d-a104-44ad-9773-1ef31715afae
3•petethomas•38m ago•0 comments

People who use ChatGPT for writing are accurate detectors of AI text (2025)

https://arxiv.org/abs/2501.15654
2•lexandstuff•40m ago•0 comments

Can AI just replace me already? – A comparative AI-writing ID experiment

https://www.richardhanania.com/p/can-ai-replace-me-already
1•botacode•42m ago•0 comments

OpenBSD/zaurus: pocket-sized BSD

http://miod.online.fr/software/openbsd/stories/zaurus2.html
1•uticus•46m ago•1 comments

US Joint Forces Command Millennium Challenge 2002: Experiment Report [pdf]

https://www.esd.whs.mil/Portals/54/Documents/FOID/Reading%20Room/Joint_Staff/12-F-0344-Millennium...
1•KnuthIsGod•47m ago•0 comments

War Game Exposed U.S. Vulnerability to Low-Tech Warfare

https://nsarchive.gwu.edu/news/2024-11-01/rigged-war-game-exposed-us-vulnerability-low-tech-warfare
4•KnuthIsGod•51m ago•3 comments

Bluesky Radio – Hosted by Opus 4.7

https://bskyrad.io/
2•wilted-iris•55m ago•0 comments

Data centers raise nearby temperatures by up to 4 degrees in Phoenix

https://techxplore.com/news/2026-05-centers-nearby-temperatures-degrees-phoenix.html
4•limitedfrom•1h ago•1 comments

My First Game, Shadow Dungeon (Procedural Roguelike)

https://dynaq.itch.io/shadow-dungeon
3•mik09•1h ago•1 comments

Ball Simulator in Python Made with Claude

https://github.com/simin75simin/ball-sandbox
2•mik09•1h ago•1 comments

Google's Own AI Researchers Jockey for Access to Its Computing

https://www.bloomberg.com/news/articles/2026-05-18/google-s-own-ai-researchers-jockey-for-access-...
2•osnium123•1h ago•0 comments

Have I Been Pwned: Colombian fintech company leaks 34.5M accounts in March 2026

https://haveibeenpwned.com/Breach/ADDI
4•guessmyname•1h ago•0 comments