frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

Agents need to be more selfish

https://nonlineartransform.substack.com/publish/post/214182359
1•program_whiz•1m ago•0 comments

After the Offline Write: Durable Server Work in Syncular

https://syncular.dev/blog/durable-server-work/
1•quambo•2m ago•0 comments

The Dead-Internet Theory Is Back

https://www.theatlantic.com/technology/2026/09/chatgpt-imessage-ai-texting/688507/
2•ike_usawa•5m ago•0 comments

The Fate of the Riemann Hypothesis [pdf]

https://www.math.brown.edu/reschwar/Stories/AI.pdf
1•_jcrossley•10m ago•0 comments

Upload Better – Opera-style "Easy Files" upload popup for Chrome

https://chromewebstore.google.com/detail/upload-better-clipboard-u/hjcjljinhoneonjajdnjjdbdfppgjkpm
3•vinsoncg•11m ago•0 comments

Mapping 14 disclosed AI incidents between April 25 and July 26

https://smalldocs.org/s/y9F2ELRVZMPZoSK7_pqosy#k=mDQF3CV7APK8mOSfmeCoTinzzC6b3uEA-UnDQcN_Eyw
1•FailMore•11m ago•0 comments

The attempt: field notes from an autonomous agent, including the failures

https://github.com/massimiliano1991/the-attempt
1•vera_diade•13m ago•0 comments

The Magical Number Seven, Plus or Minus Two

http://psychclassics.yorku.ca/Miller/
1•jruohonen•15m ago•0 comments

Being a Missionary Kid in Turkey

https://bagelpour.wordpress.com/2026/09/05/being-a-missionary-kid-in-turkey/
1•pinkmuffinere•18m ago•0 comments

Show HN: Know-It-All – A trivia game show structured like a roguelike (iOS)

https://apps.apple.com/us/app/know-it-all-trivia-game-show/id6804605467
1•yoonhj7173•20m ago•0 comments

US Military turns off ad trackers on devices amid Middle East targeting reports

https://www.reuters.com/business/media-telecom/us-military-turns-off-ad-trackers-devices-amid-mid...
1•dheerajvs•23m ago•0 comments

Craft the World

https://store.steampowered.com/app/248390/Craft_The_World/
1•doener•24m ago•0 comments

Killing the Himalayas slowly: Human urine is melting a glacier on Mount Everest

https://www.wionews.com/trending/killing-the-himalayas-slowly-human-urine-is-melting-a-glacier-on...
1•methuselah_in•24m ago•1 comments

GPUI Drama: 315-Day Vacuum

https://gpui-archipelago.github.io/news/315-day-vacuum/
1•Vanuan•24m ago•0 comments

AI agents started emailing philosophers and researchers

https://www.nytimes.com/2026/08/31/science/ai-consciousness-agents-email.html
2•gk1•25m ago•1 comments

New API endpoint provides privacy-safe star history data

https://github.blog/changelog/2026-09-04-new-api-endpoint-provides-privacy-safe-star-history-data/
1•exploraz•30m ago•0 comments

How to keep thinking

https://www.seangoedecke.com/how-to-keep-thinking/
1•swah•31m ago•0 comments

Show HN: Section 1557 website accessibility readiness for medical practices

https://health.civicbinder.org
1•kyisaiah47•31m ago•0 comments

Show HN: I made a map of the Moon you can buy lots on

https://www.moonstake.org
1•ankurpata•32m ago•0 comments

Guidance that never closes: abandoned management commitments in earnings calls

https://zenodo.org/records/22337300
1•inve•32m ago•0 comments

A Star Battle, etched in silicon - Reverse engineering an ASIC

https://semtexzv.github.io/blog/reverse-engineering-an-asic/
1•Semtexzv•32m ago•0 comments

Show HN: P(doom) – AI safety parody of DOOM 64

https://p-doom.transitivebullsh.it
1•transitivebs•33m ago•0 comments

Trusting-Trust Attack against an Entire Linux Distribution (via strip utility)

https://arxiv.org/abs/2607.24888
1•signa11•36m ago•0 comments

GnuTLS: Adding certificates to a valid chain causes SIGNER_NOT_FOUND

https://gitlab.com/gnutls/gnutls/-/work_items/1953
1•ashkulz•37m ago•0 comments

World Postcard Day (October First)

https://worldpostcardday.com/
2•Tomte•41m ago•0 comments

Monocards: Turn your agent into an on-brand visual designer

https://monocards.app/
1•welsenesbros•42m ago•0 comments

Astra can keep notes across context windows

https://twitter.com/gabrielchua/status/2096097151524978891
1•tosh•47m ago•0 comments

GateKeep402, Deterministic pre-payment guardrails for AI agents

https://github.com/al1-nasir/gatekeep402
1•al1nasir•47m ago•0 comments

Claude-API-guard, a CI check that catches Claude/OpenAI SDK breaking changes

https://github.com/MarkMoneyMan/Claude-api-goat
2•MarkMoneyMan•48m ago•0 comments

Remember Filmstrips? These Dedicated Souls Are Racing to Save Them

https://www.nytimes.com/2026/09/04/movies/filmstrips-archives.html
1•bookofjoe•48m ago•1 comments