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

Let me AI that for you

https://let-me-ai.com/
1•NordStreamYacht•3m ago•0 comments

Cognitive architecture AI weighted memory, and a falsifiable continuity metric

https://zenodo.org/records/20350249
1•timeless-hayoka•11m ago•0 comments

Authoritative DNS over encrypted transport at OARC 45

https://blog.apnic.net/2026/05/20/authoritative-dns-over-encrypted-transport-at-oarc-45/
1•8organicbits•20m ago•0 comments

I Need Help

https://substack.com/profile/273607136-melissa-mcguckin/note/c-263672437
2•melissamcguckin•20m ago•1 comments

Is AI Profitable Yet?

https://isaiprofitable.com/
3•poyu•22m ago•0 comments

You Only Use 10% of Printf() – Here Are Things They Didn't Teach You [video]

https://www.youtube.com/watch?v=kdnN0kk7MS0
1•bwidlar•25m ago•0 comments

C-style arbitrary precision calculator

https://github.com/lcn2/calc
1•modinfo•26m ago•0 comments

Sci-Hub has created a new AI chatbot. Is it any good?

https://cen.acs.org/policy/publishing/Sci-Hub-created-new-AI/104/web/2026/04
2•scubscub•28m ago•0 comments

You can issue a 15-year SSL certificate today. Why almost nobody does

2•panelica•32m ago•4 comments

What it takes to run an AI coworker on iMessage

https://opencomputer.dev/blog/what-it-takes-to-run-an-ai-coworker-on-imessage/
1•iacguy•34m ago•0 comments

The Bitcoin Governance Event Horizon

https://earthchronicles.substack.com/p/the-bitcoin-governance-event-horizon
2•taguniversalsw•35m ago•0 comments

Megalodon: Mass GitHub Repo Backdooring via CI Workflows

https://safedep.io/megalodon-mass-github-repo-backdooring-ci-workflows/
1•pabs3•49m ago•0 comments

Vince Is Dead (2023)

https://tildas2.tildas.org/art/sad/dead.htm
1•kniffy•51m ago•1 comments

Instant YouTube channel analysis using public metrics

1•Aafy•53m ago•0 comments

Draft – Teams of BYOA Collaborating and Building

https://foundryworks.dev/
1•trilobyte•55m ago•1 comments

Didgeridoo playing as alternative treatment for obstructive sleep apnea(2006)

https://pmc.ncbi.nlm.nih.gov/articles/PMC1360393/
2•kelseyfrog•55m ago•0 comments

Google is currently struggling to define words like disregard, stop and ignore

https://www.engadget.com/2179762/google-is-currently-struggling-to-define-words-like-disregard-st...
4•mattas•1h ago•7 comments

Show HN: 1 big microfilm of WAR.GOV/UFO files - 332,144 pages

https://hypergrid.systems/war.gov-ufo-viewer/microfilm5
2•keepamovin•1h ago•0 comments

Malicious Postinstall Hook Found in 700 GitHub Repos, Including Node Projects

https://socket.dev/blog/malicious-postinstall-hook-found-across-700-github-repos
7•882542F3884314B•1h ago•1 comments

FigMirror – Plot your data in a reference paper's style

https://github.com/VILA-Lab/FigMirror
1•xiaohan_zhao•1h ago•0 comments

Shelf – Describe a tool in plain English, get a local app forever

https://getmyshelf.app/
2•nagabandaru•1h ago•2 comments

94% companies will keep spending on AI even when it fails

https://readuncut.com/94-will-keep-spending-on-ai-even-when-it-fails/
3•jslat•1h ago•0 comments

Trump directs legal migrants to return to home country to apply for green cards

https://thehill.com/homenews/administration/5891580-legal-migrants-green-cards/
8•KnuthIsGod•1h ago•2 comments

Laravel-Lang Supply Chain Attack

https://github.com/Laravel-Lang/http-statuses/issues/277
1•varunsharma07•1h ago•1 comments

Nano: Coding agent in under 200 lines

https://github.com/pnegahdar/nano
1•kristianp•1h ago•0 comments

The abstractions in SICP need a revisit

https://www.khola.blog/p/sicp-an-architectural-trace-of-pointer
11•bcapchickadee•1h ago•1 comments

Denuvo has been cracked day 1

https://old.reddit.com/r/CrackWatch/comments/1tkvwbb/legobatmanlegacyofthedarkknightvoices38/
2•lazylion2•1h ago•0 comments

The Prehistory of A.I. Slop

https://www.newyorker.com/magazine/2026/05/25/the-prehistory-of-ai-slop
2•fortran77•1h ago•0 comments

Frustrated franchisee sues Pizza Hut over crappy kitchen AI

https://www.theregister.com/ai-ml/2026/05/19/frustrated-franchisee-sues-pizza-hut-over-crappy-kit...
4•gnabgib•1h ago•1 comments

WordPress 7.0

https://wordpress.org/download/releases/7-0/
2•Curiositry•1h ago•0 comments