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

Context Widows Or, of GPUs, LPUs, and Goal Displacement

https://artificialbureaucracy.substack.com/p/context-widows
1•sebg•1m ago•0 comments

Normals_revisited: Revisiting a known normal transformation in computer graphic

https://github.com/graphitemaster/normals_revisited
1•todsacerdoti•3m ago•0 comments

How do SSDs change database design?

https://brooker.co.za:443/blog/2025/12/15/database-for-ssd.html
1•arn3n•4m ago•0 comments

How to Properly Adjust Your Binoculars

https://www.artofmanliness.com/skills/how-to-adjust-binoculars/
1•I_Nidhi•6m ago•0 comments

Kubernetes exposes your DevOps debt

https://thorsell.io/2025/12/16/devops-debt-and-kubernetes.html
1•xGLaDER•7m ago•0 comments

What Is ChatGPT Doing and Why Does It Work? (2023)

https://writings.stephenwolfram.com/2023/02/what-is-chatgpt-doing-and-why-does-it-work/
2•pella•10m ago•0 comments

Hand-curated remote anywhere tech jobs – no country restrictions

https://relocateme.substack.com/p/work-from-anywhere-tech-jobs-introductory
1•andrewstetsenko•10m ago•0 comments

Genuary 2026: Generative Art Month

https://genuary.art
1•tripzilch•11m ago•0 comments

Show HN: I Wrote a Book – Production-Grade Agentic AI

https://productionaibook.com
1•aroussi•13m ago•1 comments

Show HN: A new technique for LLM tool calling and OSS library for it

https://www.symbolica.ai/blog/beyond-code-mode-agentica?theme=dark
3•charlielidbury•16m ago•0 comments

Raxe

https://github.com/raxe-ai/raxe-ce
1•handfuloflight•16m ago•0 comments

Murder-suicide case shows OpenAI selectively hides data after users die

https://arstechnica.com/tech-policy/2025/12/openai-refuses-to-say-where-chatgpt-logs-go-when-user...
2•jsheard•16m ago•0 comments

The woman who sold time – and the man who tried to stop her

https://www.bbc.com/news/articles/c4nn7gew9zxo
2•Phemist•23m ago•0 comments

System Capability Protocol

https://systemcapabilityprotocol.com/
1•ryanm101•25m ago•0 comments

Hawk from Movement Labs clocks in at 22.5% on ARC-AGI-2

https://movementlabs.ai
1•movementlabsAI•28m ago•0 comments

Designating fentanyl as a weapon of mass destruction

https://www.whitehouse.gov/presidential-actions/2025/12/designating-fentanyl-as-a-weapon-of-mass-...
6•KoftaBob•29m ago•0 comments

The Bike Shed: 485: HTTP Basic Auth

https://bikeshed.thoughtbot.com/485
1•amalinovic•32m ago•0 comments

LLMs Are Left-Leaning Liberals: The Hidden Political Bias of LLMs

https://www.scl.org/llms-are-left-leaning-liberals-the-hidden-political-bias-of-large-language-mo...
3•maxloh•33m ago•0 comments

Rkik v2.0.0 – NTP, NTS, PTP diagnostics, presets and config, Docker test lab

1•aguacero7•34m ago•0 comments

AI music licensing is here. Now what?

https://altea.circle.so/c/knowledge/ai-music-licensing-is-here-now-what
1•tmrtn•35m ago•1 comments

The Agentic Shift: How AI Transformed Our Engineering Workflow

https://blog.layerx.xyz/ai-agentic-shift-at-layerx
1•felltrifortence•36m ago•1 comments

Show HN: I made a public traffic counter so websites can share verified views

https://trustviews.io/
1•jeremy0405•37m ago•1 comments

I'm Just Having Fun

https://jyn.dev/i-m-just-having-fun/
1•lemper•38m ago•0 comments

EU household real income per capita up 22% since 2004

https://ec.europa.eu/eurostat/web/products-eurostat-news/w/ddn-20251125-2
6•andrewstetsenko•38m ago•1 comments

English prose has become much easier to read

https://www.worksinprogress.news/p/english-prose-has-become-much-easier
1•ortegaygasset•39m ago•0 comments

The Churn

https://blog.cleancoder.com/uncle-bob/2016/07/27/TheChurn.html
1•BinaryIgor•41m ago•1 comments

Show HN: Add sticky notes to any page on the web

https://leafovers.com/
3•appetizersnack•42m ago•2 comments

Night factory tours provide history lesson of Japan's modern economy

https://immersive.kyodonews.net/night-factory-tours-provide-history-lesson-of-japans-modern-econo...
1•Kaibeezy•43m ago•0 comments

When Everything Is Important, Nothing Matters

https://ramezanpour.net/post/2025/12/16/when-everything-is-important-nothing-is
2•ramezanpour•43m ago•0 comments

AI that helps startups assess technical candidates

https://www.algo-voice.dev/recruiter
3•jarlen•46m ago•1 comments