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

Geo-engineering to protect against solar storms

https://agupubs.onlinelibrary.wiley.com/doi/full/10.1029/2025SW004846
1•dylancollins•1m ago•1 comments

Survival Ball

https://survivalball.com/
1•lopespm•1m ago•0 comments

Jazzy – Productive, Developer-Friendly Web Framework for Nim

https://github.com/canermastan/jazzy-framework
1•TheWiggles•2m ago•0 comments

SmolSharp – Extremely small standalone C# executables using NativeAOT

https://github.com/ascpixi/smolsharp
1•breve•4m ago•0 comments

DeepSWE Benchmark updated with GLM 5.2 and updated results for other models

https://deepswe.datacurve.ai/
1•theanonymousone•6m ago•0 comments

A controlled hypothermia cure for Lyme disease [video]

https://www.youtube.com/watch?v=jwtPtlcNXEs
1•cromka•8m ago•0 comments

Show HN: Built this tool to solve my marketing content problem

https://www.clickcast.tech/
1•modulusme•8m ago•0 comments

CAD vs. CAD Tournament

https://www.tootalltoby.com/Tournaments/
1•dgellow•14m ago•0 comments

[$29.99 Lifetime → Free – The App Blocker That Makes You

https://old.reddit.com/r/AppHookup/comments/1u8yrff/ios_offkit_2999_lifetime_free_the_app_blocker/
1•nickfthedev•18m ago•0 comments

Ethereum's biggest 'sandwich' bot drained of $7.5M in ironic exploit

https://www.techsentiments.com/article/2026/06/21/ethereums-biggest-sandwich-bot-drained-of-75-mi...
3•rajsuper123•19m ago•0 comments

Can someone try to get my websites admin panel?

https://gag.gg/
1•nottakens•19m ago•1 comments

A neuro-adaptive OS concept for energy efficiency and execution-path attestation

https://github.com/Jtr85/paper-os-neurale
1•JTR85•21m ago•0 comments

Form Before Data: The Real Bottleneck for Physical AI

https://adlrocha.substack.com/p/adlrocha-form-before-data-the-real
2•adlrocha•23m ago•0 comments

Steve Gull's Challenge

https://gill1109.com/2021/01/14/steve-gulls-challenge-an-impossible-monte-carlo-simulation-projec...
2•jruohonen•27m ago•0 comments

Scrutari – forensic statistical analyzer for opaque firmware blobs

https://codeberg.org/xvilka/scrutari
1•xvilka•29m ago•0 comments

The AI Definition of Done: Human in the Loop Is Not a Quality Standard

https://age-of-product.com/ai-definition-of-done/
1•swolpers•31m ago•0 comments

Morale is so bad at Meta even CTO admits: "probably the worst it's ever been"

https://finance.yahoo.com/technology/articles/morale-bad-mark-zuckerbergs-meta-130000803.html
4•theanonymousone•32m ago•0 comments

Nothing's co-founder says CMF can't build a phone 'at a price that makes sense'

https://www.theverge.com/gadgets/953066/nothing-cmf-phone-delayed-ram-prices
2•syx•33m ago•0 comments

Horcrux – Distributed, Zero-Trust Secret Manager

https://github.com/44za12/horcrux
2•44za12•36m ago•1 comments

Pentestr – Automated Web Security Audit

https://pentestr.up.railway.app
1•nikitafaesch•40m ago•0 comments

Fix All the Orphan Pages

https://rectoapp.com/
1•Eikiyo•43m ago•0 comments

Futarchy is insecure without a trusted gatekeeper

https://www.lesswrong.com/posts/oAKsuX5XpPxFSEoHM/futarchy-is-insecure-without-a-trusted-gatekeeper
2•distbit•44m ago•0 comments

I am dreading our LLM-written incident report future

https://surfingcomplexity.blog/2026/06/19/i-am-dreading-our-llm-written-incident-report-future/
2•birdculture•49m ago•0 comments

FreeDom free and open-source minimal web browser – Zero Trust and Zero Knowledge

https://github.com/grisuno/FreeDom
1•grisun0•52m ago•0 comments

The Serpent in the Grove

https://granta.com/the-serpent-in-the-grove/
2•tobr•57m ago•0 comments

The "I don't know, Claude wrote this" pandemic

https://newsletter.manager.dev/p/the-i-don-t-know-claude-wrote-this-pandemic
5•theanonymousone•58m ago•0 comments

Ideas for Startups

https://www.paulgraham.com/ideas.html
1•guiltyf•1h ago•1 comments

Anthropic Faces Questions over AI Export Ban Influence

https://fivetakes.news/did-anthropic-talk-its-way-into-an-ai-export-ban
1•mmeirovich•1h ago•0 comments

Maco – Let your agent rg a filesystem of MCP tools and run them as code

https://github.com/jingkaihe/maco
1•jingkai_he•1h ago•0 comments

Open Ralph Wiggum – Autonomous Agentic Loop

https://github.com/Th0rgal/open-ralph-wiggum
1•tomaskafka•1h ago•0 comments