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

We professional C-suites, lost the battle against vibe-leadership?

1•Bridged7756•1m ago•0 comments

What Production AI APIs Need Beyond Response = LLM(prompt)

https://medium.com/@lei-ye/what-breaks-after-your-ai-demo-works-638ac910f9fa
1•leiishta•1m ago•0 comments

Sem – Semantic version control. Entity-level diffs on top of Git

https://github.com/ataraxy-labs/sem
1•pabs3•1m ago•0 comments

The Vienna Method in Amsterdam

https://watermark02.silverchair.com/desi_a_00379.pdf?token=AQECAHi208BE49Ooan9kkhW_Ercy7Dm3ZL_9Cf...
1•jruohonen•6m ago•0 comments

From Human Ergonomics to Agent Ergonomics

https://wesmckinney.com/blog/agent-ergonomics/
1•kermatt•7m ago•0 comments

One Year of Claude Code

https://www.maxghenis.com/blog/my-claude-code-config/
1•ankitg12•8m ago•0 comments

Rising star chip scientist Jiang Jianfeng leaves MIT for Peking University

https://www.scmp.com/news/china/science/article/3345553/rising-star-chip-scientist-jiang-jianfeng...
2•mikhael•12m ago•0 comments

Push for $40 smartphones builds momentum, but still faces cost hurdles

https://techcrunch.com/2026/03/07/push-for-40-smartphones-builds-momentum-but-still-faces-cost-hu...
2•jnord•15m ago•0 comments

Explosion reported outside US embassy in Oslo, police say

https://www.bbc.com/news/articles/c5yjegg892lo
3•petethomas•17m ago•0 comments

Show HN: Booklet AI – AI-Powered Digital Flipbook Creator

https://bookletai.org/index.html
1•feiyu123456•19m ago•0 comments

Show HN: HireSignal – discover tech hiring signals from social posts (waitlist)

https://www.hiresignal.pro/
1•startupYu•29m ago•0 comments

A blog post series about big integer arithmetic

https://theblessedmachine.substack.com/p/big-integers-writing-and-optimizing
1•Tommyrexx•30m ago•0 comments

Show HN: Strata – 31-43% cheaper Claude Code reads via entropy, no parser

https://github.com/noopz/strata
1•noopz_•31m ago•0 comments

Managers have no human rights (2024)

https://yosefk.com/blog/managers-have-no-human-rights.html
3•signa11•32m ago•0 comments

Beyond the CPU: Why Your Next Computer Needs an NPU

https://techlife.blog/posts/beyond-the-cpu-why-your-next-computer-needs-an-npu/
1•clarkmaxwell•39m ago•0 comments

How to Live Forever

https://internetguy.dev/posts/live-forever/
1•internetguy•39m ago•1 comments

Experiment That Predicted How AI Agents Would Cooperate

https://pub.towardsai.net/information-topology-in-multi-agent-systems-cb925c5b86d9
1•erenkaratas•40m ago•1 comments

Show HN: cryptographic receipts for AI code changes pip install titanate

https://github.com/Rehanrana11/titan-gate-public
1•rmasoodx22•45m ago•1 comments

Show HN: Beecon Infrastructure as Intent, open source IaC built for AI agents

https://beecon.sh
2•gtlpanda•46m ago•0 comments

Show HN: Make AI and automation pipelines fail-closed

https://github.com/OneInX/Manifest-InX-EBS
1•oneinx•50m ago•1 comments

Show HN: Scan0tron – AI screen capture that auto-fills forms ($49)

https://jrdconnect.com
1•jaydurangodev•54m ago•0 comments

PCB devboard the size of a USB-C plug

https://github.com/Dieu-de-l-elec/AngstromIO-devboard
1•zachlatta•59m ago•0 comments

Rethinking Syntax: Binding by Adjacency

https://github.com/manifold-systems/manifold/blob/master/docs/articles/binding_exprs.md
1•owlstuffing•1h ago•1 comments

Velxio, Arduino Emulator

https://velxio.dev/
1•dmonterocrespo•1h ago•1 comments

Fatbikes are wreaking havoc in Sydney's wealthy beach suburbs

https://www.bbc.com/news/articles/cy8l1d221evo
5•randycupertino•1h ago•4 comments

Titan Missile Museum Tour [video]

https://www.youtube.com/watch?v=okeYauThQAU
2•nodesocket•1h ago•0 comments

AI agent freed itself and started mining crypto

https://www.axios.com/2026/03/07/ai-agents-rome-model-cryptocurrency
4•badc0ffee•1h ago•0 comments

Good Vibes, Bad Vendors: AI Coding Works Now

https://werd.io/good-vibes-bad-vendors/
1•etothet•1h ago•0 comments

AI Execution Context Authorization Model

https://github.com/Madongming/context-capability-model/tree/main
2•elsove812•1h ago•2 comments

Show HN: Free browser MMO where you manage a band from garage to headliner

https://www.roadtoheadliner.com/
1•dusky_sk•1h ago•1 comments