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

Manticore Search under systemd: beyond fork, PID files, and guesswork

https://manticoresearch.com/blog/systemd_integration/
1•snikolaev•25s ago•0 comments

A Fast Path for Fixed-Length Lists in Parquet

https://www.morling.dev/blog/fast-path-for-fixed-length-lists-in-parquet/
1•gunnarmorling•50s ago•0 comments

Proofs

https://home.omg.lol/info/proofs
1•Tomte•2m ago•0 comments

Wordit – Now in Pt-Br

https://wordit.org/pt-br/
1•atum47•5m ago•1 comments

Mac Studio: Should You Buy? Or Wait?

https://www.macrumors.com/roundup/mac-studio/
1•adithyaharish•7m ago•1 comments

Electric aviation is taking off

https://www.economist.com/science-and-technology/2026/07/22/electric-aviation-is-taking-off
1•Brajeshwar•7m ago•0 comments

I Had 11 AI Subagents Test Every PPTX Skill for Claude Code. Here's What Works

https://www.bulaev.net/p/i-had-11-ai-subagents-test-every
1•sbulaev•8m ago•0 comments

Show HN: blackbar-nano – local PII detection and redaction on CPU

https://github.com/safetype/blackbar-nano
1•My24HR•8m ago•0 comments

Launch HN: Unlayer (YC W22) – Add email and document builders to your app

https://unlayer.com
5•adeelraza•9m ago•1 comments

Denying the Worm

https://www.crowdstrike.com/en-us/blog/denying-the-worm-sandworm-mode-and-ai-toolchain-supply-cha...
1•yruzin•10m ago•0 comments

Intelligent MFA in FusionAuth: Smarter Security Without the Friction [video]

https://www.youtube.com/watch?v=WwVH_ODLIJU
1•mooreds•11m ago•0 comments

MySQL 9.7 Community Edition: Smarter Join Planning with the Hypergraph Optimizer

https://blogs.oracle.com/mysql/smarter-join-planning-with-the-hypergraph-optimizer
1•ksec•11m ago•0 comments

Building the Grace Cathedral Experience

https://blog.playcanvas.com/building-the-grace-cathedral-experience/
1•ovenchips•13m ago•0 comments

Beyond Enumerable: Testing Membership with Bloom Filters

https://baweaver.com/writing/2026/07/20/beyond-enumerable-testing-membership-with-bloom-filters/
1•mooreds•14m ago•0 comments

OpenAI tries consulting – charging boots-on-the-ground prices to deploy agents

https://www.theregister.com/ai-and-ml/2026/07/22/openai-tries-the-consulting-path-with-presence-c...
1•beardyw•15m ago•1 comments

GPS Week Number Rollover

https://en.wikipedia.org/wiki/GPS_week_number_rollover
1•mooreds•15m ago•0 comments

Selzix – Turn an Instagram handle into a functional online store in minutes

1•mahikmc•16m ago•0 comments

A Baby Saved 'Toy Story 2' from Near Complete Deletion (2021)

https://insidethemagic.net/2021/09/toy-story-2-saved-from-deletion-ks1/
1•downbad_•19m ago•1 comments

frontier AI labs lost the "deep research" frontier

https://andrewtrask.substack.com/p/6-weeks-ago-frontier-ai-labs-lost
1•williamtrask•19m ago•0 comments

Japanese security guard finds fame as designer of duct tape signs

https://www.reuters.com/world/asia-pacific/japanese-security-guard-finds-fame-designer-duct-tape-...
2•crescit_eundo•19m ago•0 comments

Plausibly Deniable Encryption (2020)

https://spacetime.dev/plausibly-deniable-encryption/
1•downbad_•19m ago•0 comments

Speeding incurs substantial environmental costs for negligible time savings

https://www.nature.com/articles/s44458-026-00100-3
3•hn_acker•19m ago•1 comments

Forget sovereign AI – the world needs business apps and datacenters

https://pluralistic.net/2026/07/22/table-flipper/#graveyard-of-indispensable-nations
1•joebuckwilliams•19m ago•0 comments

Buyer: eBay AI Pop-Ups Disrupt Shopping Experience

https://www.ecommercebytes.com/C/letters/blog.pl?/pl/2026/7/1784684738.html
1•ilamont•20m ago•0 comments

Show HN: Brew doctor` for Skills and MCP loadouts

https://github.com/dbreunig/drskill
1•dbreunig•20m ago•0 comments

FST 2.0 Is Live: The Trading Agent Era Begins Today

https://henryzhang.substack.com/p/fst-20-is-live-the-trading-agent
1•henryzhangpku•20m ago•0 comments

Got is a vsc which prioritizes ease of use and simplicity over flexibility

https://gameoftrees.org/index.html
1•NicoJuicy•20m ago•0 comments

Wreck of Pan Am plane found 74 years after crash

https://news.sky.com/story/wreck-of-pan-am-plane-found-74-years-after-crash-that-became-rallying-...
3•austinallegro•21m ago•0 comments

Show HN: AI resume spam ruined hiring so I built a tool to keep the bots out

https://permanym.com
2•romanhn•22m ago•0 comments

Unspun – plain-English audits of agency ad reports client-side

https://unspun.report/
2•hapawire•22m ago•0 comments