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

The Business Model That Depends on You Not Bothering

https://maxvotek.com/p/the-business-model-that-depends-on
1•sbulaev•26s ago•0 comments

Why compute and general search will always beat human cleverness in AI (2019)

http://www.incompleteideas.net/IncIdeas/BitterLesson.html
1•utiiiD•36s ago•0 comments

Claude Isn't Allowed to Write Me Prose

https://blog.kvit.app/posts/agent-not-allowed-to-write-prose/
1•skolos•1m ago•0 comments

Neal Stephenson responds with wit and humor

https://slashdot.org/story/04/10/20/1518217/neal-stephenson-responds-with-wit-and-humor
1•jdkee•2m ago•0 comments

QueryAST Lens – Cross-platform SQL workbench with AST visualizer

https://github.com/Hemlig371/queryast-lens
1•Hemlig371•2m ago•0 comments

Campfire Rewritten in Rust By DHH

https://twitter.com/dhh/status/2104633108092092880
1•zac23or•4m ago•0 comments

Nvidia launches record $150B share buyback

https://www.ft.com/content/88e87863-4cf6-4c4e-8858-f0099db350d4
1•specproc•4m ago•0 comments

AirPunk – we turned starting an online business into a game

https://airpunk.ai/
1•laurenz-bauer•5m ago•0 comments

Evan Doorbell's Phone Tapes

https://evan-doorbell.com/
1•cl3misch•5m ago•0 comments

Why Tokyo transit gates process contactless cards in under 100ms

https://atadistance.net/2019/08/13/transit-gate-evolution-do-qr-codes-suck-for-transit/
1•utiiiD•6m ago•0 comments

Zenni ID Guard: Helps Disrupt Unwanted Tracking and Defend Your Privacy

https://www.zennioptical.com/id-guard
1•embedding-shape•6m ago•0 comments

Using the SNES Super FX Chip to Run Super Mario 64

https://hackaday.com/2026/09/28/using-the-snes-super-fx-chip-to-run-super-mario-64/
1•metrofun•6m ago•0 comments

Facebook Lost the Trust of Its Eyes

1•josseppi•7m ago•0 comments

I made Boonful, you can build with your assistant, sell it, and schedule.

https://boonful.io/
1•atifhub•8m ago•1 comments

MicroLLM Lab – Try 7 tiny LLM's in the browser

https://stateofutopia.com/experiments/microllmlab/
2•logicallee•10m ago•1 comments

Let's See Paul Allen's SIMD CSV Parser

http://chunkofcoal.com/posts/simd-csv/
2•hellerve•10m ago•0 comments

Stephan Wolfram on the Future for Math Research in the Age of AI

https://writings.stephenwolfram.com/2026/09/whats-the-future-for-pure-math-research-in-the-age-of...
2•alok-g•10m ago•0 comments

Vinext 1.0 Vite-powered NextJS Apps

https://blog.cloudflare.com/vinext-nextjs-on-vite/
2•matthova•11m ago•1 comments

Burning Man Death Rates – A Short Lesson in Statistics

https://ihavenapkinthoughts.substack.com/p/burning-man-death-rates-a-short-lesson
2•viraj_shah•11m ago•0 comments

Deeper Diving into early 20th century diving gear

https://www.divescrap.com/DiveScrap_INDEX/INDEX_USA.html
2•sans_souse•14m ago•1 comments

Windows 10 breaks less often than Windows 11

https://www.osnews.com/story/146039/windows-10-breaks-far-less-often-than-windows-11/
2•speckx•14m ago•0 comments

Can AI Control a Spacecraft?

https://substack.com/@thejeevankumar/note/c-348060494
2•lroe•15m ago•0 comments

Claude Sonnet 5.5 (Max Effort) Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/claude-sonnet-5-5
3•Topfi•16m ago•0 comments

Show HN: iCli – Postgres health reporter and index optimizer

https://github.com/abhiraj-ku/iCli
2•abhirajabhi312•17m ago•0 comments

Sonnet 5.5 trumps Fable 5.1 on Artificial Analysis

https://artificialanalysis.ai
3•ghoshbishakh•18m ago•0 comments

The Making of Prince of Persia: Notes on a four-year project

https://domelian.substack.com/p/read-this-before-your-next-long-project
1•domelian•19m ago•0 comments

Sandbox Provider Costs

https://sandbox-monthly-costs.mert-569.workers.dev/
1•warthog•20m ago•0 comments

Show HN: Remria – A Cloud Computer OS

https://remria.com/
1•tshepom•20m ago•0 comments

Show HN: Semloop – Semantic loop detection for AI agent traces

https://github.com/VBS2004/semloop
1•VBS2004•23m ago•0 comments

I Turned a DirecTV HR54-700 into a Standalone Jellyfin Box

https://voidnullvalue.github.io/DIRECTV-HR54-700/
2•voidnullvalue•24m ago•0 comments