frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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

The InfraRed 100 Report

https://www.redpoint.com/reports/the-infrared-report-2026/
1•shenli3514•2m ago•0 comments

Federal audit reveals NIST's NVD is plagued by poor planning and duplication

https://cyberscoop.com/nist-nvd-audit-mismanagement-duplication/
1•lschueller•2m ago•0 comments

Neon: We're building the boring back end for apps and agents

https://neon.com/blog/were-building-backends
1•bvanvugt•2m ago•0 comments

Learn to Count to Ten

http://countten.free.fr/four.html
1•wizardforhire•2m ago•0 comments

stable-worldmodel-v1: Reproducible World Modeling Research and Evaluation

https://arxiv.org/abs/2602.08968
1•petethomas•2m ago•0 comments

How a lab accident changed my approach to science

https://www.science.org/content/article/how-lab-accident-changed-my-approach-science
1•bookofjoe•2m ago•0 comments

How to securely connect ADK agents to models on Cloud Run

https://leoy.blog/posts/securely-connect-agents-to-models/
1•minherz•3m ago•1 comments

The Chatbots and Agents Are Going to Merge

https://www.bigtechnology.com/p/the-chatbots-and-agents-are-going
1•lschueller•3m ago•0 comments

What are the real problems of continual learning?

https://infinitefaculty.substack.com/p/what-are-the-real-problems-of-continual
1•matt_d•5m ago•0 comments

Ask HN: How is your org managing PR review load as AI multiplies code output?

1•meteor333•5m ago•0 comments

Cheapflation Cycles

https://www.nber.org/papers/w35235
1•paulpauper•8m ago•0 comments

65% of Hacker News Posts Have Negative Sentiment and They Outperform

https://philippdubach.com/posts/65-of-hacker-news-posts-have-negative-sentiment-and-they-outperform/
2•Karrot_Kream•10m ago•0 comments

Local AI Hardware: Break Even in 2.6 Years?

https://skepticcto.com/news/updates/2026/05/29/LocalAI.html
2•rbuccigrossi•12m ago•1 comments

Ahlan Social

https://github.com/ahlan-app/ahlan-social-mobile
1•ahlansocial•13m ago•0 comments

Your Old Devices Depend on Dying Sensors. The Silicon Labs Incident Proves It

https://www.cambridge.org/engage/coe/article-details/6a054b304770e67d92e8c7a2
1•openrockets•15m ago•0 comments

Show HN: I built an app to switch Gmail notification modes instantly

https://www.sundaelectronics.com/owl-vip-email-alerts
1•sharieskenas•18m ago•1 comments

You don't know how to use AI

https://www.anitakirkovska.com/blog/you-dont-know-how-to-use-ai/
4•anitakirkovska•18m ago•0 comments

AI attitudes, adoption, and benefits by state: 2026 study

https://smartasset.com/data-studies/ai-adoption-2026
1•1vuio0pswjnm7•22m ago•1 comments

Death to the Machine

https://deathtothemachine.com
1•processing•22m ago•0 comments

Vanguard Investor Choice

https://corporate.vanguard.com/content/corporatesite/us/en/corp/about-our-funds/proxy-voting-acro...
2•philips•24m ago•0 comments

An AI Audit of FreeBSD

https://blog.calif.io/p/an-ai-audit-of-freebsd
3•wslh•25m ago•0 comments

Ask HN: Thoughts on the current state of tech meetups in the SF Bay Area?

3•Austin_Conlon•26m ago•0 comments

Austrian Academy of Sciences is developing LLM to read papyri

https://www.oeaw.ac.at/en/news/austrian-academy-of-sciences-is-developing-the-ancient-greek-ai-ap...
1•bkfh•28m ago•0 comments

AI Slop Is Coming for Your Playlists

https://www.theatlantic.com/newsletters/2026/05/ai-slop-music/687359/
3•paulpauper•28m ago•1 comments

Does Product Hunt still work for indie projects?

1•sureshofcbe•28m ago•2 comments

Book Review: The Dialectical Imagination

https://www.astralcodexten.com/p/book-review-the-dialectical-imagination
1•paulpauper•28m ago•0 comments

Numerous Times – Independent journalism written by operators not journalists

https://numeroustimes.com/
1•AQadam•29m ago•0 comments

As Rec Room and other virtual worlds close, their communities seek to survive

https://roadtovr.com/as-virtual-worlds-close-communities-in-rec-room-metas-horizon-worlds-and-oth...
2•SLHamlet•35m ago•0 comments

February 26, 1870: First pneumatic powered subway line in New York City

https://www.aps.org/archives/publications/apsnews/201302/physicshistory.cfm
1•gscott•38m ago•0 comments

Compiling .ts to .js

https://blog.simonfarshid.com/compiling-ts-to-js
4•sfarshid•38m ago•0 comments