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

Semantic closure: why compilers know when they are right and LLMs do not

https://sderosiaux.substack.com/p/semantic-closure-why-compilers-know
2•chtefi•3m ago•0 comments

Carelessness versus Craftsmanship in Cryptography

https://blog.trailofbits.com/2026/02/18/carelessness-versus-craftsmanship-in-cryptography/
1•ingve•3m ago•0 comments

The Future of Context Engineering

https://telemetryagent.dev/blog/future-of-context-engineering
1•martvdjagt•4m ago•0 comments

Apollo 1

https://en.wikipedia.org/wiki/Apollo_1
1•simonebrunozzi•5m ago•0 comments

ICE tripled its reliance on Microsoft in last six months, leaked files reveal

https://www.972mag.com/ice-microsoft-azure-leaked-files/
2•Qem•5m ago•0 comments

Copy-left open-source license for AI code use

2•program_whiz•11m ago•0 comments

Are We Becoming Architects or Butlers to LLMs?

http://muratbuffalo.blogspot.com/2026/02/butlers-or-architects.html
2•cstever•11m ago•0 comments

Show HN: Resonant – Local-only speech-to-text for macOS (no cloud)

https://www.onresonant.com/
1•sourcetms•13m ago•0 comments

Unicode Homoglyph Path Injection in Chromium Native Messaging

https://treechain.ai/white-papers/unicode-homoglyph-path-injection-in-chromium-native-messaging/
1•treechain•14m ago•0 comments

BrowserPod: Universal in-browser sandbox powered by WASM (starting with Node.js)

https://labs.leaningtech.com/blog/browserpod-10
2•apignotti•16m ago•0 comments

Effects of a Modular Sleep System on Sleep Quality and Physiological Stability

https://www.mdpi.com/2076-3417/16/3/1194
1•PaulHoule•16m ago•0 comments

Show HN: SharpSkill – I Gamified a LeetCode-like tool to crush Tech Interviews

https://sharpskill.fr/en
1•CocoZozo•17m ago•0 comments

Tell HN: We analyzed our dev time.80% is still infrastructure'setup',notfeatures

3•thesssaism•18m ago•0 comments

Show HN: Rebrain.gg – Doom learn, don't doom scroll

4•FailMore•19m ago•0 comments

We're Measuring DataCenter Sustainability Wrong, Metrics Are 30% of Emissions

https://spectrum.ieee.org/data-center-sustainability-metrics
2•oldnetguy•20m ago•0 comments

Tell HN: Technical debt isn't messy code, it's architectural compound interest

2•thesssaism•20m ago•0 comments

Microsoft says bug causes Copilot to summarize confidential emails

https://www.bleepingcomputer.com/news/microsoft/microsoft-says-bug-causes-copilot-to-summarize-co...
3•tablets•22m ago•1 comments

Show HN: Disco Checkers

https://github.com/maxpblum/disco_checkers
2•mrblampo•24m ago•0 comments

Microsoft pledges $50B to tackle growing AI inequality

https://www.cnn.com/2026/02/18/business/ai-impact-summit-microsoft-inequality-investment
2•heresie-dabord•24m ago•0 comments

Show HN: Agent Panopticon – Proxy sidecar for autonomous AI agents

https://github.com/raka-gunarto/agent-panopticon
2•rakag•25m ago•0 comments

Most VMware users still "actively reducing their VMware footprint," survey finds

https://arstechnica.com/information-technology/2026/02/most-vmware-users-still-actively-reducing-...
2•oldnetguy•27m ago•0 comments

GameHub will give Mac owners another imperfect way to play Windows games

https://arstechnica.com/gaming/2026/02/gamehub-will-give-mac-owners-another-imperfect-way-to-play...
2•oldnetguy•28m ago•0 comments

AI Pharmacist

https://personalchemist.com/
2•SalmanChishti•29m ago•0 comments

Re-Defining the 'Agentic Web'

https://medium.com/data-science-collective/re-defining-the-agentic-web-cfeb49e0d4e7
2•iamflimflam1•29m ago•0 comments

BoltAI • Native, high-performance AI app for Mac

https://boltai.com/
2•janandonly•30m ago•0 comments

The decline of single-earner housebuyers in America

https://www.economist.com/united-states/2026/02/12/the-decline-of-single-earner-housebuyers-in-am...
4•jcartw•32m ago•1 comments

Nobody knows what programming will look like in two years

https://leaddev.com/ai/nobody-knows-what-programming-will-look-like-in-two-years
3•chhum•35m ago•0 comments

Show HN: CertWarden – SSL certificate monitoring app for iOS

https://apps.apple.com/us/app/certwarden/id6759068656
2•ismailperim•35m ago•0 comments

Quantlix – Deploy AI models instantly without managing infrastructure

https://www.quantlix.ai/
2•jensenjesper•37m ago•1 comments

Tokamak fusion reactor turns mercury into gold

https://newatlas.com/science/fusion-reactors-put-king-midas-shame-gold-department/
2•mgh2•38m ago•0 comments