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•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

Byron Allen Is Buying BuzzFeed, Will Become CEO

https://variety.com/2026/digital/news/byron-allen-buying-buzzfeed-ceo-1236745206/
1•thm•4m ago•0 comments

Lojban

https://en.wikipedia.org/wiki/Lojban
1•AbstractPlay•6m ago•0 comments

Claude Code and Blender MCP

https://hydroxide.dev/articles/blender-mcp-claude-code/
1•nmfisher•6m ago•0 comments

Screenshots of Old Desktop OSes

http://www.typewritten.org/Media/
3•adunk•9m ago•0 comments

I tried building AI agents and ended up needing an institution

https://github.com/wes-zheng/ai_institutions
1•bbcf•10m ago•0 comments

Rendering the Sky, Sunsets, and Planets

https://blog.maximeheckel.com/posts/on-rendering-the-sky-sunsets-and-planets/
1•bj-rn•20m ago•0 comments

Google Search Is Down

https://www.google.com/search?q=test
11•recklesspigeon•20m ago•9 comments

Show HN: Tessera – Turn coding agent sessions into structured work

https://github.com/horang-labs/tessera
1•horanglabs•22m ago•0 comments

Skymizer's chip design could embarrass Nvidia and AMD cards

https://www.techradar.com/pro/tiny-company-steals-amds-thunder-and-challenges-nvidia-with-old-tec...
2•anticensor•30m ago•0 comments

Reddit Starts Blocking Mobile Website, Pushing Users to App Instead

https://www.macrumors.com/2026/05/11/reddit-starts-blocking-mobile-website/
6•_____k•32m ago•3 comments

Notes from Optimizing CPU-Bound Go Hot Paths

https://blog.andr2i.com/posts/2026-05-03-notes-from-optimizing-cpu-bound-go-hot-paths
1•nnx•33m ago•0 comments

Supercomputer networking to accelerate large scale AI training

https://openai.com/index/mrc-supercomputer-networking/
2•gmays•34m ago•0 comments

US in closely-guarded talks to open 3 new bases in Greenland

https://www.bbc.com/news/articles/cx21669452lo
2•rguiscard•36m ago•0 comments

The Underhanded C Contest

https://www.underhanded-c.org/
2•jruohonen•36m ago•0 comments

Show HN: Doomscroll the Goverment's UFO Files as One Gigantic Microfilm

https://hypergrid.systems/war.gov-ufo-viewer/microfilm2?page=2
4•keepamovin•39m ago•2 comments

Ask HN: Fight Traffic Cam Tickets?

1•voakbasda•40m ago•1 comments

100jobs.page is seeing ~200 visitors daily since launching 2 days ago

1•typekev•41m ago•1 comments

Chinese AI engineers are Silicon Valley's new power players

https://restofworld.org/2026/chinese-ai-researchers-silicon-valley/
4•tortilla•43m ago•0 comments

Thomas Massie for Congress accepts Bitcoin donations

https://www.massiemoneybomb.com/donate
1•Cider9986•47m ago•1 comments

Show HN: KeepDue – private iPhone reminders for free trials and renewals

https://apps.apple.com/us/app/keepdue/id6763344674
2•willsuo•51m ago•0 comments

Zig versus Rust in 2026

https://zackoverflow.dev/writing/zig-vs-rust-in-2026/
3•kaycebasques•53m ago•1 comments

Behavioral and Brain Alignment Between Frontier LRMs and Human Game Learners

https://botcs.github.io/reason-to-play/
2•paraschopra•53m ago•0 comments

That Great Sucking Sound

https://favorablethrivingconditions.substack.com/p/that-great-sucking-sound
2•paulpauper•1h ago•0 comments

Science Is Still Persuasion

https://hunchbox.substack.com/p/science-is-still-persuasion
2•paulpauper•1h ago•1 comments

The Assignment That Tells Hiring Managers Nothing New

https://stevearrants.substack.com/p/the-assignment-that-tells-hiring
1•eigenBasis•1h ago•0 comments

Gut Instinct: Connecting with our intuition

https://www.cheltenhamzen.co.uk/writings/gut-instinct
1•lawrenceyan•1h ago•0 comments

How do LLMs understand an artist's inner universe?

https://jimiwen.substack.com/p/how-do-llm-understand-artistic-inner
1•jimiwen•1h ago•0 comments

Ask HN: What would you want in a GitHub alternative?

1•vednig•1h ago•1 comments

Supply chain compromise in mistralai Python package

https://github.com/mistralai/client-python/issues/523
2•meander_water•1h ago•0 comments

The Cathedral, the Bazaar and the Kitchen

https://blog.vrypan.net/2026/05/11/the-cathedral-the-bazaar-and-the-kitchen/
1•ultratalk•1h ago•0 comments