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: Weeny.Cloud – A Linux server for your coding agent's apps

https://weeny.cloud/
1•isaacrolandson•17s ago•0 comments

Frontier quality at 1% of the cost: a production benchmark of LLM classifiers

https://airbnb.tech/ai-ml/frontier-quality-at-1-of-the-cost-a-production-benchmark-of-llm-classif...
1•eivarv•53s ago•0 comments

Ask HN: Is anyone running multi/always-on agents that don't cost a fortune?

1•abejora•2m ago•0 comments

TripleF

https://github.com/ehildt/tripleF
1•ehildt•2m ago•0 comments

I Built Fluxer

https://fluxer.com/blog/how-i-built-fluxer
1•n_plus_1_acc•4m ago•0 comments

Pro-Palestine protestors enter Microsoft datacenter site

https://www.reuters.com/technology/protesters-enter-microsoft-data-centre-site-amsterdam-2026-11-06/
2•dutchbart•4m ago•0 comments

Tesla wants its sworn Cybercab answers to NHTSA kept secret

https://electrek.co/2026/11/05/tesla-cybercab-nhtsa-sworn-answers-confidential/
2•cisc•5m ago•0 comments

Declarative Dragging

https://declarative-dragging.github.io/
1•mpweiher•6m ago•0 comments

Show HN: Lost and Fought – a 90s Style RTS – browser with multiplayer

https://lostandfought.com/
2•drzivil•10m ago•0 comments

Why tradwives are fleeing the movement: I can't undo my past

https://www.theguardian.com/lifeandstyle/2026/nov/04/why-tradwives-are-fleeing-the-movement-i-can...
3•makerdiety•10m ago•1 comments

Algorithm Visualizer

https://alg0.dev/
1•Brysonbw•11m ago•0 comments

DeepSeek Super Agent Just Killed All Agent Harnesses [video]

https://www.youtube.com/watch?v=3DklR44DHnM
1•nvmdbljstm•12m ago•0 comments

Lowvram: A CLI tool to run large AI models in low VRAM GPUs

https://soarhen.com/how-run-ai-in-low-vram/
1•henriquegogo•13m ago•0 comments

A once-controversial idea is advancing understanding of Parkinson's disease

https://www.nature.com/articles/d41586-026-03169-x
1•sohkamyung•18m ago•0 comments

Tesla Winding Down Production of Cybertruck, Musk Says

https://www.wsj.com/business/autos/tesla-winding-down-production-of-cybertruck-musk-says-89df7158
2•sebastian_z•19m ago•0 comments

GSoC 2026 Showcase

https://www.swift.org/blog/gsoc-2026-showcase/
1•frizlab•19m ago•0 comments

Getting traffic from aocr.org? It's ByteDance

https://tin.computer/blog/aocr-org-referrer-bot
1•dcastm•20m ago•0 comments

Vals AI found a critical safety and alignment issue in recent models

https://twitter.com/ValsAI/status/2118473836710760816
1•fscaramuzza•20m ago•0 comments

Salon, Pioneer of Digital Journalism Founded in 1995, Shuts Down

https://www.nytimes.com/2026/11/05/business/media/salon-online-magazine-shutters.html
1•bookofjoe•20m ago•1 comments

From the Vault to Your Library

https://www.ea.com/news/from-the-vault-to-your-library
1•mariuz•21m ago•0 comments

Why Bloat Is Still Software's Biggest Vulnerability

https://spectrum.ieee.org/lean-software-development
1•vanschelven•23m ago•1 comments

A Fake Job Interview Led to the $6.34B Binance Hack

https://jsdev.space/binance-hack-interview/
1•javatuts•23m ago•0 comments

A Mathematician Is Chasing Eclipses with Algorithms and Cameras

https://spectrum.ieee.org/2026-solar-eclipse
1•sohkamyung•23m ago•0 comments

A medieval map mystery may be solved

https://bigthink.com/strange-maps/antique-sources-for-portolan-charts/
1•sohkamyung•24m ago•0 comments

Apple's predictive text restrictions include 'Dictator Trump' and 'Sleepy Joe'

https://www.reuters.com/business/retail-consumer/apples-predictive-text-restrictions-include-dict...
4•ag8•24m ago•0 comments

Activists break through fences at Microsoft's data center site in Amsterdam

https://nos.nl/artikel/2638275-activisten-breken-door-de-hekken-van-terrein-datacenter-microsoft-...
1•hnsr•25m ago•0 comments

Tesla winds down Cybertruck production after years of poor sales in few markets

https://www.msn.com/en-us/technology/tech-companies/tesla-to-wind-down-cybertruck-production-afte...
7•PLenz•29m ago•3 comments

Enough Phone: A new small phone

https://enoughphone.com/
1•simon-am•29m ago•0 comments

Ask HN: How's your home-cooked software revolution going?

2•nihakue•30m ago•1 comments

TWU Opposes Amtrak Passengers Bringing Guns on Trains Starting Next Year

https://www.twu.org/twu-opposes-amtrak-passengers-bringing-guns-on-trains-starting-next-year/
1•geox•31m ago•0 comments