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

WTF Happened in 1971?

https://wtfhappenedin1971.com/
1•rzk•1m ago•0 comments

The Internet Is Becoming an App

https://polding.eu/2026/08/21/the-internet-is-becoming-an-app-here-is-what-the-research-says/
1•Rob_Polding•1m ago•0 comments

Nvidia Has Become a Banker to the AI Boom, Putting It on Dangerous Ground

https://www.wsj.com/tech/ai/nvidia-has-become-a-banker-to-the-ai-boom-putting-it-on-dangerous-gro...
2•doener•2m ago•0 comments

SEC Subpoenas Wall Street Banks over Situational Awareness

https://www.ft.com/content/c36d4e57-1ea2-47a5-8f6d-f390369aedc4
4•root-parent•10m ago•1 comments

Show HN: Stage – Build websites together by editing a shared document

https://www.youtube.com/watch?v=DfpqJzd8-zk
1•yuntonyx•12m ago•0 comments

Redactle: The Daily Wikipedia Game

https://redactle.net/
1•subset•13m ago•0 comments

Bad benchmarks and evals: Senior SWE-Bench, napkin math, and winter tires

https://danluu.com/exercise-7/
1•luu•15m ago•0 comments

Highest AI benchmarks ≠ adoption stonks

https://pran.sh/blog/reliable-model-wins
1•snorlaxmorlax•16m ago•0 comments

Ox Alpha – A mysterious new AI model

https://oxalpha.com
10•vismit2000•20m ago•11 comments

Show HN: BGChanger – Remove and replace video backgrounds in the browser

https://bgchanger.video/
1•andytuyu•21m ago•0 comments

App Ecosystem Report Q2 2026 based on SDK scans and App-ads.txt

https://appgoblin.info/reports/app-ecosystem-report-Q2-2026
1•ddxv•22m ago•1 comments

Sam Altman on AI: 'We've not had the iPhone moment'

https://www.youtube.com/watch?v=dktlHZOSn5o
2•root-parent•22m ago•0 comments

Arduino Ventuno Q SBC pre-orders are about to open for $299

https://www.cnx-software.com/2026/08/25/299-arduino-ventuno-q-sbc-combines-qualcomm-dragonwing-iq...
1•pyprism•23m ago•0 comments

"I built gangbid.lol in 45 minutes. Can a stupidly simple idea get users?

https://gangbid.lol
2•devisious•26m ago•0 comments

Trump's tariffs risk higher prices for AI, video games, cellphones: experts

https://www.cbc.ca/news/business/trump-tariff-ai-9.7318970
5•walrus01•30m ago•3 comments

Show HN: The Daily Outbid – outbid.lol, but as a newspaper front page

https://www.thedailyoutbid.lol
1•willdn•30m ago•0 comments

Screen viewing time from age 1 to 8 years and subsequent academic performance

https://link.springer.com/article/10.1007/s12519-026-01046-1
6•Markoff•35m ago•5 comments

Show HN: MajinBook = Anna's Archive and Goodreads

https://github.com/mazieres/MajinBook
3•mazr•36m ago•0 comments

Open City Planner – an open-source GIS for civic planning

https://stadtplaner.oklabflensburg.de/
2•hermann87•36m ago•0 comments

Jensen Huang: Land power and shell – The next critical resource for AI factories

https://twitter.com/JensenHuang/status/2089331487342829862
1•vismit2000•39m ago•0 comments

Abby Steele: An Offline AI Personality Powered by a Local LLM and Chess Engine

https://www.abbysteele.com
1•chainbuilder•42m ago•0 comments

Ads and tracking infiltrated TVs. Now they're coming for monitors

https://arstechnica.com/gadgets/2026/08/ads-and-tracking-infiltrated-tvs-now-theyre-coming-for-mo...
3•nickt•43m ago•1 comments

Xiaomi, AI Cube prototype: Multi-chip local LLM powerhouse

https://me.mashable.com/tech/75268/xiaomi-reveals-ai-cube-prototype-multi-chip-local-llm-powerhou...
2•aledevv•44m ago•0 comments

VK is suing Apple for blocking its apps – and wants $696,000 a day

https://www.techradar.com/pro/russian-tech-giant-vk-is-suing-apple-for-blocking-its-apps-and-want...
5•giuliomagnifico•45m ago•0 comments

$10k phishing kit enrolls Google passkeys that survive pw resets

https://abnormal.ai/blog/iauthflow-v2-phishing-google-passkeys
2•vdelitz•50m ago•1 comments

Seattle 64

https://seattle64.benjasmin.chatgpt.site/
1•rbinv•51m ago•0 comments

Time-to-exploit is now negative: attacks begin before the patch ships

https://my127001.pl/en/cyber-threats-2026-in-numbers
1•cybersecmichalk•55m ago•0 comments

Kala Paint

https://cooldogstudios.com/
1•darcien•55m ago•0 comments

UK public don't trust Fujitsu, but government does

https://www.computerweekly.com/news/366646332/UK-Public-dont-trust-Fujitsu-but-government-does
7•latein•1h ago•1 comments

How to know if talking to your coding agent like a caveman saves money

https://jayn.app/caveman
6•hugopuybareau•1h ago•0 comments