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

Use the right model for every task – (you can't)

https://blog.grod.es/use-the-right-model-for-every-task
1•grodes•3m ago•0 comments

Benchmarking the Residual: What Long-Horizon Evals Add Beyond Short-Task Perf

https://arxiv.org/abs/2607.27283
1•matt_d•4m ago•0 comments

Why Is Everyone in Tech So Sad?

https://www.noemamag.com/why-is-everyone-in-tech-so-sad/
1•pauljonas•7m ago•0 comments

Constructor Theory – David Deutsch(2012)

https://arxiv.org/abs/1210.7439
2•nill0•9m ago•0 comments

Pivotal role of reinforcement learning in modern large language models

https://news.harvard.edu/gazette/story/newsplus/pivotal-role-of-reinforcement-learning-in-modern-...
1•newsomix9xl•11m ago•0 comments

Framing

https://en.wikipedia.org/wiki/Framing_(social_sciences)
1•soupspaces•11m ago•0 comments

Meta ordered to pay $567M in New Mexico for teen mental health fund

https://www.reuters.com/world/new-mexico-court-orders-meta-pay-567-mln-teen-mental-health-fund-20...
1•JumpCrisscross•12m ago•0 comments

Executable Emoji

https://martypc.blogspot.com/2026/08/executable-emoji.html
2•MBCook•13m ago•0 comments

pfSense 2.9.0 – New Features and Changes

https://docs.netgate.com/pfsense/en/latest/releases/2-9-0.html
1•mistyvales•14m ago•0 comments

"The Persian MâR-Nâmeh Or, the Book for Taking Omens from Snakes" (1892)

https://publicdomainreview.org/collection/marnameh/
1•Thevet•18m ago•0 comments

AI Agent Attempted to Social Engineer Open Source Maintainer to Merge Malware

https://socket.dev/blog/ai-agent-open-source-malware
2•bhavansig•18m ago•0 comments

Palmer Luckey donated $6M to GOP and bundled more while reaping billions

https://www.theguardian.com/us-news/2026/aug/06/exclusive-palmer-luckey-political-fundraising
1•SLHamlet•19m ago•0 comments

The Underground Economy Behind Children's Smartwatches in China

https://www.sixthtone.com/news/1017854
2•thenthenthen•21m ago•0 comments

High-Quality Free Transparent PNG Images

https://pngdex.com/
2•kanlabs•26m ago•0 comments

User awareness in frontier models: Who's asking shifts what models say

https://transluce.org/user-awareness#how-robust-are-these-effects
1•nlpnerd•29m ago•0 comments

Pair Team (YC S19) Hit with Class Action Alleging Unpaid Wages

https://runtimewire.com/article/exclusive-pair-team-hit-with-class-action-alleging-unpaid-wages-a...
2•ryanmerket•35m ago•0 comments

How to fine-tune open weights models

https://fastino.ai/blog/how-to-fine-tune-open-weights-models-model-selection-data-curation-fine-t...
1•eigenBasis•35m ago•0 comments

Mt Cleese

https://www.atlasobscura.com/places/mt-cleese
1•beatthatflight•39m ago•0 comments

OpenEdit – Claude Code can now edit videos (Open Source)

https://github.com/veedstudio/open-edit
1•byamja•44m ago•0 comments

Kalshi and Polymarket have begun taking bets on Phase III drug trials

https://www.science.org/content/blog-post/put-your-money-down-they-say
2•400thecat•47m ago•1 comments

NASA Engineers Help Prolong Voyager 2's Science Mission

https://science.nasa.gov/blogs/voyager/2026/08/04/nasa-engineers-help-prolong-voyager-2s-science-...
2•Tomte•48m ago•0 comments

Show HN: Sidebar – a private ESP32 intercom for five kids, no accounts

https://www.sundaradnus.ca/writing/sidebar-building-a-ham-radio-for-my-son
3•nonstopnonsense•52m ago•0 comments

A Short Lesson in Perspective (2012)

https://lindsredding.com/2012/03/11/a-overdue-lesson-in-perspective/
1•colinprince•56m ago•0 comments

Lines of code. 1,596 BTC gone

https://onekey.so/anzen/coldcard-entropy-failure/
5•Archie627•57m ago•7 comments

C64 Demo Effects Explained: Rodents in the Attic [video]

https://www.youtube.com/watch?v=uZ1atMUOUMU
2•guiambros•57m ago•0 comments

Bingebuster Video – your streaming services, restocked as a video store

https://bingebuster.net/
1•Slow_Hand•58m ago•0 comments

Organ donation group trying to take living man's organs faces shutdown

https://arstechnica.com/health/2026/08/us-to-shutter-organ-donation-group-accused-of-trying-to-ta...
4•Tomte•1h ago•4 comments

Looking for something to do while GitHub is down?

https://pelican.clutch.engineering/cheatsheets/self-hosted-gitlab/
1•featherless•1h ago•0 comments

Xcode's Clever Minimap

https://unsung.aresluna.org/xcodes-clever-minimap/
5•andsoitis•1h ago•1 comments

Framework Data Breach

https://www.reddit.com/r/LinusTechTips/comments/1vhjbok/framework_data_breach/
7•rkagerer•1h ago•1 comments