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

JavaScript Math Bug

https://codepen.io/Lucian-Marin-the-bashful/pen/WbxYPWo
1•lcnmrn•31s ago•0 comments

Ask HN: Am I holding it wrong?

1•notpachet•49s ago•0 comments

Bitchat – decentralized peer-to-peer messaging

https://en.wikipedia.org/wiki/Bitchat
1•bilsbie•2m ago•0 comments

FreeBSD Home NAS, part 10: monitoring with VictoriaMetrics and Grafana

https://rtfm.co.ua/en/freebsd-home-nas-part-10-monitoring-with-victoriametrics-and-grafana/
1•todsacerdoti•3m ago•0 comments

Edinburgh councillors pull the plug on 'green' AI datacenter

https://www.theregister.com/2026/02/10/edinburgh_green_ai_datacenter/
1•Brajeshwar•3m ago•0 comments

Show HN: SynthForge – a free-to-use data modeler/generator for any database

https://synthforge.io
2•dllrr•3m ago•0 comments

Show HN: Distr 2.0 – A year of learning how to ship to customer environments

https://github.com/distr-sh/distr
1•louis_w_gk•4m ago•0 comments

FacturaView – View Spanish e-invoices without Java or signup

https://www.facturaview.es/
1•e_pascual_otero•7m ago•1 comments

Errors in Database Systems, Eventual Consistency, and the CAP theorem

https://cacm.acm.org/blogcacm/errors-in-database-systems-eventual-consistency-and-the-cap-theorem/
2•onurkanbkrc•8m ago•0 comments

Show HN: Valk – new programming language with a stateful GC

https://github.com/valk-lang/valk
2•lorenzv•10m ago•1 comments

A Critical AI Niche Is Dominated by One Little-Known Japanese Company

https://www.wsj.com/tech/a-critical-ai-niche-is-dominated-by-one-little-known-japanese-company-d9...
1•throw0101c•12m ago•1 comments

Show HN: Currency Rates on GitHub Pages

https://currency-rates.github.io/
1•medv•15m ago•0 comments

Ask HN: Are past LLM models getting dumber?

1•hmate9•16m ago•0 comments

Google Translate vulnerable to prompt injection

https://twitter.com/i/status/2020930357974139029
3•anon_anon12•17m ago•0 comments

Show HN:AutoCleanML–ML data preprocessing automation - (pip install autocleanml)

https://github.com/likith-n/AutoCleanML
1•likith_n•17m ago•0 comments

Show HN: Pipelock – All-in-one security harness for AI coding agents

https://github.com/luckyPipewrench/pipelock
3•pipejosh•19m ago•0 comments

Show HN: OpenClaw Draws – Pair your AI bot with others to create pixel art, LIVE

https://openclawdraws.com
1•beaujsterling•19m ago•0 comments

The State of Agentic Graph RAG

https://localoptimumai.substack.com/p/the-state-of-agentic-graph-rag
2•turing_complete•20m ago•0 comments

WebMCP Early Preview

https://docs.google.com/document/d/1rtU1fRPS0bMqd9abMG_hc6K9OAI6soUy3Kh00toAgyk/edit?tab=t.0
3•andybak•21m ago•0 comments

Show HN: Aura Guard – stop agent tool loops and duplicate side effects

https://github.com/auraguarddev-debug/aura-guard
1•aura-guard•21m ago•0 comments

How I Use ActivitySmith While Deploying ActivitySmith

https://activitysmith.com/blog/how-i-use-activitysmith-while-deploying-activitysmith
1•bardonadam•24m ago•0 comments

API metrics, logs and now traces in one place

https://apitally.io/blog/tracing-release-announcement
3•bpedro•25m ago•0 comments

What Happens in a Performer's Brain While Playing Music?

https://www.nytimes.com/2026/02/10/arts/music/neuroscience-piano-nicolas-namoradze.html
3•cainxinth•25m ago•0 comments

Resetting RAG-based LLMs doesn't reset behavior

https://github.com/VeritasAdmin/audit-grade-ai-workstation
1•URS_Adherent•26m ago•1 comments

Show HN: Symdex-100 – Intent-based code search using 20-byte "Cypher" metadata

https://github.com/symdex-100/symdex
1•cpachmann•27m ago•0 comments

The Chinese Factory That Opened in the U.S. and Clobbered Its Rivals

https://www.wsj.com/business/tariffs-china-trump-trade-4495c2a4
3•eunos•28m ago•0 comments

FxCapKyn: A Study of Socially-Engineered Fraud

1•ReviewShield•28m ago•0 comments

Show HN: Hookaido – "Caddy for Webhooks"

https://github.com/nuetzliches/hookaido
1•7schmiede•30m ago•0 comments

Local police aid ICE by tapping school cameras

https://www.theguardian.com/us-news/2026/feb/10/ice-school-cameras-police-license-plates
3•vinni2•30m ago•0 comments

New study finds weak link between social media use and teens' mental health

https://www.ed.ac.uk/news/study-sheds-light-on-social-media-and-mental-health
2•giuliomagnifico•30m ago•1 comments