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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•7mo ago
Agreed

Human-specific genes regulate key gene mutated in autism spectrum (2024)

https://erc.europa.eu/news-events/news/scientists-discover-unexpected-link-between-genes-involved...
1•bryanrasmussen•8m ago•1 comments

There's nothing you and I won't do

https://leancrew.com/all-this/2025/12/theres-nothing-you-and-i-wont-do/
1•aebtebeten•14m ago•0 comments

Brass Crosby

https://en.wikipedia.org/wiki/Brass_Crosby
1•zeristor•18m ago•1 comments

The Great Giana Sisters

https://en.wikipedia.org/wiki/The_Great_Giana_Sisters
1•laktak•20m ago•1 comments

Show HN: CodinIT, local open-source Lovable alternative (Electron desktop app)

https://github.com/codinit-dev/codinit-dev
1•Gerome24•26m ago•0 comments

Blackstone leads investment in data-security firm Cyera at $9B valuation

https://www.reuters.com/business/blackstone-leads-investment-data-security-firm-cyera-9-billion-v...
1•nsoonhui•26m ago•0 comments

Show HN: Minish – A small property-based testing framework for Zig

2•habedi0•28m ago•0 comments

Ask HN: Serverless Internal APIs and Orchestration

1•kinj28•29m ago•0 comments

Show HN: Logic-Gate Protocols for LLMs – A System Engineering Approach [pdf]

https://docs.google.com/document/d/18aIWCQuPluRqkQYrsRxTL00F-vbqEh_in8dtBenPWhk/edit?usp=drivesdk
1•the_sage_light•31m ago•1 comments

Self Evolving Live SWE Agent

https://github.com/OpenAutoCoder/live-swe-agent
1•dbgrman•31m ago•0 comments

"We need to start protesting " AI expert Tristan Harris [video]

https://www.youtube.com/watch?v=BFU1OCkhBwo
1•nothrowaways•34m ago•1 comments

Thing, Creature, or Mirror? The Standards We Set for AI

https://www.msthgn.com/articles/thing-creature-or-mirror-the-standards-we-set-for-ai
1•msthgn•35m ago•1 comments

Open Source Historical LLM trained exclusively on 19th century text

https://github.com/haykgrigo3/TimeCapsuleLLM
1•mhjkl•36m ago•0 comments

The ancient Trial of the Pyx is moving to Mansion House in 2026

https://www.ianvisits.co.uk/articles/the-ancient-trial-of-the-pyx-is-moving-to-mansion-house-in-2...
2•zeristor•38m ago•0 comments

Code Orange: Fail Small – our resilience plan following recent incidents

https://blog.cloudflare.com/fail-small-resilience-plan/
1•cloudflare728•42m ago•0 comments

Fourteen numbers every developer should know (2013)

https://www.infoarena.ro/blog/numbers-everyone-should-know
1•vismit2000•43m ago•0 comments

Airbus to migrate critical apps to a sovereign Euro cloud

https://www.theregister.com/2025/12/19/airbus_sovereign_cloud/
13•saubeidl•44m ago•0 comments

The Great Decentralization Swindle: Every Protocol but One Betrays Its Promise

https://habla.news/a/naddr1qqgrqvf4v5enxcenvg6kzep4xverzqghwaehxw309aex2mrp0yh8qunfd4skctnwv46z7q...
1•nout•46m ago•0 comments

SA Surgeon Performs Successful Middle Ear Transplant Using 3D Printing (2019)

https://3dprint.com/245318/south-african-surgeons-perform-a-successful-middle-ear-transplant-usin...
2•thunderbong•48m ago•0 comments

Show HN: Got tired of searching for AI news daily so I built my own AI news page

https://dreyx.com/
1•lilsquid•51m ago•2 comments

Breaking LZW: Interactive Exploration of a PDF Decompression DoS

https://aydinnyunus.github.io/2025/12/20/cve-2025-66019-pypdf-lzw-dos/
1•runtimepanic•52m ago•1 comments

A train-sized tunnel is now carrying electricity under South London

https://www.ianvisits.co.uk/articles/a-train-sized-tunnel-is-now-carrying-electricity-under-south...
12•zeristor•54m ago•3 comments

Skills Officially Comes to Codex

https://developers.openai.com/codex/skills/
2•rochansinha•1h ago•1 comments

Something Big Happened in 1998

https://openpath.quest/2025/something-big-happened-in-1998/
2•Tomte•1h ago•0 comments

AI Bathroom Monitors? Welcome to America's New Surveillance High Schools

https://www.forbes.com/sites/thomasbrewster/2025/12/16/ai-bathroom-monitors-welcome-to-americas-n...
1•harambae•1h ago•0 comments

Understanding Conversational AI: Philosophy, Ethics, and Social Impact of LLMs

https://www.ubiquitypress.com/books/m/10.5334/bde
1•spidersouris•1h ago•0 comments

The night everything at DCA went wrong

https://theaircurrent.com/aviation-safety/dca-crash-jan-29-special-report/
2•worik•1h ago•0 comments

Show HN: ZDS – Zig Data Structures

https://github.com/asheshvidyut/zds
3•absolute7•1h ago•0 comments

Debian adds LoongArch as officially supported architecture

https://lists.debian.org/debian-devel-announce/2025/12/msg00004.html
19•cbmuser•1h ago•2 comments

NTP at NIST Boulder Has Lost Power

https://lists.nanog.org/archives/list/nanog@lists.nanog.org/message/ACADD3NKOG2QRWZ56OSNNG7UIEKKT...
26•lpage•1h ago•3 comments