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

LLM powered data structures: A lock-free binary search tree

https://fergusfinn.com/blog/bst-expensive-comparisons/
1•somnial•1m ago•0 comments

You can now reserve a hotel room on the Moon for $250k

https://arstechnica.com/space/2026/01/you-can-now-reserve-a-hotel-room-on-the-moon-for-250000/
1•mpweiher•2m ago•0 comments

Aviation English

https://en.wikipedia.org/wiki/Aviation_English
1•redbell•3m ago•0 comments

Lamar wants to have children with his girlfriend. The problem? She's AI

https://www.theguardian.com/technology/2026/jan/11/lamar-wants-to-have-children-with-his-girlfrie...
1•ColinWright•3m ago•0 comments

Keeping 20k GPUs Healthy

https://modal.com/blog/gpu-health
1•MasterScrat•4m ago•0 comments

Show HN: Building this platform for CTO's/devs/founders

1•slmslm22•6m ago•0 comments

In the Mother's Eyes/ Reverie, Reflection, and the Cultural Mirror

https://womenchapterenglish.com/in-the-mothers-eyes-reverie-reflection-and-the-cultural-mirror-pa...
1•rendx•10m ago•0 comments

FOSS in times of war, scarcity and (adversarial) AI [video]

https://fosdem.org/2026/schedule/event/FE7ULY-foss-in-times-of-war-scarcity-and-ai/
1•maelito•11m ago•0 comments

Benchmarking AI gateways At 10000 RPS

https://vidai.uk/blog/rust-python-vidai
1•nagug•12m ago•0 comments

Agent Skills

https://github.com/skillmatic-ai/awesome-agent-skills
3•dergalem•13m ago•0 comments

Show HN: I built an OSHA compliance SaaS for oilfields using only LLMs

https://basincheck.com
1•jaycobski•14m ago•0 comments

Copilot Is Down

https://www.githubstatus.com/incidents/1lnqb2vk25vn
11•NicolasCornwall•14m ago•0 comments

A Month of Chat-Oriented Programming

https://checkeagle.com/checklists/njr/a-month-of-chat-oriented-programming/
1•hecticjeff•15m ago•0 comments

Show HN: Ginny and Georgia Test

https://ginnyandgeorgiatest.com/
1•zoooey•16m ago•0 comments

Exponential growth continued – cargo-semver-checks 2025 Year in Review

https://predr.ag/blog/cargo-semver-checks-2025-year-in-review/
1•agluszak•16m ago•0 comments

Stoat: An open-source, user-first chat platform

https://github.com/stoatchat
1•fanf2•16m ago•0 comments

Island of Misfit Startups: Part I (LensReader)

https://colinsteele.org/blog/island_of_misfit_startups_part_i_lensreader/
1•cvillecsteele•21m ago•0 comments

GCC 16 Compiler Steps Closer To Release With Algol 68 Front end, Zen 6, C++20

https://www.phoronix.com/news/GCC-16-Stage-4-Development
2•rbanffy•23m ago•0 comments

Justice Delayed Is Justice Denied

https://en.wikipedia.org/wiki/Justice_delayed_is_justice_denied
2•barrister•23m ago•0 comments

Show HN: QPost – Free tool for automating YouTube/TikTok/Instagram video posting

https://qpost.dev/
1•arslan2012•24m ago•0 comments

SpaceX gets FCC permission to launch another 7,500 Starlink satellites

https://arstechnica.com/tech-policy/2026/01/spacex-gets-fcc-permission-to-launch-another-7500-sta...
2•rbanffy•25m ago•0 comments

X Corp Sues Music Publishers, Alleges Coordinated DMCA Extortion

https://torrentfreak.com/x-sues-music-publishers-over-weaponized-dmca-takedown-conspiracy/
2•isaacfrond•26m ago•0 comments

The Homepage of Ron Goodwin

http://rongoodwin.co.uk/
1•ocfnash•27m ago•0 comments

Time Is of the Essence

https://docs.eventsourcingdb.io/blog/2026/01/12/time-is-of-the-essence/
1•goloroden•28m ago•0 comments

Show HN: Home Design AI

https://homedesign-ai.net
1•zoooey•28m ago•0 comments

Cosmotechnics and AI: Reading Hamid Ismailov's We Computers

https://seanvoisen.com/writing/cosmotechnics-and-ai/
1•tobr•29m ago•0 comments

Universal Commerce Protocol (UCP)

https://developers.googleblog.com/en/under-the-hood-universal-commerce-protocol-ucp/
1•topper00_raptor•31m ago•0 comments

US Nightmare Propaganda

https://twitter.com/i/status/2010826442725056648
2•barrister•32m ago•0 comments

Vibe Coding Debt: The Security Risks of AI-Generated Codebases

https://instatunnel.my/blog/vibe-coding-debt-the-security-risks-of-ai-generated-codebases
2•birdculture•34m ago•0 comments

Even Linus Torvalds is vibe coding now

https://www.zdnet.com/article/linus-torvalds-vibe-coding-ai/
3•isaacfrond•35m ago•0 comments