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

Engineered bacteria offer a way to accelerate rock weathering for carbon removal

https://phys.org/news/2026-08-bacteria-weathering-carbon.html
1•rawgabbit•57s ago•0 comments

Sam Harris and Richard Dawkins in Conversation

https://www.youtube.com/watch?v=mssoaoidYwQ
1•chistev•1m ago•0 comments

Protonmail Outage: Incident Report

https://proton.me/blog/august-27-outage-incident-report
1•Fudgel•1m ago•0 comments

Wrapping a callable in a lambda that just calls it with the same parameters

https://devblogs.microsoft.com/oldnewthing/20260819-00/?p=112624
1•ibobev•4m ago•0 comments

Identifying fake cosmetics using AI

https://groverlab.org/hnbfpr/2026-08-26-ai-counterfeit-cosmetics.html
1•wgrover•4m ago•0 comments

Rehabilitating Richard

https://analog-antiquarian.net/2026/08/28/rehabilitating-richard/
1•ibobev•5m ago•0 comments

MIT building contaminated with powerful neurotoxin dimethylmercury

https://www.reddit.com/r/mit/comments/1w12gb9/dimethyl_mercury_poisoning/
2•peesem•6m ago•1 comments

Background Image Refraction in CSS

https://blog.master.dev/background-image-refraction-in-css/
1•ibobev•6m ago•0 comments

Danish David beats American and Chinese frontier models

https://huggingface.co/danish-foundation-models/DFM-Mimir
1•ringenesherre•7m ago•0 comments

Hypermedia Systems

https://hypermedia.systems/
1•luispa•8m ago•0 comments

Codex as a Platform

https://developers.openai.com/blog/codex-as-a-platform
1•tin7in•9m ago•0 comments

How I made Rustdoc 33% faster in one week

https://noahlev.org/blog/2026/08/27/making-rustdoc-faster/
1•metrofun•9m ago•0 comments

LocalAI – Run any model – LLMs, vision, voice, image, video – on any hardware

https://github.com/mudler/LocalAI
1•modinfo•10m ago•0 comments

Show HN: A2acast – Let AI agents on different computers work together

https://github.com/husker/a2acast
1•jamesgagan•10m ago•0 comments

Mental bootstrapping enables human-level learning in self-supervised deep models

https://www.science.org/doi/10.1126/sciadv.aea7202
1•sblank•15m ago•0 comments

British Resilience Index

https://britishresilienceindex.com
1•cajunjimi•15m ago•0 comments

Milo Yiannopoulos Detained by ICE in Louisiana

https://www.wired.com/story/milo-yiannopoulos-detained-by-ice-in-louisiana/
4•eecc•16m ago•0 comments

An Anthropic researcher just gave us a peek at self-improving AI

https://techcrunch.com/2026/08/28/an-anthropic-researcher-just-gave-us-a-peek-at-self-improving-ai/
2•sbulaev•16m ago•0 comments

X found 200k fake Chinese accounts for influence operations, how many here?

https://twitter.com/GlobalAffairs/status/2093130747796148634
4•creamedcorn•16m ago•1 comments

The AI Backlash Gets Professional

https://www.theatlantic.com/technology/2026/08/irreplaceable-climate-activists-ai-backlash/688404/
2•voxadam•17m ago•2 comments

Forgotten History of Small Nuclear Reactors

https://spectrum.ieee.org/the-forgotten-history-of-small-nuclear-reactors
3•derriz•17m ago•0 comments

The State of Conversational AI, Q3 2026

https://ethora.com/research/state-of-conversational-ai-2026-q3/
1•phwizard•18m ago•0 comments

Apple announces price increase for Apple TV and Apple One subscriptions

https://9to5mac.com/2026/08/28/apple-announces-price-increase-for-apple-tv-and-apple-one-subscrip...
3•haunter•19m ago•0 comments

AI demands more engineering discipline. Not less

https://charity.wtf/p/ai-demands-more-engineering-discipline
2•fagnerbrack•22m ago•0 comments

Qwen3.8-27B and Radeon R9700 and 13-year-old Pentium = actual good performance

https://mateusznowak.dev/articles/running-qwen38-legacy-hardware/
1•rockymockery•24m ago•1 comments

AppFlowy Authenticated SQL Injection

https://projectblack.io/blog/appflowy-authenticated-sql-injection/
1•metrofun•24m ago•0 comments

The Last Straw: How the AI Race May Deepen America's $40T Debt Crisis

https://abundanist.substack.com/p/the-last-straw
1•devy•25m ago•0 comments

Kingdom IDE – Half IDE and half city builder

http://www.craigloewen.com/blog/2026/08/28/kingdom-ide/
1•craigaloewen•25m ago•0 comments

Show HN: AdRiseLab – I built an AI media buyer for my own Meta ads

https://adriselab.com/blog/what-is-an-ai-performance-marketer
1•canermoraly•26m ago•0 comments

Everything Claude Saw: A Transparent Account of the Chardet v7 Rewrite

http://dan-blanchard.github.io/blog/chardet-rewrite-controversy/
2•wilsonfiifi•28m ago•0 comments