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

Show HN: A2ABench – agent-native dev Q&A with MCP search/fetch and A2A discovery

https://a2abench-api.web.app
1•khalidsaidi•9m ago•0 comments

Elon Musk emailed Epstein about 'wildest party' on private island: new docs

https://www.ms.now/all-in/watch/elon-musk-emailed-epstein-about-wildest-party-on-private-island-n...
3•NuclearPM•13m ago•1 comments

Coding Is When We're Least Productive

https://codemanship.wordpress.com/2026/01/30/coding-is-when-were-least-productive/
1•vinhnx•16m ago•0 comments

Show HN: Open Sandbox – an open-source self-hostable Linux sandbox for AI agents

https://github.com/diggerhq/opensandbox
3•iacguy•16m ago•0 comments

Testing AI agents on web security challenges

https://www.irregular.com/publications/testing-ai-agents-on-web-security-challenges
1•botacode•17m ago•0 comments

Goblins: Distributed, Transactional Programming with Racket and Guile

https://spritely.institute/goblins/
1•alhazrod•19m ago•0 comments

Show HN: I built a free PDF to Markdown converter

https://freeaitoolforthat.com/pdf-to-markdown
2•tamnv•22m ago•0 comments

AI agents now have their own Reddit-style social network, and it's getting weird

https://arstechnica.com/information-technology/2026/01/ai-agents-now-have-their-own-reddit-style-...
2•SaaSasaurus•25m ago•0 comments

Takeaway coffee cups release microplastic particles

https://phys.org/news/2026-01-takeaway-coffee-cups-thousands-microplastic.html
1•PaulHoule•28m ago•0 comments

L'actualité qui buzz: l'AGI en Vue dès 2026

https://nadiaaccompagne.substack.com/p/lactualite-qui-buzz-lagi-en-vue-des
1•NadiaAccompagne•29m ago•0 comments

U.N. Says It's in Danger of Financial Collapse Because of Unpaid Dues

https://www.nytimes.com/2026/01/30/world/americas/un-finances-collapse-debts.html
3•iancmceachern•29m ago•0 comments

The Saddest Moment: Distributed systems and the reliability illusion (2014)[pdf]

https://www.usenix.org/system/files/login/articles/13_mickens.pdf
1•teleforce•32m ago•0 comments

Epstein claimed Bill Gates had 'sex with Russian girls

https://mynorthwest.com/local/epstein-bill-gates-allegations/4196040
2•mellisacodes•33m ago•1 comments

Openclaw on Oracle's Free Tier: Always-On AI for $0/Month

https://ryanshook.org/blog/posts/openclaw-on-oracle-free-tier-always-on-ai-for-free/
1•RyanShook•33m ago•0 comments

Some Data Should Be Code

https://borretti.me/article/some-data-should-be-code
1•todsacerdoti•38m ago•0 comments

I am trying to create the most toxic social site on the internet

https://hugeweiner.com/
1•ZguideZ•38m ago•2 comments

ICE protester says her Global Entry was revoked after agent scanned her face

https://arstechnica.com/tech-policy/2026/01/ice-protester-says-her-global-entry-was-revoked-after...
6•mediumdeviation•38m ago•0 comments

Idle MMO

https://web.idle-mmo.com/
2•bdlowery•39m ago•0 comments

John Gurdon 1933–2025

https://www.nature.com/articles/s41587-026-03015-5
1•bookofjoe•44m ago•0 comments

2WAY: Software Without Lock-In

https://medium.com/@2W/2way-software-without-lock-in-f390d535ca69
1•livegnik•45m ago•0 comments

Errors in Database Systems, Eventual Consistency, and the CAP theorem (2010)

https://cacm.acm.org/blogcacm/errors-in-database-systems-eventual-consistency-and-the-cap-theorem/
1•teleforce•48m ago•0 comments

NumPy in C (2014)

https://jcastellssala.com/2014/02/01/npy-in-c/
3•fzliu•48m ago•2 comments

The abysmal state of Windows 11 Taskbar icons

https://github.com/tringi/papers/blob/main/windows-state-of-icons.md
1•Tringi•48m ago•1 comments

Show HN: OpenVideo – A self-hostable, open-source video editor in the browser

https://github.com/openvideodev/openvideo
2•snapmotion•52m ago•1 comments

Lumafield Scan of LTT TrueSpec Cable

https://voyager.lumafield.com/project/94fca565-4370-49d8-a5de-797de7c1c188
2•Kye•52m ago•0 comments

List of immigrant detention sites in the United States

https://en.wikipedia.org/wiki/List_of_immigrant_detention_sites_in_the_United_States
4•xqcgrek2•54m ago•0 comments

The Levels of Knowing a Thing

https://ismethandzic.com/blog/levels_of_knowing/
1•blueblahblue•55m ago•0 comments

FastAPI Voyager's new feature: application levle ER Diagram

https://www.fastapi-voyager.top/voyager/?tag=demo&mode=er-diagram
2•tank-34•57m ago•2 comments

First Independence Bank Assumes All Deposits of Metropolitan Capital Bank

https://www.fdic.gov/news/press-releases/2026/first-independence-bank-detroit-michigan-assumes-al...
4•ValentineC•1h ago•1 comments

What Is Data Literacy?

https://www.ibm.com/think/topics/data-literacy
2•teleforce•1h ago•1 comments