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

Iran's Supreme Leader Ali Khamenei Killed

https://www.reuters.com/world/middle-east/irans-supreme-leader-ali-khamenei-killed-senior-israeli...
3•codethief•4m ago•0 comments

Ask HN: What did you find out or explore today?

2•blahaj•13m ago•2 comments

Ercot Max Solar Record 31 GW

https://www.gridstatus.io/records/ercot?record=Maximum%20Solar
1•chris222•14m ago•1 comments

Dating Apps, Data Structures, and Dopamine

https://www.errorcodezero.dev/blog/dating-apps-dsa-and-dopamine/
2•errorcodezero•14m ago•1 comments

The Science of Detecting LLM-Generated Text

https://dl.acm.org/doi/10.1145/3624725
1•vinhnx•20m ago•0 comments

Niche Developer Tooling for WordPress

https://coderjerk.com/blog/icenberg
1•ddevine•22m ago•0 comments

In puzzling outbreak, officials look to cold beer, gross ice, and ChatGPT

https://arstechnica.com/health/2026/02/did-chatgpt-help-health-officials-solve-a-weird-outbreak-m...
1•Bender•22m ago•0 comments

The Double Standard of Carbon: Why we grant souls to meat but not silicon

https://natansessays.com/posts/the-myth-of-carbon-narcissism/
1•JhonOliver•24m ago•3 comments

History Rhymes: Large Language Models Off to a Bad Start?

https://michaeljburry.substack.com/p/history-rhymes-large-language-models
1•drob518•26m ago•0 comments

What Was Software Programmer Contribution in the Human Technology Timeline?

https://medium.com/@ggonweb/what-was-the-software-programmer-generations-contribution-in-the-huma...
1•ggonweb•28m ago•0 comments

Stem cells provide a potent treatment for frailty

https://www.nature.com/articles/d41586-026-00584-y
1•bilsbie•29m ago•0 comments

Strike in the Middle East use Anthropic even after the Trump ban

https://www.wsj.com/livecoverage/iran-strikes-2026/card/u-s-strikes-in-middle-east-use-anthropic-...
2•johncole•31m ago•0 comments

Samsung Galaxy update removes Android recovery menu tools, including sideloading

https://9to5google.com/2026/02/27/samsung-galaxy-update-android-recovery-menu-removed/
7•pabs3•31m ago•0 comments

Ask HN: How would you know if an AI model has been nerfed?

2•gitgud•33m ago•1 comments

The trap Anthropic built for itself

https://techcrunch.com/2026/02/28/the-trap-anthropic-built-for-itself/
1•pseudolus•34m ago•0 comments

Sites with a /Now Page

https://nownownow.com
2•zdw•38m ago•0 comments

Happy Map

https://pudding.cool/2026/02/happy-map/
1•latexr•39m ago•0 comments

Just two days of oatmeal cut bad cholesterol by 10%

https://www.sciencedaily.com/releases/2026/02/260225081217.htm
18•gradus_ad•46m ago•5 comments

Microgpt

http://karpathy.github.io/2026/02/12/microgpt/
25•tambourine_man•51m ago•5 comments

Blender iPad App Development Halted as Android Tablets Get Priority

https://www.macrumors.com/2026/02/27/blender-ipad-pro-app-development-halted/
3•mrkpdl•54m ago•0 comments

Reconstructing OPL: Joseph Weizenbaum's Online Programming Language

https://timereshared.com/reconstructing-joseph-weizenbaums-opl/
2•abrax3141•59m ago•0 comments

Running a One Trillion-Parameter LLM Locally on AMD Ryzen AI Max+ Cluster

https://www.amd.com/en/developer/resources/technical-articles/2026/how-to-run-a-one-trillion-para...
12•mindcrime•1h ago•2 comments

Banning children from VPNs and social media will erode adults' privacy

https://www.newscientist.com/article/2516996-banning-children-from-vpns-and-social-media-will-ero...
7•hn_acker•1h ago•1 comments

Agentation: Structured UI feedback for coding agents

https://agentation.dev/
1•firloop•1h ago•0 comments

AMA about our work with the Dow and our thinking over the past few days

https://twitter.com/sama/status/2027900042720498089
3•caaqil•1h ago•1 comments

Show HN: Cognitive architecture that hit #1 on LiveBench (68.5%)

https://truthagi.ai
1•felipemayamuniz•1h ago•0 comments

Show HN: Quizz MCP – Turn Claude Code Conversations into Quizzes

https://github.com/ThoBustos/quizz-mcp
1•ThoBustos•1h ago•0 comments

AI What Do: A framework for thinking about AI power and human agency

https://osh.works/posts/ai-what-do/
1•oshoma•1h ago•0 comments

Daily Tetonor- the Daily Math Logic Puzzle

https://dailytetonor.com/
1•H3d3s•1h ago•0 comments

How Awesome? annotates GitHub awesome lists with repo stats, stars, last commit

https://how-awesome.libklein.com/
1•zdw•1h ago•0 comments