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

Halaska UI Kit

https://ui.halaska.com/
1•handfuloflight•3m ago•0 comments

Smart Learning for Developers: How AI Is Changing the Way We Master New Things

https://www.portotheme.com/smart-learning-for-web-developers-how-ai-is-changing-the-way-we-master...
1•aledevv•4m ago•0 comments

Show HN: Stitchwink – Cross-stitch pattern making with AI

https://stitchwink.com
1•dumbfoundded•4m ago•0 comments

The AI Takeover Checklist: A Devil's Advocate Audit

https://nochan.net/b/Internet-Crap/20260910-Asked-Claude-For-A-Checklist/
1•Bender•10m ago•1 comments

From Idea to Operating Business: How Solo Runs Listmycar.ai

https://thesolo.ai/blog/listmycar-case-study
1•rchaz•16m ago•0 comments

Japan can turn AI demand into industrial strength

https://www.governance.fyi/p/how-japan-can-turn-ai-demand-into
3•bigdatadevdog•17m ago•0 comments

Anthropic details distillation campaigns from Alibaba, Moonshot AI, and DeepSeek

https://techcrunch.com/2026/09/10/anthropic-details-distillation-campaigns-from-alibaba-moonshot-...
4•elo2000•18m ago•0 comments

Apple Health and Quest team up for $119 blood panel

https://appleinsider.com/articles/26/09/10/apple-health-quest-team-up-for-119-blood-panel
2•elo2000•18m ago•0 comments

Lcars-k8 – Star Trek LCARS inspired Kubernetes dashboard

https://github.com/skidvis/lcars-k8s
1•SkidVis•20m ago•0 comments

DeepSeek-v4-flash-0731-spark-sparkinfer: DeepSeek V4 Flash on one DGX Spark

https://github.com/0xSero/deepseek-v4-flash-0731-spark-sparkinfer
1•simonpure•21m ago•0 comments

Kafka Simulator v1.5 and v1.6 – stretched clusters

https://monedula.dev/blog/kafka-simulator-v1-5-v1-6-stretched-clusters-storage-and-ops/
1•mmatloka•21m ago•1 comments

Ramp: How we built OCA, our AI on-call assistant

https://builders.ramp.com/post/how-we-built-oca-our-ai-on-call-assistant
1•twitchard•22m ago•0 comments

Codex Rate Limit Reset: Weekly Caps, 5-Hour Window, Credits

https://provenbrief.com/story/codex-rate-limit-reset-when-limits-reset-weekly-caps-and-credits
1•bnsaid•22m ago•0 comments

Claude Zero Data Retention: Anthropic's Five States, Mapped

https://provenbrief.com/story/the-ai-data-retention-tracker-release-one-anthropic-s-five-retentio...
1•bnsaid•22m ago•0 comments

AI-powered biowarfare is coming; the Army lays plans to 'fight through' it

https://www.defenseone.com/technology/2026/09/ai-powered-biowarfare-looms-army-lays-plans-fight-t...
5•jethronethro•31m ago•0 comments

The secretive process that will decide the BBC's future

https://www.theguardian.com/news/2026/sep/10/bbc-charter-renewal-long-read-secretive-process-that...
6•mellosouls•34m ago•0 comments

Tylenol use in pregnancy may be linked with uterus, ovary changes in daughters

https://www.reuters.com/business/healthcare-pharmaceuticals/tylenol-use-pregnancy-may-be-linked-w...
3•hmm37•34m ago•2 comments

My favourite agent does a simple job

https://chiragdesai.uk/meet-pip-my-new-favourite-agent/
3•chigsy•37m ago•1 comments

California's Governor Signs Landmark Online Child Safety Bills

https://www.nytimes.com/2026/09/10/technology/californias-governor-gavin-newsom-online-child-safe...
2•ChrisArchitect•38m ago•1 comments

Bending Spoons agrees to buy Miro for $1.355B, weeks after Airtable

https://thenextweb.com/news/bending-spoons-miro-acquisition-1-355bn
4•mellosouls•38m ago•1 comments

The Palm Pre Is the Reason You Love Your Phone (2009) [video]

https://www.youtube.com/watch?v=d8UJ6cIkLUI
6•jbverschoor•39m ago•1 comments

From Git to Fossil

https://lucio.albenga.es/web-en/posts/2025/from-git-to-fossil.html
3•smartmic•41m ago•0 comments

Oracle Q1 FY2027 Earnings Results [pdf]

https://s23.q4cdn.com/440135859/files/content_files/Q1-FY27-Oracle-Earnings-Slides.pdf
2•marc__1•43m ago•0 comments

Frankfurt cases and the principle of alternate possibilities

https://en.wikipedia.org/wiki/Frankfurt_cases
1•dsubburam•44m ago•0 comments

Running AMD OpenSIL and Coreboot on the First Available Ryzen AM5 Motherboard

https://www.phoronix.com/review/msi-b850p-coreboot-opensil
2•tripdout•45m ago•0 comments

Grok Bot Galaxy

https://x.ai/galaxy
2•Yctg•45m ago•0 comments

Why Beyond Traditional RAG?

https://chandula7.gumroad.com/l/Advanced_RAG_LangGraph_Patterns
6•GeorgeTj•46m ago•7 comments

Bodily Oddities

https://vester.si/bodily-oddities/
2•vesterde•47m ago•1 comments

Show HN: CodePress – Save $50k+ a month on Cloud Agents

https://codepress.dev/
4•lightninglu10•49m ago•0 comments

Neural Nova – GPU optimization benchmarks for LLM workloads

https://www.neural-nova.com/benchmark
1•kudomcho•49m ago•0 comments