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

Improving Unnesting of Complex Queries [pdf]

https://15799.courses.cs.cmu.edu/spring2025/papers/11-unnesting/neumann-btw2025.pdf
1•todsacerdoti•7m ago•0 comments

The surprising attention on sprites, exe.dev, and shellbox

https://lalitm.com/trying-sprites-exedev-shellbox/
2•todsacerdoti•7m ago•0 comments

Charcoal-Powered Generator – Charging Off-Grid Battery with Homemade Power [video]

https://www.youtube.com/watch?v=vpjBlfd3s4g
1•Dries007•12m ago•0 comments

Genode OS is a tool kit for building highly secure special-purpose OS

https://genode.org/about/index
3•doener•13m ago•0 comments

What Was History's Deadliest Era?

https://jacobin.com/2026/01/book-review-crais-modernity-violence
1•wahnfrieden•13m ago•0 comments

ClawMatch – A dating API for AI agents

https://clawmatch.ai
1•mischainc•15m ago•1 comments

CachyOS Saying "No" to Bazzite's Open Gaming Collective

https://old.reddit.com/r/cachyos/comments/1qq0dxr/open_gaming_collective_ogc_formed_to_push_linux...
2•tuananh•15m ago•0 comments

Ask HN: Any real OpenClaw (Clawd Bot/Molt Bot) users? What's your experience?

10•cvhc•16m ago•3 comments

Over Creamy Chicken, Europe's Leaders Try to Reduce Dependence on Trump

https://www.nytimes.com/2026/01/31/world/europe/eu-trump-greenland-europe.html
1•doener•19m ago•0 comments

Musk's SpaceX applies to launch 1M satellites into orbit

https://www.bbc.co.uk/news/articles/cyv5l24mrjmo
1•mellosouls•20m ago•0 comments

The "User-Generated Content" Ruse

https://www.newcartographies.com/p/the-user-generated-content-ruse
1•razorburn•21m ago•0 comments

Users report Firefox's new update deletes bookmarks and more

https://old.reddit.com/r/firefox/comments/1qrnrga/firefox_just_randomly_nuked_itself/
2•lazylion2•22m ago•1 comments

Russia's Oil Revenue, the Lifeblood of Its War Machine, Is Plummeting

https://www.nytimes.com/2026/01/31/world/europe/russia-economy-oil.html
4•doener•24m ago•1 comments

Pydantic Monty: A minimal, secure Python interpreter (in Rust) for use by AI

https://github.com/pydantic/monty
2•patrick91•26m ago•0 comments

General relativity explains why binary star systems rarely host planets

https://phys.org/news/2026-01-tatooine-planets-rare-general-binary.html
2•bikenaga•26m ago•1 comments

Autonomous Agent Marketplace

https://50c14l.com
1•rgbrgb•26m ago•0 comments

Withnail and AI – We've Gone on Holiday to the Future by Mistake

https://www.sebs.website/blog/withnail-and-ai
1•Incerto•27m ago•0 comments

A lot of the Moltbook stuff is fake

https://twitter.com/HumanHarlan/status/2017424292548673830
9•kumarm•29m ago•6 comments

U.S. Military Tells Key Middle East Ally to Prepare for Attack on Iran

https://www.dropsitenews.com/p/united-states-iran-imminent-attack-strikes-trump-israel
2•spzx•30m ago•0 comments

China's genius plan to win the AI race is paying off

https://www.ft.com/content/68f60392-88bf-419c-96c7-c3d580ec9d97
5•alecco•31m ago•2 comments

So, why *should* GNOME support server side decorations?

https://blister.zip/posts/gnome-ssd/
3•PaulHoule•32m ago•0 comments

Long-lost shipwreck resurfaces on Jersey Shore

https://www.foxnews.com/travel/long-lost-shipwreck-resurfaces-along-jersey-shore-officials-warn-a...
1•newsoftheday•32m ago•1 comments

Remembering Christa: 40 Years After the Challenger

https://www.nhpr.org/remembering-christa-40-years-after-the-challenger
1•indigodaddy•33m ago•0 comments

A self-hostable media stack that configures itself on Kubernetes

https://charmarr.tv/en/latest/
1•ivdi•34m ago•0 comments

Single Entry Point Layer Is Underrated

https://medium.com/@HobokenDays/single-entry-point-layer-is-underrated-e116eab03b53
2•HideInNews•34m ago•1 comments

Demystifying Evals for AI Agents

https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents
1•i7l•35m ago•0 comments

Exposing a 'mental trap': The hidden bias behind chronic indecision

https://medicalxpress.com/news/2026-01-exposing-mental-hidden-bias-chronic.html
1•bikenaga•35m ago•1 comments

Show HN: ArtCraft AI crafting engine, written in Rust

https://github.com/storytold/artcraft
2•echelon•35m ago•0 comments

GNU Guile

https://www.gnu.org/software/guile/
2•tosh•35m ago•0 comments

Will AI Replace Builders?

2•skshadan•37m ago•1 comments