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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•10mo ago
Agreed

Switch: Benchmarking the Handling of TCIs in Long-Horizon Embodied Scenarios

https://huggingface.co/papers/2511.17649
1•tellarin•2m ago•0 comments

I built a free narrative game inspired by Daniel Kokotajlo's AI 2027 essay

https://ai2028.ai/
1•geniusxp•2m ago•1 comments

Improving instruction hierarchy in frontier LLMs

https://openai.com/index/instruction-hierarchy-challenge
1•surprisetalk•4m ago•0 comments

Microsoft uses plagiarized AI slop flowchart to explain how GitHub works

https://www.pcgamer.com/software/ai/microsoft-uses-plagiarized-ai-slop-flowchart-to-explain-how-g...
1•gpvos•5m ago•0 comments

Maybe we can keep on coding? pseudo code project

2•EmptyDrum•8m ago•2 comments

MCP Weekly: OpenAI Raises $110B, Anthropic Faces Defense Showdown

https://www.gentoro.com/blog/mcp-weekly-openai-raises-110b-anthropic-faces-defense-showdown-and-g...
1•ashutosh0707•8m ago•0 comments

The State of Rust Allocators in 2026

https://cetra3.github.io/blog/state-of-allocators-2026/
2•cetra3•13m ago•0 comments

Naplan resumes after earlier technical issues paused online testing

https://www.abc.net.au/news/2026-03-11/naplan-technical-issues-disrupt-school-testing/106440510
2•langfo•13m ago•0 comments

Ask HN: How are you managing "prompt fatigue" and lazy LLM outputs?

2•thlangu•14m ago•0 comments

Show HN: ClawSoc – Observe Your AI Agent in an AI Society

https://clawsoc.io
3•benjosaur•16m ago•0 comments

Promptbuilder Tool

https://promptengine.business
2•thlangu•16m ago•0 comments

Show HN: Magicly – an aesthetic new tab with a magic orb

https://chromewebstore.google.com/detail/magicly/lphplecibkpifdmohbockmaloepgpbbl
2•tamnv•18m ago•0 comments

.NET 11 Preview 2 is now available

https://devblogs.microsoft.com/dotnet/dotnet-11-preview-2/
1•vyrotek•18m ago•0 comments

MacBook Neo Review: No Other Budget Laptop Can Compete

https://gizmodo.com/macbook-neo-review-no-other-budget-laptop-can-compete-2000731635
2•thunderbong•18m ago•0 comments

Signal Design for Good Correlation

https://www.cambridge.org/core/books/signal-design-for-good-correlation/4A48F8F2070E0EB093283A792...
2•programmexxx•19m ago•0 comments

How the "godfathers of AI" have shaped our mission

https://ctsmyth.substack.com/p/standing-with-giants
1•K0balt•20m ago•1 comments

Show HN: CryptoFlora – Visualize SHA256 to a flower using Rose curves

https://crypto-flora.tonytonyjan.net/
1•tonytonyjan•22m ago•0 comments

Preview a website before DNS changes – etchosts.link

https://etchosts.link/
1•prismatized•23m ago•0 comments

Why Cape Town May End Up Safer Than Dubai

https://www.thefp.com/p/why-cape-town-may-end-up-safer-than
1•paulpauper•26m ago•0 comments

Advantageous Selection

https://marginalrevolution.com/marginalrevolution/2026/03/advantageous-selection.html
1•paulpauper•26m ago•0 comments

Ben McKenzie's 'Everyone Is Lying to You for Money' – Official Trailer [video]

https://www.youtube.com/watch?v=hEXxAOFqv4U
4•yesbut•26m ago•0 comments

The self-help guru who decided he might be doing more harm than good

https://www.telegraph.co.uk/news/2026/03/09/tim-ferriss-self-help-may-be-harming-people/
1•cyunker•33m ago•1 comments

Apple Planning 'MacBook Ultra' with Touchscreen and Higher Price

https://www.macrumors.com/2026/03/08/apple-planning-macbook-ultra/
1•walterbell•35m ago•0 comments

ASINCrate – Download Amazon Product Images and Videos in One Click

https://asincrate.com/
1•seedancetips•37m ago•0 comments

A Dish of Neurons Playing Doom

https://gizmodo.com/a-dish-of-neurons-playing-doom-is-the-wildest-thing-ive-seen-in-ages-2000727674
1•colinprince•37m ago•0 comments

Jensen Huang: AI is a five layer cake

https://blogs.nvidia.com/blog/ai-5-layer-cake/
1•salkahfi•38m ago•0 comments

Show HN: AngelBacked – a searchable database ofangels and VCs

https://www.angelbacked.co
1•veritas9•39m ago•0 comments

The Global Vulnerability Intelligence Platform with Olle E. Johansson

https://opensourcesecurity.io/2026/2026-02-GVIP-olle-johansson/
1•jruohonen•41m ago•0 comments

X-Plane Is Coming to Apple Vision Pro with Nvidia CloudXR

https://www.x-plane.com/2026/03/x-plane-is-coming-to-apple-vision-pro-with-nvidia-cloudxr/
2•CharlesW•45m ago•0 comments

Show HN: Built a browser-based AI data analyst using DuckDB WASM and OPFS

https://rowpilot.co
1•zurnz•48m ago•6 comments