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

Locker 247

https://twitter.com/MrPitbull07/status/1992609458023977411
1•rmason•44s ago•0 comments

Host a website from an old phone using PostmarketOS

https://far.computer/how-to/
1•birdculture•1m ago•0 comments

Large-scale trial finds 4-day workweek improves employee well-being

https://www.psypost.org/large-scale-trial-finds-four-day-workweek-improves-employee-well-being-an...
1•mustaphah•3m ago•0 comments

Event-Driven Data Science: EventSourcingDB Meets Python and Pandas

https://docs.eventsourcingdb.io/blog/2025/11/24/event-driven-data-science-eventsourcingdb-meets-p...
2•goloroden•4m ago•0 comments

What topic in cyber security should I focus on as AI engineer?

1•maorware•5m ago•0 comments

Weight loss drugs are bringing down the country's obesity rate, a survey shows

https://www.npr.org/sections/shots-health-news/2025/10/28/nx-s1-5587805/glp-1-ozempic-zepbound-ga...
1•paulpauper•7m ago•0 comments

The DoorDash Problem: How AI Browsers Are a Threat to Amazon

https://www.theverge.com/podcast/823909/the-doordash-problem-ai-agents-web-amazon-perplexity-lawsuit
1•jboydyhacker•7m ago•1 comments

Tech billionaires want to make gene-edited babies

https://www.economist.com/science-and-technology/2025/11/19/tech-billionaires-want-to-make-gene-e...
2•andsoitis•8m ago•0 comments

Project Code Rush (Documentary): Does History Repeats with AI? [video]

https://www.youtube.com/watch?v=4Q7FTjhvZ7Y
1•finchisko•9m ago•1 comments

EU's High‑Speed Rail Action Plan

https://transport.ec.europa.eu/transport-modes/rail/high-speed-rail-plan_en
1•simonebrunozzi•10m ago•0 comments

Visual Agent: Prompt → Image → Segmentation → 3D Mesh in One Chat

https://chat.vlm.run/c/3fcd6b33-266f-4796-9d10-cfc152e945b7
1•visioninmyblood•12m ago•0 comments

Show HN: Regex Challenge – Daily regex puzzles

https://www.regexchallenge.com/
1•stoccupied•16m ago•1 comments

GitHub Actions broke caching on macOS

https://github.com/actions/runner-images/issues/13341
2•twp•17m ago•0 comments

The Age of Disclosure

https://marginalrevolution.com/marginalrevolution/2025/11/the-age-of-disclosure.html
1•paulpauper•22m ago•0 comments

Sperm Whales May Be Speaking in Vowels Too

https://scienceblog.com/wildscience/2025/11/19/sperm-whales-may-be-speaking-in-vowels-too/
1•paulpauper•22m ago•0 comments

Tiny improvement for SoA over AoS in Python

https://blog.osm-ai.net/2025/11/23/structofarrays-vs-arrayofstructs-in-python.html
1•osm3000•26m ago•1 comments

Making my 1970's-style renderer multi-threaded

https://filiph.net/text/making-my-1970s-renderer-multi-threaded.html
2•Apocryphon•26m ago•0 comments

Google Colab Is Coming to VS Code

https://developers.googleblog.com/en/google-colab-is-coming-to-vs-code/
3•malshe•32m ago•0 comments

Show HN: Less‑filtered LLM chat and API

https://abliteration.ai/
1•abliterationai•33m ago•0 comments

Meet the AI workers who tell their friends and family to stay away from AI

https://www.theguardian.com/technology/2025/nov/22/ai-workers-tell-family-stay-away
13•breve•34m ago•1 comments

API Versioning in Spring

https://spring.io/blog/2025/09/16/api-versioning-in-spring/
1•tsenturk•36m ago•0 comments

AI Content Pipeline: My Experience

https://techlife.blog/posts/ai-content-pipeline/
2•tsenturk•37m ago•0 comments

Apple Vision Pro: M5 vs. M2 [video]

https://www.youtube.com/watch?v=HVDnpNo-wm4
1•gdubs•38m ago•0 comments

Hacker conference installed a literal antivirus monitoring system

https://www.wired.com/story/this-hacker-conference-installed-a-literal-anti-virus-monitoring-system/
2•newman314•38m ago•0 comments

Mechanical Power by Linking Earth's Warmth to Space

https://www.ucdavis.edu/news/mechanical-power-linking-earths-warmth-space
1•geox•39m ago•0 comments

Lead magnet creation for blue collar SaaS

https://estimatekit.com/free-templates
2•travpaiv•39m ago•1 comments

The Unofficial Swift Programming Language Skill

https://github.com/kylehughes/the-unofficial-swift-programming-language-skill
1•kylehug•40m ago•0 comments

OptiLLM: Accuracy improvements on reasoning tasks with zero training

https://github.com/algorithmicsuperintelligence/optillm
1•rzk•40m ago•0 comments

Why are free markets getting less support here now?

4•silexia•41m ago•0 comments

Ask HN: Why only 5% agent pilots are going to prod?

1•spacemnstr42069•43m ago•0 comments