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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•6mo ago
Agreed

Meta Superintelligence Labs: Scaling Agent Learning via Experience Synthesis

https://arxiv.org/abs/2511.03773
1•babelfish•35s ago•0 comments

The Silent (R)evolution of SAT

https://cacm.acm.org/research/the-silent-revolution-of-sat/
1•RebelPotato•1m ago•0 comments

The Complexity of Simplicity [video]

https://www.youtube.com/watch?v=Cum5uN2634o
1•bestinterest•14m ago•0 comments

Abstraction, but for Robots

https://stackoverflow.blog/2025/12/02/abstraction-but-for-robots/
1•quapster•15m ago•0 comments

Why Replicate is joining Cloudflare

https://blog.cloudflare.com/why-replicate-joining-cloudflare/
2•chmaynard•17m ago•0 comments

New FDA-approved glasses can slow nearsightedness in kids

https://abcnews.go.com/US/wireStory/new-fda-approved-glasses-slow-nearsightedness-kids-127991874
1•plun9•17m ago•0 comments

Show HN: Eatelligence – Scan pantry items, get AI recipe suggestions

https://apps.apple.com/us/app/eatelligence/id6755645485
1•xsonerx•19m ago•0 comments

Ask HN: Did I do a 5 year BS to become an algo whore?

1•leetcodewhore•19m ago•0 comments

Imposter Game Oneline

https://impostergame.win/
1•tomstig•20m ago•1 comments

Show HN: Webclone.js – A simple tool to clone websites

https://github.com/jademsee/webclone
1•jadesee•24m ago•0 comments

AlphaFold is five years old – these charts show how it revolutionized science

https://www.nature.com/articles/d41586-025-03886-9
2•digital55•28m ago•0 comments

High School Dropout to OpenAI Researcher [video]

https://www.youtube.com/watch?v=vq5WhoPCWQ8
1•gmays•30m ago•0 comments

Frequently Asked Unicycling Questions

https://vale.rocks/posts/unicycle-faq
2•edent•30m ago•0 comments

OWASP LLM Top 10 2026: Predicted New Threats

https://scanmyllm.com/owasp-llm-top-10-2026
1•adam_ftt•34m ago•1 comments

Byte-Level Tokenizers Unavoidably Enable LLMs to Generate Ill-Formed UTF-8

https://arxiv.org/abs/2511.05578
1•PaulHoule•36m ago•0 comments

Draft: Challenge for Persistent DNS TXT Record Validation

https://datatracker.ietf.org/doc/html/draft-sheurich-acme-dns-persist-01
1•wrayjustin•37m ago•0 comments

Show HN: Personal AI Assistant

https://chat.gmujtaba.com/
1•sumo86•38m ago•0 comments

Energy Department Renames NREL 'National Lab of the Rockies'

https://www.nrel.gov/news/detail/press/2025/news-release-energy-department-renames-nrel-%27nation...
2•zekrioca•38m ago•1 comments

Responsible Bot Operation

https://cryptography.dog/blog/responsible-bot-operation/
1•jllyhill•39m ago•0 comments

Apple Releases Open Weights Video Model

https://starflow-v.github.io
2•vessenes•47m ago•0 comments

It's No Dodo, but This Newly Discovered Bird Could Share the Same Fate

https://www.nytimes.com/2025/12/02/science/birds-dodo-slaty-masked-tinamou.html
1•fleahunter•51m ago•0 comments

Pushlog.ai – Summaries of GitHub push notifications

https://pushlog.ai/
1•CarterDixon•52m ago•1 comments

Ask HN: I have a job offer in Google MTV from Bangalore. Should I take it?

1•titirx•54m ago•3 comments

A Camera System Now Feeds Information to Police on Drivers Across the US

https://truthout.org/articles/a-vast-camera-system-now-feeds-information-to-police-on-drivers-acr...
2•measurablefunc•54m ago•0 comments

Decreasing Certificate Lifetimes to 45 Days

https://letsencrypt.org/2025/12/02/from-90-to-45
3•Sami_Lehtinen•58m ago•0 comments

Show HN: PKC Mark – open-source local benchmark for LLMs and Diffusers

https://github.com/PKC0412/pkc-mark-benchmark
1•parkkichoel•58m ago•0 comments

Slack Engineering – Advancing Our Chef Infrastructure

https://slack.engineering/advancing-our-chef-infrastructure-safety-without-disruption/
1•zdkaster•1h ago•0 comments

Show HN: Multi-Repo Tool

https://github.com/njoshi22/repoflow
1•anduril22•1h ago•0 comments

United States vs. Paramount Pictures, Inc

https://en.wikipedia.org/wiki/United_States_v._Paramount_Pictures,_Inc.
1•handfuloflight•1h ago•0 comments

Why Most Business Coverage Misses the Actual Drivers of Outcomes

https://capitalfolly.com/
1•d_e_solomon•1h ago•1 comments