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

How to restore your online sanity, one webcam at a time

https://bigthink.com/strange-maps/webcam-maps-are-back/
1•GreyWolfhead•2m ago•0 comments

The Plunging Price of Thought

https://epoch.ai/publications/the-plunging-price-of-thought
1•gmays•3m ago•0 comments

Show HN: Show HN: InterPoll, signed posts replicated over Gun relays/browsers

https://github.com/Interpoll1/decentralised
1•thegoodduck•4m ago•0 comments

Read the 722 new OpenAI math papers

https://hub.valency.io/collections/openai-math
1•curtis-jm•4m ago•0 comments

Integer multiplication below n log n

https://github.com/openai/math/tree/main/preprints/Integer-multiplication-below-n-log-n-September...
1•E-Reverance•5m ago•0 comments

Ask HN: What games do you religiously play on your phone browser?

1•saimiam•7m ago•1 comments

White House monitors suspected plague outbreak in Russia

https://www.yahoo.com/news/science/articles/scoop-white-house-monitors-suspected-201829093.html
2•gmays•13m ago•0 comments

Add your GitHub profile in your Apple Wallet

https://walletwallet.alen.ro/github/
1•alentodorov•14m ago•0 comments

Emergence of pan-drug resistant Candidozyma auris in Kenya

https://www.nature.com/articles/s41598-026-70653-9
1•Teever•15m ago•0 comments

Put dithered images inside a QR code

https://wowqr.app/
1•alentodorov•18m ago•0 comments

The Quasi-Riemann Hypothesis [pdf]

https://github.com/openai/math/blob/main/preprints/The-Quasi-Riemann-Hypothesis-September-30-2026...
2•akalin•19m ago•0 comments

Ask HN: Human flourishing after jobs?

1•humans_thrive•20m ago•3 comments

ChatGPT self-distances when admitting fault

2•chrisjj•22m ago•0 comments

The bad science polluting our media landscape

https://www.rnz.co.nz/news/science-and-technology/1772800/the-bad-science-polluting-our-media-lan...
3•billybuckwheat•23m ago•0 comments

UniEvo-VL: Self-Distillation Training for Multimodal Model Self-Improvement

https://arxiv.org/abs/2609.38721
2•gmays•28m ago•0 comments

AI Hasn't Replaced Interpreters But It Has Degraded Their Working Conditions

https://capitalandmain.com/ai-hasnt-replaced-these-interpreters-but-it-has-degraded-their-working...
2•paimapi•28m ago•1 comments

The uphill climb of making diff lines performant

https://github.blog/engineering/architecture-optimization/the-uphill-climb-of-making-diff-lines-p...
1•bucket2015•32m ago•0 comments

Flow Typing: A New Lens on Linearity [pdf]

https://people.cs.nott.ac.uk/pszgmh/flow-typing.pdf
4•matt_d•34m ago•0 comments

SpaceX looks to raise $40B to buy Nvidia chips in financing led by Apollo

https://www.ft.com/content/d3f5928d-f38c-4666-8f7a-8737f9c45f51
2•mfiguiere•38m ago•0 comments

Ask HN: How would you feel if we nationalized Google?

6•59percentmore•38m ago•26 comments

Six Masks

https://arcove.substack.com/p/six-masks
2•exolymph•42m ago•0 comments

Building Git infrastructure for agent-scale development

https://github.blog/engineering/architecture-optimization/building-git-infrastructure-for-agent-s...
5•edmorley•47m ago•0 comments

Linux Setup Was a Hazing Ritual. Agents Changed It

https://sublimecoding.com/blog/linux-setup-hazing-agents
3•sublimecoding•47m ago•2 comments

Show HN: I build a newsreader-like alternative interface for my website

http://qdb.us/forte/
2•forgotmypw17•48m ago•0 comments

Toward provably private learning from federated data

https://research.google/blog/toward-provably-private-learning-from-federated-data/
3•gmays•51m ago•0 comments

Janet on the x32 ABI: 32-bit Pointers, 64-bit Speed, 25% Less RAM

https://alexalejandre.com/programming/lisp/janet-for-the-x32-abi/
4•veqq•52m ago•0 comments

Show HN: Vokalu – Windows/Mac dictation, free on-device or 2¢/min in the cloud

https://vokalu.com/
2•whatisofdsk•53m ago•1 comments

You Are an Expert Software Engineer [Krazam] [video]

https://www.youtube.com/watch?v=0otdTJa9IUc
5•zeristor•53m ago•1 comments

Apple's Smart Home Push Includes Doorbell, Lock, Thermostat Codeveloped with LG

https://www.bloomberg.com/news/articles/2026-10-06/apple-s-smart-home-push-includes-doorbell-lock...
10•marc__1•55m ago•7 comments

Bitcoin Rebound Revives Debate over a New Crypto Cycle

https://discord.com/channels/1519570089488289956/1522069205795606650/1556860425667215462
2•joeymabia1•55m ago•0 comments