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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

Paint But…

https://paintbut.netlify.app/
1•memalign•56s ago•0 comments

GitGuardian analysis of the bitwarden/CLI compromise

https://blog.gitguardian.com/bitwarden-cli-gitguardian-views-on-helloworm00/
1•cwinq•1m ago•0 comments

Rendezvous and Docking: A User's Guide for Non Rocket Scientists

https://www.baen.com/rendezvous
1•EvgeniyZh•1m ago•0 comments

Microsoft offers buyouts for longtime employees

https://www.seattletimes.com/business/microsoft/microsoft-offers-buyouts-for-longtime-employees/
1•divbzero•3m ago•0 comments

FujiNet Go 800 – Atari800 Emulator for Android

https://fujinet.online/2026/04/23/fujinet-go-800-atari800-emulator-for-android/
1•p0w3n3d•6m ago•0 comments

The Surveillance Accountability Act Full Text [pdf]

https://boebert.house.gov/sites/evo-subsites/boebert.house.gov/files/evo-media-document/surveilla...
1•Cider9986•8m ago•1 comments

OpenAI deprecates all GPT nano fine tuning

https://community.openai.com/t/deprecation-of-fine-tuned-models-but-still-cant-access-newer-ones/...
2•dandiep•9m ago•0 comments

Why Not Venus?

https://mceglowski.substack.com/p/why-not-venus
1•zdw•17m ago•0 comments

Running Bare-Metal Rust Alongside ESP-IDF on the ESP32-S3's Second Core

https://tingouw.com/blog/embedded/esp32/run_rust_on_app_core
1•MrBuddyCasino•21m ago•0 comments

The Budgeting Mistake That Cost Uber Its Annual AI Spend in 4 Months

https://www.productcurious.com/p/uber-ai-budget-mistake
5•umangsehgal93•22m ago•0 comments

Tremendous Iranian Invasion: A Text Misadventure

2•brooksc•27m ago•0 comments

Essential Voice by Nothing

https://nothing.community/d/56167-introducing-essential-voice
1•plun9•28m ago•0 comments

Familiarity is the enemy: On why Enterprise systems have failed for 60 years

https://felixbarbalet.com/familiarity-is-the-enemy/
1•adityaathalye•29m ago•0 comments

Intel Arc Pro B70 Review

https://www.pugetsystems.com/labs/articles/intel-arc-pro-b70-review/
1•zdw•33m ago•0 comments

ASML's latest chipmaking gear is too pricey, even for TSMC

https://theedgemalaysia.com/node/800964
2•jackyli02•34m ago•0 comments

Intel Arc Pro B70 benchmarks for LLMs and video generation

https://github.com/PMZFX/intel-arc-pro-b70-benchmarks
1•mroche•38m ago•0 comments

DeepSeek's Sequel Set to Extend China's Reach in Open-Source A.I

https://www.nytimes.com/2026/04/24/business/china-ai-deepseek-open-source.html
1•Cider9986•38m ago•0 comments

Ubuntu 26.04 LTS Released

https://lwn.net/Articles/1069399/
21•lxst•40m ago•2 comments

AI Resume Reviewer

https://www.thehumancapitalhub.com/ai-resume-reviewer
1•bisit•40m ago•0 comments

Show HN: GitRails-Let agents call only the GitHub endpoints and params you allow

https://github.com/maxawzsinger/gitrails/blob/main/README.md
1•maxaw•43m ago•1 comments

The AI Science Separation

https://www.thewirechina.com/2026/04/19/the-ai-science-separation/
1•jackyli02•44m ago•0 comments

We're Using So Much AI That Computing Firepower Is Running Out

https://www.wsj.com/tech/ai/ai-is-using-so-much-energy-that-computing-firepower-is-running-out-15...
1•ryan_j_naughton•46m ago•0 comments

Grok Voice Think Fast 1.0

https://x.ai/news/grok-voice-think-fast-1
1•deadalus•47m ago•0 comments

Oracle's Deluge of AI Debt Pushes Wall Street to the Limit

https://www.wsj.com/tech/ai/oracle-ai-demand-debt-04977749
4•ryan_j_naughton•48m ago•1 comments

Canonical Releases Ubuntu 26.04 LTS Resolute Raccoon

https://canonical.com/blog/canonical-releases-ubuntu-26-04-lts-resolute-raccoon
1•ggraphilia•49m ago•0 comments

Unlimited access to Reddit, and Twitter, access anything with supermcp

https://webmatrices.com/supermcp
2•bishwasbh•50m ago•0 comments

Anthropic tested removing Claude Code from the Pro plan

https://arstechnica.com/ai/2026/04/anthropic-tested-removing-claude-code-from-the-pro-plan/
2•celadevra_•54m ago•0 comments

S&box – Game engine built on Source 2 and .NET from creators of Garry's Mod

https://github.com/Facepunch/sbox-public/
1•vyrotek•59m ago•0 comments

Share X 20.0

https://getsharex.com/changelog#v20.0.0
1•pentagrama•1h ago•0 comments

Habitual coffee intake shapes the microbiome, modifies physiology and cognition

https://www.nature.com/articles/s41467-026-71264-8
40•scubakid•1h ago•13 comments