frontpage.
newsnewestaskshowjobs

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

Yet Another IPv5 Proposal

2•bigcityslider•2m ago•0 comments

The Mailgun Routes alternative for developers – MailKite

https://mailkite.dev/blog/mailgun-routes-alternative/
2•bucabay•5m ago•0 comments

Show HN: Fortress – open-source Chromium that keeps browser agents unblocked

https://github.com/tiliondev/fortress
4•arhamislam5766•9m ago•0 comments

Soatok's Informal Guide to Threat Models

https://soatok.blog/2026/06/30/soatoks-informal-guide-to-threat-models/
4•zdw•10m ago•0 comments

Context graphs: how AI agents remember why decisions were made

https://nanonets.com/blog/what-is-a-context-graph/
2•vitaelabitur•15m ago•0 comments

I Could Kill You with a Consumer Drone

https://www.defenseone.com/ideas/2017/06/i-could-kill-you-consumer-drone/139012/
4•bookofjoe•23m ago•1 comments

Making a Simulation Game – Part 1: The Agent Simulation Engine

https://scarlet.engineering/blog/making-simulation-game-part-1-the-engine/
1•poga•24m ago•0 comments

To tab or not to tab

https://arxiv.org/abs/2606.30549
1•azhenley•26m ago•0 comments

Bitcask - A Log-Structured Hash Table for Fast Key/Value Data (2010) [pdf]

https://riak.com/assets/bitcask-intro.pdf
1•gregsadetsky•32m ago•0 comments

SkySynth

https://skyviewer.app/skysynth
1•akkartik•32m ago•0 comments

Agent Empire: A interactive game to get started on what agent pattern to chose

https://agent-empire.products.sayantan.sh/
2•Morningstar317•33m ago•0 comments

China's ByteDance discovers new scaling law that could sustain AI boom

https://www.scmp.com/tech/big-tech/article/3359373/chinas-bytedance-discovers-new-scaling-law-cou...
2•dstala•33m ago•0 comments

Voices of the Void

https://votv.dev/
3•dclavijo•34m ago•0 comments

Repo-Slopscore: Detecting AI Contributions in Git Repositories via Commit

https://slopscan.ava.pet/
2•birdculture•40m ago•0 comments

Show HN: Gavio: open-source interceptor pipeline for production LLM applications

https://github.com/manojmallick/gavio
3•cees007•41m ago•1 comments

Show HN: Papa – open-source Hemingway-style readability linting for Markdown

https://github.com/bharadwaj-pendyala/papa
2•bharadwajp•42m ago•0 comments

How HN: Billy – a self-hosted AI assistant that lives in your Telegram

https://github.com/surfgolfski-dev/billy
2•tmblwd73•43m ago•1 comments

Claude's Criminally Bad Electron Mac App Is an Inside Job

https://daringfireball.net/2026/07/claudes_criminally_bad_mac_app_is_an_inside_job
4•GavinAnderegg•44m ago•1 comments

What does privatization of the US Postal Service mean?

https://phenomenalworld.org/analysis/unstitching-america/
3•htunnicliff•44m ago•0 comments

Russia buys gasoline from India to tackle shortages

https://www.reuters.com/business/energy/russia-buys-gasoline-india-tackle-shortages-sources-say-2...
3•breve•48m ago•0 comments

Forget the AI bubble. The IMF says the real threat is the mountain of debt

https://www.msn.com/en-us/money/other/forget-the-ai-bubble-the-imf-says-the-real-threat-is-the-mo...
2•petethomas•55m ago•0 comments

Show HN: DoodleMeme – Animated Memes from Your Hand Drawn Doodles (No GenAI)

https://doodlemate.com/meme
1•hjessmith•57m ago•0 comments

Give your AI agent its own email inbox – MailKite

https://mailkite.dev/blog/give-your-agent-an-inbox/
1•bucabay•58m ago•0 comments

SpaceX Is Junk. That's What the Bond Market Says

https://www.bloomberg.com/opinion/articles/2026-07-02/spacex-is-junk-that-s-what-the-bond-market-...
3•petethomas•58m ago•0 comments

Donald Trump confident Elon Musk will donate SpaceX stock to Trump accounts

https://www.msn.com/en-us/money/news/donald-trump-signals-confidence-elon-musk-will-donate-spacex...
1•petethomas•1h ago•0 comments

Norm-preserving abliteration on Qwen3.6-35B-A3B with 0% refusal

https://www.reddit.com/r/LocalLLaMA/s/kD7llp3na3
2•satvikpendem•1h ago•0 comments

The free IP Crawl API: detect if your IP camera is accidentally exposed

https://ipcrawl.com/api
2•arm32•1h ago•0 comments

Spotify Confirms Streaming Fraud After Kalshi Trader Flags Suspicious #1 Numbers

https://stereogum.com/2504130/spotify-confirms-streaming-fraud-after-kalshi-trader-flags-suspicio...
2•6stringmerc•1h ago•0 comments

Rage of the Falling Elite: How downward mobility fuels radical politics

https://www.robkhenderson.com/p/rage-of-the-falling-elite
4•vinnyglennon•1h ago•1 comments

Securing Agentic Identity

https://codon.org.uk/~mjg59/blog/p/securing-agentic-identity/
2•edward•1h ago•0 comments