frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•11mo 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•11mo 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•11mo 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•11mo 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•11mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

Post-Quantum VPN Based on QUIC

https://github.com/quincy-rs/quincy
1•M0dEx•2m ago•0 comments

Virgin Galactic reveals new ship, but it's running out of time and cash

https://arstechnica.com/space/2026/05/the-suborbital-space-tourism-industry-is-on-life-support/
1•rbanffy•4m ago•0 comments

What to do before quantum computers break today's encryption (Cloudflare)

https://www.youtube.com/watch?v=DHIyAbLuQyg
1•emot•6m ago•0 comments

When everyone has AI and the company still learns nothing

https://www.robert-glaser.de/when-everyone-has-ai-and-the-company-still-learns-nothing/
3•youngbrioche•6m ago•0 comments

Making your developer platform agent-ready

https://hookdeck.com/blog/developer-platform-agent-ready
1•leggetter•9m ago•0 comments

A blueprint for using AI to strengthen democracy

https://www.technologyreview.com/2026/05/05/1136843/ai-democracy-blueprint/
1•omer_k•11m ago•0 comments

Content for Content's Sake

https://lucumr.pocoo.org/2026/5/4/content-for-contents-sake/
1•vismit2000•12m ago•0 comments

Show HN: Dittongo: The Shape Shifting App

https://dittongo.app/
1•fabio_ca•13m ago•0 comments

[not serious] World's most honest customer support widget

https://nocustomersupport.com/
1•utkarsh_apoorva•16m ago•0 comments

Show HN: Claude Relay – local Claude Code sessions message each other

https://github.com/innestic/claude-relay
1•vildanbina•17m ago•2 comments

Jensen Huang – Will Nvidia's moat persist? [video]

https://www.youtube.com/watch?v=Hrbq66XqtCo
1•rguiscard•19m ago•0 comments

Elasticsearch Workflows GA

https://www.elastic.co/security-labs/elastic-workflows-ga-9-4
1•shahargl•20m ago•0 comments

Competing Biases Underlie Overconfidence and Underconfidence in LLMs

https://www.nature.com/articles/s42256-026-01217-9
1•not_a_feature•22m ago•1 comments

Planning My Kubernetes Homelab

https://www.jonashietala.se/blog/2026/05/05/planning_my_kubernetes_homelab/
1•lawn•26m ago•0 comments

Show HN: I built Pagome – SEPA payment links via GiroCode QR (free, no server)

https://pagome.com
2•urbanisierung•29m ago•1 comments

Toyota built a $10B private utopia–what's going on in there?

https://arstechnica.com/cars/2026/05/inside-toyotas-10b-private-utopia-big-ideas-few-people-camer...
1•rbanffy•31m ago•0 comments

Show HN: Memex, Claude memory via local RAG (MCP, offline embeddings)

https://memex-cli.vercel.app/
1•bboydart•34m ago•0 comments

Astronomers find atmosphere around a solar system object that shouldn't have one

https://www.cnn.com/2026/05/04/science/kuiper-belt-object-atmosphere
3•reconnecting•35m ago•0 comments

Turn a feature spec into reviewed, merged code with bounded AI agents

https://github.com/alex-reysa/pm-go
1•alexreysa•37m ago•0 comments

What is the best CTF Hosting Platform?

1•Hannah_Adam•39m ago•0 comments

China Opens Rocket Launches to International Satellites

https://www.china-in-space.com/p/china-opens-dozens-of-rocket-launches
5•JPLeRouzic•41m ago•0 comments

APIs as infrastructure: future-proofing Stripe with versioning (2017)

https://stripe.com/blog/api-versioning
1•corentin88•41m ago•0 comments

How to Test a Salesforce Experience Aura Site Like an Apex Predator

https://www.reco.ai/blog/salesforce-experience-site-pentest-apex-predator
1•llmacpu•41m ago•0 comments

DHS Demanded Google for Data on Canadian's Activity, Location over Anti-ICE

https://archive.is/2026.05.04-155719/https://www.wired.com/story/dhs-demanded-google-surrender-da...
2•exceptione•42m ago•1 comments

LinkedIn locks your GDPR rights behind a paywall

https://noyb.eu/en/linkedin-locks-your-gdpr-rights-behind-paywall
24•doener•43m ago•1 comments

Are Installers Dead?

https://www.exasol.com/blog/are-installers-dead/
9•fwberlin•46m ago•1 comments

Current AI Custom Prompt

https://twitter.com/pmarca/status/2051374498994364529
1•tosh•47m ago•0 comments

OpenAI and Anthropic launch ventures to speed enterprise AI adoption

https://www.sofx.com/openai-and-anthropic-launch-rival-pe-joint-ventures-to-address-enterprise-ai...
2•01-_-•49m ago•0 comments

Pg_sorted_heap 0.13.0 Released

https://www.postgresql.org/about/news/pg_sorted_heap-0130-released-3289/
1•iaziz786•49m ago•0 comments

MCP-Sync: One Config File to Rule Them All

https://medium.com/@vektormemory/mcp-sync-one-config-file-to-rule-them-all-8fa0837fc4c8
1•vektormemory•51m ago•0 comments