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

Show HN: I've Built a Python Playground

https://playcode.io/python-compiler
1•ianberdin•38s ago•0 comments

Trump Sets Fraudster Free from Prison for a Second Time

https://www.nytimes.com/2026/01/16/us/politics/trump-fraudster-pardon.html
1•duxup•1m ago•1 comments

Show HN: AI video generator (React output)– now with script gen and voice select

https://ai.outscal.com/
1•mayankkgrover•5m ago•0 comments

Global sports face challenges from 'AI slop' misinformation

https://www.reuters.com/sports/global-sports-face-challenges-ai-slop-misinformation-2026-01-17/
1•1vuio0pswjnm7•6m ago•0 comments

Show HN: Use Claude CLI to analyze its own protocol

https://github.com/mzhaom/claude-cli-protocol
1•keytalker•7m ago•0 comments

Counterfactual Evaluation for Recommendation Systems

https://eugeneyan.com/writing/counterfactual-evaluation/
1•kurinikku•8m ago•0 comments

Google asks US judge to defer order forcing it to share data while it appeals

https://www.reuters.com/sustainability/boards-policy-regulation/google-asks-us-judge-defer-order-...
1•1vuio0pswjnm7•8m ago•0 comments

Anthropic opens up its Claude Cowork feature to anyone with a $20 subscription

https://www.engadget.com/ai/anthropic-opens-up-its-claude-cowork-feature-to-anyone-with-a-20-subs...
2•swolpers•16m ago•0 comments

The Pink Park Ranger Takedown: CCC vs. White Supremacy

https://canada.diplo.de/ca-en/about-us/vancouver/2751436-2751436
1•DyslexicAtheist•16m ago•0 comments

My daughter's boyfriend gave me a custom keyboard? I don't like it. What now?

1•0xWTF•18m ago•1 comments

A Nazi theorist's vision of a world divided has found a new advocate?

https://www.theguardian.com/commentisfree/2026/jan/16/nazi-theorist-vision-great-spaces-new-advoc...
1•KnuthIsGod•22m ago•1 comments

Show HN: CodeSyncer – Store AI coding context in code comments

https://github.com/bitjaru/codesyncer
1•bitjaru0402•22m ago•1 comments

I trained a 90-day weather AI on a single GPU using 150 years of data

https://github.com/consigcody94/lilith
1•sentinelowl•22m ago•1 comments

Remove Video Watermark, Logo and Subtitle

https://www.removewatermarker.com
1•ace520•22m ago•0 comments

AWS Duvet: a bidirectional link between implementation and specification

https://awslabs.github.io/duvet/
2•forks•26m ago•0 comments

Buffer Overflow in Qualcomm Snapdragon X65 Baseband

https://github.com/0verdu/X65_BufferOverflow
3•ggm•27m ago•0 comments

Open Claude Cowork Compatible with Any LLM API on Win/Linux/macOS

https://github.com/cowork-studio/OpenCowork
1•agi-hub•28m ago•0 comments

Build a Digital Clock from the 1980's

https://eightiesclock.mit.edu/
2•barishnamazov•30m ago•0 comments

Pesticides may drastically shorten fish lifespans, study finds

https://www.theguardian.com/environment/2026/jan/15/pesticides-shorten-fish-lifespan-study
1•breve•41m ago•0 comments

Gnome 50 Alpha Released with the X11 Code Gutted

https://www.phoronix.com/news/GNOME-50-Alpha
2•breve•47m ago•0 comments

Hax: Verifying Security-Critical Rust Software Using Multiple Provers

https://eprint.iacr.org/2025/142
1•forks•48m ago•0 comments

Filen Hiring Senior Full-Stack Developer React and React Native and TypeScript

https://filen.io/hub/were-hiring-senior-full-stack-developer-react-react-native-typescript-m-f-d/
1•reader9274•49m ago•0 comments

The year ahead – Optimism with footnotes

https://www.gatesnotes.com/the-year-ahead-2026
1•notagoodidea•50m ago•0 comments

Show HN: An opinionated fork of micro, built for vibe coders who enjoy code

https://github.com/elleryfamilia/thicc
1•e-clinton•51m ago•0 comments

USB VSense – Design Deep Dive #3 – Thermal Resilience

https://www.crowdsupply.com/meticulous-technologies/usb-vsense/updates/design-deep-dive-3-thermal...
1•bariumbitmap•59m ago•0 comments

Show HN: Humanizer AI: Humanize AI Text in Your Own Voice – Creaibo

https://www.creaibo.net
1•Yinp•1h ago•0 comments

My Week with OpenCode

https://deadsimpletech.com/blog/week_with_opencode
2•kristianp•1h ago•2 comments

Let's Talk About What It Means to Rest for the Sake of Rest

https://electricliterature.com/lets-talk-about-what-it-means-to-rest-for-the-sake-of-rest/
2•herbertl•1h ago•0 comments

In search of our own voice

https://www.animationxpress.com/latest-news/guest-column-in-search-of-our-own-voice/
1•herbertl•1h ago•0 comments

Pokémon card thefts on the rise [video]

https://www.youtube.com/watch?v=ZEDXXascuTw
2•mgh2•1h ago•0 comments