frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•3h 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•3h 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•46m 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

johncoltrane•2h ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•58m ago
Agreed

AI Is Not Your Friend

https://www.theatlantic.com/technology/archive/2025/05/sycophantic-ai/682743/
1•fortran77•1m ago•0 comments

Can Apple fix the mediaanalysisd CPU hog?

1•justmarc•1m ago•0 comments

Q&A with Sonos interim CEO Tom Conrad on the disastrous app redesign and more

https://www.theverge.com/speakers/664329/sonos-ceo-tom-conrad-interview-app-speakers-subscriptions
1•squiffsquiff•1m ago•1 comments

Stresstest my AI chat – HAMMER IT

1•tobiaslins•4m ago•0 comments

The Iberian blackout shows the dangers of operating power grids with low inertia

https://watt-logic.com/2025/05/09/the-iberian-blackout-shows-the-dangers-of-operating-power-grids-with-low-inertia/
1•kgwgk•7m ago•0 comments

SoundCloud changes policies to allow AI training on user content

https://techcrunch.com/2025/05/09/soundcloud-changes-policies-to-allow-ai-training-on-user-content/
1•tanelpoder•7m ago•0 comments

'Moments in Time' Series Celebrates Iconic Queer Australian Stories

https://www.starobserver.com.au/news/national-news/moments-in-time-series-celebrates-iconic-queer-australian-stories/236588
1•gnabgib•7m ago•0 comments

Pitch your dream AI agent workflow, get a custom agent back

https://vestra.ai/studio
1•eldobaggins•8m ago•0 comments

When a bad analysis is worse than none at all

https://surfingcomplexity.blog/2025/05/10/when-a-bad-analysis-is-worse-than-none-at-all/
1•azhenley•13m ago•0 comments

Autosetup – An Autoconf Replacement

https://msteveb.github.io/autosetup/
1•smartmic•13m ago•0 comments

MMB – Multimedia Builder (1999)

https://www.mediachance.com/mmb/
1•reconnecting•15m ago•1 comments

Show HN: PLAttice, for assembling structures much larger than the 3D printer bed

https://zachfred.in/projects/plattice/plattice.html
1•zakqwy•23m ago•0 comments

Figma Dreamweaver

https://productpicnic.beehiiv.com/p/figma-dreamweaver
2•tobr•24m ago•0 comments

An MCP-powered agent in 50 lines of code

https://huggingface.co/blog/tiny-agents
1•chuckhend•29m ago•0 comments

Why the Obvious Choice for a Boeing 757 Replacement Isn't So Obvious

https://www.jalopnik.com/1853299/what-will-replace-boeing-757/
4•rntn•38m ago•1 comments

5 years of the FreeBSD Foundation: Free-thinkers united

https://www.xda-developers.com/the-freebsd-foundation-has-been-powering-your-devices-for-25-years/
1•rodrigo975•40m ago•0 comments

Understanding the Math Behind ReSTIR GI

https://agraphicsguynotes.com/posts/understanding_the_math_behind_restir_gi/
1•ibobev•40m ago•0 comments

The Great Wall of China isn't visible from the moon

https://www.nasa.gov/image-article/great-wall/
2•thunderbong•42m ago•0 comments

My Visit with My Dead Father's Brain

https://nautil.us/my-visit-with-my-dead-fathers-brain-1207680/
1•dnetesn•51m ago•0 comments

Trying out llama.cpp's new vision support

https://simonwillison.net/2025/May/10/llama-cpp-vision/
1•marviel•52m ago•0 comments

Smells Like Friend Spirit

https://nautil.us/smells-like-friend-spirit-1209920/
1•dnetesn•52m ago•0 comments

Ask HN: What is the worst communications tool you've ever used?

2•logicallee•54m ago•1 comments

Old Apple Stuff

https://oldapplestuff.com/
1•jdkee•55m ago•0 comments

TLB Shootdowns (2020)

https://github.com/bitcharmer/tlb_shootdowns
1•senkora•57m ago•0 comments

WireGuard and Web UI and Adblock and DNS Caching

https://github.com/nguyenanhung/dmad
2•nguyenanhung•57m ago•1 comments

Simplifying server management with Docker and Caddy

https://github.com/nguyenanhung/infra-caddy-guy
1•nguyenanhung•1h ago•1 comments

Microsoft Teams will soon block screen capture during meetings

https://www.bleepingcomputer.com/news/microsoft/microsoft-teams-will-soon-block-screen-capture-during-meetings/
23•josephcsible•1h ago•34 comments

Cursor Readonly Rules

https://www.reasonote.com/blog/cursor-readonly-rules
1•marviel•1h ago•0 comments

Tech debt can't be solved as a roadmap item

https://software.rajivprab.com/2025/05/10/tech-debt-cant-be-solved-as-a-roadmap-item/
1•whack•1h ago•0 comments

When graphic design saves lives

https://news.harvard.edu/gazette/story/2025/05/when-graphic-design-saves-lives/
1•gnabgib•1h ago•0 comments