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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

Cees Nooteboom, Dutch author, dies aged 92

https://www.theguardian.com/books/2026/feb/11/cees-nooteboom-dutch-author-dies-aged-92
1•Archelaos•2m ago•0 comments

Ask HN: Do you used a cloud based dev environment?

1•asdev•3m ago•0 comments

Instagram Chief Says Social Media Is Not 'Clinically Addictive'

https://www.nytimes.com/2026/02/11/technology/adam-mosseri-instagram-addiction-trial.html
1•greenburger•4m ago•0 comments

New AI Sensor 'Sniffs' Out Spectral Targets

https://newscenter.lbl.gov/2026/02/11/new-ai-sensor-sniffs-out-spectral-targets/
1•gnabgib•5m ago•0 comments

We Forked Supabase to Fix Self-Hosted Postgres Experience

https://twitter.com/noctarius2k/status/2020754351396946284
1•panrobo•5m ago•1 comments

The box the AI can't think about

https://www.researchgate.net/publication/400670258_Self-Referential_Quantum_Barriers_for_AGI_Cont...
1•JakubCwi•6m ago•1 comments

Frequent Diet Soda Intake Linked to Fourfold Increased Dementia Risk

https://www.medscape.com/viewarticle/frequent-diet-soda-intake-linked-fourfold-increased-dementia...
3•wjb3•13m ago•1 comments

GPT-5 outperforms federal judges 100% to 52% in legal reasoning experiment

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6155012
2•droidjj•13m ago•1 comments

LLM "reasoning" continues to be deeply flawed

https://garymarcus.substack.com/p/breaking-llm-reasoning-continues
3•petethomas•13m ago•0 comments

Show HN: Undertale Text Box Generator

https://undertaletextboxgenerator.online
1•ethanYIAI•14m ago•0 comments

Rare, dangerous side effects of some Covid-19 vaccines explained

https://www.science.org/content/article/rare-dangerous-side-effects-some-covid-19-vaccines-explained
4•epistasis•15m ago•0 comments

But What to Do About It?

https://andys.blog/what-to-do/
1•andytratt•17m ago•0 comments

One with the Environment

https://andys.blog/environment/
1•andytratt•17m ago•0 comments

7 Days in the NICU

https://www.sonyasupposedly.com/nicu-diary/
1•exolymph•17m ago•0 comments

Claude Code Skill That Shares Noteworthy Moments to Slack

https://quickchat.ai/post/claude-code-skill-watches-coding-sessions-shares-to-slack
2•piotrgrudzien•17m ago•0 comments

Few people inevitably rise to the top

https://andytrattner.com/
1•andytratt•18m ago•0 comments

Memory Layer for AI Agent

https://github.com/obicho/mem
1•obicho•20m ago•1 comments

Algorithmic Liability: How Social Media Platforms Disclaim Responsibility

https://tostracker.app/analysis/algorithmic-liability
1•tldrthelaw•20m ago•0 comments

How The New York Times uses a custom AI tool to track the "manosphere"

https://www.niemanlab.org/2026/02/how-the-new-york-times-uses-a-custom-ai-tool-to-track-the-manos...
3•thetrustworthy•22m ago•0 comments

We built Vortex to fix team activation in PLG products

https://www.vortexsoftware.com/
1•santiaparicio•23m ago•1 comments

Death of Software. Nah

https://hardcoresoftware.learningbyshipping.com/p/238-death-of-software-nah
2•whobre•24m ago•0 comments

Show HN: Ignlnk, Hide the content to agents, not the files

https://github.com/No3371/ignlnk
1•3371•26m ago•0 comments

How the hardware/software interface works (Linux Kernel)

https://offlinemark.com/how-the-hardware-software-interface-works/
2•medbar•29m ago•0 comments

Most Americans don’t pay for news and don’t think they need to

https://www.niemanlab.org/2026/02/most-americans-dont-pay-for-news-and-dont-think-they-need-to/
2•jaredwiener•30m ago•0 comments

Leo thought Guthrie's smart cam was disconnected, Google still had the tape

https://fortune.com/2026/02/11/privacy-concerns-nancy-guthrie-google-nest-camera-footage-kidnapping/
2•c420•32m ago•1 comments

The curious case of binfmt for x86 emulation for ARM Docker

https://gergely.imreh.net/blog/2025/04/the-curious-case-of-binfmt-for-x86-emulation-for-arm-docker/
1•pvtmert•40m ago•0 comments

A "QuitGPT" campaign is urging people to cancel their ChatGPT subscriptions

https://www.technologyreview.com/2026/02/10/1132577/a-quitgpt-campaign-is-urging-people-to-cancel...
2•amai•40m ago•1 comments

With Boran, First AI Agent Protagonist in Next-Generation Video Games

https://store.steampowered.com/app/2451190/Kebabstar/
1•akbr•40m ago•1 comments

Prime Intellect Lab: a full-stack platform for training your own models

https://www.primeintellect.ai/blog/lab
1•anacleto•42m ago•0 comments

Self-contained RTL to GDS flow for simple chip designs

https://github.com/htfab/microlane
2•ua709•42m ago•0 comments