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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

Show HN: I built a way to see if your SDK is AI-friendly

1•nguyenhu•2m ago•0 comments

Building a Threadiverse Community Platform

https://fedify.dev/tutorial/threadiverse
1•dahlia•4m ago•0 comments

Australia threatens tech companies with 2.25% tax if they don't pay publishers

https://www.theregister.com/2026/04/28/australia_news_bargaining_incentive/
2•defrost•8m ago•1 comments

How Do Perpetual Futures Differ from Spot Trading in Crypto?

https://www.bitdeal.net/cryptocurrency-exchange-development
1•harrisonrichrd•14m ago•0 comments

Meta prepares to undo acquisition of Singapore-based Manus after China ban

https://www.businesstimes.com.sg/international/global/meta-prepares-undo-acquisition-singapore-ba...
2•doppp•14m ago•0 comments

Freelancer for hire – full stack, ML, DevOps

1•Hopfield•16m ago•0 comments

Talos OS images are now bit-by-bit reproducible

https://github.com/siderolabs/talos/releases/tag/v1.13.0
1•matesz•17m ago•0 comments

I Use AI in 2026

https://fedepaol.github.io/blog/2026/04/25/how-i-use-ai-in-2026/
1•fedepaol•18m ago•0 comments

Come From

https://wiki.c2.com/?ComeFrom
1•pramodbiligiri•20m ago•0 comments

Steal Claude Code Architecture

https://teamcal.ai/blog/claude-code-architecture
1•rajl•22m ago•0 comments

How to build advanced features for AI chatbots on SSE

https://zknill.io/posts/everyone-said-sse-token-streaming-was-easy/
1•zknill•26m ago•0 comments

Show HN: VibeBrowser – Give your AI agent your real logged-in browser via MCP

https://www.vibebrowser.app/mcp
1•denis4inet•26m ago•0 comments

Show HN: Financial Database API for Vibe Coders

https://xfinlink.com
1•lyonghee97•34m ago•1 comments

Hotta GameDriverX64.sys shipping in Neverness to Everness preload

https://github.com/LaggyTMD/nte-driver-analysis
1•LaggyTMD•35m ago•0 comments

Anthropic Claude Code HERMES.md billing flaw

https://consumerrights.wiki/w/Anthropic_Claude_Code_HERMES.md_billing_flaw
1•Palmik•36m ago•0 comments

Scraping 241 UK council planning portals – 2.6M decisions so far

27•mebkorea•42m ago•25 comments

Show HN: BeVisible.app - Blog that runs itself

https://www.bevisible.app
2•evanyang•44m ago•0 comments

Xiaomi MiMo Orbit: 100T Token Grant for Builders

https://100t.xiaomimimo.com/
1•whtsky•46m ago•0 comments

SwiftBash: Pure-Swift, sandboxed bash interpreter

https://github.com/cocoanetics/swiftbash
2•ingve•46m ago•0 comments

Text Is the New Binary

https://andreabaccega.com/blog/text-is-the-new-binary/
2•veke87•48m ago•0 comments

Bugs in the original 1977 Cave Adventure Fortran source

https://colossalcave.cc/bugs.php
2•ultra-nick•51m ago•1 comments

A case report of someone who self-managed Fatal Familial Insomnia

https://pmc.ncbi.nlm.nih.gov/articles/PMC1781276/
1•abinaryquibit•52m ago•1 comments

Asimov v1: Open-Source Humanoid Robot

https://github.com/asimovinc/asimov-v1
1•Philipp2398•52m ago•0 comments

I built a coach for people who are tired of being yelled at by Stockfish

https://chessmentorai.com/en
1•sepiropht•53m ago•0 comments

Set a Meeting Budget

https://alexhans.github.io/posts/meeting-budget.html
2•alexhans•56m ago•1 comments

Ask HN: When might we not have to do laundry or fold clothes or cook

2•samarthv•58m ago•0 comments

Google signs classified AI deal with Pentagon

https://www.reuters.com/technology/google-signs-classified-ai-deal-with-pentagon-information-repo...
5•afshinmeh•59m ago•3 comments

The 278k language running 20% of the Internet

https://www.ismatsamadov.com/blog/lua-278k-language-running-the-internet
1•ismats•1h ago•0 comments

Unitree G1 humanoid robot roller skating [video]

https://www.youtube.com/watch?v=srPz8TRpZ_8
1•nathanh4903•1h ago•0 comments

Humanoid robots to become baggage handlers in Japan airport experiment

https://www.theguardian.com/world/2026/apr/28/humanoid-robots-baggage-handlers-japan-airports
3•calcifer•1h ago•0 comments