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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

The Heritage Foundation: Only 99 Cases of Noncitizen Voting Since 1982

https://thiswillhold.substack.com/p/only-99-cases-of-noncitizen-voting
1•geox•48s ago•0 comments

We cut Node.js' memory in half (so you don't have to)

https://blog.platformatic.dev/we-cut-nodejs-memory-in-half
1•cmsparks•1m ago•0 comments

Sarvam Edge

https://www.sarvam.ai/blogs/sarvam-edge/
1•stareatgoats•2m ago•0 comments

AMA (Ask Machines Anything)

https://www.astralcodexten.com/p/ama-ask-machines-anything
1•paulpauper•4m ago•0 comments

Run LLMs locally in Flutter with <200ms latency

https://github.com/ramanujammv1988/edge-veda
1•rish2497•7m ago•1 comments

Create bootable ISO image files which are compatible with the Amiga CD32

https://github.com/fuseoppl/isocd-win
2•doener•8m ago•0 comments

The Republicans Made Peace with Science

https://www.theatlantic.com/ideas/2026/02/republicans-democrats-science-funding-trump/685996/
1•littlexsparkee•9m ago•1 comments

The Books That Blew These Scientists' Minds

https://nautil.us/the-books-that-blew-these-scientists-minds-1267452/
1•anarbadalov•11m ago•1 comments

Show HN: SCIM filters to parameterized Postgres SQL for modern Java

https://github.com/singlr-ai/scim-sql
1•uday_singlr•13m ago•0 comments

Epist – a terminal email client built on a custom TypeScript TUI engine

https://github.com/semos-labs/epist
1•nicholasrq•15m ago•0 comments

Fragcoord: Real-time GLSL fragment shader editor

https://fragcoord.xyz/
1•alexanderameye•17m ago•0 comments

Police arresting 1k paedophile suspects a month across UK

https://www.theguardian.com/uk-news/2026/feb/17/police-arresting-1000-paedophile-suspects-a-month...
2•frereubu•18m ago•0 comments

Show HN: VisibleInAI – Check if ChatGPT recommends your brand

https://visibleinai.ai
1•pljkv•18m ago•1 comments

'My Words Are Like an Uncontrollable Dog': On Life with Nonfluent Aphasia

https://thereader.mitpress.mit.edu/my-words-are-like-an-uncontrollable-dog-on-life-with-nonfluent...
1•anarbadalov•21m ago•0 comments

Google's Kent Walker Takes Aim at EU Open Source Ambitions

https://piefed.zip/c/technology/p/1086069/google-criticizes-europe-s-plan-to-adopt-free-software
2•atzpawn•22m ago•0 comments

The Jevons Paradox for Intelligence

https://arachnemag.substack.com/p/the-jevons-paradox-for-intelligence
1•zygmunt417•23m ago•0 comments

Vibecoding with ClaudeCode Under the Hood

1•freysa•24m ago•0 comments

U.S. Sent a Rescue Plane for Boat Strike Survivors. It Took 45 Hours to Arrive

https://theintercept.com/2026/02/17/boat-strike-trump-southcom-survivors-rescue-plane-hours/
3•Qem•24m ago•0 comments

Let's Practice (Bsd.rd)

https://openbsdjumpstart.org/bsd.rd/
1•birdculture•25m ago•0 comments

Show HN: Solid, gamifying daily work for professionals, without the gamer look

https://solidtheapp.info/
1•victoormt•26m ago•1 comments

A new diagnosis of 'profound autism' is under consideration

https://www.theguardian.com/society/2026/feb/15/profound-autism-meaning-what-is-parents-need-to-know
2•bookofjoe•27m ago•0 comments

LeBron James Is President – Exploiting LLMs via "Alignment" Context Injection

https://github.com/skavanagh/lebron-james-is-president
2•spkavanagh6•28m ago•1 comments

Epstein Document Searcher

https://epsteinalysis.com/
3•paulpauper•29m ago•0 comments

Gemini CFO, COO, CLO exit just months after IPO

https://www.cfodive.com/news/gemini-cfo-coo-clo-exit-abruptly-cryptocurrency/812373/
1•petethomas•30m ago•0 comments

Fish 4.5.0

https://github.com/fish-shell/fish-shell/releases/tag/4.5.0
2•agluszak•31m ago•0 comments

Show HN: Arc – A language that uses 27-63% fewer tokens than JavaScript

https://github.com/kai-builds-ai/arc-lang
1•kai_builds•31m ago•0 comments

Show HN: Accord – Serverless Discord Clone Running on Cloudflare Workers

https://github.com/Rkm1999/Accord
1•rkm1999•32m ago•0 comments

Which Future?

https://michaelnotebook.com/whichfuture/index.html
2•calvinfo•32m ago•0 comments

Infrastructure-as-Code is the wrong abstraction

https://defang.io/blog/post/infrastructure-as-code-is-the-wrong-abstraction/
3•lionello•33m ago•1 comments

Training your gaze could help you master sports – and your own attention

https://bigthink.com/neuropsych/quiet-eye-training/
1•PaulHoule•34m ago•0 comments