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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

NetBSD 11.0 RC3

https://www.netbsd.org/releases/formal-11/NetBSD-11.0.html#
1•unleaded•1m ago•0 comments

nbio: A non-blocking I/O and event loop abstraction in Odin

https://pkg.odin-lang.org/core/nbio/
1•philippta•2m ago•0 comments

Medicare dips a toe into hemp for seniors

https://www.axios.com/2026/04/06/medicare-coverage-cbd-products-cannabis
1•brandonb•3m ago•0 comments

Show HN: NanoClip – A minimalist clipboard manager and snippet expander for Mac

https://www.getnano.dev/clip
1•vbaro•4m ago•0 comments

Show HN: Splice CAD – Wiring and cable assembly CAD with an agentic assist

https://splice-cad.com/
2•djsdjs•4m ago•0 comments

Why are so many young adults dying of heart attacks?

https://www.empirical.health/blog/heart-attacks-rising-young-people/
1•brandonb•5m ago•0 comments

Tintin goes to the neurologist (2004) [pdf]

https://www.cmaj.ca/content/171/12/1433
2•thunderbong•5m ago•0 comments

Show HN: Ghost Pepper – 100% local hold-to-talk speech-to-text for macOS

https://github.com/matthartman/ghost-pepper
3•MattHart88•6m ago•0 comments

When Is a Podcast Not a Podcast?

https://forkingmad.blog/when-is-a-podcast-not-a-podcast/
1•justjax•8m ago•1 comments

Show HN: Kept for the children and machines that come after

https://www.latentdiaries.com/
1•ainthusiast•10m ago•1 comments

Combine multiple Docker Compose files with profiles

https://docs.docker.com/compose/how-tos/profiles
1•nvahalik•12m ago•0 comments

HogPocket – Mobile dashboard for PostHog analytics

https://apps.apple.com/us/app/hogpocket/id6760708657
1•omardakelbab1•13m ago•0 comments

Show HN: A web app to rescue old printers, using Linux in a v86 VM plus WebUSB

https://printervention.app/
1•gmac•14m ago•1 comments

Wikipedia's AI agent row likely just the beginning of the bot-ocalypse

https://www.malwarebytes.com/blog/ai/2026/04/wikipedias-ai-agent-row-likely-just-the-beginning-of...
6•hackernj•14m ago•1 comments

Artemis II livestream with Interstellar soundtrack

https://lunarstellar.space
2•starost•15m ago•0 comments

War on Raze

https://gist.github.com/chrispsn/af6844b80687462814fc39d4b97399a6
1•tosh•15m ago•0 comments

Finding the pot of gold using EXIF and Open-Meteo

https://leisuredoma.in/p/rainbows
1•ltrg•15m ago•0 comments

Tell HN: Claude Code /buddy saves the day

1•9wzYQbTYsAIc•16m ago•0 comments

Battle Isle is a series of turn-based strategy/tactics video games

https://en.wikipedia.org/wiki/Battle_Isle
1•doener•17m ago•0 comments

Chinese scientists unveil glowing Avatar-like plants that could light cities

https://www.euronews.com/next/2026/04/02/chinese-scientists-unveil-glowing-avatar-like-plants-tha...
3•_____k•18m ago•0 comments

PDF of the Current POSIX Standard

https://corvora.github.io/posix_complete.pdf
1•birdculture•21m ago•0 comments

Better MoE model inference with warp decode

https://cursor.com/blog/warp-decode
2•babelfish•23m ago•0 comments

The Luna Ring [pdf]

https://www.shimz.co.jp/en/topics/dream/content02/pdf/lunaring_e.pdf
1•mooreds•25m ago•0 comments

Iranians Condemn Strike on a Top University (Sharif)

https://www.nytimes.com/2026/04/06/world/middleeast/iranians-condemn-university-strike.html
6•osnium123•26m ago•3 comments

Show HN: Knightline: Chess opening trainer with SM-2 spaced repetition

https://www.knightline.app/
1•xtrmity•27m ago•0 comments

Paving Hawaiian roads with recycled plastics and abandoned fishing nets

https://www.acs.org/pressroom/presspacs/2026/march/paving-hawaiian-roads-with-recycled-plastics-a...
2•PaulHoule•28m ago•0 comments

Mourning for dinosaurs, 65M years too late

https://www.cnn.com/2026/04/05/science/dinosaurs-tiktok-documentary-cec
1•Tomte•29m ago•0 comments

Show HN: TTF-DOOM – A raycaster running inside TrueType font hinting

https://github.com/4RH1T3CT0R7/ttf-doom
1•4RH1T3CT0R•30m ago•0 comments

Show HN: Formal theory of consciousness built on ∞-categories

https://holon.sh/
1•old8man•31m ago•1 comments

Russian crypto payment system expands into Africa

https://www.ft.com/content/a9de2bb5-7bbf-4d04-9424-25d4b9cda2b6
1•dosinga•31m ago•0 comments