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•6mo 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•6mo 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•6mo 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•6mo 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•6mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•6mo ago
Agreed

Chinese-linked hackers use back door for potential 'sabotage,' US and Canada say

https://www.reuters.com/world/china/chinese-linked-hackers-use-back-door-potential-sabotage-us-ca...
1•737min•1m ago•0 comments

Gemini 3 Deep Think is now available in the Gemini app

https://blog.google/products/gemini/gemini-3-deep-think/
1•jamesyun•6m ago•0 comments

Life_logger – Turn your daily experiences into retro thermal receipt-style logs

https://life-logger.netlify.app/
1•Eyoz•7m ago•1 comments

Ask HN: How do LLMs perform in the low-level space?

1•kode-targz•10m ago•0 comments

Our Commitment to Your Ongoing Success with Discourse

https://blog.discourse.org/2025/12/our-commitment-to-your-ongoing-success-with-discourse/
1•kevmarsden•10m ago•1 comments

PublicQ – Free Open Source Assessment and Exam Platform

https://publicq.app/
1•mtokarev•12m ago•1 comments

80s version of Tinder was 'video dating' was incredibly awkward (2015)

https://www.businessinsider.com/found-footage-awkward-80s-video-dating-2015-12
1•raw_anon_1111•16m ago•0 comments

Untapped Potential in the Java Build Tool Experience

https://javapro.io/2025/10/23/untapped-potential-in-the-java-build-tool-experience/
1•lihaoyi•20m ago•0 comments

Show HN: WishKeeper – Gift coordination that keeps the surprise alive

https://wishkeeper.io
1•colinmilhaupt•22m ago•0 comments

You can now text and drive in Tesla's (during FSD)

https://twitter.com/elonmusk/status/1996631421449072754
2•ryanvogel•23m ago•1 comments

Lyrics viewer for Linux that integrates with MPRIS

https://github.com/BEST8OY/LyricsMPRIS-Rust
1•amadeuspagel•27m ago•0 comments

Show HN: Flooder – Making Persistent Homology Practical for Industrial Use Cases

https://plus-rkwitt.github.io/flooder/
2•elektm•31m ago•2 comments

You may loose your company email, but never lose your emails and contacts again

https://app.trevally.io/login.html
3•danvc•35m ago•1 comments

Do We Understand SQL?

https://www.youtube.com/watch?v=qiVUf9X6ItM
1•jamii•38m ago•0 comments

The Disappearance of an Anti-AI Activist

https://www.theatlantic.com/technology/2025/12/sam-kirchner-missing-stop-ai/685144/
9•fortran77•49m ago•2 comments

The Future of AI Code Review: From Bug Detection to Compliance Guardianship

https://codeprot.com/articles/ai-code-review-future.html
1•allenz_cheung•51m ago•1 comments

Ultrasonic device dramatically speeds harvesting of water from the air

https://news.mit.edu/2025/ultrasonic-device-dramatically-speeds-harvesting-water-air-1118
11•bookofjoe•53m ago•5 comments

NeXTSTEP Release 3: A Demonstration with Steve Jobs [video]

https://www.youtube.com/watch?v=rf5o5liZxnA
2•inatreecrown2•57m ago•0 comments

New Browser-Based CAD System Is Best Friends with Triangle Meshes

https://hackaday.com/2025/12/04/new-browser-based-cad-system-is-best-friends-with-triangle-meshes/
3•mmiscool•58m ago•0 comments

Dwarkesh Patel's Second Interview with Ilya Sutskever

https://thezvi.substack.com/p/on-dwarkesh-patels-second-interview
2•paulpauper•1h ago•0 comments

Brussels writes so many laws

https://www.siliconcontinent.com/p/how-brussels-writes-so-many-laws
15•amadeuspagel•1h ago•8 comments

Friends Are Your Destiny

https://arnoldkling.substack.com/p/your-friends-are-your-destiny
1•paulpauper•1h ago•0 comments

Show HN: Meetinghouse.cc – a place to find and be found

https://meetinghouse.cc
1•simonsarris•1h ago•2 comments

Stack Overflow AI Assist–a tool for the modern developer

https://stackoverflow.blog/2025/12/02/introducing-stack-overflow-ai-assist-a-tool-for-the-modern-...
3•nsoonhui•1h ago•0 comments

The Soul of Claude

https://www.zappable.com/p/the-soul-of-claude
1•arikrak•1h ago•0 comments

3B1B: Recruiting, both for myself and for other companies (potentially yours)

https://3blue1brown.substack.com/p/recruiting-both-for-myself-and-for
2•hyperbrainer•1h ago•0 comments

Only Six Kinds of AI Products Actually Work

https://medium.com/@gp2030/only-six-kinds-of-ai-products-actually-work-bf26375f8aa7
2•light_triad•1h ago•0 comments

Show HN: Pytest-test-categories Enforce Google's test sizes in Python

https://github.com/mikelane/pytest-test-categories
1•lanemik•1h ago•0 comments

ClaimChain – public key distribution based on cross-referencing hash chains

https://claimchain.github.io/
1•gjvc•1h ago•0 comments

Wan 2.6 – Open-source AI video generator with native audio sync

https://wan26.io
1•xbaicai•1h ago•1 comments