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

QRCard – Your digital business card

https://qrcard.up.railway.app/
1•nikitafaesch•2m ago•0 comments

Open-source cloud-native Postgres platform

https://github.com/xataio/xata
1•mebcitto•4m ago•0 comments

Phones Alerted Millions Before Quakes Shook Venezuela

https://www.nytimes.com/interactive/2026/06/27/world/americas/venezuela-earthquakes-android-alert...
1•jgalt212•6m ago•1 comments

A Street of Good Houses - The Shape of the Whole

https://shapeofthesystem.com/posts/2026/06/26/a-street-of-good-houses
1•supermatt•6m ago•0 comments

BlueBookOS: An LLM microkernel and language for specifying apps

https://bluebookos.com/
1•logn•7m ago•0 comments

Show HN: Nirnam – a browser-native message bus and AI agent framework for MFEs

https://github.com/shaurcasm/nirnam
1•shauryaSP•8m ago•0 comments

Generative artificial intelligence creates delicious, nutritious burgers

https://www.nature.com/articles/s41538-026-00953-x
1•Anon84•15m ago•0 comments

What's cooking on Sourcehut? Q2 2026

https://sourcehut.org/blog/2026-05-28-whats-cooking-q2-2026/
1•birdculture•16m ago•0 comments

Kb – Prolog Knowledge Base

https://github.com/mat-mgm/kb-prolog
1•triska•19m ago•0 comments

Overview of new contracts, pay and transfers in the Ukrainian army

https://mod.gov.ua/en/news/transformation-of-the-defence-forces-of-ukraine-a-comprehensive-overvi...
1•Someone•24m ago•0 comments

OpenRA

https://www.openra.net/
6•tosh•25m ago•1 comments

A thermodynamic approach to gravity could explain cosmic acceleration

https://phys.org/news/2026-06-thermodynamic-approach-gravity-cosmic-dark.html
2•wjSgoWPm5bWAhXB•27m ago•0 comments

Using Local Coding Agents

https://magazine.sebastianraschka.com/p/using-local-coding-agents
1•Anon84•30m ago•0 comments

Ask HN: Is there a quiet market for 'no enforced AI' dev jobs?

3•reinhardt•30m ago•1 comments

Ask HN: Steam OS as a Windows Replacement?

1•x______________•34m ago•0 comments

Mitchell Hashimoto: Defining Taste

https://xcancel.com/i/article/2070665127331037290
2•tamnd•34m ago•0 comments

XiaoKe API Gateway: PDF OCR Scrape Translate Review SummarizeXiaoKe API Gateway

https://github.com/y9695430-lang/xiaoke-api-gateway
1•xiaoke-api•35m ago•0 comments

Gnome AI Assistant Adds Image Generation Support

https://www.phoronix.com/news/GNOME-Newelle-Image-Gen
1•mehmetoguzderin•36m ago•0 comments

Show HN: RapidCam – Browser-based, parametric 2D CAD/CAM app for CNC and laser

https://rapidcam.app
2•Jemm•38m ago•1 comments

Tapered Language Models

https://arxiv.org/abs/2606.23670
1•sonabinu•39m ago•0 comments

Saying the Obvious Thing

https://www.seangoedecke.com/saying-the-obvious-thing/
1•swah•40m ago•0 comments

Show HN: Visual Map of ICML 2026 Papers

https://www.alphaxiv.org/icml/map
2•vednig•41m ago•0 comments

How Saarinen and Eames Imagined Airport Operations and Influenced Dulles

https://www.youtube.com/watch?v=6C3iKBJhgZM
1•master_crab•44m ago•0 comments

Michael Saylor's Strategy has no easy way out as Bitcoin prices continue to drop

https://finance.yahoo.com/markets/article/michael-saylors-strategy-faces-no-easy-way-out-as-bitco...
1•decimalenough•45m ago•1 comments

Wan Streamer v0.1: End-to-End Real-Time Interactive Foundation Models

https://wan-streamer.com
1•davedx•45m ago•1 comments

Ukraine launches 40-day operation to push Russia to end the war

https://www.yacnews.com/ukraine-launches-40-day-operation-to-push-russia-to-end-the-war/
6•ortr•46m ago•3 comments

Solo Developers and Builders, Let's Connect

1•enlightpixel•46m ago•0 comments

Show HN: Open Tag, the open source Claude Tag

https://github.com/CopilotKit/OpenTag
1•nathan_tarbert•47m ago•0 comments

Agentic Code Review

https://www.oreilly.com/radar/agentic-code-review/
2•pella•50m ago•0 comments

Hacker News Job Trends

https://hackernewstrends.com/who-is-hiring
1•nguyentranvu•52m ago•0 comments