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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•8mo ago
Agreed

Conus Geographus

https://en.wikipedia.org/wiki/Conus_geographus
1•thunderbong•3m ago•0 comments

Make TVs Great Again

https://spyglass.org/apple-television/
1•RickJWagner•3m ago•0 comments

Anthropic CEO's Chilling Prediction

https://www.hindustantimes.com/trending/us/anthropic-ceos-chilling-prediction-dario-amodei-says-w...
1•meistro•4m ago•1 comments

UK Tech Director Disabled After Gaza War Spine Injury

https://chuffed.org/project/urgent-nabil-medical
1•bvdsg•6m ago•0 comments

A terminal solution to the browser wars

https://www.theregister.com/2026/01/02/brow6el_browser_terminal/
1•geox•6m ago•0 comments

Compile Git Contributions to What_did_I_get_done_last_week.md

https://world.hey.com/apetrov/compile-git-contributions-to-what_did_i_get_done_last_week-md-7a1d8ab0
1•apetrov•7m ago•0 comments

What software businesses worked in the early Internet? Can they work again?

1•tsingy•7m ago•0 comments

High Throughput Compression of Double-Precision Floating-Point Data (2007) [pdf]

https://userweb.cs.txstate.edu/~burtscher/papers/dcc07a.pdf
1•tosh•7m ago•0 comments

Show HN: Codnaut – Finding the right AI coding tool shouldn't be this hard

https://www.codnaut.com/en
1•nio5787•7m ago•1 comments

ChatGPT: When two years of academic work vanished with a single click

https://www.nature.com/articles/d41586-025-04064-7
1•doener•9m ago•0 comments

ClickHouse: Specialized Codecs

https://clickhouse.com/docs/sql-reference/statements/create/table#specialized-codecs
1•tosh•9m ago•0 comments

Isometric NYC

https://cannoneyed.com/projects/isometric-nyc
2•Dowwie•10m ago•0 comments

Unpopular Essays (1921) [pdf]

https://russell-j.com/cool/UE_1950.pdf
1•jruohonen•10m ago•0 comments

Malicious AI swarms can threaten democracy – Science

https://www.science.org/doi/10.1126/science.adz1697
1•Anon84•10m ago•0 comments

Justice Department Opens Criminal Probe into Deel/Rippling Spy Allegations

https://www.wsj.com/us-news/law/justice-department-opens-criminal-probe-into-silicon-valley-spy-a...
1•JumpCrisscross•11m ago•0 comments

Discovering My Talk

https://shkspr.mobi/blog/2026/01/discovering-my-talk/
2•blenderob•12m ago•0 comments

Radicle: The Sovereign Forge

https://radicle.xyz
3•ibobev•13m ago•0 comments

Acorn Archimedes A3000 Replica PCB

https://lectronz.com/products/acorn-a3000
2•ibobev•13m ago•0 comments

A History of TV Programming (BBC Based)

https://www.theguardian.com/tv-and-radio/2026/jan/23/television-100-years-old-biggest-tv-moments-...
2•zabzonk•13m ago•0 comments

AGENTS.md as a Dark Signal

https://joshmock.com/post/2026-agents-md-as-a-dark-signal/
2•JoshMock•13m ago•0 comments

Sakana AI Announces Strategic Partnership with Google

https://sakana.ai/google/#en
2•hardmaru•15m ago•0 comments

Job Applicants Sue to Open 'Black Box' of A.I. Hiring Decisions

https://www.nytimes.com/2026/01/21/business/ai-hiring-tools-lawsuit-eightfold-fcra.html
2•bookofjoe•18m ago•1 comments

I built a tool to email my private keys to my wife if I die

https://www.deadhandprotocol.com/
2•maxcomperatore•19m ago•0 comments

Anari – Cross-Platform 3D Rendering Engine API

https://www.khronos.org/anari/
2•ibobev•19m ago•0 comments

Intel Shares Fall on Swing to Loss

https://www.wsj.com/business/earnings/intel-intl-q4-earnings-report-2025-9271b096
1•JumpCrisscross•19m ago•0 comments

Show HN: Codify MCP – Encode browser actions into custom AI tools

https://www.npmjs.com/package/codify-mcp
1•cybrefly•20m ago•0 comments

Apprise Reaching 100M+ Downloads – Notifications for just about any platform

https://appriseit.com/
1•l2g•20m ago•1 comments

Show HN: ENM Relationship AI – Context-aware communication coach for polyamory

https://www.enmrelationship.app/
1•clorisye•21m ago•1 comments

Elon Musk Is Diving Back into U.S. Politics

https://www.wsj.com/politics/elections/elon-musk-2026-midterms-1890c056
2•JumpCrisscross•21m ago•0 comments

Show HN: Open-source alternative to n8n's cloud AI assistant (VS Code Extension)

https://github.com/EtienneLescot/n8n-as-code
1•etienneai•22m ago•1 comments