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

Go.mod Hackery for Compatibility Testing

https://engineering.kablamo.com.au/posts/gomod-hackery-for-compat-testing/
1•boyter•20s ago•0 comments

Zorin OS 18 passes 2M downloads in under 3 months

https://www.windowscentral.com/microsoft/windows/zorin-os-18-has-reached-2-million-downloads-with...
1•teleforce•1m ago•0 comments

Young men want to get big. For some, it's becoming an obsession

https://www.npr.org/2026/01/14/nx-s1-5671789/bigorexia-dysmorphia-eating-disorder-boys
1•kianN•2m ago•0 comments

US Senate narrowly blocks effort to rein in Trump's Venezuela war powers

https://www.reuters.com/world/us/us-senate-blocks-effort-rein-trumps-venezuela-war-powers-2026-01...
1•mickle00•6m ago•0 comments

Dust Properties of the Interstellar Object 3I/Atlas

https://arxiv.org/abs/2601.08591
1•bikenaga•8m ago•0 comments

Americans are paying hundreds more in rent

https://www.reuters.com/markets/on-the-money/americans-are-paying-hundreds-more-rent-2026-01-14/
3•JumpCrisscross•9m ago•0 comments

Building AI-Generated Dashboards with A2UI Custom Component Catalogs

https://a2aprotocol.ai/blog/2026-a2ui-rizzcharts-tutorial
1•czmilo•12m ago•1 comments

Evidence for modified gravity at low acceleration from Gaia observations

https://phys.org/news/2023-08-smoking-gun-evidence-gravity-gaia-wide.html
1•cpncrunch•13m ago•0 comments

Scientists uncover why statins cause muscle pain

https://www.sciencedaily.com/releases/2026/01/260114084122.htm
2•gradus_ad•13m ago•0 comments

Creating Obsidian Knowledge Bases

https://desktopcommander.app/blog/2026/01/14/create-and-manage-your-obsidian-knowledge-base-with-ai/
1•rafaepta•15m ago•0 comments

Vm0

https://github.com/vm0-ai/vm0
2•handfuloflight•16m ago•0 comments

Show HN: Beni AI – video call with your AI companion

https://app.thebeni.ai/login
1•chaeeunlee9611•17m ago•0 comments

Scripts to simplify setting up a Windows developer box

https://github.com/microsoft/windows-dev-box-setup-scripts
1•thunderbong•17m ago•0 comments

Show HN: Free observability tool to track your REST and LLM calls

https://tracker.pathwave.io/docs
1•felipe-pathwave•18m ago•0 comments

Furiosa: 3.5x efficiency over H100s

https://furiosa.ai/blog/introducing-rngd-server-efficient-ai-inference-at-data-center-scale
18•written-beyond•20m ago•0 comments

Beni AI – Real-time face-to-face AI companion that talks like a real person

https://thebeni.ai/
1•chaeeunlee9611•21m ago•1 comments

Writing Anteforth, a Forth-Like in Spark

https://pyjarrett.github.io/2026/01/13/anteforth.html
2•todsacerdoti•23m ago•0 comments

Show HN: AnotherResumeBuilder – Yeah just another one, check it out

https://arb.manhhung.app
1•mhpro15•25m ago•0 comments

X to stop Grok AI from undressing images of real people after backlash

https://www.bbc.co.uk/news/articles/ce8gz8g2qnlo
7•mellosouls•26m ago•0 comments

David Hockney says moving Bayeux Tapestry to UK is 'madness'

https://www.bbc.co.uk/news/articles/c89qendv88yo
2•mellosouls•27m ago•0 comments

Introducing tempo

https://github.com/galaxy-io/tempo
2•ikswolzok•28m ago•0 comments

Ford Suspends Factory Worker for Heckling Trump

https://www.wsj.com/politics/policy/ford-suspends-factory-worker-for-heckling-trump-fa6d59b1
5•JumpCrisscross•29m ago•0 comments

California Attorney General Investigating XAI over Grok's Deepfakes

https://www.wsj.com/tech/ai/california-attorney-general-investigating-xai-over-groks-deepfakes-3d...
4•JumpCrisscross•30m ago•0 comments

The three aggregators worth building as software margins compress

https://www.networkspirits.com/blog/state-of-the-world/
1•0xjepsen•36m ago•0 comments

New Safari developer tools provide insight into CSS Grid Lanes

https://webkit.org/blog/17746/new-safari-developer-tools-provide-insight-into-css-grid-lanes/
1•feross•38m ago•0 comments

Morphe is an Android app modification tool

https://github.com/morpheapp
1•yreew•40m ago•1 comments

Reelive.ai – Making Google's AI Accessible to Everyone

1•danny_miller•43m ago•1 comments

Mo' Power is Mo' Betta': Superpowers for Claude Code, Codex, and OpenCode

https://github.com/obra/superpowers
2•bigwheels•46m ago•0 comments

I've been using a little shorthand for my notes

https://www.twotalk.org
2•barneymatthews•47m ago•2 comments

Trump Imposes Limited Tariffs on Foreign Semiconductors

https://www.nytimes.com/2026/01/14/business/economy/trump-chips-tariffs.html
7•karp773•48m ago•0 comments