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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•6mo ago
Agreed

Google begins showing ads in AI Mode (AI answers)

https://www.bleepingcomputer.com/news/artificial-intelligence/google-begins-showing-ads-in-ai-mod...
1•nreece•37s ago•0 comments

Channel Geography Favors England Invading France, Not Vice-Versa (Drachinifel) [video]

https://www.youtube.com/watch?v=8Tsrm_mvoVk
1•bell-cot•3m ago•0 comments

A New Programming Model for Full-Stack Distributed Systems

https://www.youtube.com/watch?v=fZf-S5yfbfo
1•geetee•6m ago•0 comments

An MIT Student Awed Top Economists with His AI Study–Then It All Fell Apart

https://www.wsj.com/economy/aidan-toner-rodgers-mit-ai-research-78753243
2•seagullz•11m ago•0 comments

Small Machine Shop Owner Fights Back [video]

https://www.youtube.com/watch?v=jt5DhnoYm5w
1•ksec•18m ago•0 comments

Let me opt in, not out

https://www.aleksandrhovhannisyan.com/blog/let-me-opt-in-not-out/
1•aleksandrh•23m ago•0 comments

Google denies 'misleading' reports of Gmail using your emails to train AI

https://www.theverge.com/news/826902/gmail-ai-training-data-opt-out
5•GeorgeWoff25•38m ago•0 comments

Superman copy found in mum's attic is most valuable comic ever at $9.12M

https://www.bbc.com/news/articles/c8e9rp0knj6o
47•1659447091•48m ago•13 comments

Servo Sponsorship Tiers

https://servo.org/blog/2025/11/21/sponsorship-tiers/
3•pabs3•51m ago•0 comments

Rolls-Royce tests how to limit sand damage to jet engines

https://www.bbc.com/news/articles/cj0e3npg7e4o
4•1659447091•52m ago•0 comments

RIP Puzzles in chess.com – I miss it

2•kinj28•58m ago•0 comments

Show HN: Skedular, a Smart Booking and Workspace Management Platform

https://skedular.app
2•mortezaalizadeh•1h ago•0 comments

The digital nomad era is over

https://qz.com/digital-nomads-ai-rto-remote-work-office
5•doughnutstracks•1h ago•2 comments

Cursor Learn

https://cursor.com/learn
2•dsr12•1h ago•0 comments

AI Exponentializes Your Tech Debt

https://www.vincentschmalbach.com/ai-exponentializes-your-tech-debt/
9•vincent_s•1h ago•2 comments

Workbass: Free Invoice-Generating Software for Modern Businesses

2•tobinews•1h ago•0 comments

Boring Laser Eyes Simulator: Add laser beams to your eyes with your webcam

2•frankhsu•1h ago•0 comments

Microsoft's head of AI doesn't understand why people don't like AI

https://www.pcgamer.com/software/ai/microsofts-head-of-ai-doesnt-understand-why-people-dont-like-...
19•evo_9•1h ago•3 comments

Ask HN: How to generate flipbook-style animations from video?

2•meerab•1h ago•0 comments

A Guide to 3D Printing Model Aircraft Wings

https://hackaday.com/2022/08/26/a-guide-to-3d-printing-model-aircraft-wings/
3•addaon•1h ago•0 comments

Where is my von Braun Wheel?

https://www.worksinprogress.news/p/where-is-my-von-braun-wheel
4•sien•1h ago•0 comments

Openring-rs: a webring for static site generators written in Rust

https://github.com/lukehsiao/openring-rs
5•lwhsiao•1h ago•1 comments

Hytale Modding Strategy and Status

https://hytale.com/news/2025/11/hytale-modding-strategy-and-status
2•smj-edison•2h ago•0 comments

Arrogance as a Vulnerability: How 'Hopefully Secure' Firebase Cost a $1M Startup

https://prajyoth.pages.dev/article?id=2025-11-22-arrogance-as-a-vulnerability
3•ImPrajyoth•2h ago•0 comments

Moss Survives 9 Months in Space Vacuum

https://scienceclock.com/moss-survives-9-months-in-space-vacuum/
41•ashishgupta2209•2h ago•9 comments

mRNA flu vaccine is up to 34.5% more effective than current flu vaccines

https://www.scimex.org/newsfeed/expert-reaction-mrna-flu-vaccine-is-up-to-34-5-percent-more-effec...
20•lysp•2h ago•4 comments

Lester: A New Era for Rotoscoping in Indie Animation and Retro Game Development

https://rtous.github.io/lester/
2•LostMyWords•2h ago•0 comments

Topological Adam: An experiment in energy-stabilized optimization

https://github.com/RRG314/topological-adam
1•sreid90•2h ago•0 comments

Pin Analysis

http://www.datagenetics.com/blog/september32012/index.html
1•WhyNotHugo•2h ago•0 comments

Apple shows how much faster the M5 runs local LLMs compared to the M4

https://9to5mac.com/2025/11/20/apple-shows-how-much-faster-the-m5-runs-local-llms-compared-to-the...
13•geoffbp•2h ago•2 comments