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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•8mo ago
Agreed

Strongest battery paves way for light, energy-efficient vehicles

https://www.chalmers.se/en/current/news/ims-world-s-strongest-battery-paves-way-for-light-energy-...
1•mullsork•34s ago•0 comments

Ask HN: Is anyone using ChatGPT or an equivalent with their family?

1•asim•1m ago•0 comments

India–New Zealand FTA: A People-First Pact for a New Era of Trade

https://www.fairobserver.com/region/asia_pacific/india-new-zealand-fta-a-people-first-pact-for-a-...
1•koolhead17•1m ago•0 comments

Variable Width Font Rendering

https://bonaroo.nl/2026/01/19/variable-width-text.html
1•puuush•4m ago•0 comments

Show HN: Axiom SQL-Reflex – Execution-aware multi-agent Text-to-SQL system

https://github.com/dspraneeth07/Axiom-SQL-Reflex-v4
1•dspraneeth•4m ago•0 comments

Show HN: AxumKit – Production-ready Rust/Axum web API template

https://github.com/levish0/AxumKit
1•levish•5m ago•0 comments

Anthropic Just Built a Competitor to Meta's $2B Acquisition in 10 Days

https://medium.com/activated-thinker/anthropic-just-built-a-competitor-to-metas-2b-acquisition-in...
2•onurkanbkrc•5m ago•0 comments

Why B2B Companies Fail at LinkedIn (and How to Fix It)

https://aiforcontentmarketing.ai/why-b2b-companies-fail-at-linkedin-and-how-to-fix-it/
1•pakostina•7m ago•0 comments

Firefox and Linux in 2025

https://mastransky.wordpress.com/2026/01/23/firefox-linux-in-2025/
1•Vinnl•8m ago•0 comments

Ask HN: Is there a good open-source alternative to Adobe Acrobat?

1•sebastian_z•9m ago•0 comments

The Secret Society of People Who Know the Formula for WD-40

https://www.wsj.com/business/the-secret-society-of-people-who-know-the-formula-for-wd-40-e9c0ff54
1•impish9208•10m ago•2 comments

Show HN: Vayu – A local-first API client with a C++ load-testing engine

1•athrvk•11m ago•0 comments

Claude skill that researches any topic across Reddit and X from the last 30 days

https://github.com/mvanhorn/last30days-skill
1•7777777phil•11m ago•0 comments

Tell HN: Thoughtfully https://claude.md redirects to Claude Code docs

1•alentred•11m ago•0 comments

Study: Many Developers Face Ethical Pressure to Ship Products Conflicting With

https://www.tandfonline.com/doi/full/10.1080/1369118X.2025.2566814
1•birdculture•12m ago•0 comments

Show HN: Notemap – Local-first mind mapping for Mac

https://notemap.com/
1•kamranahmedse•14m ago•0 comments

Show HN: Robust image-to-video pipeline for pets and dance (Kling wrapper)

https://aibabydance.com
1•JustinXie•16m ago•1 comments

Agent Safety Is a Box

https://brooker.co.za/blog/2026/01/12/agent-box.html
1•hasheddan•18m ago•0 comments

Show HN: A simple invoice tool I built instead of full accounting software

https://invoxzero.com
1•ramnete•23m ago•0 comments

Ada Palmer: Inventing the Renaissance

https://www.250bpm.com/p/ada-palmer-inventing-the-renaissance
1•msustrik•24m ago•0 comments

Zoye – The First AI Native Workspace for All Your Business Tools

https://zoye.io/
1•anizeu•25m ago•0 comments

Trump as Europe's Blessing, Non-Aligned Movement 2.0, and Other Davos Outcomes

https://milosmaricic.substack.com/p/trump-as-europes-blessing-non-aligned
2•yvander_loa•26m ago•0 comments

40 years after Challenger: Lingering guilt and lessons learned

https://text.npr.org/g-s1-106940
1•BostonFern•27m ago•0 comments

Implementing the Transcendental Functions in Ivy

https://commandcenter.blogspot.com/2026/01/implementing-transcendental-functions.html
1•chmaynard•30m ago•0 comments

China's Top General Accused of Giving Nuclear Secrets to U.S.

https://www.wsj.com/world/china/chinas-top-general-accused-of-giving-nuclear-secrets-to-u-s-b8f59dae
2•cebert•31m ago•0 comments

Show HN: SheetSage – A Linter for the Most Dangerous Programming Language

https://sheetsage.co/
1•CherishRoby•32m ago•2 comments

Catclock for Wayland

https://github.com/mcpcpc/wlcatclock
2•mcpcpc•32m ago•0 comments

Show HN: Alprina – Intent matching for co-founders and investors

https://www.alprina.com
1•Othrya•33m ago•0 comments

Fresh Fruits Magazine (2005 edition)

https://archive.org/details/fresh-fruits
1•keepamovin•34m ago•0 comments

US Government wants DNA and social media from visitors

https://www.privacyinternational.org/news-analysis/5713/trump-administration-wants-your-dna-and-s...
3•keiferski•40m ago•1 comments