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

Invalid GitHub events leading to job queuing

https://namespace-status.com/incidents/01KVBEJCE25NBJGE12VBQHJ54F
1•allanbreyes•47s ago•0 comments

Lessons Learnt from Writing an AI Agent

https://www.browserless.io/blog/writing-an-ai-agent
1•risingsong•1m ago•0 comments

ReixOS: Experimental microkernel written in Embedded Swift for ARM64

https://github.com/eliorodr2104/ReixOS
1•CharlesW•2m ago•0 comments

Intel Xeon 6 SoC DPU on a PCIe Card from Senao at Computex 2026

https://www.servethehome.com/this-is-an-intel-xeon-6-soc-dpu-on-a-pcie-card-from-senao-at-compute...
1•teleforce•2m ago•0 comments

Windows 11 25H2 – I'm so happy to not be using this

https://www.dedoimedo.com/computers/windows-11-june-2026-results.html
1•speckx•2m ago•0 comments

For fun and no profit – Cortex Clash

https://pkolarov.github.io/cortexclash/
1•pkzip1•2m ago•0 comments

The Hacker Sent by Anthropic to Calm the Government's Nerves About AI Safety

https://www.wsj.com/tech/ai/anthropic-mythos-safety-nicholas-carlini-20bceaa3
1•Brajeshwar•3m ago•0 comments

swift-os: A real operating system, written in Swift

https://swiftos.tech/
1•CharlesW•4m ago•0 comments

How the US electric grid is organized

https://www.diaztechworks.com/projects/us-grid
1•diaztechworks•6m ago•0 comments

ARM Never Made a Chip, Dolby Never Built a Speaker

https://www.cringely.com/2026/06/17/arm-never-made-a-chip-dolby-never-built-a-speaker/
1•dxs•7m ago•0 comments

Sealed Super Mario Bros. sells for a record $3M

https://www.theverge.com/games/949593/super-mario-bros-3-million-auction
2•bookofjoe•8m ago•1 comments

Fast Food and AI

https://antonmks.substack.com/p/fast-food-and-ai
2•antonmks•14m ago•0 comments

Top Reasons of Why Startups Fail

https://www.cbinsights.com/research/report/startup-failure-reasons-top/
1•gurjeet•15m ago•0 comments

Trump admin abandons fight against wind energy as clean energy output surges

https://insideclimatenews.org/news/15062026/trump-administration-abandons-fight-against-wind-energy/
3•dotcoma•15m ago•0 comments

Cohere's open agentic North Mini Code – accelerated with NVFP4 on spark-arena

https://forums.developer.nvidia.com/t/north-mini-code-in-nvfp4-1-65x-over-fp8-40-less-memory-zero...
2•deepseaOne•15m ago•0 comments

Leptos creator stepping down as active maintainer

https://github.com/leptos-rs/leptos/issues/4707
2•boyka•16m ago•0 comments

Show HN: ReplyVoice – mic overlay that transcribes into any app (Android + PC)

https://play.google.com/store/apps/details?id=com.nibrasapps.ses&hl=en_US
1•kedimuzafer•17m ago•0 comments

2026 Rousseeuw Prize for Statistics Awarded to the R Project

https://www.rousseeuwprize.org/2026
2•ionychal•17m ago•0 comments

Show HN: No-Nonsense Table of FIFA World Cup 2026 Top Scorers and Assist Leaders

https://tablerat.com/who-scored-the-most-goals-world-cup-2026
2•sm_euro•19m ago•0 comments

Zelda

https://www.nicksimson.com//posts/2026-zelda.html
2•speckx•19m ago•0 comments

'China's Instagram' Readies Hong Kong IPO That Could See It Valued over $70B

https://www.wsj.com/tech/chinas-instagram-readies-hong-kong-ipo-that-could-see-it-valued-at-over-...
1•samtheDamned•20m ago•0 comments

The wall: vibe coding, taste, and the part that doesn't get easier

https://gk3fyi.substack.com/p/the-wall
1•gk3•21m ago•0 comments

Omnigent: Meta-Harness for Coding Agents (Claude Code, Codex, Cursor, Pi)

https://github.com/omnigent-ai/omnigent
1•fzysingularity•22m ago•0 comments

MathWorks adds Renesas hardware support packages

https://www.designworldonline.com/mathworks-adds-renesas-hardware-support-packages/
1•lucamark•23m ago•0 comments

Mathesar Cloud: hosted Postgres with a spreadsheet-like interface

https://mathesar.org/blog/2026/06/17/announcing-mathesar-cloud
2•anish99•26m ago•0 comments

Has the answer to life's origins been hiding in our cells all along?

https://www.newscientist.com/article/2529162-has-the-answer-to-lifes-origins-been-hiding-in-our-c...
3•DonaldFisk•27m ago•0 comments

Joshua Baer, godfather of Austin's startup scene, dies in plane crash

https://www.kxan.com/news/local/austin/joshua-baer-godfather-of-austins-startup-scene-dies-in-pla...
2•csbrooks•30m ago•0 comments

Wang/Blob Tilesets

https://www.boristhebrave.com/permanent/24/06/cr31/stagecast/wang/blob_g.html
1•dested•31m ago•0 comments

Can't get new PlanetScale databases billed to my Cloudflare account

https://blog.cloudflare.com/deploy-planetscale-postgres-with-workers/
1•peterboro•31m ago•0 comments

DuckDuckGo browser blocks ads on YouTube

https://duckduckgo.com/duckduckgo-help-pages/privacy/detecting-ad-blocking-interference-anonymously
5•HelloUsername•32m ago•0 comments