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

Firefox Smart Window

https://www.firefox.com/en-US/smart-window/
2•shutty•2m ago•0 comments

ChatGPT Recommends the Same 3 Companies to Every B2B Buyer. Until They Specify

https://growtika.com/blog/chatgpt-b2b-persona-recommendations
1•Growtika•2m ago•0 comments

Show HN: Wreflecto – word puzzle inspired by the ancient SATOR Square

https://wreflecto.com/mirror
1•nowflux•2m ago•0 comments

'Wagyu' Used to Guarantee Quality Beef. What Are You Paying for Today?

https://www.nytimes.com/2026/04/21/dining/wagyu-beef.html
1•JumpCrisscross•2m ago•0 comments

The Bottleneck Has Moved

https://substack.com/home/post/p-193101671
1•speckx•5m ago•0 comments

CIQ Bets on Compliance: Can Linux Deliver Federal Crypto/Post-Quantum Readiness?

https://futurumgroup.com/insights/ciq-bets-on-compliance-can-enterprise-linux-really-deliver-fede...
1•losgehts•5m ago•0 comments

Software Is Speech: Why Regulators Cannot Invent the Missing Middlemen [pdf]

https://www.coincenter.org/app/uploads/2026/04/Software-is-Speech-Coin-Center.pdf
1•pr337h4m•6m ago•0 comments

Performance of the Wren Programming Language

https://wren.io/performance.html
2•fanf2•6m ago•0 comments

Show HN: A Browser Extension for Testing Content Security Policy

https://csptool.net/
1•bootbloopers•6m ago•0 comments

The Rise of CliffsNotes Cinema

https://www.theatlantic.com/culture/2026/04/book-movie-adaptation-hamlet-wuthering-heights-vibes/...
1•JumpCrisscross•6m ago•0 comments

Meta capturing employee mouse movements, keystrokes for AI training data

https://economictimes.indiatimes.com/tech/technology/meta-to-start-capturing-employee-mouse-movem...
5•dlx•7m ago•0 comments

Google Starts Scanning All Your Photos as New Update Goes Live

https://www.forbes.com/sites/zakdoffman/2026/04/20/google-starts-scanning-all-your-photos-as-new-...
3•ZeidJ•7m ago•0 comments

Show HN: Hydra – Never stop coding when your AI CLI hits a rate limit

https://github.com/saadnvd1/hydra
1•saadn92•8m ago•0 comments

Lookalike3D: Seeing Double in 3D

https://arxiv.org/abs/2603.24713
1•PaulHoule•9m ago•0 comments

Who will monetize truth? [pdf]

https://appliedxl.com/research/who-will-monetize-truth-pdf.pdf
1•JamesSebi•10m ago•0 comments

The Engine, a fictional device to generate permutations of word sets

https://en.wikipedia.org/wiki/The_Engine
2•emigre•10m ago•0 comments

Income Taxes: Where Did the Form 1040 Come From?

https://tedium.co/2026/04/18/tax-forms-history-irs/
1•ohjeez•10m ago•0 comments

The Onion Says It Has Deal to Take over Alex Jones' InfoWars

https://variety.com/2026/digital/news/the-onion-deal-taking-over-alex-jones-infowars-1236726130/
1•Cider9986•11m ago•0 comments

Using Spider-Web Patterns to Determine Toxicity (1995)

https://ntrs.nasa.gov/citations/19950065352
2•adityaathalye•11m ago•0 comments

Astronaut Shares Never-Seen-Before 'Earthset' Video

https://weather.com/science/space/video/earthset-artemis-astronaut-video
1•01-_-•12m ago•0 comments

I built an agent control/safety layer from a real-world pain point

https://github.com/RichardClawson013/Tsukuyomi
1•ROBinTsukuyomi•13m ago•0 comments

Show HN: Design Skills

https://github.com/bergside/awesome-design-skills
2•elwingo1•13m ago•0 comments

Britannica11.org – a structured edition of the 1911 Encyclopædia Britannica

https://britannica11.org/
4•ahaspel•14m ago•1 comments

Trump Media is merging with fusion power company TAE Technologies (2025)

https://techcrunch.com/2025/12/18/trump-media-is-merging-with-fusion-power-company-tae-technologi...
2•maxall4•14m ago•0 comments

Show HN: Check the shutter actuations of any camera by uploading a photo

https://shuttercount.org/
1•ronaldsvilcins•15m ago•0 comments

Show HN: Modern AI client for Mac with agentic tools, clean UI, builtin privacy

https://elvean.app/
1•elvean•15m ago•0 comments

U.S. Considers Financial Support for Oil-Rich UAE

https://www.nytimes.com/2026/04/21/business/economy/us-uae-financial-support.html
3•duxup•16m ago•1 comments

Signal Shot: Verifying the Signal Protocol and Rust Implementation with Lean

https://leodemoura.github.io/blog/2026-4-20-signal-shot-the-platform-is-ready/
1•birdculture•19m ago•0 comments

AI has another security problem

http://200sc.dev/posts/ai-security-apr-2026/
1•speckx•21m ago•0 comments

The skylines of the future will be made of laminated timber

https://grist.org/buildings/the-skylines-of-the-future-will-be-made-of-wood/
1•speckx•26m ago•0 comments