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

TileRT Takes the Top Spot on AgentX with AMD Instinct MI355X GPUs

https://www.tilert.ai/blog/tilert-amd-agentx.html
1•pella•2m ago•0 comments

Show HN: SelMem – selective reconstructive memory for LLMs

https://github.com/jbsalles/Selmem
1•Jibs79•4m ago•0 comments

Show HN: A benchmark comparison of C++ vs. Node.js performance

https://vikky2810.github.io/blog/cpp-vs-node/
1•vikky2810•7m ago•0 comments

Tracking Singularity – A Curated Log of Important Events in AI Since Mid 2026

https://trackingsingularity.com/
2•dejavucoder•23m ago•0 comments

SunCalc – sunrise, sunset, shadow length, solar eclipse

https://www.suncalc.org
1•gregsadetsky•24m ago•0 comments

Picking a domain name is hard

https://aetherspe.cc/blog/20260925-picking_a_domain_name_is_hard/
1•weakened_malloc•28m ago•1 comments

Show HN: Sitcom Flavour – Season your Claude Code chats with sitcom replies

https://ada.tools/sitcom-flavour/
1•EmreErkan•28m ago•0 comments

Stanford used AI to replace Hispanic student with Black woman in photo

https://www.msn.com/en-ca/money/general/stanford-used-ai-to-replace-hispanic-student-with-black-w...
2•pykello•31m ago•1 comments

Goodbye Google

https://robert.ocallahan.org/2026/09/goodbye-google.html
3•Murmuring9087•40m ago•1 comments

Krakatoa, an interactive 2.5D painting of the 1883 eruption

https://www.echohive.ai/experiments/krakatoa
1•echohive42•40m ago•0 comments

Jev Based Code Review

https://github.com/egma-ai/jev-code-reviewer
2•namanbhulawat•43m ago•2 comments

Plex: Remote Streaming via Third-Party Apps to Require a License

https://netguide.io/news/en/2026/09/22/plex-remote-streaming-via-third-party-apps-to-require-a-li...
3•sippingabonedry•44m ago•0 comments

Proofmode

https://proofmode.org/
2•F3nd0•46m ago•0 comments

Vulnerability Cve-2026-82958

https://vulnerability.circl.lu/vuln/cve-2026-82958
1•anonyoum•51m ago•0 comments

What your phone is made of

https://anas-sabbar.ca/writing/what-your-phone-is-made-of/
2•Roccan•52m ago•0 comments

Fzakaria/omnibin: Every binary nixpkgs ever shipped, on your PATH

https://github.com/fzakaria/omnibin
1•Tomte•52m ago•0 comments

Finding Bugs

https://matklad.github.io/2026/09/19/finding-bugs.html
1•jamilbk•55m ago•0 comments

What's New in Oracle Solaris 11.4 SRU 95

https://blogs.oracle.com/solaris/whats-new-in-oracle-solaris-11-4-sru-95
2•zdkaster•58m ago•0 comments

Pompeii test case demonstrates Gaussian Splatting's potential

https://www.gim-international.com/news/pompeii-test-case-demonstrates-gaussian-splatting-s-potent...
1•bryanrasmussen•58m ago•0 comments

Every Package Is Installed

https://fzakaria.com/2026/09/24/every-package-is-already-installed
1•ghuntley•1h ago•0 comments

Perch: Semantic Code Linting with Jev

https://github.com/lakeday-org/perch
2•handfuloflight•1h ago•0 comments

Is indirect prompt injection still a big threat as models get more advanced?

https://realarcherl.github.io/posts/prompt_injection/
3•ArcherL•1h ago•4 comments

AI/ML Engineer

https://docs.google.com/forms/d/e/1FAIpQLSdrsnW2CpvYDBRZnS91cL4nXgnvi1mwQSYqF6IhvGPImaLKYw/viewform
1•lets_talk•1h ago•0 comments

We Built Safety into Muse

https://research.meta.ai/blog/security-and-safety-for-ai-agents-our-approach-with-muse
2•AnhTho_FR•1h ago•0 comments

Micron Technology sucessfully demonstrates first 512GB DDR5 RDIMM module

https://investors.micron.com/news/press-release/2026/Micron-Advances-Memory-Innovation-With-the-W...
3•peter_d_sherman•1h ago•0 comments

September's ozone hole biggest in 20 years, warning signs appeared months ago

https://www.rnz.co.nz/news/science-and-technology/1572285/september-s-ozone-hole-biggest-in-20-ye...
3•colinprince•1h ago•0 comments

Collaborative Editing in Wordgard

https://marijnhaverbeke.nl/blog/collaborative-editing-wordgard.html
4•fagnerbrack•1h ago•1 comments

Plan Mode Is Dead

https://www.aymannadeem.com/artificial/intelligence,/developer/tools/2026/09/24/plan-mode-is-dead...
2•jmvldz•1h ago•0 comments

Power your agents: Gemini 3.8 Live with Live Avatar is now generally available

https://cloud.google.com/blog/products/ai-machine-learning/gemini-3-8-live-with-live-avatar-is-no...
2•planteur•1h ago•0 comments

What I Found Out About Organ Donation Shocked Me

https://www.nytimes.com/2026/09/18/opinion/organ-donation-system-ethics-trust.html
3•Alien1Being•1h ago•3 comments