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

Show HN: Self-host open-source LLMs on AWS with scale-to-zero

https://github.com/paguasmar/veloxml-deploy
1•paguasmar•1m ago•0 comments

Injected and Actively Inducing Side-Channel Leakage Using

https://arxiv.org/abs/2609.04785
1•sbulaev•1m ago•0 comments

It Sucks

https://arman.posthaven.com/it-sucks
1•armanj•3m ago•0 comments

Testing race conditions with mem access tracing and stack-based delay injection

https://projectzero.google/2026/09/maccconc-race-condition.html
1•mfrw•7m ago•0 comments

The Dark Side of Mindfulness

https://www.theatlantic.com/ideas/2026/09/meditation-willoughby-britton-downsides/688474/
1•shadow28•7m ago•1 comments

Google Will 'Degrade' Search in Europe to Avoid EU Fines

https://www.engadget.com/2253229/google-will-degrade-search-in-europe-to-avoid-eu-fines/
1•rdmuser•12m ago•0 comments

Show HN: Micro-journaling for better understanding your moods

https://lutino.app/
1•dinglidingli•14m ago•0 comments

Lapis One – A Dedicated Computer for Your Agents – Pamir

https://www.pamir.ai/
1•tortilla•19m ago•0 comments

Getting 50 GB/S Back Out of the Neural Engine

https://eiln.github.io/posts/ane-dma.html
1•eiln•25m ago•1 comments

New report shows the economic toll of ICE raids

https://text.npr.org/nx-s1-5955787
1•1659447091•26m ago•0 comments

Contrapuntal Consciousness

https://aeon.co/essays/what-the-music-of-bach-can-teach-us-about-consciousness
1•bryanrasmussen•28m ago•0 comments

Apple Acquires Sonera, Brainwave Sensing Technology Startup

https://www.macrumors.com/2026/09/08/apple-acquires-sonera/
1•mgh2•31m ago•0 comments

Ciriosidades

https://oii.io/xtQEXqV
1•yrodriiguez•35m ago•0 comments

Show HN: Glossy Button Creator – visually design buttons, copy the HTML/CSS/SVG

https://algolassi.online/developer-tools/css-button-editor/
1•noobplus•35m ago•0 comments

TrinamiX Sues Apple over Alleged Face ID Patent Infringement

https://www.macrumors.com/2026/09/08/apple-sued-over-face-id-patent-infringement/
1•mgh2•35m ago•0 comments

The Cheapest Antivirus Protection

http://miod.online.fr/software/msdos/anodevir.html
1•zdw•37m ago•0 comments

Mysterious x86 CPU Has APX, X86S Where Intel Left Off for LegacyFree x86

https://www.phoronix.com/news/x86-CPU-With-APX-x86S
2•initramfs•43m ago•0 comments

The Bitter Lesson – Richard Sutton(2019)

http://www.incompleteideas.net/IncIdeas/BitterLesson.html
1•o4c•43m ago•0 comments

Dueling Court Rulings Leave Missouri's Congressional Races in Chaos

https://www.nytimes.com/2026/09/08/us/politics/supreme-court-missouri-congressional-map.html
2•ChrisArchitect•43m ago•1 comments

Lecture notes in fluid mechanics: From basics to the millennium problem

https://arxiv.org/abs/1407.3162
1•JumpCrisscross•44m ago•0 comments

Show HN: Making an app to organize all basic aspects of modern life

https://demo.ontoplano.com
2•chedieck•50m ago•0 comments

Making your data ready for agentic AI

https://martinfowler.com/articles/making-data-ready-for-agentic-ai.html
2•deepmem•50m ago•0 comments

OpenAI's AGI number came from a harness, not the model

https://thenextweb.com/news/openai-astra-arc-agi-3-harness-62-7-vs-99-9-benchmark-revisions
2•mjshashank•51m ago•1 comments

Robots-check: see what your robots.txt is serving (Cloudflare AI Crawl Control)

https://github.com/janibert1/robots-check
1•janibert09•53m ago•0 comments

Transformer-Like Models for Z1

https://extropic.ai/writing/z1t/
2•gmays•53m ago•0 comments

Two dire warnings from Terence Tao and from someone who just quit Anthropic

https://garymarcus.substack.com/p/two-dire-warnings-one-from-terence
1•nativeit•54m ago•1 comments

Show HN: Raven – Encrypted messages hidden inside ordinary text

https://sendraven.ink
4•willhieb•56m ago•0 comments

What Has to Arrive for Us to Call It AGI?

https://rainbowcity.substack.com/p/35-what-exactly-has-to-arrive-for
1•Caelus9•57m ago•0 comments

Mistakes engineers make in large established codebases

https://www.seangoedecke.com/large-established-codebases/
1•shahzor30•58m ago•0 comments

Show HN: Headspace themed windows media player looking Spotify player for macOS

https://twitter.com/barre_of_lube/status/2097516376483373140
1•barrel_of_lube•59m ago•0 comments