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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

Mapping the dreamworld: inside Le Guin's unseen cartographies of myth and mind

https://www.designboom.com/art/mapping-the-dreamworld-inside-ursula-k-le-guins-unseen-cartographi...
1•bryanrasmussen•2m ago•0 comments

Ask HN: Are you concerned by TLS-terminating proxies like Cloudflare Tunnels?

1•thom-gtdp•3m ago•1 comments

Identifying the topographic signature of early Martian oceans

https://www.nature.com/articles/s41586-026-10381-2
1•bryanrasmussen•4m ago•0 comments

What even is a Programming Language?

https://medium.com/invisible-lab/what-even-is-a-programming-language-725eba75fc10
1•jotaalvim•4m ago•0 comments

It's OK to abandon your side-project

https://robbowen.digital/wrote-about/abandoned-side-projects/
2•hisamafahri•9m ago•0 comments

Store >> HTTPS://Www.facebook.com/TopCarPlayWirelessCarPlay.Get/

https://www.facebook.com/TopCarPlayWirelessCarPlay.Get
1•marianatroop•16m ago•0 comments

Dizzy Dithering

https://liamappelbe.medium.com/dizzy-dithering-2ae76dbceba1
2•brickers•17m ago•0 comments

Classic HN: Growing a Language [video]

https://www.youtube.com/watch?v=lw6TaiXzHAE
2•ColinWright•18m ago•0 comments

DSpico: The first open-source Nintendo DS flashcart

https://www.lnh-team.org/
2•stratts•18m ago•1 comments

Are Media Buyers Becoming Obsolete?

1•navosagent•18m ago•0 comments

I Rebuilt FORMLOVA's Form Comparison Content Cluster Around One SEO Bet

https://www.indiehackers.com/post/i-rebuilt-formlovas-form-comparison-content-cluster-around-one-...
1•Lovanut•18m ago•0 comments

Show HN: OgBlocks – Copy Paste Animations for React Developers

https://ogblocks.dev
2•karanzhacker•20m ago•0 comments

Can You Find the Comet?

https://apod.nasa.gov/apod/ap260427.html
3•ColinWright•20m ago•0 comments

Things Michelle Kim Is Into

https://www.technologyreview.com/2026/04/22/1135423/3-things-michelle-kim/
1•joozio•20m ago•0 comments

Show HN: Pglite-oxide – embedded Postgres for Rust and Tauri apps

https://github.com/f0rr0/pglite-oxide
3•f0rr0•21m ago•1 comments

Tech Workers Coalition Onboarding Call – Tue 28

https://us02web.zoom.us/meeting/register/a-wjpH4OTyaQ_ZKoHz5tmQ#/registration
1•chobeat•24m ago•1 comments

Azure/AWS Credits – YC AI Stack

1•galabavamsi•30m ago•0 comments

On Lisp: A review of Paul Graham's 1993 book

https://www.alexvear.com/blog/on-lisp/
4•axvr•31m ago•1 comments

Rcarmo/go-rdp: A Go-backed web RDP client (and reference client implementation)

https://github.com/rcarmo/go-rdp/tree/master
2•rcarmo•32m ago•0 comments

There is no main.js

https://alexanderweichart.de/4_Projects/agent-native-software/There-is-no-main-js
4•surrTurr•32m ago•0 comments

How much time left with your parents

https://timeremaining-xi.vercel.app/
4•pinkapple•33m ago•0 comments

Goldman, JPMorgan Show Wall Street's Split in Quantum Computing Race

https://www.bloomberg.com/news/features/2026-04-26/wall-street-s-quantum-computing-divide-goldman...
3•helsinkiandrew•34m ago•0 comments

What universities and higher education demand today

https://www.youtube.com/watch?v=do68pHMLpB8
1•downboots•37m ago•1 comments

The authentication in Microsoft's agent governance toolkit never runs

https://www.flyingpenguin.com/authentication-bypass-in-microsoft-agent-governance-toolkit-at-573f...
3•feigewalnuss•38m ago•1 comments

Forge

https://blog.cloudflare.com/
2•adwada•41m ago•0 comments

Ask HN: Is Ubuntu 26.04 LTS Consider GNU/Linux?

2•xlmnxp•44m ago•0 comments

Doxa – Economical-constrainted ABM simulator with Ollama

https://github.com/VincenzoManto/Doxa
6•dinarino•44m ago•1 comments

Show HN: Axiom – A zero-copy C engine for CSV processing (0.20s vs. 2.70s Pandas

3•Naresh-cn2•48m ago•0 comments

The Monday Elephant #2: SQL Queries to List Users and Groups

https://pgdash.io/blog/monday-elephant-postgres-tips-2.html?h
2•i_have_to_speak•50m ago•0 comments

Sum-Check as an Algebraic Tensor Reduction: Part 1

https://blog.zksecurity.xyz/posts/tensor-reductions-1/
6•marcobesier•51m ago•0 comments