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

LLMs versus the Halting Problem: Revisiting Program Termination Prediction

https://www.orensultan.com/llms_halting_problem/
1•matt_d•2m ago•0 comments

Wikipedia Annual Plan – Contribute to the Big Questions

https://meta.wikimedia.org/wiki/Talk:Wikimedia_Foundation_Annual_Plan/2026-2027
1•tonymet•5m ago•0 comments

Elon Musk Merges SpaceX with XAI

https://www.nytimes.com/2026/02/02/business/spacex-xai-deal.html
1•frenchman_in_ny•8m ago•1 comments

Teachers/tutors, how do you do remote coding lessons?

1•Jamaldeen•11m ago•0 comments

Adobe Animate will be discontinued effective March 1, 2026

https://helpx.adobe.com/uk/animate/kb/end-of-life.html
2•g0ld3nrati0•14m ago•2 comments

NYC's mayor will shut down 'gifted and talented' program

https://www.dailymail.co.uk/news/article-15509309/nyc-mayor-zohran-mamdani-axe-gifted-program.html
2•mhb•15m ago•2 comments

Axiom: Hi-perf. C++ tensor lib. NumPy/PyTorch-like API, SIMD,BLAS,Metal support

https://github.com/Frikallo/axiom
1•npalli•16m ago•0 comments

Autism vs. Dating Profile Optimizing. One Winner. Claude Skill

https://github.com/b1rdmania/hinge-profile-optimizer
1•birdmania•16m ago•1 comments

How LSP Works: Building a Grammar Checker LSP from Scratch in Rust

https://www.aroy.sh/posts/lsp-deep-dive/
1•trifiasco•19m ago•0 comments

Benchmarking LLMs for Voice Agent Use Cases

https://www.daily.co/blog/benchmarking-llms-for-voice-agent-use-cases/
1•benlower•20m ago•0 comments

Accelerating our global growth: Waymo raises $16B investment round

https://waymo.com/blog/2026/02/waymo-raises-usd16-billion-investment-round
2•boulos•21m ago•1 comments

Watching Insidious in VR in a small NYC theater

https://partiful.com/e/ydTGBueYzwm19nv4XYrq
1•danielgh7•21m ago•1 comments

We're helping preserve the genetic information of endangered species with AI

https://blog.google/innovation-and-ai/technology/ai/ai-to-preserve-endangered-species/
1•tzury•21m ago•0 comments

Porn stars can survive in the age of AI

https://www.economist.com/business/2026/01/27/how-porn-stars-can-survive-in-the-age-of-ai
2•jdkee•21m ago•1 comments

Msgvault: Fast Gmail search from the author of Pandas

https://wesmckinney.com/blog/announcing-msgvault/
1•wdaher•23m ago•0 comments

A sweat-based sensor may help improve sleep quality

https://medicalxpress.com/news/2026-01-based-sensor-quality.html
1•PaulHoule•23m ago•0 comments

The Tech Elites in the Epstein Files

https://www.wired.com/story/epstein-files-tech-elites-gates-thiel-musk/
3•spenvo•24m ago•0 comments

Turbopuffer TUI

1•ralaruri•24m ago•0 comments

Show HN: MoonLocator – Astronomical library for moon calculations in Java

https://github.com/dgrims3/MoonLocatorLibrary
1•tenahu•25m ago•0 comments

Hiring Head of Eng. For Funded Medicaid-Tech Startup

https://wellfound.com/l/2BZRsS
1•RocklandSystems•25m ago•1 comments

SpaceX acquires xAI, plans 1M satellite constellation to power it

https://arstechnica.com/space/2026/02/spacex-acquires-xai-plans-1-million-satellite-constellation...
3•LorenDB•29m ago•1 comments

GLM-OCR

https://docs.z.ai/guides/vlm/glm-ocr
1•wahnfrieden•29m ago•0 comments

Neil Gaiman Is Innocent – Technopathology

https://technopathology.substack.com/p/neil-gaiman-is-innocent-introduction
5•kreyenborgi•30m ago•0 comments

Musk Mars Merger, Maybe

https://www.bloomberg.com/opinion/newsletters/2026-02-02/musk-mars-merger-maybe
1•pinewurst•30m ago•2 comments

Elon Musk's SpaceX acquiring AI startup xAI ahead of potential IPO

https://www.cnbc.com/2026/02/02/elon-musk-spacex-xai-ipo.html
1•poniko•33m ago•1 comments

xAI Joins SpaceX

https://x.ai/news/xai-joins-spacex
83•beklein•34m ago•4 comments

Show HN: Polymcp and Ollama for Simple Local and Cloud LLM Execution

1•justvugg•36m ago•0 comments

King County, WA eviction levels hit an all-time high, again

https://www.seattletimes.com/business/real-estate/king-county-wa-eviction-levels-hit-an-all-time-...
2•petethomas•36m ago•0 comments

Mamdani Report

https://iamwillwang.com/mamdani-report/
1•wxw•37m ago•0 comments

xAI joins SpaceX

https://www.spacex.com/updates#xai-joins-spacex
60•g-mork•37m ago•176 comments