frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•1y 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•1y 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•1y 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•1y 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•1y ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

ISAR Aerospace 5 Sept Mission Onward and Upward

https://isaraerospace.com/mission-updates-overview
1•t43562•1m ago•1 comments

Trump Officials Draft Plan to Pay At-Home Parents, Using Funds for Working Ones

https://www.nytimes.com/2026/09/05/us/politics/stay-at-home-parents-subsidies.html
1•koolba•1m ago•0 comments

Who Killed the American Demoscene? (2019)

https://www.vice.com/en/article/who-killed-the-american-demoscene-synchrony-demoparty/
1•wy35•3m ago•0 comments

Generating scenarios for extreme events, without extreme data

https://news.mit.edu/2026/generating-scenarios-extreme-events-without-extreme-data-0824
1•taubek•4m ago•0 comments

Daemoncore Academy Now 100% Free Cyber Security Certifications

https://www.daemoncore.app/
1•DaemonCoreApp•8m ago•0 comments

Ling 3.0 Tiny

https://huggingface.co/inclusionAI/Ling-3.0-tiny
1•AbuAssar•9m ago•0 comments

Ask HN: Did you see this Polymarket post on X today?

1•skwasimin•11m ago•1 comments

Show HN: ChatPanel Now Available on Firefox

https://chatpanel.net/
1•earth2mars•12m ago•1 comments

Eliza Effect

https://en.wikipedia.org/wiki/ELIZA_effect
2•tripdout•12m ago•1 comments

UN votes to adopt new map that makes our world look different

https://www.cnn.com/2026/09/04/world/un-vote-new-world-map-intl-scli
1•consumer451•14m ago•0 comments

Show HN: Claude Skill – Interns must review (your agent's design choices)

https://github.com/alpbahadur/interns-review-plugin
4•alpbahadur•15m ago•0 comments

Elon Musk's Inner Circle Is Pouring Cash into Making Psychedelics Mainstream

https://www.wsj.com/health/healthcare/elon-musks-inner-circle-is-pouring-cash-into-making-psyched...
2•gmays•16m ago•0 comments

Large language models can predict the results of social science experiments

https://www.nature.com/articles/s41586-026-10742-x
2•paulpauper•16m ago•0 comments

Our Likely Future Filter: World Govt

https://www.overcomingbias.com/p/most-likely-future-filter-world-govt
1•paulpauper•17m ago•0 comments

The Danube River's water is dropping so low that World War II ships are emerging

https://www.pbs.org/newshour/world/the-danube-rivers-water-is-dropping-so-low-that-world-war-ii-s...
1•throwaway2037•17m ago•0 comments

Anyone using llama.cpp willing to test LlamaRack?

https://github.com/brantje/LlamaRack
1•Vibecoder_•18m ago•1 comments

Share price numbers for the Hugging Face incident

https://marginalrevolution.com/marginalrevolution/2026/09/more-numbers-for-the-hugging-face-incid...
1•paulpauper•19m ago•0 comments

Benzi – A harness reading LESS source code to write better quality code

https://github.com/oooscoos/Benzi
1•kamarovmakarov•20m ago•1 comments

Phase Dynamics on a T 3-Manifols

https://zenodo.org/records/22377516
1•AevumOriens•23m ago•0 comments

Appreciate Creativity and Art

https://www.iznikcini.com/blogs/news/islamic-mosque-tiles-a-journey-through-art-and-history
2•mahirsaid•25m ago•0 comments

Ironies of Automation [pdf]

https://static1.squarespace.com/static/644321e78cd2dd37613af33e/t/6694873f71612132a84371c7/172100...
1•recursivedoubts•25m ago•1 comments

The moral panic over data centres is foolish

https://www.economist.com/leaders/2026/09/03/the-moral-panic-over-data-centres-is-foolish
36•andsoitis•26m ago•46 comments

Show HN: Red Hat build of Podman Desktop

https://developers.redhat.com/products/red-hat-build-podman-desktop
2•twelvenmonkeys•29m ago•0 comments

A single workout may help protect memory after a short night's sleep

https://medicalxpress.com/news/2026-09-workout-memory-short-night.html
1•mdp2021•29m ago•0 comments

Show HN: I made DeepSeek a stock prophet in the chat

https://chat.deepseek.com/share/najhhfle4n4e9brimh
1•SKYNET800•32m ago•0 comments

Knowing Where to Type 'Zero' (2015)

https://randomascii.wordpress.com/2015/01/19/knowing-where-to-type-zero/
2•birdculture•33m ago•0 comments

OpenAI agent swarm posted two FBI database API keys, and hit two universities

https://twitter.com/kennethrdegraff/status/2096028829890625978
2•ericzawo•35m ago•1 comments

Over 5,400 hacked sites serve ClickFix payloads stored on the blockchain

https://www.bleepingcomputer.com/news/security/over-5-400-hacked-sites-serve-clickfix-payloads-st...
1•sbulaev•35m ago•0 comments

Bringing modern USB xHCI support to Windows 98/ME/2K

https://yeokhengmeng.com/2026/08/xhci98-usb-host-driver/
1•ingve•35m ago•0 comments

GPT-6 Astra might be too powerful to understand or control

https://www.transformernews.ai/p/openai-gpt-6-astra-might-be-too-powerful-to-understand-or-control
2•rome•39m ago•1 comments