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

Free-Living Cells May Have Emerged Twice as Bacteria and Archaea Diverged

https://phys.org/news/2026-08-life-free-cells-emerged-bacteria.html
1•jandrewrogers•1m ago•0 comments

How to Give AI Agent a Memory That Survives the Session

https://medium.com/@vektormemory/how-to-give-ai-agent-a-memory-that-survives-the-session-116f69c2...
1•vektormemory•2m ago•0 comments

Support queue is a documentation audit

https://www.knowledgeowl.com/blog/posts/support-queue-as-docs-audit
1•eigenBasis•4m ago•0 comments

ATS Job API Reference: nine applicant tracking systems, verified live

https://conorscode.github.io/ats-api-reference/
1•Wevegotscrapys•5m ago•0 comments

Is M365 Copilot sending some prompts to Anthropic?

https://thatrobot.ai/claude-residency-gap-m365-copilot/
1•soundworlds•6m ago•1 comments

We spend $45,000 on doing more weird every month

https://posthog.com/blog/on-doing-more-weird
1•herbertl•7m ago•0 comments

4 Fundamental constants reveal minimum scales where physics ends: Planck scale

https://www.youtube.com/watch?v=IPnmssrwGcg
1•lioeters•7m ago•0 comments

What I think about when I edit blog posts

https://ianv.substack.com/p/what-i-think-about-when-i-edit-blog
1•herbertl•8m ago•0 comments

Generalized Consensus: An Alternate Approach to Distributed Durability (2025)

https://multigres.com/blog/generalized-consensus
1•zX41ZdbW•9m ago•0 comments

OpenAI gives first detailed debrief of the Hugging Face incident at Black Hat

https://www.groundlevel-ai.com/p/openai-gives-first-detailed-debrief
2•josephwegner•13m ago•1 comments

Proposing a new lower bound for n=17 square packing problem

https://twitter.com/samb_tech/status/2085158495569977636
2•sam-bee•19m ago•1 comments

The Planck Scale with Countable Measure for All Quantities of Length and Time

https://vixra.org/abs/2212.0215
1•lioeters•20m ago•0 comments

The Mentor: How Roy Cohn Taught Donald Trump Everything

https://www.newyorker.com/magazine/2026/08/10/roy-cohn-profile
2•petethomas•22m ago•0 comments

Show HN: Clank Cut – Let your coding agent make video walkthroughs

https://www.clankcut.com
1•hamzers•22m ago•0 comments

TechCrunch Launch: Outernet turns your scrolling into IRL adventuring

https://techcrunch.com/2026/08/03/outernet-turns-your-saved-posts-into-real-world-adventures/
2•rawandferal•23m ago•0 comments

Prime Agent a general-purpose coding harness. On ARC-AGI-3 scored 95.5%

https://x.com/PrimeIntellect/thread/2085087002769379520
2•mromanuk•27m ago•0 comments

Relativistic Algebra over Finite Ring Continuum

https://doi.org/10.3390/axioms14080636
2•lioeters•27m ago•0 comments

How to build an agent to automate your on-call

https://12gramsofcarbon.com/p/agentics-how-we-use-background-agents
1•theahura•28m ago•0 comments

Symbolics Genera now available free for non-commercial use (inv-only early beta)

https://hachyderm.io/@gmpalter/117044268951603975
2•self•28m ago•0 comments

Dspy.Flex lets optimizers rewrite the code for faster, cheaper, better programs

https://www.cmpnd.ai/blog/let-the-model-write-the-code.html
1•dbreunig•29m ago•0 comments

The Orange Cloud Report – Ratings for Cloudflare Services

https://orangecloud.report/
2•gurjeet•32m ago•0 comments

Three Times I Measured Nothing

https://medium.com/@alanscottencinas/three-times-i-measured-nothing-72023fc7d73f
2•encinas88•33m ago•0 comments

Liberals Are Now Fighting a Two-Front War

https://www.theatlantic.com/ideas/2026/08/michigan-abdul-el-sayed-election/688181/
3•donsupreme•33m ago•2 comments

Why Are Birthrates Down? Two New Studies Point to Phones

https://www.nytimes.com/2026/06/08/us/iphone-birthrate-decline-studies.html
1•hsuduebc2•35m ago•1 comments

Rendering 100k sensor readings with LTTB

https://aranajhonny.github.io/writing/sensor-chart-lttb.html
1•akatsutki•36m ago•0 comments

The Live Shopping App Where Some People Bid Until They're Broke

https://www.wsj.com/business/retail/whatnot-live-shopping-app-48b67987
2•JumpCrisscross•37m ago•0 comments

DHS Wants Protesters' Signal Group Chats

https://www.wired.com/story/dhs-wants-protesters-signal-group-chats/
15•sbulaev•38m ago•1 comments

WaitPerk: sponsors in your Claude Code status line, you get paid

https://waitperk.com/
1•SamPentz•42m ago•0 comments

Apple Vision Pro as a wearable display for endoscopic [surgical procedure]

https://www.sciencedirect.com/science/article/pii/S2950253526000651
2•mch82•42m ago•0 comments

Semantic Thermodynamics – 79% LLM token reduction via narrative constraints

https://github.com/tauansloboda/semantic-thermodynamics
2•tauanvinicius•45m ago•0 comments