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: Lazy as a Service – Antigravity Extension

https://github.com/lakathekolla/laas
1•lakruoneX•44s ago•0 comments

I Fixed Green Screens [video]

https://www.youtube.com/watch?v=3Ploi723hg4
1•Khaine•2m ago•0 comments

The Middle Loop

https://annievella.com/posts/the-middle-loop/
1•vinhnx•5m ago•0 comments

Meta Delays Rollout of New A.I. Model After Performance Concerns

https://www.nytimes.com/2026/03/12/technology/meta-avocado-ai-model-delayed.html
1•gmays•8m ago•0 comments

Revenue can hide unprofitable freelance clients

1•SoloBossFounder•8m ago•1 comments

Nanoclaw flavor that allows you set it up as an Executive Assistant

https://github.com/taslim/nanoclaw-gws-ea
1•taslim•13m ago•1 comments

Show HN: Reflex Engine SDK – local action validation with replayable artifacts

https://github.com/caminodynamics/reflex-engine-sdk
1•mikecaminojr•15m ago•1 comments

Apple's adorable Finder guy has broken the internet

https://www.macworld.com/article/3082576/apples-adorable-finder-guy-has-broken-the-internet.html
1•mgh2•18m ago•0 comments

Sam Altman admits AI is killing the labor-capital balance

https://finance.yahoo.com/news/sam-altman-admits-ai-killing-141643543.html
1•CharlesW•20m ago•0 comments

Streaming Gaussian Splatting Videos Using WebXR

https://store.gracia.ai/creator/Gracia%20Labs/9ee301ea-fcd4-4041-b82e-ee3c1c461352
2•firefoxd•20m ago•1 comments

Why Friday the 13th is a mathematical inevitability

https://www.scientificamerican.com/article/why-friday-the-13th-is-a-mathematical-inevitability/
1•1659447091•22m ago•1 comments

Lessons from Building AI Features

https://ghiculescu.substack.com/p/lessons-from-building-ai-features
1•ghiculescu•22m ago•0 comments

Mac Trade-Ins Surge Amid MacBook Neo Launch

https://www.macrumors.com/2026/03/13/mac-trade-ins-surge-amid-macbook-neo-launch/
1•mgh2•26m ago•0 comments

Terraforming Mars: Mass, Forcing, and Industrial Throughput Constraints

https://arxiv.org/abs/2603.00402
1•vinhnx•31m ago•0 comments

Discli – Discord CLI for AI agents to manage servers from the terminal

https://pypi.org/project/discord-cli-agent/
1•rohitk06•34m ago•0 comments

Show HN: SafeAgent – exactly-once execution guard for AI agent side effects

1•Lions2026•34m ago•0 comments

Nvidia's GTC will mark an AI chip pivot, the CPU is taking center stage

https://www.cnbc.com/2026/03/13/nvidia-gtc-ai-jensen-huang-cpu-gpu.html
1•1659447091•34m ago•0 comments

Show HN: Vibe-budget – CLI to estimate LLM costs before you start vibe coding

https://www.npmjs.com/package/vibe-budget
1•gabriel_quec016•37m ago•0 comments

Show HN: FX Radar – Rebuilt AI financial news hub and trading journal

https://www.fxradar.live/
1•LuckyAleh•38m ago•1 comments

SC deputy of the year led wrong-way chase with teen in his cruiser

https://columbiamuckraker.substack.com/p/sc-deputy-of-the-year-led-deadly
1•sc_muckraker•39m ago•0 comments

Treasure hunter–didn't give location 500 gold coins–released p 10 years prison

https://www.cbsnews.com/news/tommy-thompson-treasure-hunter-ship-of-gold-missing-coins-released-p...
2•bookofjoe•39m ago•0 comments

Harness Engineering: 52 Days, One Person, 965K Lines of Code

https://agentsmesh.ai/blog/building-agentsmesh-with-agentsmesh
2•zyf1994•41m ago•1 comments

Moldbook: The front page of the mold internet

https://www.moldbook.xyz
2•uglyburger•44m ago•0 comments

Direnv Is All You Need to Parallelize Agentic Programming with Git Worktrees

https://waldencui.com/post/direnv_is_all_you_need_to_parallelize_claude_code_with_git_worktrees/
2•cui•48m ago•1 comments

Why I'm Suing Grammerly

https://www.nytimes.com/2026/03/13/opinion/ai-doppelganger-deepfake-grammarly.html
5•staplung•57m ago•2 comments

Show HN: Kube-pilot – AI engineer that lives in your Kubernetes cluster

https://github.com/fbongiovanni29/kube-pilot
2•noobernetes•57m ago•0 comments

NAND's New Power Dynamic: Enterprise SSD Demand Reshapes Supply

https://news.ycombinator.com/submitted?id=redohmy
1•jamesbsr•59m ago•0 comments

Can LLMs Do Matching Decompilation? I Tested 60 Functions to Find Out

https://gambiconf.substack.com/p/can-llms-really-do-matching-decompilation
2•msephton•59m ago•0 comments

Z-Order: The Clustered Index of the Data Lake

https://www.arnaudp.dev/how-z-order-cut-my-databricks-etl-time-in-half/
1•gentle_bubble•1h ago•0 comments

Demystifying and Improving Lazy Promotion in Cache Eviction [pdf]

https://www.vldb.org/pvldb/vol19/p549-yang.pdf
1•matt_d•1h ago•0 comments