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

Reverse Engineering Google's TPUs

https://gherkinlabs.com/reverse-engineering-google-tpus
2•goldenarm•51s ago•0 comments

Disclock – Discord timestamp converter with timezone preview

https://disclock.io/
1•louisdc•3m ago•0 comments

Recursive Self-Improvement (RSI)

https://github.com/theseus-labs-rsi/awesome-rsi
1•jonbaer•4m ago•0 comments

This Year I Vibecoded My Taxes

https://capocasa.dev/this-year-i-vibecoded-my-taxes
1•capocasa•5m ago•0 comments

Ask HN: What do you run behind Kafka for log collection and search?

1•whsoul•7m ago•0 comments

Show HN: A web based 4-channel Music Tracker

https://johnoestmannmusic.com/1000-SOS/0007/
1•soundworlds•8m ago•0 comments

Show HN: Build Morocco

https://build-morocco.vercel.app/
1•saadmrb•9m ago•0 comments

When code costs nothing to generate, open source is the only defensible moat

https://joost.blog/open-source-agency/
1•amoriz•9m ago•1 comments

Ultrastorage: Supercharged LocalStorage

https://github.com/yangshun/ultrastorage
1•doppp•10m ago•0 comments

The Last AI Built by Humans: Toward Genuine Recursive Self-Improvement

https://arxiv.org/abs/2609.11873
1•jonbaer•13m ago•0 comments

We are all Product Engineers Now

https://seldo.com/posts/we-are-all-product-engineers-now/
1•max-ch•13m ago•1 comments

GPT-6 Astra solves puzzles

https://quesma.com/blog/gpt-6-astra-solves-puzzles/
1•stared•13m ago•0 comments

How does call center headset noise canceling filter out keyboard sounds?

1•beienchina•13m ago•0 comments

How Good Are Frontier Models at Physics? Expert Re-Grading Reveals Broken

https://arxiv.org/abs/2609.13009
1•sbulaev•15m ago•0 comments

MPs and Lords call for new law to address AI threat to human rights

https://www.bbc.co.uk/news/articles/cwyzvgj70y4o
2•chrisjj•26m ago•0 comments

OpenArch – PyTorch implementations of modern LLM architectures

https://github.com/anuj0456/OpenArch
2•anuj0456•26m ago•2 comments

Tesla owners to get insurance discount if they use self-driving

https://www.afr.com/companies/transport/tesla-owners-to-get-insurance-discount-if-they-use-self-d...
2•Alien1Being•30m ago•1 comments

1.8x faster than GitHub Actions

https://ogirardot.writizzy.blog/p/rickub-1-8-faster-then-github-actions
1•ssaboum•30m ago•1 comments

Would you like to be a helpful idiot to our AI overlords? [video]

https://www.youtube.com/watch?v=CZB7wlYbknM
1•gilfoyle_7•34m ago•0 comments

An open-source diagram skill for designer

https://github.com/cathrynlavery/diagram-design
1•Nina_antalpha•36m ago•0 comments

Is PDF a Problem for AI?

https://pdf4wcag.com/blog-news/is-pdf-a-problem-for-ai
1•JilBill•44m ago•1 comments

Finding All Solutions to LinkedIn-Queens Puzzle

https://wyounas.github.io/model-checking/puzzles/2026/06/06/finding-all-solutions-to-linkedin-que...
1•simplegeek•46m ago•0 comments

SpaceX sues to block release of tax-break records for its Texas Terafab project

https://www.businessinsider.com/spacex-terafab-tax-break-records-ai-transparency-texas-2026-9
6•snikolaev•46m ago•0 comments

Show HN: 1080p is 920px tall – 1k real browser viewports

https://screensize.net/reports/viewport-stats
3•zenpe•47m ago•0 comments

Language Makes Power Feel Like Common Sense

https://linguistically.substack.com/p/antonio-gramsci-how-language-makes
1•akbarnama•48m ago•0 comments

Australian insurer offers discount to self-driving car owners

https://www.smh.com.au/business/consumer-affairs/humans-make-mistakes-insurer-offers-discount-to-...
2•Alien1Being•48m ago•0 comments

Human bottleneck will not let AI replace any jobs

2•jatindavis05•51m ago•0 comments

Open-source project: Use ChatGPT Web models directly in Codex

https://github.com/miuuyy/codex-chatgpt-web
1•Moon_Y•54m ago•0 comments

Confessions of an Unrepentant Slop Snob

https://charity.wtf/p/confessions-of-an-unrepentant-slop
2•BerislavLopac•57m ago•0 comments

Show HN: Descles, response level LLM message control with HITL approval flows

https://www.descles.com/
1•chiatzen•1h ago•0 comments