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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

Self-Hosted Software List

https://hostedsoftware.org/
1•selfhostedsoft•1m ago•1 comments

Supported browser for Apple devices, derived from Atari TOS 1999

https://en.wikipedia.org/wiki/ICab
1•muzzy19•1m ago•1 comments

Show HN: Spanish Words, spaced repetition vocabulary app for frequent words

https://www.1000spanishwords.app/
1•bbmaxwell•4m ago•0 comments

Ask Your AI to Fill This

https://potomushto.com/2026/tell-your-ai/
1•speckx•6m ago•0 comments

A better way to manage environment variables

https://github.com/humblepenguinn/envio
1•doomlazer•6m ago•1 comments

Show HN: SEO That Fixes Itself

https://www.howtoseo.ai/
1•santiviquez•7m ago•0 comments

OpenAI: 5.4 sooner than you Think.

https://twitter.com/OpenAI/status/2028909019977703752
2•modeless•8m ago•1 comments

RLC Pro is an enterprise Linux for the AI era

https://thenewstack.io/ciq-launches-rlc-pro-for-enterprise-linux-for-the-ai-era/
1•CrankyBear•9m ago•0 comments

An Interactive Intro to CRDTs

https://jakelazaroff.com/words/an-interactive-intro-to-crdts/
2•evakhoury•9m ago•0 comments

The Shady World of IP Leasing

https://acid.vegas/blog/the-shady-world-of-ip-leasing/
1•slome•10m ago•0 comments

Delays in grant awards and funding calls worry NIH researchers

https://www.science.org/content/article/delays-grant-awards-and-funding-calls-worry-nih-researchers
2•epistasis•10m ago•0 comments

Show HN: Stackhaus – A marketplace for AI-built apps (1,204 verified at launch)

https://stackhaus.ai/
1•TheRealDaveO•10m ago•0 comments

Doing math is lonely [video]

https://www.youtube.com/watch?v=LEsI4kPEkgw
1•astroanax•12m ago•0 comments

GitHub Top Code Dataset: 1.3M+ code files from GitHub's top ranked developers

https://huggingface.co/datasets/ronantakizawa/github-top-code
1•ronantech•13m ago•0 comments

Show HN: Dbcli – A Lightweight Database CLI Designed for AI Agents

1•justvugg•13m ago•2 comments

Show HN: VeilDB – Open-source database anonymization platform

https://github.com/veildb-tech/service
1•ihorklymchuk•13m ago•1 comments

Show HN: Focused input cuts LLM output tokens by 63% bench on CC with FastAPI

1•nicola_alessi•14m ago•0 comments

Coruna: The Mysterious Journey of a Powerful iOS Exploit Kit

https://cloud.google.com/blog/topics/threat-intelligence/coruna-powerful-ios-exploit-kit
1•ledoge•14m ago•0 comments

Credential Protection for AI Agents: The Phantom Token Pattern

https://nono.sh/blog/blog-credential-injection
1•decodebytes•15m ago•1 comments

I taught my OpenClaw to call me on the phone [video]

https://www.youtube.com/shorts/WMNdEK28zo4
1•thisismyswamp•15m ago•0 comments

Beta Player – unofficial Bandcamp desktop and mobile player with remote control

https://github.com/eremef/bandcamp-player
1•eremef•16m ago•1 comments

PyTorch MPS Ops

https://github.com/users/kulinseth/projects/1/views/1
1•tosh•17m ago•0 comments

How Well Does Reinforcement Learning Scale?

https://www.tobyord.com/writing/how-well-does-rl-scale
1•AntiDyatlov•17m ago•0 comments

Linux perf Examples

https://www.brendangregg.com/perf.html
1•medbar•19m ago•0 comments

Building Things in Crowded Spaces

https://www.generative.inc/the-weight-of-how-things-are
1•altonwells•20m ago•0 comments

Iran Is Deploying Bubble Jammers Against the US Government [video]

https://www.youtube.com/watch?v=7E69ir4WhpQ
2•tartoran•21m ago•1 comments

M5 Pro and M5 Max are surprisingly big departures from older Apple Silicon

https://arstechnica.com/gadgets/2026/03/m5-pro-and-m5-max-are-surprisingly-big-departures-from-ol...
3•strongpigeon•21m ago•0 comments

Show HN: Agent from Scratch – Bootstrap an agent from a copy-paste, no framework

https://agentfromscratch.com/
1•brotchie•23m ago•0 comments

What we need to make voice AI agentic

https://www.ultravox.ai/blog/what-we-need-to-make-voice-ai-fully-agentic
1•underfox•23m ago•0 comments

Ask HN: How are you estimating API costs before committing to an architecture?

1•sarthakaggarwal•26m ago•1 comments