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

A sidecar named desire (2007)

https://www.scmp.com/article/614660/sidecar-named-desire
1•YeGoblynQueenne•51s ago•0 comments

Show HN: A daily spatial number puzzle

https://notebeck.com/sequence/
1•aidanbeck•1m ago•0 comments

Show HN: Invisible color – Logic mini game

https://invisible-color.vercel.app/
1•wrongful1520•3m ago•0 comments

Ask HN: Has your typing gotten worse with AI?

1•aizk•3m ago•0 comments

Examples from sci-fi of voice interfaces that stay on task

https://interconnected.org/home/2026/07/11/on-task
1•surprisetalk•5m ago•1 comments

Frontier-Bench

https://www.frontierbench.ai/announcement
1•stared•6m ago•0 comments

Stop hard-wiring LLMs into your code

https://wso2.com/library/blogs/ai-mediation-layer-ai-gateway/
2•langur•7m ago•0 comments

Setting up a remote environment for agentic coding on a VPS

https://ma.ttias.be/remote-coding-environment-vps/
1•speckx•7m ago•0 comments

Curl Bitsets

https://eissing.org/icing/posts/curl-bitsets/
1•mattjhall•7m ago•0 comments

Where Good Engineers Come From

https://lamis73.substack.com/p/where-good-engineers-come-from
1•Lamis-A•8m ago•0 comments

Show HN: Extension that shows complaints and more on NYC apartment listings

https://streetleaky.com/
1•willmeyers•9m ago•0 comments

Show HN: equitycalculator.org

https://www.equitycalculator.org/
1•morninj•10m ago•0 comments

Oracle fires 21,000 employees to fund AI spending

https://www.jpost.com/business-and-innovation/tech-and-start-ups/article-903442
4•DemiGuru•12m ago•0 comments

Microsoft – Open Weights and American AI Leadership

https://www.microsoft.com/en-us/corporate-responsibility/topics/open-weight/
4•louiereederson•13m ago•0 comments

Spending judgement where it matters: how we structure AI-native delivery

https://www.moystard.com/blog/ai-native-delivery/
1•moystard•14m ago•0 comments

Make an Origami Circuit Board

https://spectrum.ieee.org/origami-circuit-boards
1•dpapathanasiou•15m ago•0 comments

Indian court says OpenAI did not violate news agency ANI's copyright

https://www.reuters.com/legal/litigation/indian-court-rules-favor-openai-copyright-lawsuit-brough...
1•SanjayMehta•16m ago•0 comments

Measuring the Performance Cost of High Availability in Postgres

https://clickhouse.com/blog/postgresbench-ha
1•saisrirampur•16m ago•0 comments

Can This New Enzyme Turn Back the Clock in the Human Body?

https://www.nytimes.com/2026/07/24/science/enzymes-aging-cmlase.html
1•jcfrei•18m ago•0 comments

Python package installations as an index of local AI adoption

https://www.unite.ai/python-package-installations-as-an-index-of-local-ai-adoption/
1•50kIters•18m ago•0 comments

LLMs Reward Expertise

https://www.seangoedecke.com/llms-reward-expertise/
1•meetpateltech•19m ago•0 comments

Show HN: Marrow – self-hosted semantic search over your Claude Code sessions

https://github.com/gnosislabstech/marrow
1•gnosislabs•21m ago•0 comments

AGI Singer: Pluto, Recursive Alignment and Hallucination Suppression

https://medium.com/@miho999lv/agi-singer-pluto-recursive-alignment-and-hallucination-suppression-...
1•miho999lv•21m ago•0 comments

Learngraphtheory.org – Free Interactive Platform for Learning Graph Theory

https://learngraphtheory.org/
1•hadjoudj•22m ago•0 comments

Dramas in Backyard

https://www.drmindle.com/dramas-in-my-backyard/
1•drmindle12358•22m ago•0 comments

Show HN: Horch – tracks todos, people, and topics from your meetings, on-device

https://horch.app
1•mm7490•23m ago•0 comments

Pair prompt with Claude/codex AI agents

https://liveshortly.com
1•malviyamukul•23m ago•0 comments

The balance-sheet is out of kilter with its economy

https://economist.com/finance-and-economics/2026/07/23/the-worlds-balance-sheet-is-out-of-kilter-...
1•andsoitis•23m ago•0 comments

Retrotechnology Media

https://typewritten.org/Media/
1•surprisetalk•25m ago•0 comments

SpaceX Delays Major Flight Test Again in Post-IPO Spotlight

https://www.bloomberg.com/news/articles/2026-07-23/spacex-attempts-major-flight-test-again-in-pos...
2•1vuio0pswjnm7•25m ago•0 comments