frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•1y 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•1y 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•1y 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•1y 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•1y ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

Show HN: Non-custodial Monero->BTC/LTC atomic swaps in the browser (testnet)

https://testnetswap.com/
1•Tech1k•1m ago•0 comments

I'm leaving OpenAI to build Jurassic Park

https://taylor.town/leaving-openai
1•birdculture•6m ago•0 comments

How to Keep Thinking

https://www.seangoedecke.com/how-to-keep-thinking/
1•vinhnx•9m ago•0 comments

To Save C, We Must Save ABI

https://thephd.dev/to-save-c-we-must-save-abi-fixing-c-function-abi
1•gurjeet•10m ago•0 comments

Roku now has a 24/7 AI slop channel

https://www.theverge.com/entertainment/976939/roku-fairground-ai-fast-channel
2•BlueBerry2001•14m ago•0 comments

Show HN: ContentIQ – Evaluate and optimize content quality before publishing

https://app.contentiq.net/
1•Sharanxxxx•16m ago•0 comments

Europe's wildfires have raised the danger posed by unexploded WWII bombs

https://theconversation.com/europes-wildfires-have-raised-the-danger-posed-by-unexploded-wwii-bom...
1•jjp•17m ago•0 comments

It Looks Like You're Trying to Take over the World (2022)

https://gwern.net/fiction/clippy
1•vinhnx•17m ago•0 comments

A look into AP2 and HTTP 402 illustrated

https://blog.owulveryck.info/2026/06/25/from-isolated-agents-to-agentic-mesh-orchestrating-sdlc-w...
1•owulveryck•18m ago•0 comments

Show HN: Dsv4 Codex Proxy – Make DeepSeek V4 Flash 0731 "Codex-Native"

https://github.com/ryanzhou/dsv4-codex-proxy
1•zhoutong•19m ago•0 comments

Initial Apple M3 Pro / Max / Ultra Support Being Upstreamed for Linux 7.3

https://www.phoronix.com/news/M3-Pro-Max-Ultra-Linux-7.3
1•pizzaiolo•20m ago•0 comments

Codex Pet

https://github.com/joryeugene/georgie-phalene-codex-pet
1•calmhive•24m ago•0 comments

Apple Could Give "Obsolete" iPads New Life with This One Weird Trick

https://www.ifixit.com/News/118176/apple-could-give-obsolete-ipads-new-life-with-this-one-weird-t...
2•wrxd•26m ago•1 comments

A shell exclamation mark is not for yelling. Be lazy

https://refp.se/articles/your-shell-and-the-lazy-exclamation-mark
3•thunderbong•26m ago•0 comments

Partmode – SolidWorks open source alternative – Live browser demo

https://github.com/bomWiki/partmode
1•punnerud•27m ago•0 comments

How much of our existence do we owe to sugar?

https://www.scientificamerican.com/article/how-much-of-our-existence-do-we-owe-to-sugar/
1•XzetaU8•35m ago•0 comments

AIUsageBar – Track Claude, Codex, Cursor and Gemini Usage from the Mac Menu Bar

https://www.aiusagebar.com
2•cjdesignstudio•39m ago•0 comments

Hardware backdoors in some x86 CPUs

https://github.com/xoreaxeaxeax/rosenbridge
8•epestr•43m ago•1 comments

VLC Name (2006)

https://jbkempf.com/blog/VLC-Name/
2•con•43m ago•0 comments

How ideas of a censorship network moved from the online fringe to Trump po

https://www.technologyreview.com/2026/08/07/1141105/how-ideas-of-a-vast-censorship-network-moved-...
1•joozio•46m ago•0 comments

In the Atacama Desert, astronomers live and work in a James Bond villain lair

https://www.bbc.com/future/article/20260609-inside-the-bond-set-where-astronomers-live
2•hurrell•47m ago•0 comments

Claude Code: sessions can now message each other

https://twitter.com/ClaudeDevs/status/2085817074816070014
2•tosh•48m ago•0 comments

Linux Foundation Launches the Tokenomics Foundation

https://www.linuxfoundation.org/press/linux-foundation-launches-the-tokenomics-foundation-to-defi...
2•Alien1Being•50m ago•0 comments

C-ECS: c99 header-only ECS for games

https://briansunter.com/projects/c-ecs
1•_simian•52m ago•0 comments

The SaaS Extinction Test

https://frontierai.substack.com/p/the-saas-extinction-test-f6e
1•inferhaven•55m ago•0 comments

Amazon behind private gas plant for new data centers

https://finance.yahoo.com/energy/articles/amazon-behind-massive-private-gas-210211828.html
1•e12e•56m ago•0 comments

Show HN: RAMGuard Pro – Real Windows Memory Optimizer in Rust and Tauri

https://github.com/jojin1709/ramguard-pro
1•jojin1709•58m ago•0 comments

Meta CTO says employees should use AI productivity gains to do more work

https://www.businessinsider.com/meta-cto-andrew-bosworth-ai-gains-work-2026-8
1•petetnt•58m ago•1 comments

Italian Bank Stores 400K Wheels of Cheese as Collateral for Farmer Loans

https://travelandtannins.com/an-italian-bank-keeps-400000-wheels-of-cheese-in-a-guarded-vault-and...
3•ms7892•1h ago•1 comments

Stack Overflow new questions are down 98.5% since ChatGPT (+ 5 other platforms)

https://www.harperflow.io/dead-internet
6•Heshamus•1h ago•1 comments