frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•11mo 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•11mo 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•11mo 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•11mo 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•11mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

Easiest way to create agents with local LLMs

https://github.com/iBz-04/quaynor
1•Ibz04•3m ago•0 comments

Back into Plato's Cave

https://akoepke.github.io/cave_umwelten/
1•Murfalo•3m ago•0 comments

Are you conscious? A conversation between Dawkins and ChatGPT

https://richarddawkins.substack.com/p/are-you-conscious-a-conversation
1•mhb•5m ago•0 comments

Show HN: Turn your cat pic into a dancing cat video

https://dancingcats.damjanski.com
3•whatifbelief•6m ago•0 comments

Someone allegedly used a hairdryer to rig Polymarket weather bets

https://www.engadget.com/big-tech/someone-allegedly-used-a-hairdryer-to-rig-polymarket-weather-be...
2•cdrnsf•6m ago•0 comments

You Do Not Understand Browser History (2013)

https://madhatted.com/2013/6/16/you-do-not-understand-browser-history
1•downbad_•7m ago•1 comments

The Surprising Heart of the Data-Center Boom

https://www.city-journal.org/article/loudoun-county-virginia-data-centers-construction
1•eatonphil•9m ago•0 comments

Show HN: YourSpace – one username, a separate bio page for each thing you do

https://yourspace.page
1•iamhaseeb•11m ago•0 comments

AI Agent API Grader

https://saastr.ai/api-report-card
1•gertjandewilde•12m ago•0 comments

Show HN: HypergraphZ – Hypergraphs, PageRank, Laplacians, and More in Zig

https://github.com/yamafaktory/hypergraphz
1•yamafaktory•14m ago•0 comments

Birds Are More Afraid of Women Than of Men

https://nautil.us/birds-are-more-afraid-of-women-than-of-men-1280333
1•Michelangelo11•15m ago•1 comments

Modyak – run Claude Code and Codex with any model from your Mac menu bar

https://modyak.com
1•robertkeus•15m ago•0 comments

Warren Buffett Did It

https://www.theatlantic.com/ideas/2025/12/warren-buffett-retirement/685294/
1•littlexsparkee•15m ago•0 comments

Study shows how Nazi-era propaganda influences present-day attitudes

https://www.psypost.org/new-study-shows-how-nazi-era-propaganda-influences-present-day-attitudes/
1•geox•16m ago•0 comments

Equal Ping for All

https://bagnalla.github.io/posts/ping-charity.html
2•bagnalla•17m ago•0 comments

Beijing 'covered up passenger plane suicide crash that killed all 132 on board'

https://www.dailymail.com/news/article-15788033/Beijing-covered-passenger-plane-suicide-crash-kil...
3•Bender•17m ago•0 comments

TablePlus: Modern, native, and friendly GUI tool for relational databases

https://tableplus.com/
1•bundie•18m ago•0 comments

Unauthorized Notepad++ macOS fork credits Don Ho on AI plugin he didn't make

https://www.neowin.net/news/notepad-creator-issues-warning-to-users-about-an-unauthorized-macos-f...
1•bundie•19m ago•0 comments

Project Deal: Claude-run marketplace experiment

https://www.anthropic.com/features/project-deal
1•gmays•19m ago•0 comments

The Nintendo Switch 1 can run GameCube/Wii Games [video]

https://www.youtube.com/watch?v=AZqacXlM4AM
1•skibz•20m ago•0 comments

Machine

https://punkx.org/jackdoe/machine.html
1•ricardobeat•20m ago•0 comments

An orthodox file manager for macOS. Built for those who still prefer keyboards

https://www.captains-deck.com/
1•juhapekka69•21m ago•1 comments

ClickFS – Mount ClickHouse as a read-only filesystem

https://github.com/donge/clickfs
1•donge•21m ago•0 comments

How to Improve at Sensemaking AI?

https://commoncog.com/how-to-improve-at-sensemaking-ai/
1•rrherr•22m ago•1 comments

Amazon Supply Chain Services: Amazon's logistics network open to every business

https://twitter.com/amazonnews/status/2051240894842429624
1•taubek•23m ago•0 comments

Jane Street employees paid $9.4B in 2025

https://www.ft.com/content/82f3b9de-f91d-4726-ac85-5420373ecb64
3•throwaway2037•24m ago•1 comments

Gaps in national food production, worldwide

https://www.nature.com/articles/s43016-025-01173-4
1•simonebrunozzi•25m ago•0 comments

Show HN: Aurra – Bi-temporal memory for AI agents (with LLM auto-supersede)

https://www.aurra.us/blog/level-2-auto-supersede-beta
1•akshayt2012•26m ago•0 comments

PyInfra 3.8.0 Is Out

https://github.com/pyinfra-dev/pyinfra/releases/tag/v3.8.0
5•wowi42•26m ago•0 comments

Endurance and perseverance are not the same thing

https://newsletter.awarelife.co.il/p/why-pushing-harder-isnt-the-same
1•genadym•26m ago•0 comments