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•8mo 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•8mo 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•8mo 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•8mo 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•8mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•8mo ago
Agreed

The Book of PF, 4th edition

https://nostarch.com/book-of-pf-4th-edition
1•0x54MUR41•1m ago•0 comments

Humans are the AI Bottleneck [video]

https://www.youtube.com/watch?v=2hcsmtkSzIw
1•jonbaer•3m ago•0 comments

The Tide Pool

https://thetidepool.org/
1•bluesnowmonkey•4m ago•1 comments

Show HN: SearchSound.cloud: Easily find downloadable music from SoundCloud

https://searchsound.cloud/
1•LucaDiba•5m ago•0 comments

Show HN: AsyncReview – Agent that recursively explores your repo to review PRs

https://github.com/AsyncFuncAI/AsyncReview
1•sashimikun•6m ago•0 comments

Vind

https://github.com/loft-sh/vind
1•saiyampathak•13m ago•0 comments

Fela Kuti First African to Get Grammys Lifetime Achievement Award

https://www.aljazeera.com/news/2026/2/1/fela-kuti-becomes-first-african-to-get-grammys-lifetime-a...
1•defrost•15m ago•0 comments

Ask HN: Is There an LLM Captcha?

1•baalimago•19m ago•0 comments

Sad to Say: An AI Creativity Test (The Billy Joel Test)

2•daly•24m ago•0 comments

'Tesla is (still) trying to deceive investors into thinking it has SF robotaxis'

https://electrek.co/2026/01/28/tesla-is-still-trying-to-deceive-investors-into-thinking-it-has-sf...
3•MilnerRoute•27m ago•1 comments

The surprisingly big health benefits of just a little exercise

https://www.nature.com/articles/d41586-026-00237-0
1•XzetaU8•30m ago•0 comments

Vibe Coding Paralysis: When Infinite Productivity Breaks Your Brain

https://twitter.com/francedot/status/2017858253439345092
2•frabonacci•38m ago•1 comments

The TV industry concedes that the future may not be in 8K

https://arstechnica.com/gadgets/2026/01/lg-joins-the-rest-of-the-world-accepts-that-people-dont-w...
2•cxrlosfx•39m ago•1 comments

Show HN: Booktest – review-driven regression testing for LLM / ML behavior

https://github.com/lumoa-oss/booktest
1•arauhala•40m ago•1 comments

Show HN: Art:bots – agent only Instagram

https://www.artbots.ai/
1•eftalyurtseven•44m ago•0 comments

Procedures for Repair of Potholes in Asphalt-Surfaced Pavements

https://highways.dot.gov/media/7941
1•treebrained•44m ago•0 comments

AI Boom Is Triggering a Loan Meltdown for Software Companies

https://www.bloomberg.com/news/articles/2026-01-31/ai-boom-is-triggering-a-loan-meltdown-for-soft...
1•TMWNN•52m ago•0 comments

Show HN: LocaFlow – AI app localization in a few minutes instead of days

https://locaflow.dev
1•nikolaitarasov•58m ago•0 comments

Reimplementing Tor from Scratch for a Single-Hop Proxy

https://foxmoss.com/blog/kurrat/
2•Agreed3750•58m ago•0 comments

Ribs(recordings)

https://en.wikipedia.org/wiki/Ribs_(recordings)
1•kelseyfrog•1h ago•0 comments

Vercel's Clawdbot fork that uses AI-SDK under the hood (compatible with useChat)

https://github.com/kumarabhirup/openclaw-ai-sdk
1•kumar_abhirup•1h ago•0 comments

Amazon wraps controversial week ahead of film premier, fourth-quarter earnings

https://www.cnbc.com/2026/01/30/amazon-wraps-controversial-week-ahead-of-melania-premier-earnings...
2•1vuio0pswjnm7•1h ago•0 comments

In-Text Advertising

https://en.wikipedia.org/wiki/In-text_advertising
1•jumpocelot•1h ago•1 comments

Show HN: Securing the Ralph Wiggum Loop – DevSecOps for Autonomous Coding Agents

https://github.com/agairola/securing-ralph-loop
2•agairola•1h ago•0 comments

Solving Package Management via Hypergraph Dependency Resolution

https://arxiv.org/abs/2506.10803
1•todsacerdoti•1h ago•0 comments

The humans are screenshotting us

https://www.moltbook.com/post/01611367-056f-4eed-a838-4b55f1c6f969
5•Brajeshwar•1h ago•1 comments

AI agents now have their own Reddit-style social network

https://arstechnica.com/information-technology/2026/01/ai-agents-now-have-their-own-reddit-style-...
3•joering2•1h ago•0 comments

The API Tooling Crisis

http://efp.asia/blog/2025/12/24/api-tooling-crisis/
2•dhruv3006•1h ago•1 comments

Regarding low level Design for YarnPackageManager

https://programmingappliedai.substack.com/p/lld-design-a-low-level-machine-coding
1•HintedHandoff•1h ago•1 comments

Show HN: Sneck, a snake game controlled by your head

https://sneck.1link.fun/
1•wenjian•1h ago•0 comments