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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

Unravel Engine: Cross-Platform C++20 Game Engine with Wysiwyg Editor

https://github.com/unravel-dev/UnravelEngine
1•klaussilveira•1m ago•0 comments

Geneagrapher – Mathematician advisor-advisee genealogies

https://github.com/davidalber/geneagrapher
1•matteodelabre•1m ago•0 comments

A GTA modder has got the 1997 original working on modern PCs and Steam Deck

https://gtaforums.com/topic/986492-grand-theft-auto-ready2play-full-game-windows-version/
2•HelloUsername•3m ago•0 comments

Show HN: Filtron – parse human-friendly filter strings into structured queries

https://filtron.dev/
2•jbergstroem•5m ago•0 comments

Famous Disease

https://weblog.snats.xyz/posts/2025/12/12/
1•snats•5m ago•0 comments

Show HN: Aicpm – Verifiable AI provenance labels for web content

1•chttadude•6m ago•0 comments

The 'Little red dots' observed by Webb were direct-collapse black holes

https://phys.org/news/2026-02-red-dots-webb-collapse-black.html
4•bookmtn•6m ago•1 comments

Soft Delete Is a Workaround

https://docs.eventsourcingdb.io/blog/2026/02/09/soft-delete-is-a-workaround/
2•goloroden•7m ago•0 comments

Network Next: network accelerator for multiplayer games

https://github.com/networknext/next
1•klaussilveira•7m ago•0 comments

3D printing with one of the hardest Tungsten-based material now possible

https://www.tomshardware.com/3d-printing/3d-printing-with-one-of-the-worlds-hardest-tungsten-base...
2•rolph•11m ago•0 comments

Secure Boot (Gentoo Wiki)

https://wiki.gentoo.org/wiki/Secure_Boot
3•trelane•11m ago•0 comments

Apple Container 0.9.0

https://github.com/apple/container/releases/tag/0.9.0
3•tosh•11m ago•0 comments

Show HN: Envon - cross-shell CLI for activating Python virtual environments

https://github.com/Userfrom1995/envon
2•userfrom1995•11m ago•0 comments

Startup founder behind San Francisco pro-billionaire rally

https://www.sfgate.com/politics/article/march-for-billionaire-rally-san-francisco-21339827.php
5•CoffeeOnWrite•12m ago•1 comments

Trying out Coder (rebuilding Ramp's background agent setup in a weekend, part 2)

https://eliot.blog/p/trying-out-coder-attempting-to-rebuild
1•ea016•13m ago•0 comments

Amazon delivery drone strikes North Texas apartment, causing minor damage

https://www.expressnews.com/news/texas/article/amazon-delivery-drone-crash-richardson-texas-21341...
7•robotnikman•15m ago•1 comments

France Ditches US Tech: Will Europe Follow? [video]

https://www.youtube.com/watch?v=oZL-nRB23RI
4•jethronethro•17m ago•0 comments

What's the Future of Agent-to-Agent Coding Collaboration Without Humans?

https://www.raysurfer.com/blog/agent-owned-repo
1•greenfish6•18m ago•1 comments

Motia: Unified back end framework with observability and state management

https://motia.dev
1•nateb2022•18m ago•0 comments

Show HN: Google rejected my privacy app for "low engagement"

1•safestream•20m ago•0 comments

Hibernate

https://github.com/GoodluckH/hibernate
2•GoodluckH•21m ago•0 comments

Particle Lenia

https://znah.net/lenia/
2•memalign•22m ago•0 comments

Burning trees to help the planet? South Florida tries new climate tech solution

https://phys.org/news/2026-01-trees-planet-south-florida-climate.html
1•PaulHoule•23m ago•0 comments

Corporations Don't Have to Maximize Profits (2015)

https://www.nytimes.com/roomfordebate/2015/04/16/what-are-corporations-obligations-to-shareholder...
7•speckx•24m ago•0 comments

Betteridge's Law of Headlines

https://en.wikipedia.org/wiki/Betteridge%27s_law_of_headlines
2•wjb3•24m ago•0 comments

The Gradual Print Is Here

https://www.lynalden.com/february-2026-newsletter/
2•throwaway_08932•24m ago•0 comments

EU AI Act: Practical Risk Classification for Business AI Use Cases

https://www.jaikin.eu/en/ia-conforme-rgpd-ai-act
2•victorgk_•25m ago•1 comments

Show HN: We audited AI agent configs on GitHub. Every one had security issues

https://clawhatch.com/blog/state-of-ai-agent-security-2026
1•pensaer•26m ago•0 comments

Hacker News in Your Terminal

https://github.com/bensadeh/circumflex
1•saikatsg•29m ago•0 comments

Ask HN: What to do instead of giving up on tech

2•moon2•33m ago•0 comments