frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•1y 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•1y 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•1y 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•1y 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•1y ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

Quantitative Finance with OCaml

https://qcaml.com/index.html
1•leonry•1m ago•0 comments

Land or Water?

https://twitter.com/karpathy/status/2105909609487872075
1•tosh•9m ago•0 comments

$250M Apple AI Settlement – iPhone 15/16 Users Can Claim $25 to $95 per Device

https://openclassactions.com/settlements/false-advertising/apple-intelligence-siri-false-advertis...
2•openclassaction•9m ago•1 comments

Show HN: Realtime eBay Filtering with Jev

https://tv.junkdrawer.ai
2•junkDrawer_ai•11m ago•0 comments

Show HN: Apple Developer MCP, App Store Connect via Your AI Assistants

https://nova.civai.co/agent/mcp-apple_developer
1•usecodenaija•12m ago•0 comments

PewDiePie's Ajax

https://data.pewdiepie.com/
2•dvrp•12m ago•0 comments

Claude Usage Monitor for Windows

https://github.com/mheilemann/ClaudeUsageMonitor/
1•mheilemann•13m ago•1 comments

US death row inmate survives execution attempt after two lethal injections

https://www.bbc.com/news/articles/cq8r6rjdvlx6o
1•vrganj•15m ago•0 comments

Booms, Bombs and Bonds: Interest Rates, Part I

https://paulkrugman.substack.com/p/booms-bombs-and-bonds-interest-rates
1•runeks•18m ago•0 comments

Microsoft's Big Copilot Rethink

https://www.theverge.com/tech/1003365/microsoft-copilot-os-for-work-notepad
1•saikatsg•20m ago•0 comments

The AI data center e-waste problem is huge

https://www.theverge.com/ai-artificial-intelligence/996470/ai-data-center-e-waste-ban
1•saikatsg•20m ago•0 comments

We Do Know How, but Not the How We Want

https://cacm.acm.org/blogcacm/we-do-know-how-but-not-the-how-we-want/
1•adunk•21m ago•0 comments

Thunderbird for iOS: A First Look

https://blog.thunderbird.net/2026/10/thunderbird-for-ios-a-first-look-at-the-native-iphone-email-...
2•HieronymusBosch•22m ago•0 comments

China's rise as a health tech superpower is important

https://restofworld.org/2026/china-ai-healthcare-biotech-drugs/
3•stareatgoats•31m ago•0 comments

Software doesn't need to be readable anymore. it needs to be explainable

https://ghuntley.com/readable/
1•ghuntley•34m ago•1 comments

Gnomish relay: a secure remote control for coding agents in World of Warcraft

https://www.curseforge.com/wow/addons/gnomish-relay
1•eserilev•39m ago•0 comments

Dagenza – a fresh new calendar app for iPhone

https://testflight.apple.com/join/sKcmUdAq
1•marc0janssen•42m ago•1 comments

Glashütte Trash Clock – A 30-minute pendulum clock made from trash

https://niklasroy.com/gtc/
1•r0r0•43m ago•1 comments

AI godfather Yann LeCun: Anthropic CEO deluded, doesn't understand cybersecurity

https://fortune.com/2026/10/01/yann-lecun-anthropic-ceo-dario-amodei-deluded-crazy-cybersecurity/
6•OtomotO•44m ago•0 comments

Is Claude Conscious?

https://www.nytimes.com/2026/09/29/us/anthropic-claude-morals-ai.html
1•langitbiru•46m ago•2 comments

It's the Kernel's Fault: Custom Page Fault Handling with Bpf_fault

https://dl.acm.org/doi/10.1145/3830418.3843896
1•theanonymousone•49m ago•0 comments

Explore decision models in one place with Decisions API

https://decisions-api.dev
3•QingWu•56m ago•1 comments

AI training of copyrighted material not fair use: Third Circuit

https://www.courthousenews.com/ai-training-of-copyrighted-material-not-fair-use-third-circuit/
3•reasonableklout•57m ago•0 comments

My website runs a curated RSS feed of critical film finance news

https://home.danieldeboulay.com/#essays
1•freedmans•58m ago•1 comments

OpenAI cuts ties with 3 safety researchers

https://techcrunch.com/2026/10/01/openai-cuts-ties-with-three-safety-researchers-wsj-reports/
3•KingOfCoders•1h ago•0 comments

List your SaaS in this free directories and get more visibility

https://goodsaas.xyz/blog/top-free-saas-directories-2026
1•agnes_realm•1h ago•0 comments

Designing Neki for Performance

https://planetscale.com/blog/designing-neki-for-performance
1•hisamafahri•1h ago•0 comments

Removing Timing Shortcuts Improves Non-Invasive Brain-to-Text

https://arxiv.org/abs/2609.40359
2•sbulaev•1h ago•0 comments

ImageGen: Local AI image generation for Mac with Qwen-Image 2.1

https://github.com/ph1lb4/imagegen-mac
1•tosh•1h ago•0 comments

Write_On by Jason Fried

https://twitter.com/jasonfried/status/2105403067793584590
1•gholap•1h ago•0 comments