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

EktuPy

https://kushaldas.in/posts/introducing-ektupy.html
1•pauloxnet•1m ago•0 comments

The "self-help" genre holds up an unflattering mirror to society

https://www.economist.com/culture/2025/12/30/what-self-help-books-tell-us-about-ourselves
1•hhs•3m ago•0 comments

French-U.K. Starlink rival pitches Canada on 'sovereign' service for Arctic ops

https://www.cbc.ca/news/politics/satellite-eutelsat-starlink-musk-defence-communications-9.7038830
1•saubeidl•10m ago•0 comments

OpenAI Divorces Microsoft [video]

https://www.youtube.com/watch?v=fD_33neMVQ4&list=RDfD_33neMVQ4
1•cowLamp•10m ago•0 comments

India's surveillance state should alarm every democracy

https://www.washingtonpost.com/opinions/2026/01/09/india-surveillance-state-democracy/
3•bookofjoe•12m ago•1 comments

Show HN: Blobber – Push and stream arbitrary files with OCI registries

https://github.com/meigma/blobber
1•sepositus•12m ago•0 comments

Programmed to Kill/Satanic Cover-Up

https://www.programmedtokill.net
1•clanky•14m ago•1 comments

Claude Code and the Shift

https://pikseladam.com/10-01-2026-claude-code-and-the-shift/
2•pikseladam•16m ago•1 comments

Show HN: Neuro+ GBrain

https://www.neuroplusgbrain.net/
1•FDX2018•22m ago•0 comments

The Finders Cult: Never Before Seen 1987 News Broadcasts [video]

https://www.youtube.com/watch?v=dhs-pQIXKk4
1•clanky•22m ago•1 comments

Show HN: Mac OS 8.1 Running on an ESP32-P4 Dev Board

https://github.com/amcchord/M5Tab-Macintosh
1•mcwiggin2•27m ago•0 comments

Dedoimedo's Greatest Sites on the Internet

https://www.dedoimedo.com/greatest_sites.html
1•dxs•28m ago•0 comments

The secret mission to fly a president's body back home – pilot speaks to the BBC

https://www.bbc.com/news/articles/c5y2v2p3nl8o
1•hahahahhaah•29m ago•0 comments

Qwen3 Vision Language Embedding Model

https://github.com/QwenLM/Qwen3-VL-Embedding
2•denimboy•29m ago•1 comments

Global AI computing capacity is doubling every 7 months

https://epoch.ai/data-insights/ai-chip-production
2•delichon•31m ago•0 comments

Universal AI Agent Subscription

https://twitter.com/firmwareai/status/2009735769867571459
1•cgilly2fast•31m ago•1 comments

Bulk rename files by pasting Excel data (client-side)

1•Salmannaseem•31m ago•0 comments

Ask HN: Who's running local AI workstations in 2026?

2•Blue_Cosma•32m ago•4 comments

Lemon Slice nabs $10.5M from YC and Matrix to build out its digital avatar tech

https://techcrunch.com/2025/12/23/lemon-slice-nabs-10-5m-from-yc-and-matrix-to-build-out-its-digi...
1•PaulHoule•33m ago•0 comments

Betterment Hacked

https://twitter.com/usdshitcoin/status/2009761135457599766
1•chardigio•34m ago•0 comments

Betterment Users Receive Suspicous Crypto Investment Push Notifcation

https://www.reddit.com/r/betterment/s/yfueybW3ZZ
2•rickcarlino•35m ago•0 comments

Vendor Locked CPUs, Restricting and Securing Hardware

https://cloudninjas.com/blogs/news/vendor-locked-cpus-restricting-and-securing-hardware
1•tanelpoder•35m ago•0 comments

Jujutsu v0.37.0 Released

https://github.com/jj-vcs/jj/releases/tag/v0.37.0
1•birdculture•36m ago•0 comments

Box64 vs. FEX Emulation Performance on ARM Cortex-A53

https://printserver.ink/blog/box64-vs-fex/
1•ValdikSS•36m ago•0 comments

SpeedyEDA – One-Line Data Exploration for Developers and Data Scientists

https://pypi.org/project/speedyeda/
1•dawitworku•36m ago•1 comments

Betterment Hacked by Crypto Scam

https://bsky.app/profile/ericrie.se/post/3mbzlov44sc23
5•EricRiese•41m ago•1 comments

Every Developer Abandoned This Product in 3 Minutes

https://tessakriesel.com/every-developer-abandoned-this-product-in-3-minutes/
2•mooreds•42m ago•2 comments

Apartments to be built above Costco's

https://www.entrepreneur.com/business-news/hundreds-of-apartments-are-being-built-on-top-of-a-cos...
2•nateb2022•42m ago•0 comments

Collection and Use of Biometrics by U.S. Citizenship and Immigration Services

https://www.federalregister.gov/documents/2025/11/03/2025-19747/collection-and-use-of-biometrics-...
4•hentrep•46m ago•0 comments

Tell HN: Increased Number of Incidents on GitHub Between Nov 2025 and Jan 2026

https://www.githubstatus.com/history
1•stefankuehnel•46m ago•0 comments