frontpage.
newsnewestaskshowjobs

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

Major tech outages in 6 days: timelines and reported causes

https://pressaudit.org/f/community/posts/seven-major-tech-outages-in-six-days-timelines-and-repor...
1•SLHamlet•28s ago•0 comments

PaloAlto Networks buys AppliedCompute founded last yr by 3 OpenAI alums for 4.5B

https://www.reuters.com/technology/palo-alto-buy-ai-startup-applied-compute-45-billion-2026-11-18/
1•sjdh76•4m ago•0 comments

Vapors Preview – new Svelte inspired Rust GUI framework [video]

https://www.youtube.com/watch?v=jo16XhyukyA
1•tomyandell•4m ago•0 comments

The 50-Yard Line

https://daringfireball.net/2026/11/the_50-yard_line
1•moonlighter•5m ago•0 comments

Hackers Hijack Websites of CNN, BBC and Major Banks

https://www.thedailybeast.com/hackers-hijack-websites-of-cnn-bbc-and-major-banks
5•madihaa•6m ago•0 comments

New Study Shows How Young People Feel About AI Companions

https://www.404media.co/gallup-study-friendship-ai-companions/
2•cdrnsf•9m ago•1 comments

CI/CD for crowd-sourced math proofs and validation

https://math-board.nervousmachine.com
1•hbennett124•10m ago•1 comments

Pushing WireGuard on macOS to 5 Gbit/s

https://www.firezone.dev/blog/apple-client-performance
1•wh33zle•10m ago•0 comments

PhantaField Projects $0.42/M Output Tokens in Orbit with White Matter and Sophon

https://www.phantafield.com/news/sizing-an-orbital-ai-datacenter
1•phantafield•11m ago•1 comments

Show HN: GTA 6 is out, so I built an agent to do my job in Chrome

https://chromewebstore.google.com/detail/shoppilot/jaookbeghccminjahkpgfgpdjblabhia
1•MichalKrk•12m ago•0 comments

Show HN: Pitot – OpenTelemetry in One Binary, with Parquet, DuckDB, and MCP

https://github.com/labstack/pitot
1•matrika•12m ago•0 comments

We Need Smart People Who Give a Shit

https://violetpixel.com/blog/2026-11-17-we-need-smart-people-who-give-a-shit/
16•ExMachina73•14m ago•4 comments

The First Nvidia RTX Spark Mini PCs Launch Today from Asus, Dell, and MSI

https://www.theverge.com/tech/1036880/nvidia-rtx-spark-ai-mini-pc-desktops
1•CharlesW•14m ago•0 comments

FastFrames: Video Generation at Interactive Latency

https://huggingface.co/apple/FastFrames-L
1•tingletech•15m ago•0 comments

Multiple vulnerabilities in Regexp and String case conversion

https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
4•runesoerensen•15m ago•0 comments

Tchiko Native GTK3 Linux sysadmin companion with sub-15ms local dispatch

https://zyniq-solutions.github.io/Tchiko-Assistant-Sysadmin-companion/
1•khalilpreview•15m ago•0 comments

Injury-induced signalling coordinates immunity and cannibalism in locusts

https://www.nature.com/articles/s41586-026-11297-7
1•geneticdrifts•17m ago•0 comments

Software companies are trying to kill home computing

https://lateblt.livejournal.com/526188.html
2•sammatilda•18m ago•0 comments

Palo Alto Networks to Acquire Applied Compute for $4.5B

https://investors.paloaltonetworks.com/news-releases/news-release-details/palo-alto-networks-acqu...
1•alpb•18m ago•0 comments

Show HN: Solve hard jigsaw puzzles scanning with phone

https://puzzle.cloudish.app/
1•javierluraschi•22m ago•2 comments

Show HN: Frontier Observatory – A visual timeline of what the AI labs ship

https://frontier-lab-observatory.lucentcarrot1.chatgpt.site
1•mnhcorp•22m ago•0 comments

Oops All Shells – Stupid Vulnerability Name Generator

https://oops-all-shells.netlify.app/
1•mister_mort•23m ago•1 comments

Getting Access

https://www.math.columbia.edu/~woit/wordpress/?p=16002
1•jjgreen•23m ago•0 comments

Apache Shiro Joins the GitHub Secure Open Source Fund

https://shiro.apache.org/blog/2026/11/apache-shiro-secure-open-source-fund.html
1•lprimak•23m ago•0 comments

The public database of AI agent incidents

https://www.experimentempire.com/agent-incident-register
1•yakhinvadim•26m ago•0 comments

That 'SNL' Sister Sketch: It's More Like Nonfiction

https://www.nytimes.com/2026/11/18/upshot/sister-snl-elder-care.html
2•mooreds•26m ago•0 comments

Maak v1.0.0 – infinitely extensible command runner, build sys in Lisp

https://github.com/jjba23/maak
1•jjba23•26m ago•0 comments

Carbon beats opponents when it thinks more than them, but not more in total

https://micjm.com/blog/carbon-beats-opponents-when-it-thinks-more-than-them-but-not-more-in-total/
1•seizethecheese•26m ago•0 comments

Identity Verification Built for Devs

https://www.idswyft.app/
1•mooreds•27m ago•0 comments

Would you dine out more if restaurants turned off the music?

https://boulderreportinglab.org/newsletter/%f0%9f%92%ac-would-you-dine-out-more-if-restaurants-tu...
2•mooreds•27m ago•2 comments