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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•10mo ago
Agreed

Show HN: Crypto data API where AI agents pay per request with USDC (x402)

https://crypto-enrich.up.railway.app
1•psamala•17s ago•0 comments

The first AI counter surveillance app

https://play.google.com/store/apps/details?id=app.sentryrf&hl=en_US
1•vidoluc•1m ago•1 comments

Loop Conference Channel [YouTube]

https://www.youtube.com/channel/UC_QIfHvN9auy2CoOdSfMWDw
1•vinhnx•2m ago•0 comments

The Mystery of Asjo.org

https://acid.vegas/blog/the-mystery-of-asjo-org/
1•gzread•3m ago•0 comments

How College Admissions Officers Spot Over-Coached Applications

https://www.forbes.com/sites/christopherrim/2026/02/27/how-college-admissions-officers-spot-over-...
1•paulpauper•4m ago•0 comments

Our Hospice System Subverts the Point of Hospice Care

https://www.nytimes.com/2026/03/02/opinion/hospice-care.html
1•paulpauper•5m ago•0 comments

SEIU Delenda Est

https://www.astralcodexten.com/p/seiu-delenda-est
2•paulpauper•7m ago•0 comments

Tell HN: Azure Data Factory pipeline execution delays in East US 2

1•dwoldrich•7m ago•0 comments

Show HN: ByeBrief – a local-first AI investigation canvas

https://github.com/byte271/ByeBrief/
1•yihac1•9m ago•0 comments

The Differentiated Engineer in the Era of Automated Development

https://substack.com/home/post/p-190017259
1•Carsten_Peters•9m ago•0 comments

Defense Devaluation – Starlink on American Drones

https://en.topwar.ru/278903-devalvacija-oborony-starlink-na-amerikanskih-dronah.html
1•B1FF_PSUVM•9m ago•0 comments

India Plans 30% Slash in Thermal Coal Imports This Year

https://oilprice.com/Latest-Energy-News/World-News/India-Plans-30-Slash-in-Thermal-Coal-Imports-T...
1•PaulHoule•9m ago•0 comments

I made a programming language with M&Ms

https://mufeedvh.com/posts/i-made-a-programming-language-with-mnms/
1•mufeedvh•10m ago•0 comments

Show HN: MysteryMaker AI

https://www.mysterymaker.ai
1•jhappy77•12m ago•0 comments

Peer-to-Peer Networking: Build a VPN Tunnel with Wintun on Windows – Part 2

https://www.0xmm.in/posts/peer-to-peer-windows-part2/
1•melson•19m ago•0 comments

UUID package coming to Go standard library

https://github.com/golang/go/issues/62026
2•soypat•20m ago•0 comments

US draws up strict new AI guidelines amid Anthropic clash

https://www.reuters.com/business/media-telecom/us-draws-up-strict-new-ai-guidelines-amid-anthropi...
4•ericsaf•20m ago•2 comments

T3 Code – a new OSS agentic coding app that wraps Codex

https://t3.codes/
1•theobr•21m ago•0 comments

Show HN: HyperClaw – self-hosted AI assistant that replies on Telegram/Discord/+

https://github.com/mylo-2001/hyperclaw
1•mylw•22m ago•0 comments

Rust 1.94.0

https://blog.rust-lang.org/2026/03/05/Rust-1.94.0/
1•tahazsh•27m ago•0 comments

Natural Language AutoCoder Open SOurce

https://github.com/tommoirnz/NLAutocoder
1•moirnz•31m ago•1 comments

Show HN: Claude-consensus – Multi-model code review plugin for Claude Code

https://github.com/AltimateAI/claude-consensus
1•k_git•31m ago•0 comments

BYD unveils Blade Battery 2.0: 10-70% in 5 mins, 10-97% in 9 mins

https://carnewschina.com/2026/03/05/byd-unveils-blade-battery-2-0-10-70-in-5-mins-10-97-in-9-mins...
1•xxfye•32m ago•0 comments

Show HN: Copyworks – Chinese character worksheets with tone colors

https://copyworks.loqu8.com
1•loqu8•36m ago•0 comments

Saulala

https://www.saulala.com/
2•matthberg•37m ago•0 comments

Qatar warns war will force Gulf to stop energy exports 'within days'

https://www.ft.com/content/be122b17-e667-478d-be19-89d605e978ea
5•geox•42m ago•0 comments

FASTEST LLM decode engine on Apple Silicon. 658 tok/s on M4-Max,beats MLX by 19%

https://www.runanywhere.ai/blog/metalrt-fastest-llm-decode-engine-apple-silicon
2•sanchitmonga•43m ago•2 comments

T3 Code: A Minimal Web GUI/Desktop App for Coding Agents

https://github.com/pingdotgg/t3code
1•vldszn•44m ago•0 comments

I built a database of verified YouTube channel revenues

https://ytmrr.com/
1•poissac•45m ago•1 comments

Cancellation of Army exercise fuels speculation about Mideast troop deployments

https://www.washingtonpost.com/national-security/2026/03/06/army-82nd-airborne-iran/
5•ParentiSoundSys•51m ago•0 comments