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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

Show HN: Neural Siege – A Multi-Agent RL Combat Simulation

https://github.com/ayushdnb/Neural-Siege
1•luthor190397•1m ago•0 comments

4. How to Keep Using Nano Banana Pro After Gemini Replaces It with Nano Banana 2

1•zaaaaooo•2m ago•0 comments

Show HN: C-Suite Skills – a full exec team as skills

https://github.com/pollow/c-suite-skills
1•pollow•7m ago•0 comments

Veo 3 AI

https://veo-3-ai.org/
1•Evan233•11m ago•1 comments

Show HN: GitHub Repo Agent – an agent that explores and reasons on GitHub repos

https://github.com/gauravvij/GithubRepoAgent
1•gauravvij137•14m ago•0 comments

I Put a Full JVM Inside a Browser Tab

https://bmarti44.substack.com/p/i-put-a-full-jvm-inside-a-browser
2•todsacerdoti•16m ago•0 comments

Full speech pipeline in native Swift/MLX – ASR, TTS, speech-to-speech, on-device

https://github.com/ivan-digital/qwen3-asr-swift
1•ipotapov•16m ago•1 comments

People in northeast BC say rest of province should embrace year-round time zone

https://www.cbc.ca/news/canada/british-columbia/time-change-british-columbia-9.7112139
1•divbzero•17m ago•0 comments

California to require age verification for all OS including Linux

https://www.tomshardware.com/software/operating-systems/california-introduces-age-verification-law
3•hambes•18m ago•0 comments

Rare Not Random – Using Token Efficiency for Secrets Scanning

https://lookingatcomputer.substack.com/p/rare-not-random
1•boyter•20m ago•0 comments

Strict Monospace Font for LLM-CLI user using Chinese Japanese Korean, CodexMono

https://www.npmjs.com/package/@monolex/codexmono
1•monokist•23m ago•1 comments

Working on Things That Suck

https://mayberay.bearblog.dev/working-on-things-that-suck/
1•mugamuga•25m ago•0 comments

Ask HN: How Do Emergency Alerts on Phone Work?

2•rishikeshs•30m ago•2 comments

US President struggles to explain why he launched another Middle Eastern war

https://www.ft.com/content/fd31c6ad-39f0-4fae-851c-fadf44f006eb
10•Jimmc414•36m ago•3 comments

Apple Does Value (Week)

https://om.co/2026/03/02/apple-does-value-week/
1•tosh•37m ago•1 comments

The Pointless War Between The Pentagon and Anthropic

https://www.wsj.com/opinion/the-pointless-war-between-the-pentagon-and-anthropic-9284fd37
4•jrosenblatt•44m ago•1 comments

Show HN: wo; a better CD for repo management

https://github.com/anishalle/wo
1•itsagamer124•47m ago•0 comments

Show HN: AI gaming copilot that uses a phone camera instead of screen capture

https://github.com/ninja-otaku/Project_Aegis
1•Genome123•48m ago•0 comments

OpenAI Amends A.I. Deal with The Pentagon

https://www.nytimes.com/2026/03/02/technology/openai-pentagon-deal-amended-surveillance.html
4•fatboy•49m ago•2 comments

Show HN: Archilvx-Own your Twitter data because cloud tools will fail you

https://www.archivlyx.com/twitter-archive
1•ErinSunny•50m ago•0 comments

Israel hacked Iran traffic cams for years to pinpoint Khaemnei prior to strike

https://www.google.com/search?q=https://www.ft.com/content/1317d740-410c-46a2-97b7-6573e0477121
5•c420•53m ago•1 comments

What 10 Years of Building Social Apps Taught Me

https://twitter.com/nikitabier/status/1481118406749220868
2•metmirr•53m ago•0 comments

OSINT Expert Recreates Timeline of Operation Epic Fury in Interactive 3D Model

https://www.jfeed.com/news-world/operation-epic-fury-3d-replay
2•rapnie•57m ago•1 comments

Show HN: Trade Stocks and Crypto On-Chain with Full Transparency

https://www.aulico.com
2•rendernos•58m ago•0 comments

Buckle Up for Bumpier Skies

https://www.newyorker.com/magazine/2026/03/09/buckle-up-for-bumpier-skies
12•littlexsparkee•1h ago•1 comments

Claude's Constitution and Asimov's Laws

https://yadin.com/notes/asimov/
3•dryadin•1h ago•0 comments

Data-structure-typed – TreeMap, Heap, Graph and more for TypeScript

https://github.com/zrwusa/data-structure-typed
1•zrwusa•1h ago•0 comments

Stop macOS 26 nagging with one tiny policy tweak

https://www.theregister.com/2026/03/02/stop_tahoe_update/
2•fghorow•1h ago•0 comments

Is Mandarin superior for LLM data?

https://medium.com/@tjanmichela/the-language-of-intelligence-could-mandarin-be-the-secret-to-smar...
5•treebeard901•1h ago•3 comments

Show HN: DiffMem in production, Git-based AI memory

https://withanna.io
2•alexmrv•1h ago•0 comments