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

I put Claude Code on my Garmin running watch

https://github.com/fashton28/garmin-code
1•fashton28•59s ago•1 comments

The Underhanded C Contest

https://underhanded-c.org/
1•ccabraldev•1m ago•0 comments

Motte-and-Bailey Fallacy

https://en.wikipedia.org/wiki/Motte-and-bailey_fallacy
1•chistev•4m ago•0 comments

Break any AI scam phone call in just a few easy steps [video]

https://www.youtube.com/watch?v=lk3jCuITwcE
1•akavel•7m ago•0 comments

Show HN: GONK – Lightweight Edge-Native API Gateway in Go

https://github.com/JustVugg/gonk
1•vforno•7m ago•0 comments

Lawsuit alleges Samsung, SK Hynix, and Micron colluded to inflate DRAM prices

https://www.polygon.com/ram-manufacturers-sued-supply-price-fixing/
2•DSemba•10m ago•0 comments

Opening up 'Zero-Knowledge Proof' technology to promote privacy in age assurance

https://blog.google/innovation-and-ai/technology/safety-security/opening-up-zero-knowledge-proof-...
1•consumer451•12m ago•0 comments

Teaching AI to Reason About Software

https://soteria-tools.com/blog/teaching-ai
2•giltho•15m ago•0 comments

KDE Linux Introduces "Developer Mode" Option, Easier Log Collection

https://www.phoronix.com/news/KDE-Linux-June-2026
2•Bender•17m ago•0 comments

'It's like having a dumb friend': Young San Franciscans hate AI

https://www.sfgate.com/tech/article/san-francisco-ai-backlash-22325141.php
8•turtlegrids•18m ago•0 comments

US opts not to renew Trump's trade deal with Mexico and Canada

https://www.ft.com/content/2c7b4dc8-1b1c-49f4-b51a-0dee0c1d216a
4•petethomas•19m ago•0 comments

Roost

https://roostsocial.app/
1•JetSpiegel•19m ago•0 comments

Reap: Automatic Curation of Coding Agent Benchmarks

https://arxiv.org/abs/2604.01527
1•dipankarsarkar•22m ago•0 comments

Ask HN: Could someone invite me to lobste.rs?

1•ra0x3•22m ago•0 comments

The Rape Gang Inquiry Report

https://rapeganginquiry.co.uk/report
4•Bender•22m ago•1 comments

Are Claude models broken with the Fable 5 update?

1•jackjd•22m ago•0 comments

Cboe Seeks to List Prediction Market Type Options on Earnings Metrics

https://www.bloomberg.com/news/articles/2026-07-01/cboe-seeks-to-list-prediction-market-type-opti...
1•petethomas•23m ago•0 comments

Crimson Room (2004)

https://kbhgames.com/game/crimson-room
1•dieselgate•25m ago•0 comments

Best Investments over the Last 100 Years? Almost All Are Tech Companies.

https://www.nytimes.com/2026/06/26/business/apple-nvidia-tesla-spacex-stock-market-winners.html
1•bookofjoe•25m ago•1 comments

The empty corner in brain-to-text

https://brgsk.xyz/the-empty-corner-in-brain-to-text/
1•brgsk•25m ago•0 comments

Your Site, your rules: new AI traffic options for all customers

https://blog.cloudflare.com/content-independence-day-ai-options/
1•tcp_handshaker•26m ago•0 comments

Large Hadron Collider is shut down by CERN to make it more powerful

https://www.dailymail.com/sciencetech/article-15943949/Large-Hadron-Collider-shut-CERN.html
1•Bender•27m ago•0 comments

Show HN: Simulate what AI agents do to an engineering org (no signup)

https://www.orgonaut.co/tools/agentic-reorg-simulator/
1•orgonaut•27m ago•0 comments

FSF Librephone update: Ensuring freedom, one blob at a time

https://www.fsf.org/bulletin/2026/summer/ensuring-freedom-one-blob-at-a-time
7•g-b-r•28m ago•0 comments

Stop Quoting Steve Ballmer

https://www.boxofcables.dev/stop-quoting-steve-ballmer/
1•haydenbarnes•28m ago•2 comments

Meta is reportedly building its own cloud business

https://www.engadget.com/2206249/meta-is-reportedly-building-its-own-cloud-business/
1•tcp_handshaker•29m ago•0 comments

What Can't Fable Do?

1•alimhaq•30m ago•0 comments

Flickr – Senior SRE – Remote (US) – Full-Time

https://www.flickr.com/jobs?gh_jid=7822735&gh_src=7b63e17d1
1•Photoworkisfun•31m ago•0 comments

Tidesman: Native MCP server for Apple Container's Linux container workflows

https://tidesman.dev/
1•JeronimoColon•32m ago•0 comments

Polymarket

https://unlimitedhangout.com/2026/06/investigative-series/the-secret-history-of-polymarket-part-1/
2•some-guy•32m ago•0 comments