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

Show HN: Cleared – which browser features are safe now, and what to delete

https://cleared.page/
1•_yann•36s ago•0 comments

A revised Haskell 2010 language report

https://blog.haskell.org/revised-haskell-2010-report/
1•fanf2•1m ago•0 comments

Recommendation engine knows what to show you, without knowing anything about you

https://belfortlabs.com/blog/lg
1•furkanturan•1m ago•0 comments

Theory of Operation of the Quarter Shrinker by Stoneridge Engineering (2025)

https://capturedlightning.com/frames/shrinker.html
1•bariumbitmap•1m ago•0 comments

Hackers vs. the EU: the backdoor that opens the door to everyone

https://ownyourdatamp.substack.com/p/hackers-vs-the-eu-the-backdoor-that
1•marcoparisi•1m ago•0 comments

OpenAI hacking incident exposes mounting risks in AI arms race

https://www.ft.com/content/7e558951-0c69-459b-8bc8-2c6021d4402d
1•Topfi•1m ago•0 comments

Never let the LLM write the subject line

https://ddz.dev/blog/llm-subject-line-gmail-threading/
1•dusandz•2m ago•0 comments

AI isn't enough to protect social media communities from AI

https://arstechnica.com/gadgets/2026/08/ai-isnt-enough-to-protect-social-media-communities-from-ai/
1•ddp26•2m ago•0 comments

Twenty Three Years of Books

https://www.cannonade.net/blog.php?tag=Books
1•redbluething•4m ago•1 comments

After fierce backlash, Georgia freezes new data center projects through year

https://www.yahoo.com/news/us/articles/fierce-backlash-georgia-freezes-data-045900170.html
1•mapping365•4m ago•0 comments

L;Dv (Too Lazy; Didn't Validate): 181,874 Meetings Left Wide Open

https://bobdahacker.com/blog/tldv-hack
2•kalimatas•6m ago•0 comments

Quantum take on the Riemann hypothesis, math's hardest problem

https://www.scientificamerican.com/article/can-quantum-computers-solve-maths-hardest-problem/
1•chc2889•7m ago•0 comments

Show HN: Job Posting Insights

https://jobhose.com/insights
1•weeco•9m ago•0 comments

Is Europe having a bad wildfire year?

https://hannahritchie.substack.com/p/europe-wildfires-2026
1•speckx•9m ago•0 comments

Will AI Sycophancy Contaminate Law Enforcement?

https://www.techpolicy.press/will-ai-sycophancy-contaminate-law-enforcement/
2•hn_acker•10m ago•0 comments

Moderate Democrats Prepare for 'War' Against an Ascendant Left

https://www.nytimes.com/2026/08/06/us/politics/democratic-party-socialists-moderates.html
1•keernan•11m ago•1 comments

Show HN: Building My Own Smart Roller Shades

https://osv.im/writing/building-my-own-smart-roller-shades/
1•ohleg•12m ago•0 comments

Tell HN: Upcoming DeepSeek API Billing Adjustment

2•embedding-shape•13m ago•1 comments

Japanese eels have two types of sperm

https://www.economist.com/science-and-technology/2026/05/19/japanese-eels-have-two-types-of-sperm
2•geneticdrifts•14m ago•0 comments

Berlin's Telli Raises $15M to Expand Enterprise AI Agents

https://www.konsulteer.com/article/berlin-s-telli-raises-15m-to-expand-enterprise-ai-agents
2•kekqqq•15m ago•0 comments

Ask HN: Anyone else getting token limited at work now?

1•jryan49•16m ago•1 comments

Post-Quantum Cryptography in Long-Term Support JDK Releases

https://blogs.oracle.com/java/post-quantum-cryptography-in-long-term-support-jdk-releases
1•theanonymousone•16m ago•0 comments

Show HN: I spent 2 years designing a mechanical Magic Keyboard

https://electronicmaterialsoffice.com/
3•aemerson_•16m ago•0 comments

Reddit signals ominous upcoming "changes" for old.reddit.com

https://arstechnica.com/gadgets/2026/08/reddit-signals-ominous-upcoming-changes-for-old-reddit-com/
4•Brajeshwar•17m ago•0 comments

Sanity Eve Agent

https://twitter.com/i/status/2085369329323831647
1•flashbrew•17m ago•0 comments

Yukon mayor faces recall after data center backlash

https://www.kgou.org/oklahoma-news/2026-08-05/yukon-mayor-faces-recall-after-data-center-backlash
2•mapping365•17m ago•0 comments

Former Federal Prosecutors to Senate: Stop Confirming Election Deniers as Judges

https://abovethelaw.com/2026/08/former-federal-prosecutors-to-senate-stop-confirming-election-den...
5•hn_acker•17m ago•1 comments

Degrees of Wealth

https://jaapgrolleman.com/degrees-of-wealth/
3•jxub•19m ago•0 comments

Fountain Codes and Covert Channels (2022) [pdf]

https://www.fernuni-hagen.de/pv/docs/abschlussarbeit_marciniszyn_.pdf
1•Tomte•19m ago•0 comments

RVV Benchmark SiFive P870 (Lanxin LX500, Epic Semi Contrail AIx)

https://camel-cdr.github.io/rvv-bench-results/sifive_p870/index.html
1•mshockwave•19m ago•0 comments