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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•10mo ago
Agreed

Agent Cost Benchmark – 1,127 Runs Across Claude, GPT-4o, and Gemini

https://www.grislabs.com/blog/we-tracked-1000-agent-runs
1•hac96•2m ago•0 comments

Lloyds app glitch turned transactions into shared experience for 447k users

https://www.theregister.com/2026/03/27/lloyds_app_glitch_turned_transactions/
1•Brajeshwar•4m ago•0 comments

Ray. the first AI media player by OpenSubtitles

https://rayplayer.com/en
1•vinceroni•5m ago•1 comments

The Rise of Nuclear Fear

https://www.scientificamerican.com/blog/guest-blog/the-rise-of-nuclear-fear-how-we-learned-to-fea...
1•leonidasrup•6m ago•0 comments

Is this the next evolution of websites?

https://organimo.com/
1•cauliflower99•8m ago•0 comments

OpenID AuthZen Authorization API 1.0 released

https://openid.github.io/authzen/
1•Tepix•11m ago•1 comments

How to move from Prompt to Context Engineering (With demo code)

https://contextbento.substack.com/p/how-to-move-from-context-engineer
1•visopsys•13m ago•0 comments

Crisp open source BA/PM framework for Claude Code(stop building the wrong thing)

https://github.com/radekamirko/C.R.I.S.P/
1•mirkoradeka•14m ago•0 comments

GLM-5.1 Released

https://twitter.com/i/status/2037490078126084514
2•sumitsrivastava•14m ago•0 comments

Show HN: Agent-CI (Run GitHub Actions on your local machine.)

https://agent-ci.dev
1•pistoriusp•14m ago•2 comments

Babylon.js 9.0

https://blogs.windows.com/windowsdeveloper/2026/03/26/announcing-babylon-js-9-0/
1•styx31•15m ago•0 comments

Bourbon Waste Could Provide Next-Gen Supercapacitor Components

https://spectrum.ieee.org/supercapacitor-electrodes-bourbon-waste
1•oldnetguy•18m ago•0 comments

What Will It Take to Build the Largest Data Center?

https://spectrum.ieee.org/5gw-data-center
1•oldnetguy•19m ago•0 comments

I Block All Browsers

https://substack.com/profile/135198963-blocking-noise/note/c-234062010
1•harhargange•19m ago•0 comments

The Crackpot Index(1998)

https://math.ucr.edu/home/baez/crackpot.html
1•o4c•21m ago•0 comments

Show HN: Run approved AI repo changes from a Markdown playbook

https://github.com/AysajanE/plan-orchestrator
1•EagleEdge•21m ago•0 comments

Just Eat and Autotrader among firms investigated in fake reviews probe

https://www.bbc.com/news/articles/cj37eeyz0epo
1•Brajeshwar•21m ago•1 comments

GLM-5.1 Is Available

https://twitter.com/Zai_org/status/2037490078126084514
2•iamsyr•21m ago•2 comments

Simdxml: I built a really, really fast xml parser

https://cigrainger.com/blog/simdxml/
1•cigrainger•21m ago•0 comments

Another 'Vibe-Coded' Platform Ready to Be Hacked – This Time for IoT

https://www.hookpool.com/
3•francescobianco•23m ago•0 comments

Customised Laser Beam Patterns

https://www.tu-darmstadt.de/universitaet/aktuelles_meldungen/einzelansicht_553024.en.jsp
1•FinnKuhn•23m ago•0 comments

The Case for Precommit Hooks

https://thoughtfractal.pages.dev/the-case-for-precommit-hooks/
1•love2read•23m ago•0 comments

Show HN: Grafana TUI – Browse Grafana dashboards in the terminal

https://github.com/lovromazgon/grafana-tui
1•lmazgon•24m ago•1 comments

Codec – A local-first, open-source AI bridge to your Mac

https://github.com/AVADSA25/codec
1•Mikarina•29m ago•0 comments

Repsy – A lightweight, open-source alternative to Nexus/Artifactory

1•nuricanozturk•30m ago•0 comments

Is 50% discount for launch a good idea?

1•eddiejaoude•31m ago•1 comments

Switching from Spotify to Apple Music: Notes on a Surprisingly Bad Desktop UX

https://twitter.com/nicbarkeragain/status/2037328601683841509
3•dsego•32m ago•0 comments

Jury finds Meta, YouTube liable for social media addiction: What we know

https://www.aljazeera.com/news/2026/3/26/jury-finds-meta-youtube-liable-for-social-media-addictio...
3•dalvrosa•34m ago•0 comments

AI Optimizer – OpenAI API Caching Proxy (20-40% Cost Savings)

https://github.com/adamday75/ai-optimizer-app/releases/tag/v2.0.0
1•adamday75•37m ago•0 comments

Borne by Pilotwings

https://objkt.com/collections/KT1QLxw1JiAB2ZNWQu5vsqNoc5eqfyg9DX9q
1•bpierre•39m ago•0 comments