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•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

Enterprises Are Counting Tokens Because They Can't Measure Value

https://twitter.com/jqdsouza/status/2060002135476232654
1•jqdsouza•2m ago•0 comments

Celebrities are telling women to use more AI or be 'left behind.'

https://www.cbc.ca/news/entertainment/women-celebrities-ai-9.7213256
1•andy99•3m ago•0 comments

Political Velocity

https://protortyp.github.io/posts/political-velocity/
2•protortyp•4m ago•1 comments

Show HN: Ktx – Open-source executable context layer for data agents

https://github.com/Kaelio/ktx
1•lucamrtl•5m ago•0 comments

Teaching coding agents to debug Rails memory issues with derailed_benchmarks

https://www.superconductor.com/blog/memory-leak-coding-agents
1•ibrahima•6m ago•0 comments

Claude Code hook that plays a random sound on negative feedback

https://github.com/theletterf/defensive-hook
1•theletterf•6m ago•1 comments

Circuit Board Can Rewire Itself

https://www.eejournal.com/article/this-circuit-board-can-rewire-itself/
1•awithrow•6m ago•0 comments

Ship of Theseus

https://en.wikipedia.org/wiki/Ship_of_Theseus
2•chistev•8m ago•0 comments

Incognito Chat with Meta AI: a private way to chat with AI

https://blog.whatsapp.com/introducing-incognito-chat-with-meta-ai-a-completely-private-way-to-cha...
2•commandersaki•9m ago•1 comments

RAM-Mageddon – Memory price comparison

https://ram-mageddon.com/
1•BrunoVT1992•9m ago•1 comments

SQLite Agents.md

https://github.com/sqlite/sqlite/blob/master/AGENTS.md
2•Brajeshwar•9m ago•0 comments

IBM and Red Hat Commit $5B to Redefine the Future of Open Source in the AI Era

https://www.redhat.com/en/about/press-releases/project-lightwell-secure-open-source
1•fredski42•10m ago•0 comments

Ask HN: Why is problem solving in math still important in the AI age?

2•amichail•11m ago•1 comments

Spotify CEO defends AI music, wants you to stop calling it 'slop'

https://www.neowin.net/news/spotify-ceo-defends-ai-music-wants-you-to-stop-calling-it-slop/
3•bundie•11m ago•1 comments

AI Didn't Create These Problems. It Just Stopped Routing Around Them

https://baweaver.com/writing/2026/05/27/ai-didnt-create-these-problems/
2•kurinikku•12m ago•0 comments

Show HN: My custom agent skill for commit messages

https://github.com/ThatXliner/x-commit
1•thatxliner•12m ago•0 comments

Adding Reflection to C

https://www.davidpriver.com/adding-reflection-to-C.html
2•telotortium•15m ago•0 comments

Sun Microsystems History: From Unix Workstations to Java, Solaris, and Oracle

https://www.generationamiga.com/2026/05/27/sun-microsystems-history-from-unix-workstations-to-jav...
1•ibobev•18m ago•0 comments

Mark Zuckerberg's Worst Metaverse Bet Was Always Mark Zuckerberg

https://www.frontrow.co/blog/mark-zuckerbergs-worst-metaverse-bet-was-always-mark-zuckerberg-now-...
1•andybak•19m ago•0 comments

Occupy Wall Street co-founder built an on-device AI for activists

https://gizmodo.com/occupy-wall-street-co-founder-built-an-ai-app-to-help-activists-seize-the-mea...
3•micahwhite•20m ago•0 comments

A funny thing happened on the way to teaching advanced AI core frontier tech

https://steverepetti.substack.com/p/collaborative-teaching-of-frontier
1•srepetti•21m ago•0 comments

Building Omegle for Exposed Webcams

https://alec.is/posts/building-omegle-for-exposed-webcams/
2•arm32•22m ago•0 comments

Building apps like the hero of 12 angry men

https://wman.substack.com/p/building-apps
2•tetek•23m ago•0 comments

MapRoot: Two OSS zero-days to cross-tenant RCE in Microsoft Planetary Computer

https://enclave.ai/blog/maproot-two-cross-tenant-rce-on-microsoft-planetary-computer
2•talhof8•23m ago•0 comments

Ask HN: How to introduce cloud computing to high schoolers?

2•shivajikobardan•25m ago•1 comments

Acme CAA Extensions to Become Mandatory

https://www.feistyduck.com/newsletter/issue_137_acme_caa__extensions_to_become_mandatory
1•speckx•25m ago•0 comments

NASA satellites locate mysterious GPS jammer within several kilometers in Iran

https://arstechnica.com/gadgets/2026/05/nasa-satellites-can-spot-gps-jammers-on-earth/
2•ck2•27m ago•0 comments

From Chivalry to Involution in the Evolution of Wuxia

https://systemsthinkingcollection.substack.com/p/swords-on-the-margins
1•InputName•27m ago•0 comments

Creusot helps you prove your Rust code is correct

https://github.com/creusot-rs/creusot/tree/master
9•fanf2•28m ago•0 comments

AI Marketing and Growth Specilaist

1•AiGrowth•28m ago•1 comments