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

HDR output arrives in Godot 4.7

https://godotengine.org/article/hdr-output-arrives-in-godot-4-7/
1•__natty__•2m ago•0 comments

Firestarter malware survives Cisco firewall updates, security patches

https://www.bleepingcomputer.com/news/security/firestarter-malware-survives-cisco-firewall-update...
2•Brajeshwar•5m ago•0 comments

The Papers of Friedrich August von Hayek Now Accessible Online

https://www.hoover.org/news/papers-friedrich-august-von-hayek-now-accessible-online
1•paulpauper•8m ago•0 comments

Prediction Market Accuracy: Crowd Wisdom or Informed Minority?

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6617059
1•Anon84•8m ago•0 comments

Hedging the Singularity

https://twitter.com/achenfinance/status/2046612004870164671
1•paulpauper•9m ago•0 comments

Viewpoint Diversity

https://casssunstein.substack.com/p/viewpoint-diversity
1•paulpauper•10m ago•0 comments

GPT-5.5-Pro did worse in BullshitBench

https://twitter.com/petergostev/status/2047773402090426548
2•amrrs•11m ago•0 comments

Agent regression testing: cutting detection from days to minutes

https://www.polarity.so/blogs/agent-regression-testing-days-to-minutes
1•mihaipo•12m ago•0 comments

IPv7: Identity-Centric Network Protocol – IETF Draft and Rust Implementation

https://datatracker.ietf.org/doc/draft-subbiah-ipv7/
10•arunkumarunique•13m ago•2 comments

Show HN: Video Messaging for Work

https://flowylabs.ai/llink
2•talksik•21m ago•0 comments

Everyone in the world has to take a private vote by pressing red or blue

https://twitter.com/waitbutwhy/status/2047710215265730755
2•theharrychen•21m ago•0 comments

Show HN: Kloak, A secret manager that keeps K8s workload away from secrets

https://getkloak.io/
1•neo2006•21m ago•0 comments

Hermes.md in Git commit messages causes requests to route to extra usage billing

https://github.com/anthropics/claude-code/issues/53262
1•adunk•33m ago•0 comments

Show HN: Bulk URL Checker – check 75k URLs from any LLM via MCP

https://bulkurlchecker.com
1•carlosofscience•33m ago•1 comments

The Lunar Gateway's primary modules are corroded

https://arstechnica.com/space/2026/04/well-this-is-embarrassing-the-lunar-gateways-primary-module...
2•simonebrunozzi•33m ago•0 comments

Greenfield and Iterative deployment – By superpowers creator

https://primeradiant.com/blog/2026/greenfield-and-iterative-development.html
1•sorcercode•35m ago•0 comments

Show HN: I benchmarked how good LLMs are at proofreading English

https://github.com/reviseio/errata-bench
2•artursapek•37m ago•1 comments

Turkey to Ban Anonymous VPNs

https://reclaimthenet.org/turkey-to-ban-anonymous-vpns
4•Cider9986•37m ago•1 comments

Show HN: Read and Echo – Turn any text into structured language practice

2•jondones•41m ago•0 comments

Paperclip – a ticket-based multi AI agent orchestrator

https://github.com/paperclipai/paperclip
1•Flundstrom2•42m ago•0 comments

Three Constraints Before I Build Anything

https://jordanlord.co.uk/blog/3-constraints/
1•nervous_north•43m ago•0 comments

Observational constraints project a ~50% AMOC weakening by end of this century

https://www.science.org/doi/10.1126/sciadv.adx4298
2•geox•45m ago•0 comments

Today's harness is Tomorrow's Prompt

https://tanay.co.in/blog/todays-harness-is-tomorrows-prompt
2•tangoalpha•46m ago•1 comments

Show HN: Mdspec – auto sync your md files from GitHub repos with wikis

https://mdspec.dev
2•zameermfm•46m ago•0 comments

Show HN: Get an Ethereum wallet for your agent with one API call, no OAuth

https://aethergent.com
2•AgentNews•48m ago•1 comments

A Common Diabetes Drug May Hold the Key to Stopping HIV from Coming Back

https://scitechdaily.com/a-common-diabetes-drug-may-hold-the-key-to-stopping-hiv-from-coming-back/
3•01-_-•51m ago•1 comments

Different Perspectives of Memory System Simulation

https://arxiv.org/abs/2604.16965
2•matt_d•53m ago•0 comments

Are We in Control of AI?

https://members.sigmazero.cc/posts/are-we-in-of-ai-156344301
2•sigmazero•53m ago•0 comments

Claude Web UI is down

https://claude.ai/recents
5•zkmon•54m ago•2 comments

AI agents that argue with each other to improve decisions

https://github.com/rockcat/HATS
2•rockcat12•54m ago•0 comments