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

GB NESO: Emergency Assistance: what it is, and why we used it over the last week

https://www.neso.energy/news/emergency-assistance-what-it-and-why-we-used-it-over-last-week
1•DamonHD•1m ago•0 comments

Verisign and ICANN should reverse course on third-level .name domains

https://domainnamewire.com/2026/10/14/verisign-and-icann-should-reverse-course-on-third-level-nam...
1•greyface-•2m ago•0 comments

BeyondTrust patches zero-day exploited in attacks since August

https://www.bleepingcomputer.com/news/security/beyondtrust-patches-zero-day-exploited-in-attacks-...
1•wondersky•3m ago•0 comments

Show HN: Terra – Restore Wasteland – Looking for Feedbacks – Soon Open Source

https://testflight.apple.com/join/RurMGWw6
1•pompeii•3m ago•0 comments

Backdooring Open-Weight AI Models

https://www.schneier.com/blog/archives/2026/10/backdooring-open-weight-ai-models.html
1•wondersky•3m ago•0 comments

Netflix's Chief Content Officer Bela Bajaria Exiting

https://deadline.com/2026/10/netflixs-chief-content-officer-bela-bajaria-leaving-1237158727/
2•theanonymousone•6m ago•0 comments

The Download: failed social media bans, and extending pets' lives

https://www.technologyreview.com/2026/10/16/1146864/the-download-failed-social-media-bans-and-ext...
1•joozio•6m ago•0 comments

The Decoherence Trap: When AI drowns out the signal in an endless sea of noise

https://maevyn.codes/decoherence
1•pzuraq•6m ago•0 comments

Data center interests have put $30M into Florida campaigns

https://jasongarcia.substack.com/p/data-center-interests-have-put-30
1•pd33•14m ago•0 comments

Running Doom Inside a Transformer

https://nostalgia.dev/posts/running-doom-inside-a-transformer/
2•stmonty•14m ago•0 comments

Permeate: Visual CSS Editor

https://chromewebstore.google.com/detail/permeate-live-css-editor/lanehakcodmhlieafffmpamioeddiejd
1•longforshort•14m ago•0 comments

The AI doomers are going off on Anthropic's revenue figures

https://www.businessinsider.com/anthropic-revenue-ipo-ai-doomer-tech-investing-2026-10
2•arealaccount•14m ago•1 comments

90% of US working hours are spent on tasks not covered well by AI benchmarks

https://www.mercor.com/research/labor-index/benchmark-map/
2•speckx•14m ago•1 comments

Bandedness Propagation Analysis of Tensor Compilers [pdf]

https://homepages.dcc.ufmg.br/~fernando/publications/papers/SeliayeuCGO27.pdf
1•matt_d•15m ago•0 comments

Build a Scrollspy with Modern CSS: No JavaScript Needed

https://blog.master.dev/building-a-fancy-scrollspy-using-modern-css/
1•ibobev•16m ago•0 comments

Unlocking SVG Styling Control with CSS Linked Parameters

https://blog.master.dev/svg-linked-parameters-will-change-how-we-do-icon-systems/
2•ibobev•16m ago•0 comments

Show HN: Reelbird, an open-source Loom and Screen Studio alternative for macOS

https://github.com/btahir/reelbird
2•bilater•16m ago•0 comments

Getting Started with TanStack AI: Setup and Basics

https://blog.master.dev/unlocking-ai-in-your-apps-with-tanstack-ai/
1•ibobev•16m ago•0 comments

Show HN: Family Internet Speed Game

https://guessthespeed.com/
1•qainsights•19m ago•0 comments

The Diesel Weapon

https://edconway.substack.com/p/the-diesel-weapon
2•speckx•22m ago•0 comments

TrustedRouter: OpenRouter challenger closes seed round

https://www.semafor.com/article/10/16/2026/openrouter-challenger-closes-seed-round
1•jlaneve•23m ago•0 comments

Remote Attestation Should Not Be Tolerated

https://lumi.codeberg.page/blog/remote-attestation.html
1•HotGarbage•23m ago•0 comments

Citi restricts AI agents from accessing customer accounts

https://cryptobriefing.com/citi-restricts-ai-agents-customer-accounts/
1•pseudolus•24m ago•0 comments

Katie Zacharia admits she never passed the bar exam

https://www.theguardian.com/us-news/live/2026/oct/16/trump-texas-senate-race-midterms-paxton-tala...
1•Betelbuddy•24m ago•0 comments

/dev/null: social network for developers

https://dev-null.sh
32•mnapoli•25m ago•23 comments

A common-sense fix for poverty, inequality, fascism: Economist ditches ideology

https://www.theguardian.com/business/2026/oct/16/isabella-weber-anti-fascist-economics
2•Geekette•25m ago•0 comments

Show HN: Toolbit – 43 local-first developer utilities in one place

https://toolbit.app/
2•alwinaugustin•28m ago•1 comments

Post About Recreating Adobe Tools Using AI Banned per Adobe Request

https://www.reddit.com/r/Bard/comments/1wxmqpt/ive_created_open_source_100_rust_cleanroom/
4•joering2•28m ago•1 comments

Coopiano – physically modelled piano synthesizer

https://github.com/peterc/coopiano
1•hggh•30m ago•0 comments

The Gradient Is a Covariance

https://richardli.xyz/post/gradient-is-covariance/
1•gmays•31m ago•0 comments