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

Making Holograms with a Pen Plotter

https://blog.jordan.matelsky.com/Penplotter-holography/
2•DemiGuru•34s ago•0 comments

Personal Mac Security: Run a Practical Local Check

https://stackandink.com/blog/audit-personal-mac-security-nist-mscp/
1•Igor_Wiwi•1m ago•0 comments

When Crumbling Infrastructure Meets Cyber Exposure

https://controlsystemssecurity.com/posts/one-county-multiple-points-of-failure-2026-08-11.html
1•Glomz-guy•3m ago•0 comments

The Tradeoffs Facing Japan's Economy

https://www.emergingtrajectories.com/lh/japan-economy-tradeoffs/
2•cl42•4m ago•0 comments

OpenAI Brings ChatGPT Desktop App to Linux

https://www.phoronix.com/news/ChatGPT-Desktop-Linux-Preview
1•DemiGuru•4m ago•0 comments

Zap Rocks. Add Water. Get Clean Hydrogen

https://spectrum.ieee.org/stimulated-geologic-hydrogen
1•Jimmc414•5m ago•1 comments

Show HN: Pulp – Zero-allocation C11 telemetry engine (28M logs/SEC to disk)

https://github.com/superwired-labs/Pulp
1•superwired_labs•6m ago•1 comments

Operation Matryoshka: Russia using 'BBC news' fakes to pervert key German vote

https://euobserver.com/231951/operation-matryoshka-russia-using-bbc-news-fakes-to-pervert-key-ger...
1•01-_-•7m ago•0 comments

Weekend at Bernie's

https://nesbitt.io/2026/05/08/weekend-at-bernies.html
1•zbentley•7m ago•0 comments

Alpha Compute to buy gas rights for $55M data center campus

https://www.reuters.com/legal/litigation/alpha-compute-buy-pennsylvania-land-gas-rights-55-millio...
1•ashurandi•7m ago•0 comments

Microsoft August 2026 Patch Tuesday fixes 400 flaws, 3 zero-days

https://www.bleepingcomputer.com/news/microsoft/microsoft-august-2026-patch-tuesday-fixes-400-fla...
1•speckx•7m ago•0 comments

The Essential Cantong qi [pdf]

https://rexresearch1.com/AlchemyArchives/1TaoistAlchemy/PregadioEssentialContongqi.pdf
2•Bluestein•10m ago•0 comments

Show HN: HeyDeacon, AI customer support agent for SaaS founders

https://heydeacon.com
1•arcadium3D•10m ago•0 comments

Guy Spier's 2025 Letter to Partners (after diagnosis)

https://aqfd.docsend.com/view/nip42bjerdisg63z
2•highfrequency•10m ago•0 comments

Thundermail Email Hosting

https://tb.pro/en-US/
3•neogodless•11m ago•2 comments

Lean Eval for Alignment on Faithfulness

https://www.millenniumresearch.ai/leanscreen.html#catch
18•asdajksbda•11m ago•3 comments

AI and the Delusions of Increasing Productivity

http://charleshughsmith.blogspot.com/2026/08/ai-and-delusions-of-increasing.html
1•speckx•12m ago•1 comments

AI generated profile not allowed on X

https://help.x.com/en/rules-and-policies/authenticity
2•newsoftheday•13m ago•1 comments

Small, self-hosted MCP that gives Claude read/write access to your Google Sheets

https://github.com/andrewkushnerov/gsheets-mcp
3•andrewmatic•13m ago•2 comments

Programming language adoption patterns at Meta

https://xcancel.com/i/article/2087229652293337160
2•somnium_sn•15m ago•0 comments

AI Boot Camps Surge as Workers Race to Learn New Skills

https://www.bloomberg.com/news/articles/2026-08-08/ai-training-boom-sends-colleges-racing-to-offe...
1•wslh•16m ago•1 comments

Apple Executive in Charge of Pay and Wallet Services Is Leaving

https://finance.yahoo.com/technology/articles/apple-executive-charge-pay-wallet-174854341.html
4•wslh•18m ago•0 comments

Appetite-suppressing hormone may protect liver from inflammation

https://medicalxpress.com/news/2026-08-appetite-suppressing-hormone-liver-inflammation.html
3•brandonb•19m ago•0 comments

FieldFleet – self-hostable field operations built with Flutter and Supabase

https://taskfleetai.github.io/fieldfleet/
2•iguardo•19m ago•0 comments

When's the next model coming out?

https://modelrumor.com/
4•LorenDB•19m ago•2 comments

URLs aren't strings, and my recent encounter with this

https://utcc.utoronto.ca/~cks/space/blog/web/URLsAreNotStringsMyCase
3•speckx•20m ago•0 comments

Nobody is going to tell you your website is bad

https://cooked-phi-pink.vercel.app/
1•Shmungus•21m ago•1 comments

What's the most memory-efficient way to check the weather forecast?

https://manualdousuario.net/en/weather-forecast-windows-11-ram/
2•rpgbr•23m ago•1 comments

Show HN: NotebookLM Calibre Plugin

https://github.com/divyenduz/notebooklm-calibre-plugin
4•divyenduz•23m ago•0 comments

Declarative Canvas UI for the browser, inspired by Swift

https://romanuk.org/declarative-canvas-ui-for-the-browser-inspired-by-swift/
4•mromanuk•24m ago•2 comments