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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•7mo ago
Agreed

Privilege Escalation in Fedora Linux: Exploiting ABRT for Root

https://initblog.com/2025/abrt-root/
1•ementally•2m ago•0 comments

Mathematical "Urban Legends" (2011)

https://mathoverflow.net/questions/53122/mathematical-urban-legends
1•vismit2000•4m ago•0 comments

Three-year-old forced to serve as her own attorney in Tucson immigration court

https://coppercourier.com/2025/12/05/childrens-immigration-court/
2•sipofwater•4m ago•1 comments

Linux sysadmin interview cheating countermeasures

https://www.threads.com/@nixcraft/post/DR6kxiYjNt9
1•imglorp•4m ago•1 comments

Enterprise Agents Have a Reliability Problem

https://www.dbreunig.com/2025/12/06/the-state-of-agents.html
1•dbreunig•5m ago•0 comments

Publishing KOReader Highlights

https://tech.stonecharioteer.com/posts/2025/kollector/
2•stonecharioteer•7m ago•1 comments

Nested Learning: A new ML paradigm for continual learning

https://research.google/blog/introducing-nested-learning-a-new-ml-paradigm-for-continual-learning/
1•themgt•11m ago•0 comments

The plan-execute pattern (2024)

https://mmapped.blog/posts/29-plan-execute
1•Twixes•12m ago•0 comments

Give me AI slop over human sludge any day

https://world.hey.com/dhh/give-me-ai-slop-over-human-sludge-any-day-8c4b747d
1•vismit2000•12m ago•0 comments

Apple and Intel come closer after five years

https://www.igorslab.de/en/apple-and-intel-converge-again-after-five-years/
1•speckx•13m ago•0 comments

AntiX is a fast, lightweight and easy to install systemd-free Linux

https://antixlinux.com/
2•doener•14m ago•0 comments

Japan teen arrested for alleged ChatGPT-assisted cyberattacks

https://www3.nhk.or.jp/nhkworld/en/news/20251205_11/
1•campuscodi•17m ago•0 comments

2025 Floss/Fund Disbursements

https://floss.fund/projects/2025/
1•novoreorx•17m ago•0 comments

Show HN: Perception continuity function in multidimensional time

https://medium.com/@conversioncrossing/function-of-continuity-of-perception-in-multidimensional-t...
1•neuralquantum•18m ago•0 comments

Dollar-stores overcharge cash-strapped customers while promising low prices

https://www.theguardian.com/us-news/2025/dec/03/customers-pay-more-rising-dollar-store-costs
3•bookofjoe•20m ago•0 comments

Obfuscating Image Links

https://sigwait.org/~alex/blog/2025/12/07/qYkza8.html
1•henry_flower•21m ago•0 comments

Exploring the Gameboy Memory Bank Controller (2020)

https://b13rg.icecdn.tech/Gameboy-MBC-Analysis/
1•wicket•21m ago•0 comments

Show HN: Kelora – Turn messy logs into structured data

http://www.kelora.dev/v0.14.0/
1•dloss•25m ago•1 comments

From Pearl River to Gold Mountain: How Chinese Immigrants Helped Create the West

https://worldhistory.substack.com/p/from-pearl-river-to-gold-mountain
1•crescit_eundo•30m ago•0 comments

BehindTheMedspeak: A Spinal Tap

https://bookofjoe2.blogspot.com/2025/10/behindthemedspeak-this-is-spinal-tap.html
1•surprisetalk•30m ago•0 comments

UCSD Faculty Sound Alarm on Declining Student Skills

https://marginalrevolution.com/marginalrevolution/2025/11/ucsd-faculty-sound-alarm-on-declining-s...
3•surprisetalk•31m ago•0 comments

Financial Markets

https://humaninvariant.substack.com/p/financial-markets
1•surprisetalk•31m ago•0 comments

Ukrainian mathematician requests mathematical assistance

https://marginalrevolution.com/marginalrevolution/2025/12/a-ukrainian-mathematician-requests-math...
1•mhb•32m ago•0 comments

Show HN: Driftos-core – Conversation routing for AI apps

https://github.com/DriftOS/driftos-core
1•scott_waddell•33m ago•0 comments

CLAUDE.md – Applied rationality for a coding agent

https://gist.github.com/ctoth/d8e629209ff1d9748185b9830fa4e79f
2•kjhughes•40m ago•0 comments

Anthropic Interviewer

https://www.anthropic.com/news/anthropic-interviewer
1•erhuve•41m ago•0 comments

Waymo: Lots happening, but nothing has changed

https://philkoopman.substack.com/p/waymo-lots-happening-but-nothing
1•georgecmu•41m ago•0 comments

AI code is like sushi

https://johncodes.com/archive/2025/11-30-ai-code-is-sushi/
1•jpmcb•43m ago•1 comments

Ask HN: Is it just me or techno-optimism died in the past few years?

12•shubhamjain•51m ago•8 comments

Show HN: An Open-Source Windows Cleaner. Fast, Secure, Bloat Free

https://cleanse.infinityfreeapp.com/
1•Drimiteros•51m ago•1 comments