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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•7mo ago
Agreed

A Code Centric Journey into the Gleam Language [video]

https://www.youtube.com/watch?v=LMrKEaAi4RI
1•giacomocava•35s ago•0 comments

Here we go again: Microsoft in UK court over cloud licensing

https://www.theregister.com/2025/12/12/microsoft_cat_cloud_licensing/
1•Bender•49s ago•0 comments

VOxReVoLuTiOn

1•MMConsulting•52s ago•0 comments

Framework Raises DDR5 Memory Prices by 50% for DIY Laptops

https://www.phoronix.com/news/Framework-50p-DDR5-Memory
1•mikece•1m ago•0 comments

Historic Shift Underway in China's Economy as Investment Slump Deepens

https://www.nytimes.com/2025/12/12/business/china-investment-economy.html
1•belter•1m ago•1 comments

Glibc Now Enabling 2MB THP on AArch64 by Default for Better Performance

https://www.phoronix.com/news/Glibc-malloc-2MB-THP-AArch64
1•Bender•1m ago•0 comments

What does a lean proof prove?

https://supaiku.com/what-does-a-lean-proof-prove
1•EvgeniyZh•2m ago•0 comments

Cut off by their banks and from Alexa, sanctioned ICC staffers remain resolute

https://apnews.com/article/international-court-sanctions-trump-icc-hague-4cdefe4de067432f6cdb9b13...
2•ledoge•2m ago•0 comments

Cache Aware Scheduling Raises Performance for Intel Xeon 6 Granite Rapids

https://www.phoronix.com/review/intel-xeon-6-cache-sched
1•Bender•2m ago•0 comments

Encryption Scheme Based on the Vector Computational Diffie-Hellman Problem

https://arxiv.org/abs/2512.04237
2•PaulHoule•7m ago•0 comments

Something from Nothing

https://tante.cc/2025/12/12/something-from-nothing/
2•speckx•7m ago•0 comments

Federal Reserve cuts interest rates by 0.25%

https://finance.yahoo.com/news/live/live-coverage-federal-reserve-cuts-interest-rates-by-025-powe...
1•mgh2•7m ago•0 comments

Too Complex to Fix

https://green.spacedino.net/too-complex-to-fix/
1•surprisetalk•8m ago•0 comments

We are not here to make code

https://www.todepond.com/go/we-are-not-here-to-make-code/
1•surprisetalk•8m ago•0 comments

Stagnant Construction Productivity Is a Worldwide Problem

https://www.construction-physics.com/p/stagnant-construction-productivity
1•surprisetalk•8m ago•0 comments

Peak TIME POTY Drama

https://news.manifold.markets/p/peak-time-poty-drama
1•surprisetalk•8m ago•0 comments

Britain Asked a Power Plant to Build a 'Fish Disco.' It's Not Going Well

https://www.wsj.com/world/uk/the-big-fight-over-a-fish-disco-at-a-british-power-plant-1aa9dcc7
1•impish9208•8m ago•1 comments

Google's Willow quantum processor will power UK research through the NQCC

https://blog.google/around-the-globe/google-europe/united-kingdom/national-quantum-computing-cent...
1•donutloop•9m ago•0 comments

Washington AV Bill Jumps on 'Health Warning' Bandwagon

https://www.xbiz.com/news/294260/washington-av-bill-jumps-on-health-warning-bandwagon
1•SilverElfin•9m ago•0 comments

Journalists win a key battle over AI in the newsroom

https://www.bloodinthemachine.com/p/journalists-win-a-key-battle-over
2•hn_acker•10m ago•0 comments

How to think about durable execution

https://hatchet.run/blog/durable-execution
1•abelanger•10m ago•0 comments

Show HN: Flowova – Describe a process, get a flowchart (with Mermaid export)

https://flowova.ai
1•jmcraft•11m ago•0 comments

I couldn't find a logging library that worked for my library, so I made one

https://hackers.pub/@hongminhee/2025/logtape-fedify-case-study
2•todsacerdoti•12m ago•0 comments

Microsoft Deepens Its Commitment to Canada with Landmark $19B AI Investment

https://blogs.microsoft.com/on-the-issues/2025/12/09/microsoft-deepens-its-commitment-to-canada-w...
2•whoknowsidont•13m ago•0 comments

Ink and Switch – An independent research lab exploring tools for thought

https://www.inkandswitch.com
1•Topfi•13m ago•0 comments

Show HN: How to fix AI Agents at the component level

https://ubiai.tools/building-observable-and-reliable-ai-agents-using-langgraph-langsmith-and-ubiai/
1•Mesterniz•15m ago•1 comments

Fault tolerance is key in compositional learning infrastructure: NATS and C#

https://github.com/nats-io/nats.net
3•northlondoner•15m ago•1 comments

Pop _OS 24.04 LTS Review: Is This the Linux Distro of the Year 2025?

https://itsfoss.com/news/pop-os-24-04-review/
1•mikece•16m ago•0 comments

New Windows RasMan zero-day flaw gets free, unofficial patches

https://www.bleepingcomputer.com/news/microsoft/new-windows-rasman-zero-day-flaw-gets-free-unoffi...
1•akyuu•17m ago•0 comments

The No BS Phone

1•morpheos137•17m ago•1 comments