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

Lawyers could face sanctions including costs for fake citations in court cases

https://www.irishtimes.com/crime-law/2026/08/05/lawyers-could-face-sanctions-including-costs-if-a...
1•1vuio0pswjnm7•2m ago•0 comments

Bros and Cons

https://bros-and-cons.com/
1•bookofjoe•4m ago•0 comments

Why a Generic Open-Source Project Cant Also Be a Successful Civil Rights Project

https://chrismcdonough.substack.com/p/why-a-generic-open-source-project
1•sagacity•5m ago•0 comments

Lava Lamps and Internet Encryption

https://www.cloudflare.com/learning/ssl/lava-lamp-encryption/
1•kamphey•5m ago•0 comments

Rowly – a free open-source supabase security scanner

https://rowly.me
1•popkoren•7m ago•0 comments

Mayflies and the Toxic Side of "Carpe Diem"

https://decodingvibes.com/blog/mayflies-and-the-toxic-side-of-carpe-diem/
1•altmanaltman•11m ago•0 comments

The Evolution of Go Generics: A Retrospective from 1.18 to 1.27

https://towardsdev.com/the-evolution-of-go-generics-a-retrospective-from-1-18-to-1-27-f11c06513ee...
1•cheikhdev•13m ago•0 comments

Kill Switch (X-Files episode)

https://en.wikipedia.org/wiki/Kill_Switch_(The_X-Files)
2•theopsimist•17m ago•0 comments

Colors' Package Skills Catalog is live

https://www.getcolors.ai/skills
1•amiorin•17m ago•0 comments

Ask HN: How has AI helped your personal algorithmic trading strategy?

2•brcmthrowaway•17m ago•0 comments

Georgia police officers fired after Flock camera misuse

https://www.wtoc.com/2026/08/07/savannah-police-department-fires-6-employees-over-flock-safety-sy...
5•chirau•18m ago•1 comments

Ask HN: What would convince you that a closed source messaging app is secure?

2•Brandon-Coll•19m ago•0 comments

How to Find the Most Talented People on Earth (Tyler Cowen, 2025)

https://www.thefp.com/p/the-fives-rules-of-finding-talent
1•ronfriedhaber•20m ago•0 comments

Framework for Digital Media Lifespans and EOL Safe Harbors

https://github.com/jbenoitdigitalpolicy/digital-media-lifespan-framework
1•jbenoitdigitalp•21m ago•0 comments

Search Engine – MP3Juice

https://ppev.co.za/search/yimi-umaqondana-mahostela-97
2•figelandadrian•24m ago•0 comments

Reducing Graphics API Complexity: A Clean Slate Design for Modern GPUs

https://www.youtube.com/watch?v=aQv9pUl9PBM
1•coffeeaddict1•25m ago•0 comments

Edge Browser: End Date for Manifest V2 Set – End for uBlock Origin

https://www.heise.de/en/news/Edge-Browser-End-date-for-Manifest-V2-set-End-for-uBlock-Origin-1140...
2•wodniok•26m ago•0 comments

Ship to Burn

https://huntersoftwareconsulting.com/posts/2026-08-09-ship-to-burn/
2•mooreds•29m ago•0 comments

I think I found the best way to find a baby name

https://www.kennyalami.com/mamou
2•kennyalami•30m ago•1 comments

Show HN: Pacific Slate: a self-hosted, model-agnostic multi-agent AI assistant

https://pacslate.com/
5•badwx•34m ago•0 comments

Show HN: Wardline, a Go proxy that auto-blocks compromised AI agents

https://github.com/kabirnarang39/wardline
2•kabirnarang39•34m ago•0 comments

Is it all just vapourware?

https://kirahowe.com/2026/aug/8/is-it-all-just-vapourware
39•Lyngbakr•34m ago•22 comments

I've yet to see any"My AI went rogue and caused us to recognise a workers union

https://mastodon.neilzone.co.uk/@neil/117061512483182546
32•severine•36m ago•8 comments

Romania Extends Nuclear Reactor Output by Nine Days After Danube Blasts

https://www.bloomberg.com/news/articles/2026-08-09/romania-extends-reactor-output-by-nine-days-af...
4•alephnerd•38m ago•0 comments

TubeStream – Turn a YouTube channel into a podcast you can listen to

https://github.com/GhostService/tubestream
2•ghostservice•38m ago•0 comments

Show HN: Form cohorts in your city for study and business

https://chimera.university/event/
2•celestiallylvd1•40m ago•0 comments

Codreo AI Mail – AI Outlook Email Assistant

https://codreo.az/products/codreo-ai-mail/
2•codreotech•49m ago•0 comments

Tuxedo No. 2 – Cocktail recipes

https://tuxedono2.com
5•smartmic•49m ago•0 comments

Endless Execution

https://world.hey.com/dhh/endless-execution-4157e065
4•therepanic•51m ago•0 comments

New Zealand lost its music media, and what we're building to replace it

https://propelmusic.co.nz/articles/the-sound-went-quiet-nz-music-media
15•berghoffer•55m ago•1 comments