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

OpenAI blames email mixup for why it didn't respond to Apple trade theft claims

https://appleinsider.com/articles/26/07/15/openai-blames-email-mixup-for-why-it-didnt-respond-to-...
1•frizlab•1m ago•0 comments

Show HN: PostgreSQL Now Supported in DBTrail

https://github.com/dbtrail/dbtrail
1•nethalo•2m ago•0 comments

ScreenshotAPIs – pay-as-you-go screenshot/PDF API, no subscription

https://screenshotapis.org
1•screenshotapi•3m ago•0 comments

Wp-SQLite-db: A single file drop-in for using a SQLite database with WordPress

https://github.com/aaemnnosttv/wp-sqlite-db
1•thunderbong•4m ago•0 comments

Dave Treadwell to Lead AWS Compute and ML Services as Dave Brown Departs

https://www.aboutamazon.com/news/company-news/aws-dave-treadwell-replaces-dave-brown-compute-ml-s...
1•nixgeek•5m ago•0 comments

Grok Build

https://x.ai/open-source
2•runesoerensen•8m ago•2 comments

SQL vs. Sparql in the Age of AI: Which One Works in Enterprises?

https://medium.com/timbr-ai/sql-vs-sparql-in-the-age-of-ai-which-one-actually-works-in-enterprise...
1•smartmic•8m ago•0 comments

Digital Bandung

https://www.theideasletter.org/essay/digital-bandung/
1•ragall•9m ago•0 comments

Are "no AI" disclaimers necessary?

https://blog.basementcommunity.com/are-no-ai-disclaimers-really-necessary/
1•speckx•9m ago•0 comments

Polygraph – Now your tests can't lie

https://github.com/jdubray/polygraph
2•jdubray•9m ago•0 comments

USDA lowers beef export sales by 90% amid growing doubts over data

https://www.reuters.com/business/usda-lowers-beef-export-sales-by-90-amid-growing-doubts-over-dat...
3•geox•10m ago•1 comments

"One Hot Node"

https://theinterposer.substack.com/p/one-hot-node
2•headspreader•12m ago•1 comments

AWS senior cloud executive departs after 18 years

https://www.cnbc.com/2026/07/15/amazon-dave-brown-treadwell-aws.html
2•nixgeek•12m ago•0 comments

Signal, Ledger, Loop: How to Measure a Mind Without Lying to It

https://xcgni.github.io/signal-ledger-loop/
1•brna-2•16m ago•1 comments

The Water Around NYC Is Kind of Dangerous

https://threetalkingheads.com/2026/07/15/drownings-in-nyc/
2•willmeyers•16m ago•0 comments

The 40-Year-Old Man-Child

https://www.theatlantic.com/culture/2026/07/ferris-bueller-40th-anniversary-influencer/687764/
3•paulpauper•17m ago•0 comments

The Rise of Grocery Tourism

https://thefreemanmag.substack.com/p/the-rise-of-grocery-tourism
2•paulpauper•18m ago•0 comments

Salary information to be shown on job ads under new laws (UK)

https://www.bbc.co.uk/news/articles/ckg7gg2zdexo
3•Oras•18m ago•0 comments

Show HN: Spellsurf – Create words from words

https://spellsurf.com/
2•alexakten•19m ago•0 comments

Revised Polish Alphabet

1•poloniaco•19m ago•0 comments

Did Frank Herbert Predict Bistable Displays Like E-Ink?

http://www.technovelgy.com/ct/Science-Fiction-News.asp?NewsNum=6907
1•speckx•20m ago•1 comments

X402 Foundation to Standardize Internet Payments for AI Agents

https://techstrong.ai/articles/linux-foundation-launches-x402-foundation-to-standardize-internet-...
1•CrankyBear•23m ago•0 comments

Software and softness (The etymology and meaning of the word 'software')

https://decasia.org/tech/2023/09/software-and-softness.html
1•lysace•24m ago•0 comments

Support for atomic block writes in Linux 6.13 (2025)

https://lwn.net/Articles/1009298/
2•gregsadetsky•24m ago•0 comments

YouMindAG – give AI coding tools full project context in one command

https://github.com/CESARBR2025/youmindag
1•CESARBR2025•25m ago•0 comments

Show HN: Vendo (YC S26) – Let your users add their own features to your product

https://github.com/runvendo/vendo
1•yousefh409•27m ago•1 comments

Microsoft CEO echoes Palantir CEO's warning on enterprise AI

https://www.msn.com/en-us/money/other/microsoft-ceo-echoes-palantir-ceo-s-warning-on-enterprise-a...
2•petethomas•27m ago•0 comments

GTX 1080s: Testing a Legend

https://www.lttlabs.com/articles/2026/07/15/gtx-1080s-revisiting-legends
3•LabsLucas•29m ago•0 comments

Grok Build Is OSS

https://github.com/xai-org/grok-build
6•skp1995•30m ago•0 comments

World Cup 2026 3D Experience

https://www.3d-bbc.co.uk/?matchId=151708
1•porterde•31m ago•0 comments