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

Show HN: We Implemented the IPv8 Internet-Draft in Linux, Libc, and BGP

https://goonhost.rocks/blog/implementing-ipv8-internet-draft
1•turborigby•54s ago•0 comments

Reproducing Split Brain on CloudNativePG

https://coroot.com/blog/reproducing-split-brain-on-cloudnativepg/
1•valyala•2m ago•0 comments

AI will converge towards intuition-guided symbolic world modeling

https://twitter.com/fchollet/status/2072779641639875048
1•tosh•3m ago•0 comments

A Space Expert Hoped to Use Eclipse as Science Class. The DJs Had Other Plans

https://www.nytimes.com/2026/08/12/world/europe/spain-eclipse-astrophysicist-festival.html
1•reaperducer•3m ago•0 comments

DeepSeek V4 Flash 0731 latency numbers from nine providers

https://oskrim.github.io/engineering/2026/08/14/deepseek-v4-flash-providers.html
2•oskrim•3m ago•0 comments

Emotion Explorer

https://feel.ifsart.com/
1•speckx•4m ago•0 comments

Show HN: RoleSweep – job search that deletes listings when employers close them

https://rolesweep.com
2•chetanba•10m ago•0 comments

Mosaic – self-hosted portfolio analytics for UK Stocks and Shares ISAs

https://github.com/ishantanu/mosaic-portfolio
1•ishantanu10•10m ago•0 comments

SEtting up AI search rank tracking easily

https://github.com/razz1000/ai-search-rank-tracking-example-repo
1•RasmusSoerensen•10m ago•0 comments

TMDB records Apple TV+ air dates a day early, on purpose

https://watchnext.leyu.studio/blog/apple-tv-air-dates-off-by-one
1•oujan•11m ago•0 comments

How to Use the Moshcode CLI

https://anthony.dev.profullstack.com/blog/002-post.html
1•buffer_overlord•11m ago•0 comments

Charisma, confidence and no fear of AI taking their jobs. The personality hires

https://www.marketwatch.com/story/these-workers-have-charisma-confidence-and-no-fear-of-ai-taking...
1•newsomix9xl•11m ago•0 comments

Plannotator – Annotate plans and code reviews for agent feedback

https://github.com/backnotprop/plannotator
1•StrangeSound•15m ago•0 comments

Printing Lists

https://matklad.github.io/2026/08/14/printing-lists.html
2•surprisetalk•16m ago•0 comments

Generate clean, transparent clip art and animated GIFs in seconds

https://clipi.online
1•johndastor•16m ago•0 comments

Show HN: I precompiled the path network of 3 continents to invent hiking routes

https://windygap.app
1•adjohu•18m ago•0 comments

Photo of eclipse by Xiaomi 17 Ultra

https://twitter.com/cvillasante/status/2087657106342105228
2•malshe•18m ago•2 comments

Graph Algorithms on the World Flight Network

https://stochastic.blog/graph-algorithms-on-the-world-flight-network/
1•Anon84•19m ago•0 comments

Terence Tao Lecture: Mathematics in the Age of AI [video]

https://www.youtube.com/watch?v=M0--ZH1lOzg
3•marvinborner•22m ago•0 comments

We Should Use Instrumented Profiling Scopes More

https://mropert.github.io/2026/08/13/instrumented_profiling_scopes/
1•ingve•22m ago•0 comments

Dear people who work at the airport

https://life-after-ssri.bearblog.dev/dear-people-who-work-at-the-airport/
1•nivethan•23m ago•2 comments

We built a tool that helps run your startup

https://app.firmgrove.com
1•firmgrove•25m ago•0 comments

Computer History

https://learn.chatgpt.com/docs/customization/computer-history
1•rbinv•25m ago•1 comments

What Programming and Computing Represent

https://venam.net/blog/programming/2015/11/04/what-is-programming.html
1•speckx•25m ago•0 comments

Who's Tracking You? Use This New Service to Find Out

https://krebsonsecurity.com/2026/08/whos-tracking-you-use-this-new-service-to-find-out/
2•DemiGuru•27m ago•0 comments

Why Is No One Talking About the Manufacturing Boom?

https://www.dailysignal.com/2026/08/11/quiet-manufacturing-boom/
1•bilsbie•28m ago•2 comments

My VP Eng told me to stop working on observability

https://www.jevy.org/articles/my-vp-eng-told-me-to-stop-working-on-observability/
2•jevyjevjevs•29m ago•0 comments

Goyda: Cross-Platform UI Toolkit

https://github.com/user-with-username/goyda
1•anybodyy•30m ago•1 comments

Show HN: Artifex - Graph Based GPU Harness for AI Agents

https://gatewai.studio/artifex
2•oknaslnkn•31m ago•0 comments

The Secret, Open Triumph of Race Science

https://www.richardhanania.com/p/the-strange-secret-open-triumph-of
1•bilsbie•32m ago•0 comments