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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•8mo ago
Agreed

I am worried about these newest Captchas

https://medium.com/the-haven/i-am-worried-about-these-newest-captchas-82d406715994
1•bryanrasmussen•32s ago•0 comments

Show HN: I made a pocket IDE for Android Developers

https://youtu.be/ToNxbKVkTic
1•0dayman•49s ago•0 comments

Weight-Loss Drugs Could Save U.S. Airlines $580M per Year

https://www.nytimes.com/2026/01/19/travel/airlines-weight-loss-drugs.html
1•mistersquid•2m ago•0 comments

Free Layer 7 Web DDoS protection for evaluation (from Germany)

1•linkeleven•3m ago•0 comments

Show HN: First party analytics pipeline on Cloudflare with DuckDB

https://try.icelight.dev/
1•cliftonc•6m ago•0 comments

Your workflow system just runs DAGs

https://blog.julik.nl/2026/01/on-the-way-to-step-functions-part-2
1•julik•8m ago•0 comments

Robust Conditional 3D Shape Generation from Casual Captures

https://facebookresearch.github.io/ShapeR/
1•lastdong•16m ago•0 comments

Oxfam's wealth inequality report 2026: Resisting the Rule of the Rich

https://policy-practice.oxfam.org/resources/resisting-the-rule-of-the-rich-621776/
1•kleiba•18m ago•0 comments

I Analyzed 28 Months of Data. Here's Why Story Points Are a Broken Tool

https://ksaweryskowron.substack.com/p/storypoints-are-not-good-planning-tool
1•PretzelFisch•19m ago•0 comments

Show HN: Meddle – Integrate, collect, manage and analyze realtime data

https://meddleconnect.com
1•MicheleLacorte•22m ago•0 comments

Fast_topk_batched: High-performance batched Top-K selection for CPU inference

https://github.com/RAZZULLIX/fast_topk_batched
1•thunderbong•23m ago•0 comments

Show HN: Kuse Cowork – An open source, BYOK alternative to Claude Cowork

https://github.com/kuse-ai/kuse_cowork
1•rctstudio2018•25m ago•0 comments

Washington's Covert Strike at the Heart of Iran's Power Structure

https://open.substack.com/pub/ajmals/p/us-strategic-shock-signal-to-iran
2•Gym-Berlin•28m ago•1 comments

Show HN: A Tailwind component generator focused on design quality, not AI "slop"

https://inspi.me/
1•yogourt•29m ago•1 comments

Show HN: Free tool to see how your thumbnail looks like on YouTube

https://www.awesomefreetools.xyz
1•awesomepotato•30m ago•0 comments

Alan MacMasters Hoax

https://en.wikipedia.org/wiki/Alan_MacMasters_hoax?wprov=sfti1
1•m-hodges•31m ago•0 comments

I fashioned each Fediverse instance into a star

https://100kstars.contained.love/
1•r0k1s_i•31m ago•0 comments

Bun Is Fast, Until Latency Matters for Next.js Workloads

https://blog.platformatic.dev/bun-is-fast-until-latency-matters-for-nextjs-workloads
1•gempir•32m ago•0 comments

Teaching RL Replay Buffers to Remember Long-Horizon Rewards (PyTorch)

https://domezsolt.substack.com/p/hippotorch-teaching-rl-agents-to
3•ashby_r•35m ago•0 comments

Web3 writing platform for Web3 writers

https://www.sigle.io/
1•janandonly•39m ago•0 comments

Which cryptexes does macOS Tahoe load?

https://eclecticlight.co/2026/01/19/which-cryptexes-does-macos-tahoe-load/
2•chmaynard•39m ago•0 comments

Looper.sh: yet another coding loop script

https://www.nibzard.com/looper-article
1•nkko•40m ago•0 comments

Why India's plan to make AI companies pay for training data should go global

https://restofworld.org/2026/india-ai-data-license-fee/
2•i7l•40m ago•0 comments

importmap.lock: A Lockfile for the Web

https://nesbitt.io/2026/01/19/importmap-lock.html
1•chmaynard•41m ago•0 comments

Show HN: Appa (POC): Self-shipping task queue via Linear & Claude Code

https://github.com/kxzk/appa
1•beigebrucewayne•44m ago•1 comments

Quantum 'alchemy' made feasible with excitons

https://phys.org/news/2026-01-quantum-alchemy-feasible-excitons.html
1•pseudolus•45m ago•0 comments

What's Worrying Jonathan Haidt Now?

https://calnewport.com/whats-worrying-jonathan-haidt-now/
2•chmaynard•45m ago•0 comments

40% of Kids Can't Read and Teachers Are Quitting [video]

https://www.youtube.com/watch?v=XTugyu2F0pc
5•squillion•46m ago•0 comments

China's birth rate hits record low as population continues to shrink

https://www.bbc.com/news/articles/c79r7v7qr53o
2•pseudolus•47m ago•0 comments

DeGoogled Phones, Made in Europe

https://tuta.com/blog/degoogled-phones
4•jruohonen•48m ago•1 comments