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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

Show HN: Pyra – a Python toolchain experiment inspired by uv and Bun

https://github.com/treyorr/pyra
1•trey-orr•39s ago•0 comments

Stop Burning Money on UGC Creators: Generate Viral Ads with AI in Seconds

https://ecomscalingpro.substack.com/p/how-i-went-from-0-to-scaling-my-shopify
2•Locas•3m ago•0 comments

Only 13% of emails are written by people

https://english.elpais.com/technology/2026-04-15/only-13-of-emails-are-written-by-people-and-more...
2•geox•4m ago•0 comments

Kevin Weil and Bill Peebles exit OpenAI as company continues to shed side quests

https://techcrunch.com/2026/04/17/kevin-weil-and-bill-peebles-exit-openai-as-company-continues-to...
2•spenvo•5m ago•0 comments

Cal.com OSS project goes closed source due to AI

https://cal.com/de/blog/cal-com-goes-closed-source-why
2•samspenc•8m ago•1 comments

Ryan Mather: My tips for getting the best results out of Claude Design

https://twitter.com/flomerboy/status/2045162321589252458
2•taubek•10m ago•0 comments

Show HN: Mind-OS – First free online AI dependency self‑assessment

https://iamalex-afk.github.io/human-os-patch-33-protocols/
2•bitkin_dev•10m ago•0 comments

The big business of survival bunkers

https://www.economist.com/united-states/2026/04/16/the-big-business-of-survival-bunkers
2•andsoitis•10m ago•0 comments

High Amplitude Disagreeableness

https://staysaasy.com/startups/2026/04/15/high-amplitude-disagreeableness.html
2•weltview•12m ago•0 comments

A simplified model of Fil-C

https://www.corsix.org/content/simplified-model-of-fil-c
3•aw1621107•12m ago•0 comments

Show HN: recover-pdfs is a tool for revovering all the deleted PDFs from a disk

https://codeberg.org/seanhly/recover-pdfs
2•seanhly•15m ago•0 comments

Official MCP Package for Dokploy

https://github.com/Dokploy/mcp
2•rob•15m ago•0 comments

DARPA Launches HARQ to Build Multi-Qubit Quantum Systems

https://thequantuminsider.com/2026/04/14/darpa-launches-harq-heterogeneous-quantum-architectures/
2•rbanffy•16m ago•0 comments

Australia's startup scene is thriving at last

https://www.economist.com/business/2026/04/16/australias-startup-scene-is-thriving-at-last
1•andsoitis•18m ago•0 comments

Opus 4.7: better or worse so far compared to 4.6? (don't forget to upvote)

https://strawpoll.com/Qrgewz4kRyp/results
1•firebaze•19m ago•2 comments

What Psychedelics Do to the Brain

https://www.nationalgeographic.com/health/article/psychedelics-brain-scans-drugs
2•gmays•20m ago•0 comments

Age verification app ready as EU moves to curb children's social media access

https://www.reuters.com/world/eu-age-verification-app-ready-europe-moves-curb-childrens-social-me...
2•rbanffy•20m ago•1 comments

Chinese groups call for global AI governance framework – Chinadaily.com.cn

https://www.chinadaily.com.cn/a/202604/14/WS69de4411a310d6866eb43650.html
3•rbanffy•21m ago•1 comments

A Buick GNX Merged with an El Camino to Create This 470-HP Masterpiece

https://www.thedrive.com/news/a-buick-gnx-merged-with-an-el-camino-to-create-this-470-hp-masterpiece
1•PaulHoule•23m ago•0 comments

Logfare.ai – Free LLM Inference. No Auth. No Limits

https://news.ycombinator.com/submit
1•ampdot•24m ago•0 comments

Beyond the Hype: Practical and Responsible Use Cases for Agentic AI Webinar

https://fusionauth.io/webinar/beyond-the-hype-practical-and-responsible-use-cases-for-agentic-ai
1•mooreds•25m ago•0 comments

Hacking the old HackerNews codebase

https://winfunc.com/research/hacking-the-old-hackernews-codebase
1•mufeedvh•29m ago•0 comments

Using a USB switch as a full KVM

https://luke.hsiao.dev/blog/display-switch/
2•lwhsiao•30m ago•0 comments

From SIMT to Systolic Part 2: A Kernel Author's Field Report

https://twitter.com/MainzOnX/status/2044804854020006223
1•matt_d•36m ago•0 comments

Synthetic Astrophysics Photometry

https://github.com/nialljmiller/SED_Tools
2•nialljmiller•37m ago•1 comments

Airbus Likely Provided Satellite Imagery of US Military Assets to China Before

https://chinaselectcommittee.house.gov/media/press-releases/airbus-space-likely-provided-satellit...
5•737min•38m ago•4 comments

Agentic Infrastructure

https://vercel.com/blog/agentic-infrastructure
3•gmays•38m ago•0 comments

Inside Notion

https://colossus.com/article/inside-notion/
2•herbertl•39m ago•0 comments

Witter Coin to host a $50k coin scavenger hunt in SF

https://www.wittercoin.com/
1•nvader•45m ago•0 comments

Worldmonitor: Real-time global intelligence dashboard

https://github.com/koala73/worldmonitor
2•quux0r•47m ago•0 comments