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

Lawyers for Sam Altman's sister quit representing her in lawsuit vs. OpenAI CEO

https://nypost.com/2026/04/27/business/sam-altmans-sister-loses-lawyers-in-her-sex-abuse-lawsuit-...
1•1vuio0pswjnm7•25s ago•0 comments

Namecheap vs. Porkbun vs. Dynadot: .io domain pricing compared (2026)

https://nametracker.fyi/blog/namecheap-vs-porkbun-vs-dynadot-io-pricing
1•mithuns911•1m ago•0 comments

LightInk – ESP32, solar-powered E-ink smartwatch with 10 months battery life

https://www.cnx-software.com/2026/04/26/lightink-an-esp32-based-solar-powered-e-ink-smartwatch-wi...
1•felixr•4m ago•0 comments

Nvidia executive says AI is more expensive than paying human workers

https://fortune.com/2026/04/28/nvidia-executive-cost-of-ai-is-greater-than-cost-of-employees/
2•cdrnsf•5m ago•1 comments

Tucows

https://en.wikipedia.org/wiki/Tucows
1•derwiki•6m ago•0 comments

Carrot Disclosure: Forgejo

https://dustri.org/b/carrot-disclosure-forgejo.html
1•bo0tzz•6m ago•0 comments

From Psychologist to Developer to Founder

1•Tiredbuthopeful•13m ago•0 comments

Your Terminal Is Burning Battery Like It's Mining Bitcoin

https://www.frr.dev/posts/terminal-gpu-battery-macbook-ghostty-iterm2/
2•droidjj•14m ago•1 comments

The Building Block Economy

https://mitchellh.com/writing/building-block-economy
2•SupremumLimit•14m ago•0 comments

Pebble – Menu-bar text polisher running on local Ollama

https://github.com/gashiartim/pebble
2•artimgashi•16m ago•0 comments

"Today, OIGatHHS announced that Dr. Morens has been arrested and charged"

https://twitter.com/SenRonJohnson/status/2049125374437548070
1•panny•20m ago•1 comments

Infrasound exposure is linked to aversive responding, negative appraisal

https://www.frontiersin.org/journals/behavioral-neuroscience/articles/10.3389/fnbeh.2026.1729876/...
1•_Microft•20m ago•0 comments

Building an AI-Native Company

https://darkport.co.uk/blog/on-building-an-ai-native-company/
2•darkport•20m ago•0 comments

Musk: "The reason OpenAI exists is because Larry Page called me a specieist"

https://www.nytimes.com/live/2026/04/28/technology/openai-sam-altman-elon-musk-trial
3•johnbarron•23m ago•1 comments

Prosperity Doctrine alive and well, thanks

https://expletives.noblogs.org/
1•NotMattDrudge•24m ago•0 comments

GitSocial

https://gitsocial.org/
1•delf•24m ago•1 comments

In Texas, portal to early universe enabled by largest dark-sky reserve on Earth

https://www.nytimes.com/2026/04/22/science/astronomy-hetdex-dark-sky-energy.html
1•bookofjoe•24m ago•1 comments

The Covid-19 vaccine paper the CDC censored

https://insidemedicine.substack.com/p/exclusive-heres-the-covid-19-vaccine
3•zzzeek•28m ago•0 comments

Hospital CEOs defend charging patients more at facilities

https://www.nbcnews.com/health/health-news/hospital-ceos-defend-charging-patients-facilities-rcna...
3•ceejayoz•28m ago•0 comments

World's First conversational AI skills assessment

1•Ozzie-D•29m ago•0 comments

Google inks Pentagon deal despite uproar employees warn of 'irreparable damage'

https://nypost.com/2026/04/28/business/google-inks-pentagon-deal-for-classified-ai-work-despite-u...
2•1vuio0pswjnm7•30m ago•0 comments

Finding Vulnerabilities with Warden

https://cra.mr/finding-vulnerabilities-with-warden/
1•ezekg•35m ago•0 comments

Civil Rights Division Sues Cloudera for Blocking U.S. Workers from Tech Jobs

https://www.justice.gov/opa/pr/civil-rights-division-sues-cloudera-excluding-us-workers-applying-...
3•gixxerblade•35m ago•0 comments

Why Geolog? [pdf]

https://geolog.sgai.uk/why.pdf
1•luu•39m ago•0 comments

Singularity Report – The Last One:)

https://auroratheanomaly.nekoweb.org/DARSDBD.html
1•rogmash•43m ago•0 comments

Woman weaponizes swarm of bees against deputies trying to carry out an eviction

https://www.oregonlive.com/crime/2026/04/woman-weaponized-a-swarm-of-bees-against-deputies-trying...
4•randycupertino•49m ago•0 comments

The Role of a New Machine

https://newsletter.dancohen.org/archive/the-role-of-a-new-machine/
1•colinprince•51m ago•0 comments

Ask HN: Why does tech industry not have more co-ops?

1•conqrr•54m ago•2 comments

Show HN: Wayland Window Switcher

https://github.com/iondodon/witcher
1•iondodon•56m ago•0 comments

The Accidental Ancestor – How Verifying Numbers Shaped Modern Hashing

https://0xkrt26.github.io/math_behind_security/2026/04/28/the-accidental-ancestor-Luhn-algorithm....
1•denismenace•56m ago•0 comments