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

LaunchWall .Online

1•tamimbuilds•1m ago•0 comments

Nvidia's once-tight bond with gamers is cracking over AI

https://www.cnbc.com/2026/04/18/nvidia-ai-backlash-gamers-geforce-gpu.html
1•Brajeshwar•5m ago•0 comments

InnerZero a local AI assistant where your memory never leaves your machine

https://innerzero.com
1•zotex•6m ago•0 comments

Evaluating Memory Models

https://garden.amcampbell.xyz/Spaced-Repetition/Evaluating-Memory-Models
1•gmays•9m ago•0 comments

Russian-made drones 'disintegrating in the air before reaching their targets'

https://www.tomshardware.com/tech-industry/russian-made-shahed-drones-are-disintegrating-in-the-a...
1•pinewurst•12m ago•0 comments

Recommended GPU Repairshop in Europe (Germany)

1•DogRunner•13m ago•0 comments

Don't Be Evil

https://pluralistic.net/2026/04/11/obvious-terrible-ideas/
1•Klaster_1•14m ago•0 comments

Where Are the Customers' Bots?

https://www.thedrawingboard.net/where-are-the-customers-bots/
1•mooreds•15m ago•0 comments

Another Demo from Boston Dynamics

https://spectrum.ieee.org/boston-dynamics-spot-google-deepmind
1•marc__1•16m ago•0 comments

Germany's Black Forest faces a future of transformation

https://longreads.com/2026/03/12/into-the-darkness/
1•mooreds•16m ago•0 comments

Donut Lab's battery claims reportedly subject of whistleblower complaint

https://www.engadget.com/transportation/donut-labs-battery-claims-reportedly-subject-of-whistlebl...
1•WarmWash•16m ago•1 comments

Lil: A Scripting Language

https://beyondloom.com/decker/lil.html
2•tosh•17m ago•0 comments

Running Qwen 3.6 35B-A3B-4B on MacBook Pro M5 64GB with tools

https://www.youtube.com/watch?v=gJlVjR3G25c
2•elvean•18m ago•0 comments

A New Verdict Rewrites the Rules of Corporate Morality

https://www.nytimes.com/2026/04/17/opinion/lafarge-corporate-terrorism-syria-france.html
1•shrubby•19m ago•0 comments

Notes from the SF Peptide Scene

https://12gramsofcarbon.com/p/notes-from-the-sf-peptide-scene
2•theahura•21m ago•0 comments

Best: "Show HN: Synod–Python tool to use generic BLE wearables as PC macro decks

https://github.com/Abrish-Yir/synod
1•vexki•21m ago•1 comments

The neuroscience of visualization: why it works (but not how you think)

https://twitter.com/jaynitx/status/2045486658938888598
2•gmays•22m ago•0 comments

Generating random numbers using C++ standard library: the problems

https://codingnest.com/generating-random-numbers-using-c-standard-library-the-problems/
1•fanf2•22m ago•0 comments

Who will be the senior engineers of 2035?

https://theengineeringmanager.substack.com/p/who-will-be-the-senior-engineers
1•baranul•24m ago•0 comments

Is BQN Mathematics?

https://mlochbaum.github.io/BQN/commentary/math.html
2•tosh•24m ago•1 comments

Runners vs. robots at China half marathon

https://www.bbc.co.uk/news/videos/cz0e54yrppno
1•mmarian•27m ago•0 comments

Ask HN: How do you share so manny Photos after Trip?

1•gray_wolf_99•27m ago•0 comments

When the cost of verification exceeds the cost of trust

https://twitter.com/shanaka86/status/2045872866944848108
1•toss1•27m ago•0 comments

When moving fast, talking is the first thing to break

https://daverupert.com/2026/04/more-talk-less-grok/
7•Brajeshwar•29m ago•2 comments

Five-year review of BQN design

https://mlochbaum.github.io/BQN/commentary/fiveyears.html
1•tosh•32m ago•0 comments

You Can't Game Your Way to a Real Education

https://www.nytimes.com/2026/04/19/opinion/schools-edtech-laptops-games-learning.html
2•7402•33m ago•1 comments

Hyrum's Law: The hunt for a faster syscall trap (2004)

https://devblogs.microsoft.com/oldnewthing/20041215-00/?p=37003
1•signa11•33m ago•0 comments

Clearwing: Produce similar results as Anthropic Glasswing (Mythos)

https://github.com/Lazarus-AI/clearwing
1•ninjagoo•34m ago•1 comments

Knime will undergo enshittification in 2026

https://forum.knime.com/t/batch-execution-no-longer-supported/91773?page=3
1•nijuashi•36m ago•2 comments

In Telluride, regulations designed to help renters drive many out of town

https://coloradosun.com/2026/04/19/telluride-rent-regulations-renters-affordability-shandoka-sunn...
1•mooreds•37m ago•0 comments