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: Skillzmouse: Distributed skills and scripts for agentic coding

https://bitbucket.org/workingsoftware/skillzmouse/src/main/README.md
1•dools•1m ago•0 comments

Encrypted chats expose Kosovar organised crime network

https://www.europol.europa.eu/media-press/newsroom/news/encrypted-chats-expose-kosovar-organised-...
1•jruohonen•2m ago•0 comments

C++26: Cleaning up string literals

https://www.sandordargo.com/blog/2026/06/10/cpp26-string-literals-cleaned-up
1•ibobev•2m ago•0 comments

Sovereign

https://lemire.me/blog/2026/06/09/22693/
1•ibobev•3m ago•0 comments

Show HN: AgentHUD – Live TUI and daily digest for parallel Claude Code sessions

https://github.com/neochoon/agenthud
1•neochoon•3m ago•0 comments

Why your asthma inhaler is so expensive (in the US)

https://educatedguesswork.org/posts/asthma-inhaler-pricing/
1•ibobev•4m ago•0 comments

Adet tells you how people do things here

https://merkoba.com/adet.html
1•madprops•5m ago•0 comments

Einstein Was Wrong? Why Dark Energy Just Started Pulling Space-Time Backward

https://www.youtube.com/watch?v=LPEcLdc_ygA
1•Asheed•5m ago•0 comments

The Test Suite Was the Incident

https://christophermeiklejohn.com/ai/zabriskie/agents/reliability/testing/2026/06/10/the-test-sui...
1•jruohonen•6m ago•0 comments

Show HN: Apodex-1.0-H – Beats Claude-Opus-4.7 on deep research (90.3 BrowseComp)

https://www.apodex.ai/
1•wuqiaocauc•6m ago•0 comments

It's not enough to have better ideals

https://werd.io/its-not-enough-to-have-better-ideals/
1•benwerd•6m ago•0 comments

It's (Still) All About Boundaries

https://bounded.dev/blog/its-still-all-about-boundaries/
1•RyeCombinator•7m ago•0 comments

Auto complete tickets using Claude Code loop on telegram with linear MCP

https://niptao.com/blog/an-engineer-you-manage-from-a-group-chat/
1•singlas•8m ago•1 comments

Apple's Reframe: A Moment That Never Was

https://tty.mansuri.me/posts/~apple-reframe-a-moment-that-never-was/
1•princetman•8m ago•0 comments

I built a 40-year backtester to test if leveraged ETF and gold beats VOO

https://wealthquestlab.com
1•alexyurepercept•11m ago•0 comments

We went multi-region then undid it

https://useautumn.com/blog/how-we-built-a-multi-region-architecture-and-why-we-went-back
1•ayushrodrigues•12m ago•0 comments

Show HN: Publora – One API/MCP for AI agents to post across 10 social networks

https://publora.com
1•sbulaev•15m ago•0 comments

Cursor users must consent to data collection in order to use Fable 5

https://cursor.com/docs/models/claude-fable-5
2•__natty__•18m ago•1 comments

DMR effect on drag reduction of a streamlined body

https://www.cambridge.org/core/journals/journal-of-fluid-mechanics/article/dmr-effect-on-drag-red...
1•deadbishop•20m ago•0 comments

Show HN: CLI for self-hosted Invoice Ninja

https://github.com/DrDBanner/inmanage
2•ycomrsys•21m ago•1 comments

They're Made Out of Compute

https://magzimof.com/made-out-of-compute/
2•shaimagz•24m ago•0 comments

High-severity vulnerability in Linux caused by a single faulty character

https://arstechnica.com/security/2026/06/a-single-errant-character-in-the-linux-kernel-allows-att...
2•joozio•25m ago•0 comments

Is symbolic AI more relevant than ever?

https://www.heise.de/en/blog/Is-symbolic-AI-more-relevant-than-ever-11323023.html
2•goloroden•31m ago•0 comments

Can tech companies learn to love cheaper AI models?

https://techcrunch.com/2026/06/09/can-tech-companies-learn-to-love-cheaper-models/
3•parveshblogger•33m ago•0 comments

Tell HN: TIL Apple is rewriting core things in Swift

2•gigatexal•33m ago•0 comments

iOS 27 features we didn't see onstage

https://techcrunch.com/2026/06/09/ios-27-features-we-didnt-see-on-stage/
2•ameypandey•34m ago•1 comments

Turn any PDF or article into a podcast episode

https://manateavagner.com/news/podcasts-pdf-to-episode
1•manateavagner•34m ago•1 comments

Ofarwise – a local Windows app for interview prep and mock practice

https://www.ofarwise.com/
1•hallengray•35m ago•0 comments

BlenderHunt, an Indie Marketplace for Blender Creators

https://blenderhunt.com/
1•egretfx•36m ago•0 comments

Don't mop the floor. Fix the leaky faucet

https://blog.br11k.dev/2026-06-02-dont-mop-the-floor-fix-the-leaky-faucet
2•konovalov-nk•37m ago•1 comments