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

WebRTC VPN Tunnel

https://github.com/Manav1011/webrtc-vpn
1•walterbell•1m ago•0 comments

DiffRatio – A One-Step Diffusion Model with SOTA quality and 50% less memory

https://www.arxiv.org/pdf/2502.08005
2•LoMoGan•2m ago•1 comments

The Issue with Special Issues: When Guest Editors Publish in Support of Self

https://arxiv.org/abs/2601.07563
1•wslh•3m ago•0 comments

Amazon Joins the Big-Box League with Its Largest-Ever Store

https://www.wsj.com/business/retail/amazon-orland-park-illinois-opening-13362c97
1•divbzero•8m ago•0 comments

When I Talk to AI About My Feelings, I Don't Want a Therapy Ad

https://www.theverge.com/news/864103/mixed-messaging
1•thor1122•8m ago•0 comments

Green vs. Blue

https://greenvblue.npeercy.com/
1•greenwallnorway•13m ago•0 comments

Sony to Transfer Home Entertainment Operations to Tcl-Led Joint Venture

https://xthe.com/news/sony-tv-business-tcl/
1•Sandhyaseo•14m ago•1 comments

Negotiating Relationships with ChatGPT

https://arxiv.org/abs/2601.13188
2•7777777phil•15m ago•0 comments

Why Submit to AI in Production: Speaking as a Tool for Better Work

https://www.r-bloggers.com/2026/01/why-submit-to-ai-in-production-speaking-as-a-tool-for-better-w...
1•7777777phil•17m ago•0 comments

Crates.io: Development Update

https://blog.rust-lang.org/2026/01/21/crates-io-development-update/
2•quapster•19m ago•0 comments

AT&T Archives: The Unix Operating System (1972) [video]

https://www.youtube.com/watch?v=tc4ROCJYbm0
1•vismit2000•19m ago•0 comments

Agentic RAG for Dummies

https://github.com/GiovanniPasq/agentic-rag-for-dummies
1•thunderbong•20m ago•0 comments

Mnemonic BTC Slots

https://coinables.github.io/mnemonic-slots/#
1•nicholasbraker•21m ago•0 comments

Welcome to Niji V7

https://nijijourney.com/blog/niji-7
1•ankitg12•23m ago•0 comments

Show HN: A Spectrum Album – Structuring AI-Generated Music with Suno

https://karbeyazalbum.replit.app/
2•ersinesen•23m ago•0 comments

Accidentally making $1000 for finding Security Bugs as a Back end Developer

https://not-afraid.medium.com/accidentally-making-1000-for-finding-security-bugs-as-a-backend-dev...
1•birdculture•24m ago•0 comments

Show HN: BSS Blue Hive Guide

https://www.bluehiveguide.com/index.html
1•andy846851797•24m ago•0 comments

Git Show

https://tonystr.net/blog/git
1•TonyStr•26m ago•0 comments

Show HN: LLM fine-tuning without infra or ML expertise

https://www.tinytune.xyz/
2•Jacques2Marais•26m ago•1 comments

Ask HN: How do you manage your morning catch-up routine?

2•Peterz_shu•30m ago•1 comments

Show HN: I built an enterprise weather intelligence platform with Lovable

https://preview--chrono-strata.lovable.app/shop
2•lavandar-admin•33m ago•0 comments

From 75% to 99.6%: The Math of LLM Ensembles

https://www.shibaprasadb.com/2026/01/20/llm-ensemble.html
2•bluebirdfirewin•33m ago•0 comments

Remote Authentication By-Pass in Telnetd (2026)

https://seclists.org/oss-sec/2026/q1/89
3•faebi•34m ago•0 comments

Community-driven peer review: platform to review, rate, access research freely

https://test.scicommons.org/
3•DrSAR•34m ago•0 comments

Show HN: Encrypter.site – Browser-based E2E encryption for text and files

https://www.encrypter.site/
2•zealer•34m ago•0 comments

The UK government is backing AI that can run its own lab experiments

https://www.technologyreview.com/2026/01/20/1131462/the-uk-government-is-backing-ai-scientists-th...
3•Brajeshwar•35m ago•0 comments

Can you slim macOS down?

https://eclecticlight.co/2026/01/21/can-you-slim-macos-down/
3•ingve•35m ago•0 comments

Anthropic's CEO stuns Davos with Nvidia criticism

https://techcrunch.com/2026/01/20/anthropics-ceo-stuns-davos-with-nvidia-criticism/
4•taubek•40m ago•1 comments

Show HN: Kerns – Research that compounds instead of resetting

https://www.kerns.ai/
2•kanodiaayush•41m ago•0 comments

Rakoon – privacy first, offline first workout tracker

https://apps.apple.com/us/app/rakoon-gym-workout-tracker/id6757954467
2•palooka•44m ago•0 comments