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

Show HN: Reversediffusion.xyz

https://reversediffusion.xyz
1•rvijgen•2m ago•0 comments

Intelligence Is Not Artificial

https://www.scaruffi.com/singular/index.html
1•Antibabelic•3m ago•0 comments

Show HN: A deep dive into Rolldown's bitset-based code splitting

https://www.atriiy.dev/blog/rolldown-high-performance-code-splitting
1•atriiy•4m ago•0 comments

Epstein files – Bash reference manual

https://www.youtube.com/shorts/ge955rbJ_EM
1•quantummagic•4m ago•0 comments

Show HN: Disavow Generator – Open-source tool to defend against negative SEO

https://github.com/BansheeTech/Disavow-Generator
1•SurceBeats•5m ago•1 comments

Show HN: Agent Readiness – Open-source CLI to check repo readiness for AI

https://github.com/kodustech/agent-readiness
2•gamalinosqui•6m ago•0 comments

Which emoji scissors can cut?

https://wh0.github.io/2020/01/02/scissors.html
2•fanf2•8m ago•0 comments

8th Gen I3 Hits 10 TPS on DeepSeek-Coder-V2-Lite 16B Moe

https://old.reddit.com/r/LocalLLaMA/comments/1qxcm5g/no_nvidia_no_problem_my_2018_potato_8th_gen_i3/
2•politelemon•8m ago•0 comments

I am the Excel world champion

https://www.theguardian.com/lifeandstyle/2026/feb/06/experience-i-am-the-excel-world-champion
3•sonabinu•9m ago•0 comments

Meanings of the Colors in the NYC Subway

https://www.untappedcities.com/secret-meaning-behind-colors-nyc-subway/
2•hirsin•11m ago•0 comments

There is empirical evidence of AI acting against our instructions

https://english.elpais.com/technology/2026-02-03/yoshua-bengio-turing-award-winner-there-is-empir...
6•geox•12m ago•0 comments

Show HN: Commentblocks – Website QA tool with no client signup needed

https://www.commentblocks.com/
2•julian97•13m ago•0 comments

Tactical tornado is the new default

https://olano.dev/blog/tactical-tornado/
2•todsacerdoti•13m ago•0 comments

Asia-based government spies broke into networks across 37 countries

https://www.theregister.com/2026/02/05/asia_government_spies_hacked_37_critical_networks/
3•Bender•13m ago•0 comments

Why RAG Failed Us for SRE and How We Built Dynamic Memory Retrieval Instead

https://drdroid.io/dynamic-memory-retrieval
2•TheBengaluruGuy•14m ago•1 comments

OpenClaw reveals meaty personal information after simple cracks

https://www.theregister.com/2026/02/05/openclaw_skills_marketplace_leaky_security/
2•Bender•14m ago•0 comments

The second life of the Atari ST

https://retrotechycafe.wordpress.com/2026/02/03/when-the-atari-dressed-up-freemint-and-the-second...
2•cmrdporcupine•14m ago•0 comments

We're Living Through the Most Interesting Time to Be Alive

https://www.robot-future.com/preview/6985644749874ce9730899fc
1•busters4•14m ago•0 comments

AWS intruder achieved admin access in under 10 minutes thanks to AI assist

https://www.theregister.com/2026/02/04/aws_cloud_breakin_ai_assist/
2•Bender•15m ago•0 comments

Tech stack is a business decision

https://dinkomarinac.dev/blog/tech-stack-is-a-business-decision/
2•dinko7•16m ago•1 comments

The Week Anthropic Tanked the Market and Pulled Ahead of Its Rivals

https://www.wsj.com/tech/ai/the-week-anthropic-tanked-the-market-and-pulled-ahead-of-its-rivals-e...
1•thm•16m ago•0 comments

Trump says will revoke church tax exempt status if leaders don't comply with him

https://www.pbs.org/newshour/politics/watch-trump-says-he-will-revoke-church-tax-exempt-status-if...
2•stopbulying•19m ago•2 comments

I made a simple image and video converter for Linux and windows

https://github.com/cenullum/Yet-Another-Open-File-Converter
1•cenullum•21m ago•0 comments

API-based platform for hunting exposed secrets across GitHub repositories

https://github.com/boringtools/git-alerts-api
2•predev0x0•22m ago•0 comments

Jsbench – AI-written scriptable HTTP benchmarking tool

https://github.com/hongzhidao/jsbench
1•zhidao9•23m ago•1 comments

Anna's Archive Loses .PM Domain, Adds Greenland (.GL) Backup

https://torrentfreak.com/annas-archive-loses-pm-domain-adds-greenland-gl-backup/
3•HieronymusBosch•23m ago•0 comments

Show HN: I built a dashboard to stop AI agents from burning my API credits

https://github.com/justin55afdfdsf5ds45f4ds5f45ds4/EmpusaAI
1•justinlord•23m ago•0 comments

Show HN: OpenClaw Assistant – open-source Android voice assistant

https://github.com/yuga-hashimoto/OpenClawAssistant
1•YugaHashimoto•25m ago•0 comments

Building Brains on a Computer

https://www.asimov.press/p/brains
1•surprisetalk•25m ago•0 comments

JJ's Razor (2019)

https://www.sonyaellenmann.com/2018/03/jjs-razor.html
1•surprisetalk•25m ago•0 comments