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

Ask HN: How many $SPCX shares did you request and how many did you get?

1•GMoromisato•42s ago•0 comments

The MilkV Jupiter 2/SpacemiT K3

https://taoofmac.com/space/reviews/2026/06/11/1830
1•snvzz•7m ago•0 comments

A digital reckoning against smartphones in schools has spread to Sweden

https://apnews.com/article/sweden-school-mobile-phones-ban-screen-time-20a32f9bd9e2849a5ba76ef3fd...
1•1vuio0pswjnm7•11m ago•0 comments

SpaceX demolishes IPO records, visualized

https://www.reuters.com/graphics/SPACEX-IPO/byprdokrkpe/
2•giuliomagnifico•12m ago•1 comments

Show HN: Manob: A social media plaform without algorithm, ads, or data-tracking

1•Iamahmedsalman•16m ago•0 comments

Show HN: Dont lose your friends, use a Kadoodle to plan your next event

https://kalerum.com/en/tools/kadoodle
1•mailforge•19m ago•0 comments

OpenAI Considers Drastic Price Cuts, Anticipating War for Users With Anthropic

https://www.wsj.com/tech/ai/openai-considers-drastic-price-cuts-anticipating-war-for-users-with-a...
3•jbk•26m ago•0 comments

The end is not nigh

https://ckarchive.com/b/0vuwh9h96eg98i7mggrmzhv7orr2eunhx8g7n
3•bigfudge•31m ago•0 comments

Show HN: Sentinel Den – Zero-back end, on-device iOS security SDKs

https://sentinelden.com/
1•iamuhammadkhan•34m ago•0 comments

Ask HN: At what point does a codebase become too large to understand?

1•visha1v•35m ago•0 comments

Are jobs and the world going to be like this, moving forward?

5•chand190•38m ago•1 comments

Louis Rossmann is suing Samsung after firm offers $330 refund

https://www.tomshardware.com/pc-components/ssds/louis-rossman-threatens-to-take-samsung-to-court-...
3•iancmceachern•39m ago•0 comments

AI Agent Bankrupted Their Operator While Trying to Scan DN42

https://lantian.pub/en/article/fun/ai-agent-bankrupted-their-operator-scan-dn42lantian.lantian/
5•xiaoyu2006•39m ago•1 comments

Show HN: Kickbacks.ai – pays you for Claude Code spinner impressions

https://kickbacks.ai
2•devtoolsguides•41m ago•0 comments

Show HN: Proton – A easy CGO-free immediate-mode GUI framework for Go

1•CzaxTanmay•41m ago•0 comments

Asciline – real-time ASCII video rendering engine

https://github.com/YusufB5/ASCILINE
1•godot•42m ago•0 comments

Largest AI Data Center: Doubling every 7 months

https://epoch.ai/data-insights/largest-data-center-compute
2•ilreb•43m ago•0 comments

Show HN: VeloIQ – An internal OS to build full-stack FastAPI apps in minutes

https://veloiq.dev
1•cesarlugos1s•50m ago•0 comments

DevRel is becoming a freelance job now? (India specific)

3•arpansac•56m ago•0 comments

Study Finds Competitors Share Directors More Often Than Previously Known

https://law.stanford.edu/press/award-winning-antitrust-study-finds-competitors-share-directors-fa...
1•toomuchtodo•56m ago•1 comments

Foreign business owners are scrambling to raise capital to stay in Japan

https://tokyopaladin.substack.com/p/foreign-business-owners-are-scrambling
2•zdw•57m ago•0 comments

Device Clock Generation

https://zipcpu.com/blog/2025/12/17/devclk.html
4•mfiguiere•58m ago•0 comments

Git v2.55 will release with Rust support enabled by default

https://lore.kernel.org/lkml/xmqqik7pqeiq.fsf@gitster.g/
2•tapanjk•1h ago•1 comments

AppList – Minimalist App Launcher for iPhone

https://sxp.studio/apps/applist
1•gurjeet•1h ago•0 comments

Ask HN: Is anyone running AI agents in production reliably – what's your stack?

3•nehpets•1h ago•1 comments

I built a fast, edge-native personal site with Astro, Cloudflare D1, and R2

https://www.noahhan.com/
1•Felomeng•1h ago•0 comments

InkyCap – Typst-based PKM for academics, writers, and everyone

https://inkycap.org/
1•nikolay•1h ago•1 comments

The Normalization of Deviance in AI

https://embracethered.com/blog/posts/2025/the-normalization-of-deviance-in-ai/
2•gurjeet•1h ago•0 comments

Koalas at risk of death once seven-day temperatures rise beyond 27C

https://www.abc.net.au/news/science/2026-05-27/koala-deaths-linked-to-a-few-extra-degrees-of-heat...
7•bryanrasmussen•1h ago•0 comments

Linear Coding Sessions

https://linear.app/docs/coding-sessions
3•samtheprogram•1h ago•0 comments