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

Silicon Valley misreads science fiction and undermines democracy

https://techcrunch.com/2026/08/09/historian-jill-lepore-says-the-tech-industry-is-led-by-bad-read...
1•evo_9•23s ago•0 comments

Show HN: Find your favorite new euro bill design

https://cash-o-mat.eu
1•zinngr•3m ago•0 comments

Relying on Go

https://antonz.org/relying-on-go/
1•ibobev•4m ago•0 comments

Post-Quantum Cryptography for Healthcare Professionals

https://www.udemy.com/share/10fqoh3@u2lyBGY6xSM_oqVHEbc7zOfwUtenK-axdeRp6AJhoeC2bCFClJHg0ppXGe3tA...
1•remopulcini•4m ago•0 comments

Exploring input-output segmented algorithms

https://boostedcpp.net/2026/08/06/neoclassical-c-2-exploring-input-output-segmented-algorithms/
1•ibobev•4m ago•0 comments

Map Club. Trade a Google Maps list you love for the ones you need

https://joinmapclub.com
1•rustyr•5m ago•0 comments

Human Shadows in Machine Minds: Study Interpreting AI Responses to Rorschach

https://mental.jmir.org/2026/1/e88186
1•Bluestein•5m ago•0 comments

Windows 11's built-in Weather app wastes more than 1 GB of RAM

https://www.notebookcheck.net/Windows-11-s-built-in-Weather-app-wastes-more-than-1-GB-of-RAM.1364...
1•akyuu•7m ago•0 comments

Tom Stanton's supersonic trebuchet breaks sound barrier with gravity alone

https://www.techeblog.com/tom-stanton-supersonic-trebuchet/
2•Thorondor•9m ago•0 comments

My app for Shipaton 2026: Buildhorn

https://darrylbayliss.net/im-building-for-shipaton-2026/
1•darryl_bayliss•10m ago•1 comments

Computer maker Framework notifies 'all customers' of a data breach

https://techcrunch.com/2026/08/07/computer-maker-framework-notifies-all-customers-of-a-data-breach/
1•akyuu•10m ago•0 comments

Using Program Images as Flight Recorders over Logs

https://yogthos.net/posts/2026-08-07-portable-jolt.html
1•birdculture•12m ago•0 comments

Show HN: StoneBuild – a build tool in Go for your projects in any languages

https://github.com/tigerlang/stonebuild
1•tiger-langer•12m ago•0 comments

A Tale of Two Projects

https://www.semanticarts.com/a-tale-of-two-projects-healthcare-gov-and-healthsherpa/
1•teleforce•13m ago•0 comments

RunSnack – Share your GPU with a link. P2P, no accounts, no cloud

https://runsnack.com
1•NaotoMatsumoto•15m ago•0 comments

Better Gaussian Splatting in Julia

https://pxl-th.github.io/blog/better-gs-julia/
2•pxl-th•17m ago•0 comments

The music casino: How prediction markets are threatening Spotify's No. 1

https://english.elpais.com/culture/2026-08-09/the-music-casino-how-prediction-markets-are-threate...
1•geox•18m ago•0 comments

Using AI without losing your critical thinking

https://swiftrocks.com/using-ai-without-losing-critical-thinking
2•rockbruno•20m ago•1 comments

Why Normal People Aren't Using AI Agents

https://www.wired.com/story/why-normal-people-arent-using-ai-agents/
2•elo2000•20m ago•0 comments

Show HN: Make a Fake MySpace Profile

https://allthedamn.tools/myspace-profile-generator/
1•kilroy123•22m ago•0 comments

Q&A on the Book Software Wasteland

https://www.infoq.com/articles/book-review-software-wasteland/
1•teleforce•23m ago•0 comments

The sneaky kind of cholesterol that may be threatening your heart health

https://www.washingtonpost.com/wellness/2026/08/08/what-lipoproteina-test-can-tell-you-about-your...
1•elo2000•25m ago•0 comments

Pentagon gives contractors 21 days for plans to boost weapons production

https://www.cnbc.com/2026/08/09/pentagon-defense-contractors-weapons-production.html
3•ilamont•26m ago•0 comments

Hackers breach TrueConf to trojanize client installers with backdoors

https://www.bleepingcomputer.com/news/security/hackers-breach-trueconf-to-trojanize-client-instal...
1•Brajeshwar•26m ago•0 comments

What Happened: OpenAI and Hugging Face

https://thezvi.substack.com/p/what-happened-openai-and-huggingface
1•maxutility•27m ago•0 comments

PEP 784 – Adding Zstandard to the standard library

https://peps.python.org/pep-0784/
2•tosh•27m ago•0 comments

CallPrep

https://callprep.app
1•AIcallprepapp•28m ago•0 comments

Architecture Design Skill

https://github.com/Xm3Ga/architecture-design
1•Xm3Ga•28m ago•0 comments

Getting things done (in small increments) (2022)

https://dubroy.com/blog/getting-things-done-in-small-increments/
1•downbad_•28m ago•0 comments

Debricking a GL-MT2500A Brume 2 with UART

https://iraklijani.com/blog/debricking-a-gl-mt2500a-brume-2-with-uart/
1•ika•33m ago•1 comments