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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

Claude Skills for Marketing

https://maestrix.ai/skills
1•guidum80•30s ago•0 comments

Micropay: Stripe-like payment intents for M-Pesa with no transaction fees

https://micropay.dev/
1•possiblelion•2m ago•1 comments

Heritability of life span is about 50% when heritability is redefined

https://dynomight.net/lifespan/
2•csours•3m ago•1 comments

Rules Create Unequal Rewards: Tennis Players Allocate Resources Efficiently

https://arxiv.org/abs/2601.15327
1•PaulHoule•3m ago•0 comments

The Promises of 'High-Assurance' Cryptography

https://symbolic.software/blog/2026-02-05-cryspen/
1•todsacerdoti•3m ago•0 comments

Germany to require streaming platforms to invest in local production

https://www.reuters.com/business/retail-consumer/germany-require-streaming-platforms-invest-local...
1•giuliomagnifico•4m ago•0 comments

'Orwellian' incident in supermarket using facial recognition tech

https://www.theguardian.com/technology/2026/feb/05/london-man-sainsburys-facial-recognition-facew...
2•graemep•5m ago•0 comments

Adding Canada Back to Our List of Accepted Countries of Incorporation

https://www.ycombinator.com/blog/adding-canada-back/
2•todsacerdoti•5m ago•0 comments

Whack-a-mole: US academic (John Mearsheimer) fights to purge his AI deepfakes

https://techxplore.com/news/2026-02-whack-mole-academic-purge-ai.html
1•bikenaga•6m ago•0 comments

Anthropic can win in consumer by being more open

https://sergey.substack.com/p/how-anthropic-can-win-in-consumer
1•neural_thing•7m ago•0 comments

Show HN: Relai – Share context between AI assistants, 100% local

https://github.com/kirillpolevoy/relai
1•kpolevoy1•9m ago•0 comments

Show HN: Messaging for AI agents without SMTP, MIME, or polling inboxes

https://getrelay.sh/
1•juansgaitan•9m ago•0 comments

Question of Cursor AI Movement

1•matinplace•10m ago•0 comments

Hypernetworks: Neural Networks for Hierarchical Data

https://blog.sturdystatistics.com/posts/hnet_part_I/
1•mkmccjr•12m ago•0 comments

Stephenson Impersonator; Minor Update

https://nealstephenson.substack.com/p/stephenson-impersonator-minor-update
1•pcfwik•13m ago•0 comments

What Is Ruliology?

https://writings.stephenwolfram.com/2026/01/what-is-ruliology/
2•surprisetalk•13m ago•0 comments

Draft Emoji List for 2026/2027

https://blog.emojipedia.org/draft-emoji-list-for-2026-2027/
1•surprisetalk•13m ago•0 comments

Free WordArt Generator – Create 90s Text Effects Online

https://www.makewordart.com
1•surprisetalk•13m ago•0 comments

There aren't enough smart people in biology doing something boring (2024)

https://www.owlposting.com/p/there-arent-enough-smart-people-in
1•surprisetalk•13m ago•0 comments

Using the Dell Pro Max with GB10 to profit within 12 months

https://www.servethehome.com/using-the-dell-pro-max-with-gb10-to-profit-within-12-months-nvidia/
1•teleforce•13m ago•0 comments

Sam Altman got exceptionally testy over Claude Super Bowl ads

https://techcrunch.com/2026/02/04/sam-altman-got-exceptionally-testy-over-claude-super-bowl-ads/
2•Signez•13m ago•1 comments

The world is more equal than you think

https://www.economist.com/graphic-detail/2026/02/03/the-world-is-more-equal-than-you-think
1•ksec•14m ago•1 comments

Where did the tips go? Restaurants say thousands missing from Everyday Payments

https://globalnews.ca/news/11652795/tips-bc-restaurants-thousands-missing-third-party-account/
1•cf100clunk•14m ago•0 comments

Researchers tested AI against 100k humans on creativity

https://www.sciencedaily.com/releases/2026/01/260125083356.htm
1•amichail•14m ago•0 comments

Dell Pro Max with GB10 is paying for itself [video]

https://www.youtube.com/watch?v=ib913zfNh7I
1•teleforce•14m ago•0 comments

Modernizing Linux swapping: the end of the swap map

https://lwn.net/SubscriberLink/1057102/7fd73b5dad297481/
3•chmaynard•15m ago•0 comments

Clankers with Claws

https://world.hey.com/dhh/clankers-with-claws-9f86fa71
1•ksec•16m ago•0 comments

Show HN: A browser-based, animation-first pixel editor with a proper timeline

https://spritepaint.com/
2•whothatcodeguy•17m ago•0 comments

FBI stymied by Apple's Lockdown Mode after seizing journalist's iPhone

https://arstechnica.com/tech-policy/2026/02/fbi-stymied-by-apples-lockdown-mode-after-seizing-jou...
1•01-_-•17m ago•1 comments

China is winning the humanoid robot race while Tesla's Optimus lags

https://restofworld.org/2026/china-humanoid-robots-unitree-agibot-tesla-optimus/
2•stareatgoats•18m ago•0 comments