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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

MLX-Serve a Native LLM Runtime for Apple Silicon

https://ddalcu.github.io/mlx-serve/
1•ddalcu•19s ago•1 comments

Why We're Removing Our Programmatic Ads

https://prospect.org/2026/04/06/why-were-removing-our-programmatic-ads/
1•colinprince•6m ago•0 comments

Show HN: Portable offline LLM knowledge system that runs in browser

1•muthuishere•8m ago•0 comments

China Orders Bitchat Pulled from Apple App Store

https://decrypt.co/363367/china-orders-jack-dorseys-bitchat-pulled-from-apple-app-store
1•giuliomagnifico•9m ago•0 comments

DevTerm – Portable Terminal

https://www.clockworkpi.com/home-devterm
2•kristianpaul•12m ago•0 comments

Clockworkpi

https://www.clockworkpi.com
3•kristianpaul•14m ago•1 comments

Why the majority of vibe coded projects fail

https://www.reddit.com/r/ClaudeAI/s/Vkkzi4lUW0
5•juniormpakou•19m ago•0 comments

One Softie's View of the Evolution of Windows APIs

https://twitter.com/stevesi/status/2036921223150440542
2•jnord•20m ago•0 comments

Free Early Learning Content for Kids – Feedback Welcome

https://www.youtube.com/channel/UCuC2pezENaY3BTsDnACzY-w
1•fatbrother•23m ago•0 comments

My Real-Life Account as a Federally Cleared US Government Whistleblower

https://drive.proton.me/urls/TVQBZBVQK0#g50TCYlBdeeb
2•kernel_haathi•23m ago•1 comments

I'm building a local-first CLI "knowledge foundry" for LLM workflows

https://twitter.com/theopuslabs/status/2041316189515723028
2•opuslabs•26m ago•0 comments

Lab Gloves May Be Skewing Microplastics Data

https://hackaday.com/2026/04/06/lab-gloves-may-be-skewing-microplastics-data/
2•lxm•33m ago•0 comments

Robots Eat Cars

https://telemetry.endeff.com/p/robots-eat-cars
1•JMill•34m ago•0 comments

A.I. Is on Its Way to Upending Cybersecurity

https://www.nytimes.com/2026/04/06/technology/ai-cybersecurity-hackers.html
1•lxm•37m ago•0 comments

Anthropic's refusal to drop AI safeguards for The Pentagon

https://claude.ai/public/artifacts/f1c3dd80-a3eb-49eb-9d92-867705526437
2•skmadd•38m ago•0 comments

We Don't Know: A Case for Mars

https://dave.autonoma.ca/blog/2026/04/06/case-for-mars/
1•thangalin•39m ago•1 comments

"Do you think AI will ever be able to write a good song?"

https://www.theredhandfiles.com/considering-human-imagination-the-last-piece-of-wilderness-do-you...
1•Nition•42m ago•1 comments

Badclaude – whip Claude to make it go faster

https://github.com/GitFrog1111/badclaude
1•beatthatflight•42m ago•1 comments

What Next for the Compute Crunch?

https://martinalderson.com/posts/what-next-for-the-compute-crunch/
2•jnord•44m ago•0 comments

Guns and Butter: The Oldest Trade-Off in Economics Is Back

https://www.mondayeconomist.com/p/guns-and-butter
3•NomNew•47m ago•0 comments

MyChart an online patient portal for access to your medical record

https://www.mychart.org/
1•megamike•48m ago•2 comments

Codexia: OSS Agent Workstation for Codex and Claude

https://github.com/milisp/codexia/
1•lostmsu•48m ago•1 comments

From folding boxes to fixing vacuums, GEN-1 robotics model hits 99% reliability

https://arstechnica.com/ai/2026/04/generalists-new-physical-robotics-ai-brings-production-level-s...
2•jnord•52m ago•0 comments

Show HN: I built my knowledge OS from ingesting to next step action

https://github.com/menggg22/personal_knowlege_os
1•menggg•52m ago•0 comments

Gave my Claude a subconscious memory system

https://github.com/justnau1020/claude-os
2•justnau1020•1h ago•1 comments

Benchmarked 37 LLMs on MacBook Air M5 32GB

https://old.reddit.com/r/LocalLLaMA/comments/1se81a5/i_benchmarked_37_llms_on_macbook_air_m5_32gb...
2•rguiscard•1h ago•0 comments

Browser Agents That Learn

https://browser-use.com/posts/web-agents-that-actually-learn
3•gregpr07•1h ago•0 comments

Interpreting Polygenic Prediction of Cognitive Ability

https://icajournal.scholasticahq.com/article/158459-interpreting-polygenic-prediction-of-cognitiv...
2•Anon84•1h ago•0 comments

Claude Agent SDK vs. Messages API for a Production AI Assistant?

2•makeavish•1h ago•0 comments

What "elastic compute" means in 2026

https://opencomputer.dev/blog/what-elastic-compute-means
2•iacguy•1h ago•0 comments