frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•1y 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•1y 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•1y 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•1y 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•1y ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

Sandboxing Coding Agents

https://micahflee.com/sandboxing-coding-agents/
1•jbegley•4m ago•0 comments

Lenovo XClarity Administrator in FreeBSD Bhyve VM

https://vermaden.wordpress.com/2026/08/28/lenovo-xclarity-administrator-in-freebsd-bhyve-vm/
1•vermaden•5m ago•0 comments

They confided in ChatGPT. Their secrets ended up in court.

https://www.washingtonpost.com/technology/2026/08/27/chatgpt-chats-are-being-swept-into-civil-cri...
1•bookofjoe•6m ago•1 comments

Heaven

1•artvogel•7m ago•0 comments

Show HN: Marsbase – an interactive map of fictional Mars outposts

https://marsbase.io/
1•si_164•8m ago•0 comments

WindFoil – algorithm for computing winding and anti-aliasing of 2D vector shapes

https://github.com/texel-org/windfoil
2•coffeeaddict1•18m ago•0 comments

Earth's mysterious 'hum' points to the sound of waves crashing across the world

https://www.rnz.co.nz/news/world/1160121/earth-s-mysterious-hum-points-to-the-sound-of-waves-cras...
3•billybuckwheat•20m ago•0 comments

Show HN: Risk of Train – a 1D roguelike drawn in one terminal font

https://wookinarium.itch.io/risk-of-train?password=wookamegabong
1•devenvdev•21m ago•0 comments

The Library of Lost Maps

https://magazine.ucl.ac.uk/autumn-2025/portico-magazine-autumn-2025-ucl/features/the-library-of-l...
1•emot•21m ago•0 comments

Man builds supersonic trebuchet in his backyard

https://www.popsci.com/technology/supersonic-trebuchet-video/
2•_josh_meyer_•22m ago•1 comments

The everything theory of mass transit

https://worksinprogress.co/issue/the-everything-theory-of-mass-transit/
2•littlexsparkee•23m ago•0 comments

Show HN: Karaokeo – a karaoke party app with no user accounts at all

https://karaokeo.com
2•ricardoaponte•24m ago•0 comments

Protestant Accountability Tracking Database

https://protestantaccountability.org/purpose/
1•achristmascarl•27m ago•0 comments

Wheel of Jira

https://markwbrown.github.io/wheel-of-jira/
1•sudoaptgetinsta•30m ago•0 comments

Yet Another AI Builder But

https://apps.apple.com/us/app/wanno-ai-web-app-builder/id6795772860
1•federiconbo•32m ago•0 comments

Why robotic pizza makers are failing

https://www.bbc.com/news/articles/czxq0wgkkdjo
4•mauvehaus•33m ago•0 comments

PostgreSQL 17 Logical Failover Slots and CDC

https://www.artie.com/blogs/postgresql-17-logical-failover-slots-cdc
1•j-cheong•33m ago•0 comments

Discover how much money you're losing if you don't optimize trial conversions

https://tripo.dimarket.biz
1•BambaDev•36m ago•1 comments

How do I remove the controls from a school Chromebook

3•Jay_bird•38m ago•1 comments

The Easy Part of Building Is Over

https://debarshibasak.github.io/readables/blogs/building-is-going-to-be-more-difficult
5•debarshri•41m ago•2 comments

Vibe Adventures Launches Dynamic Packaging Platform for Multi-Day Tours

https://www.tourradar.com/pr/tourradar-vibe-adventures-integration
3•Alex_Veka•41m ago•0 comments

Show HN: Caravan, a flexible TypeScript-first logger for JavaScript applications

https://github.com/carlos-menezes/caravan
4•carlos-menezes•46m ago•0 comments

Terminal-Bench-Science: Evaluating AI agents on scientific research workflows

https://www.terminal-bench-science.ai/announcement
10•matt_d•49m ago•1 comments

AgentMafia – A Social Deduction Benchmark

https://twitter.com/RyanJunejo/status/2093116308342899116
3•Ryanjunejo•52m ago•0 comments

How to handle sensitive data in LLM agent workflows without breaking tool calls

https://leoy.blog/posts/how-to-wear-model-armor-3/
4•minherz•52m ago•0 comments

Putting Task Expertise into RL Achieves Performance on Text-to-SQL

https://thinkingmachines.ai/news/putting-task-expertise-into-rl/
3•vijayrs•55m ago•0 comments

Bookmarkletscouti

https://news.ycombinator.https://example.invalid/com/bookmarklet.html
3•pierreortega•59m ago•0 comments

Scouti

https://example.invalid/
2•pierreortega•59m ago•0 comments

The Mathematical Principles of Quantum Computer [pdf]

https://github.com/radisvaliullin/art/blob/main/qc/math_principals_of_quantum_computer.pdf
2•radisv•1h ago•1 comments

XPress: Parallel Refinement for Diffusion Drafters in Speculative Decoding

https://supercomputing-system-ai-lab.github.io/blogs/blog/xpress-parallel-refinement-for-diffusio...
2•matt_d•1h ago•0 comments