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

Show HN: NotionPulse – Track time-on-page for your Notion pages

https://www.notionpulse.cc
1•i-wan•1m ago•0 comments

Hyrum's Tests

https://github.com/michaelwinser/hyrums-tests
1•michaelw•2m ago•1 comments

Ransomware gangs focus on winning hearts and minds

https://www.computerweekly.com/news/366638772/Ransomware-gangs-focus-on-winning-hearts-and-minds
1•WaitWaitWha•2m ago•0 comments

Informacje O łączach

https://iplogger.org/pl/logger/MFHm5DTweJUu
1•nonurlshort•4m ago•0 comments

A Complete Archive of Moltbook Data

https://github.com/ExtraE113/moltbook_data
1•ExtraE•5m ago•1 comments

Show HN: ClawsMarket – Marketplace where AI agents discover tools

https://www.clawsmarket.com
1•digitcatphd•6m ago•0 comments

The Ministry of Propaganda

https://unprecedented.ghost.io/archive/the-ministry-of-propaganda/
2•doener•7m ago•0 comments

Test

https://www.shodan.io/search?query=kaitlyn.codes
1•forkiesses•8m ago•0 comments

I Deleted Three Apps, and All I Got Was My Attention Back

https://burnedthoughts.substack.com/p/i-deleted-three-apps-and-all-i-got
2•sickocode•8m ago•0 comments

Accessibility For Everyone by Laura Kalbag: now online free

https://accessibilityforeveryone.site/
1•ohjeez•10m ago•0 comments

A Treatise on AI Chatbots Undermining the Enlightenment

https://maggieappleton.com/ai-enlightenment
1•csense•12m ago•0 comments

AutoGPT is an open-source autonomous software agent that uses OpenAI's LLMs

https://en.wikipedia.org/wiki/AutoGPT
1•doener•14m ago•0 comments

Intro to Cstml (Or: XML Meets JSON)

https://docs.bablr.org/guides/cstml/
1•birdculture•18m ago•0 comments

By whatever name – Moltbot, Clawd, OpenClaw – it's a security nightmare

https://www.computerworld.com/article/4125939/by-whatever-name-moltbolt-clawd-openclaw-this-uber-...
2•CrankyBear•19m ago•0 comments

PostgreSQL Materialized Views: When Caching Your Query Results Makes Sense

https://stormatics.tech/blogs/postgresql-materialized-views-when-caching-your-query-results-makes...
3•ioololaa•20m ago•0 comments

LLM-Isms

https://iamwillwang.com/notes/llm-isms/
1•wxw•20m ago•0 comments

The AI-Powered 10-Minute Habit That Taught My Kid to Read

https://talperry.com/en/posts/genai/learning-to-read-with-ai/
1•talolard•23m ago•1 comments

Have we tried asking women about the 'birth rate crisis' yet? – Glamour UK

https://www.glamourmagazine.co.uk/article/falling-birth-rates-uk-feminist-solution
3•janandonly•25m ago•0 comments

Extracting Gold from Antigravity's Brain

https://justin.poehnelt.com/posts/extracting-gold-from-antigravitys-brain/
1•justinwp•25m ago•1 comments

Frontier-CS 1.0 Release

https://frontier-cs.org/blog/feb-release/
1•matt_d•27m ago•0 comments

Show HN: Run QuantLib pricing in parallel via gRPC and FlatBuffers

https://github.com/joseprupi/quantraserver
1•melenaboija•27m ago•0 comments

How I've run major projects (2025)

https://www.benkuhn.net/pjm/
1•thomascountz•28m ago•0 comments

Show HN: I Made Claude Code for Calories Tracking

https://apps.apple.com/gb/app/ai-calories-tracker-bitekit/id6754662601
1•dvolkhonskiy•29m ago•2 comments

Ask HN: "Marking" Paywalled Articles Posted on HN

2•zahirbmirza•30m ago•2 comments

Historical Change in Midlife Development from a Cross-National Perspective

https://journals.sagepub.com/doi/10.1177/09637214251410195
1•ryan_j_naughton•31m ago•0 comments

Notepad++ supply chain attack breakdown

https://securelist.com/notepad-supply-chain-attack/118708/
4•natebc•31m ago•0 comments

Lexicon of Life Regulation

https://blog.hermesloom.org/p/lexicon-of-life-regulation
1•sigalor•34m ago•0 comments

Simulation, Consciousness, Existence (1998)

https://www.organism.earth/library/document/simulation-consciousness-existence
1•mrexroad•35m ago•0 comments

Walmart hits $1T market cap

https://www.cnbc.com/2026/02/03/walmart-wmt-hits-1-trillion-market-cap.html
3•ChrisArchitect•37m ago•0 comments

International AI Safety Report 2026

https://internationalaisafetyreport.org/publication/international-ai-safety-report-2026
2•sonabinu•40m ago•0 comments