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

The AI architecture "attention" can't hold attention

https://scitechdaily.com/even-gpt-5-failed-this-human-attention-test/
1•nryoo•1m ago•0 comments

Gen Z earning more than millennials did at the same age

https://www.theguardian.com/money/2026/jun/22/gen-z-earning-more-millennials-same-age-resolution-...
1•sefrost•7m ago•0 comments

Xiaomi YU7 GT achieves the first autonomous driving lap record of Nürburgring

https://twitter.com/DriveGreen80167/status/2068920116671140045
1•gainsurier•14m ago•0 comments

Understanding Skills in AI: The Complete Guide to Building Smarter AI Agents

http://simplai.ai/blogs/understanding-skills-in-ai-the-complete-guide-to-building-smarter-ai-agen...
1•Shanmugaraj-1•16m ago•0 comments

China is having another AI moment

https://www.economist.com/china/2026/06/21/china-is-having-another-ai-moment
1•dataflow•17m ago•1 comments

Describe your trading strategy and we'll automate it for you

https://runhalcyon.com/
1•Entropnt•20m ago•0 comments

Update on CC Signals: What Changed and Why

https://creativecommons.org/2026/04/23/update-on-cc-signals-what-changed-and-why/
1•the-mitr•25m ago•0 comments

Age of Invention: Does History Have a Replication Crisis?

https://www.ageofinvention.xyz/p/age-of-invention-does-history-have
1•prakashqwerty•29m ago•0 comments

Deno Desktop

https://docs.deno.com/runtime/desktop/
4•GeneralMaximus•29m ago•0 comments

Estonia to become first country to create digital identities for AI agents

https://news.err.ee/1610060290/estonia-to-become-first-country-to-issue-id-codes-to-ai-agents
1•agulaya24•31m ago•1 comments

Show HN: NagMeLater – Reminders and to-do list, inside your WhatsApp

https://nagmelater.com
1•mehulfanawala•31m ago•0 comments

What Happens to Your Lessons Learned After the Meeting Ends?

https://www.projectmanagement.com/blog-post/80169/what-happens-to-your-lessons-learned-after-the-...
2•wmeller•33m ago•0 comments

Airbnb CEO Brian Chesky Plans to Start a New AI Company

https://www.bloomberg.com/news/articles/2026-06-04/airbnb-ceo-brian-chesky-plans-to-start-a-new-a...
2•stenlix•36m ago•0 comments

Staggering amounts of fentanyl hit streets as the DEA watched and took no action

https://apnews.com/article/dea-fentanyl-unseized-drugs-new-mexico-8f5b546e668e5007c64078da74b90903
1•petethomas•36m ago•0 comments

2004 Huygens probe to Saturn's Titan: still our only outer Solar System lander

https://spacedaily.com/t-no-spacecraft-has-ever-landed-in-the-outer-solar-system-except-one-the-h...
1•Gaishan•37m ago•0 comments

Debiasing Your Software Design Decision-Making

https://www.youtube.com/watch?v=rcLRzDm8cwQ
1•RebootStr•40m ago•0 comments

Show HN: Checkout the new Customisable Template feature for marketing content

https://www.clickcast.tech/template-editor
1•modulusme•42m ago•0 comments

Show HN: MemoryOps – governed memory infrastructure for AI assistants

https://github.com/patibandlavenkatamanideep/memoryops-ai
2•pvmanideep20•42m ago•0 comments

An Ascendant Constitutional Theory Is a Threat to American Science

https://www.theatlantic.com/ideas/2026/06/unitary-executive-scientific-research/687565/
1•thunderbong•46m ago•0 comments

Hugging Face, ModelScope, or CSGHub: How Should a Team Choose?

https://github.com/OpenCSGs/csghub
1•YangXYfc•46m ago•0 comments

LM Link – This is the future I want

1•smalltorch•1h ago•0 comments

Consciousness and Orch OR

https://hameroff.arizona.edu/research-overview/orch-or
2•andsoitis•1h ago•0 comments

Badc – optimizing cross-platform C compiler built with Claude

https://github.com/kromych/badc
1•kromych•1h ago•2 comments

Show HN: Browse the web your way

https://browse-your-way.vercel.app
2•MaxLeiter•1h ago•0 comments

Puppeteer Stealth: Complete Guide to Avoiding Detection

https://scrapfly.io/blog/posts/puppeteer-stealth-complete-guide
2•ankitg12•1h ago•0 comments

Show HN: Eye-brain-hand – a quick neuro coordination and memory test

https://ubershmekel.github.io/eye-brain-hand/
1•ubershmekel•1h ago•0 comments

Absolute State of Unreal 2026

https://www.joewintergreen.com/absolute-state-of-unreal-2026/
1•anonymousab•1h ago•0 comments

ShipFast: Production-ready deploy templates for devs who hate DevOps

https://dpaste.com/94VY3XYU9
2•shipfastdev•1h ago•1 comments

Danish privacy activist Lars Andersen raided by police

https://twitter.com/LarsAnders1620/status/2068208864747540516#m
86•I_am_tiberius•1h ago•48 comments

Ask HN: Favorite Sorting Algorithm?

2•akashwadhwani35•1h ago•4 comments