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

Personal Intelligence in AI Mode in Search

https://blog.google/products-and-platforms/products/search/personal-intelligence-ai-mode-search/
1•ChrisArchitect•2m ago•0 comments

Marginal Gains: From Worst to Olympic Gold

https://read.perspectiveship.com/p/marginal-gains
1•rom16384•4m ago•0 comments

Recent discoveries on the acquisition of the highest levels of human performance

https://www.science.org/doi/abs/10.1126/science.adt7790
2•colincooke•5m ago•0 comments

My time at Amazon: On status and sacrifice at Big Tech

https://beccaselah.substack.com/p/my-time-at-amazon-part-i
1•helloworld8888•5m ago•0 comments

Defining Moments in TV History

https://www.wsj.com/arts-culture/television/tv-history-usa-defining-moments-593edf50
1•psim1•6m ago•0 comments

Show HN:Beni AI – Create your own AI waifu, then video call her in real time

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

Show HN: AgentShield, The missing safety layer for Cowork and AI Agents

https://github.com/tomsun28/agentshield
1•tomsun28•8m ago•0 comments

Seeing Circles, Sines, and Signals a Compact Primer on Digital Signal Processing

https://jackschaedler.github.io/circles-sines-signals/index.html
1•ofou•8m ago•0 comments

The Power of Play in Tech with Vercel's Matias Gonzalez [video]

https://www.youtube.com/watch?v=PaGPzvvGF0I
1•nadis•9m ago•0 comments

Teaching Economics to the Machines

https://www.nber.org/papers/w34713
1•speckx•10m ago•0 comments

ClickHouse PostgreSQL Powered by Ubicloud

https://www.ubicloud.com/blog/clickhouse-postgresql-powered-by-ubicloud
1•furkansahin•11m ago•0 comments

Show HN: Lima-devbox – Claude skill for creating a VM dev sandbox on your Mac

https://github.com/recodelabs/lima-devbox
1•mberg•12m ago•0 comments

AGI, Russell's Paradox, and why we need Specification in AI discourse

https://humanisbeing.substack.com/p/waiting-for-the-barber
1•kudoshinichi•12m ago•0 comments

Agentic Development Basics

https://steveklabnik.com/writing/agentic-development-basics/
1•singhrac•12m ago•0 comments

A century in the Siberian wilderness: the Old Believers who time forgot

https://www.theguardian.com/world/2026/jan/22/forty-years-in-the-siberian-wilderness-the-old-beli...
1•n1b0m•13m ago•0 comments

Blind constraints, not blind spots

https://gmays.com/blind-constraints-not-blind-spots/
1•gmays•15m ago•0 comments

"I have no mouth, and I must scream" – how I let our agent voice its suffering

https://docs.gopromptless.ai/blog/technical/i-must-scream
1•prithvi2206•18m ago•1 comments

Rapace – RPC over SHM / WS / TCP / Mem

https://rapace.bearcove.eu/
1•PaulHoule•19m ago•0 comments

Japanese Zoning (2014)

http://urbankchoze.blogspot.com/2014/04/japanese-zoning.html
1•oregoncurtis•20m ago•0 comments

Floral

https://basicappleguy.com/basicappleblog/floral
1•frizlab•21m ago•1 comments

What's Wrong with NIH Grants?

https://www.statecraft.pub/p/whats-wrong-with-nih-grants
1•pnexk•23m ago•0 comments

Macron says €300B in EU savings sent to the US every year will be invested in EU

https://old.reddit.com/r/europe/comments/1qjtvtl/macron_says_300_billion_in_european_savings_flown/
20•consumer451•23m ago•3 comments

Linking Logs to Code: Introducing Statement IDs

https://www.bronto.io/blog/linking-logs-to-code
12•benoitgaudin•24m ago•1 comments

We Doubled AI Code Acceptance by Teaching Models to Think Like Roblox Engineers

https://corp.roblox.com/newsroom/2026/01/doubled-ai-code-acceptance-teaching-models-think-like-ro...
1•mooreds•24m ago•0 comments

CSS Optical Illusions

https://alvaromontoro.com/blog/68091/css-optical-illusions
10•ulrischa•25m ago•1 comments

Autodesk cuts 7% of workforce (~1k jobs) to redirect investments to AI, cloud

https://finance.yahoo.com/news/design-software-maker-autodesk-lay-140722710.html
4•smurda•25m ago•0 comments

Show HN: Use Git credentials stored on your host inside a dev container

https://github.com/sam-mfb/git-credential-forwarder
1•sam256•26m ago•0 comments

Settle down, nerds. AI is a normal technology (2025)

https://stackoverflow.blog/2025/12/23/settle-down-nerds-ai-is-a-normal-technology/
2•BerislavLopac•26m ago•0 comments

Pruning in Snowflake: Working Smarter, Not Harder

https://arxiv.org/abs/2504.11540
1•mooreds•27m ago•0 comments

AI, Laravel, and the Gap Between Code and Architecture

https://www.galahadsixteen.com/blog/ai-laravel-and-the-gap-between-code-and-architecture
1•bdlowery•27m ago•0 comments