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

Linq.es – Go-Powered Link-in-Bio, URL Shortener, and VCard with an MCP Server

https://linq.es/
1•giulianobr•6s ago•1 comments

IdeaLens: Detecting AI Ideas in Long-Form Writing

https://arxiv.org/abs/2610.06778
1•ersinesen•27s ago•0 comments

Show HN: Thinkbeside – AI Sidebar for GPT, Claude and Gemini

https://chromewebstore.google.com/detail/thinkbeside-ai-sidebar-fo/plcbbhlakibeddilmfjnkdpfcjdcliip
1•punit2502•1m ago•0 comments

Metal alloys that unexpectedly resist extreme cold, staying tough at -253°C

https://www.ox.ac.uk/news/2026-10-14-new-study-reveals-metal-alloys-that-unexpectedly-resist-extr...
1•frostbyte7•1m ago•0 comments

The Little Prince

https://littleprince.dev/
1•matt89•2m ago•0 comments

Eight states sue OpenAI, saying ChatGPT isn't safe for kids

https://www.theverge.com/ai-artificial-intelligence/1011500/openai-state-lawsuits-chatgpt-safety
1•SpiralLibrarium•9m ago•0 comments

True Food – The future of food is true

https://truefood.net/
3•osivertsson•11m ago•0 comments

Can Ease of Creation Lead to Decrease in Quality and Value?

https://pikuma.com/blog/ease-creation-decrease-quality-value
1•signa11•12m ago•0 comments

Apple and OpenAI Go to Court in a High-Stakes Legal Battle over AI Trade Secrets

https://www.rswebsols.com/news/apple-and-openai-go-to-court-in-a-high-stakes-legal-battle-over-ai...
1•rswebsols•12m ago•0 comments

America Needs More Capital

https://www.wsj.com/opinion/america-needs-more-capital-43428ee0
1•ericmay•13m ago•0 comments

Emulating a Floppy Drive by Emulating the Drive Itself

https://hackaday.com/2026/10/12/emulating-a-floppy-drive-by-emulating-the-drive-itself/
1•andrewstuart•14m ago•0 comments

Kitten space agency engine, BRUTAL open sourced

https://github.com/ahwootech/BRUTAL
1•yehoshuapw•15m ago•0 comments

From manual tweaks to Ansible roles: first steps

https://gshell.dev/blog/ansible-first-steps/
1•gstoychev•21m ago•0 comments

The Baked Narrative: On the Homogenization of Visual Imagination

https://medium.com/@smoking2man/the-baked-narrative-on-the-homogenization-of-visual-imagination-i...
1•Aldus551•22m ago•0 comments

Hinton: We're creating alien beings. I'm willing to be selfish and choose humans

https://www.theguardian.com/us-news/2026/oct/13/geoffrey-hinton-trump-ai-tech
2•calf•22m ago•0 comments

Farmfence – Bot/Scraper Detection

https://www.npmjs.com/package/farmfence
1•zlu•23m ago•0 comments

China Has a Blueprint for the Future – 3D printing (additive manufacturing)

https://www.newsweek.com/china-has-a-blueprint-for-the-future-12570833
1•mdp2021•24m ago•0 comments

AI-powered law firms draw lawyers from big firms

https://www.reuters.com/legal/legalindustry/ai-powered-law-firms-draw-lawyers-big-firms-2026-10-14/
1•filippofinke•24m ago•0 comments

WIF-01 Challenge for ACME (RFC 8555)

https://blog.zaita.io/the-acme-wif-challenge-is-amazing.html
1•zaitanz•24m ago•0 comments

Stop Solving Microservice Consistency in Your Application Code

https://medium.com/scalar-engineering/stop-solving-microservice-consistency-in-your-application-c...
1•feeblefakie•27m ago•0 comments

I gained 20k impressions on my LinkedIn profile in 100 days

2•lincolnlychan•30m ago•0 comments

AI crippleware in Hebrew and Chinese translations

https://fromhebrew.com
1•jaekwon•30m ago•0 comments

Crawler Defense with Iocaine

https://nlnet.nl/project/iocaine/
1•phoronixrly•30m ago•0 comments

My first YouTube Video gained 3000 views in 48 hours, uploaded on my new channel

1•lincolnlychan•31m ago•0 comments

Investigation: EU citizens' private messages are run through Palantir's software

https://arvidgrange.substack.com/p/investigation-eu-citizens-private
6•rzk•33m ago•0 comments

Thoughts on "making contact" with the Tencent AI agent fleet

https://twitter.com/GruPiotr/status/2110494758976000004
1•piotrgrudzien•35m ago•0 comments

Show HN: Daily image location guessing agains AI

https://mediaguesser.com/human-vs-ai
1•jonamedia•40m ago•0 comments

We found a Tencent agent fleet

https://swarmcha.se/posts/chinese-agent-fleet-full-report
2•szopa•41m ago•0 comments

Eutelsat shares jump as Ukraine flags curbs on Starlink military-grade service

https://www.reuters.com/business/eutelsat-shares-jump-ukraine-flags-curbs-starlink-military-grade...
1•vrganj•44m ago•0 comments

What My Son Is Learning from Artificial Intelligence

https://greatergood.berkeley.edu/article/item/what_my_son_is_learning_from_artificial_intelligence
2•birdman3131•47m ago•0 comments