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

Qwen3-TTS Works Also on CPU. No Nvidia GPU Required

https://www.youtube.com/watch?v=GsyYSZlwFFI
1•grigio•27s ago•0 comments

Show HN: Wächter – Traffic shaping and monitoring for Linux

https://github.com/univrsal/waechter
1•univrsal•2m ago•0 comments

Show HN: Protogen Beta

https://github.com/jzkool/Aetherius-sGiftsToHumanity/blob/main/Architectural%20Software/protogen_...
1•hiddenarchitect•3m ago•0 comments

The passive in English (2011)

https://languagelog.ldc.upenn.edu/nll/?p=2922
2•penetralium•3m ago•0 comments

Apple Mac turns 42 and we still are still using the same user paradigm

https://www.tomshardware.com/software/macos/the-apple-mac-turned-42-this-weekend-we-are-still-usi...
2•heresie-dabord•6m ago•0 comments

When two years of academic work vanished with a single click

https://www.nature.com/articles/d41586-025-04064-7
2•wawayanda•13m ago•0 comments

Munros, Corbetts, Grahams and Donalds: What's the Difference?

https://www.thehighlandmountaincompany.co.uk/post/munros-corbetts-grahams-and-donalds-what-s-the-...
1•RicoElectrico•13m ago•0 comments

A high-performance, minimalist visual board for spatial thinkers

https://vb.lokryn.com
1•jen_lokryn•15m ago•1 comments

A Codebase by an Agent for an Agent

https://ampcode.com/by-an-agent-for-an-agent
1•pbshgthm•18m ago•0 comments

Show HN: Ghostree is a Ghostty fork with worktree management built in

https://github.com/sidequery/ghostree
2•nicoritschel•19m ago•1 comments

Python 3.14 Remote Debugging and Claude Code = Pwnage

https://github.com/promptromp/python-remote-debug-skill
2•adamhadani•19m ago•1 comments

Show HN: Computer Chronicles

https://computerchronicles.tv
1•LeoPanthera•22m ago•0 comments

LED lighting undermines visual performance unless supplemented by wider spectra

https://www.nature.com/articles/s41598-026-35389-6
11•bookofjoe•22m ago•0 comments

What the world can learn from Paris's cycling revolution

https://momentummag.com/what-the-world-can-learn-from-pariss-cycling-revolution/
3•fanf2•24m ago•0 comments

Spreadsheets and Vi and JSON

https://awalgarg.me/untitled_project
2•todsacerdoti•24m ago•0 comments

Sagas (2012)

https://vasters.com/archive/Sagas.html
1•locknitpicker•24m ago•0 comments

Cori – Give agents safe DB write access without raw SQL (open source in Rust)

https://github.com/cori-do/cori-kernel
2•bringitup•25m ago•1 comments

UK to reimburse visa fees for AI and quantum researchers

https://www.timeshighereducation.com/news/uk-reimburse-visa-fees-ai-and-quantum-researchers
1•rbanffy•26m ago•0 comments

House of Lords votes for under-16s social media ban

https://www.computing.co.uk/news/2026/legislation-regulation/peers-vote-for-under-16-social-media...
2•rbanffy•27m ago•2 comments

Hand-Crafting Domain-Specific Compression with an LLM

https://engineering.nanit.com/hand-crafting-domain-specific-compression-with-an-llm-3c42f5c2b070
1•miedwar•30m ago•0 comments

RAG for Legacy Systems: 7,432 Pages to 3s Answers

https://clouatre.ca/posts/rag-legacy-systems/
4•french_exec•34m ago•0 comments

WorldChaosMap: A live map of global instability

https://www.worldchaosmap.app/
2•shawsuraj•35m ago•1 comments

VPN Comparison Spreadsheet

https://old.reddit.com/r/rateVPNs/comments/1gw58mk/the_ultimate_vpn_comparison_spreadsheet/
1•scapecast•37m ago•0 comments

Show HN: A lightweight, native macOS menubar app for monitoring with mini graphs

https://github.com/bluewave-labs/systempulse
1•gorkemcetin•38m ago•0 comments

Software Design Principles That Matter

https://newsletter.francofernando.com/p/software-design-principles-that-matter
2•rmason•38m ago•1 comments

The '3.5% rule': How a small minority can change the world

https://www.bbc.com/future/article/20190513-it-only-takes-35-of-people-to-change-the-world
17•choult•39m ago•5 comments

Watch This Futuristic Windshield Melt Ice Almost Instantly

https://www.thedrive.com/news/watch-this-futuristic-windshield-melt-ice-almost-instantly
2•PaulHoule•39m ago•0 comments

Gemba

https://en.wikipedia.org/wiki/Gemba
1•wjb3•41m ago•0 comments

PickYourVC: Find the right VC for your next round

https://pickyourvc.com/
1•panrobo•41m ago•1 comments

Semantic Attacks: Exploiting What Agents See

https://niyikiza.substack.com/p/semantic-attacks-exploiting-what
1•niyikiza•41m ago•1 comments