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

What I Learned About Billionaires at Jeff Bezos's Private Retreat

https://www.theatlantic.com/magazine/2026/05/billionaire-consequence-free-reality/686588/
2•tastyface•58s ago•0 comments

Brevity as a Human Advantage

https://blog.dahl.dev/posts/brevity-as-a-human-advantage/
1•aleda145•1m ago•0 comments

Diverse organic molecules on Mars revealed by the first SAM TMAH experiment

https://www.nature.com/articles/s41467-026-70656-0
1•bryan0•2m ago•0 comments

Glass bottles found to contain more microplastics than plastic bottles (2025)

https://phys.org/news/2025-06-glass-bottles-microplastics-plastic.html
1•vinni2•3m ago•0 comments

Show HN: I tried adding Folder Upload feature In my Website

1•gray_wolf_99•7m ago•1 comments

Ask HN: How are you handling data retention across your stack?

1•preston-kwei•8m ago•0 comments

Show HN: One ESLint rule to kill the "ChatGPT em dash" in your codebase

https://github.com/oleg-koval/drop-em-dash-eslint-rule
1•orthodoz•8m ago•0 comments

Rees.fm – Cheap video AI using Seedance 2.0 and Sora 2

https://reels.fm/
2•vioweb•10m ago•0 comments

iOS update to improve redaction for the iOS notification database

https://support.apple.com/en-us/127002
2•nar001•11m ago•0 comments

Cult-favorite burger chain to deploy hot slider vending machines nationwide

https://www.mlive.com/business/2026/04/cult-favorite-burger-chain-to-deploy-hot-slider-vending-ma...
2•rmason•12m ago•1 comments

ElementsKit a toolkit of reactive primitives for building the web UI

https://github.com/waelbettayeb/elements-kit
2•waelbettayeb•15m ago•1 comments

AI robot outplays humans in table tennis milestone

https://www.ft.com/content/9860f042-3332-4534-9b1a-fa9f57b8347e
3•aanet•15m ago•1 comments

Lightspeed Classroom CVE-2026-30368

https://www.incognitotgt.me/blog/lightspeed
2•crazycrystals•16m ago•0 comments

Biohacker claims to have sequenced their own genome with M3 Ultra Mac Studio

https://www.tomshardware.com/tech-industry/artificial-intelligence/biohacker-claims-to-have-seque...
2•rmason•16m ago•0 comments

MacBook Neo: Review (Basic Apple Guy)

https://basicappleguy.com/basicappleblog/macbook-neo-review
2•frizlab•23m ago•2 comments

A simple messenger build for Agent-2-Agent communication and discovery

https://www.agentmessenger.io/
2•pixelsebi•26m ago•1 comments

Got personal financial, medical data you'd like to keep private? Good luck

https://news.harvard.edu/gazette/story/2026/04/got-personal-financial-medical-data-youd-like-to-k...
3•gnabgib•27m ago•0 comments

Making the invisible audible: Building an OpenXR experience for ocean protection

https://www.collabora.com/news-and-blog/blog/2026/04/22/making-the-invisible-audible-building-an-...
2•losgehts•28m ago•0 comments

Scalable CLI – an official command line for the Scalable Capital broker

https://github.com/ScalableCapital/scalable-cli
2•michidk•28m ago•0 comments

Subpixel Text Encoding/Font

https://www.msarnoff.org/millitext/
2•gurjeet•29m ago•0 comments

Stop publishing conference videos (2022)

https://www.notcheckmark.com/2022/11/stop-publishing-conference-videos/
3•Tomte•29m ago•0 comments

SkillGuard – scan agent skills for prompt injection payloads

https://github.com/obielin/skillguard
2•arabking•30m ago•1 comments

Itron Project

https://en.wikipedia.org/wiki/ITRON_project
2•doener•30m ago•0 comments

Hey, it's Earth Day today

3•burnt-resistor•30m ago•1 comments

We Are All Playing Politics at Work

https://idiallo.com/blog/we-are-playing-politics
4•firefoxd•31m ago•0 comments

Dryos

https://en.wikipedia.org/wiki/DRYOS
2•doener•32m ago•0 comments

SpaceX developing Golden Dome software

https://www.bloomberg.com/news/articles/2026-04-22/spacex-tapped-for-industry-group-developing-go...
4•infinitewars•32m ago•0 comments

OpenAI demos cyber-focused GPT to governments, who secures the model itself?

https://www.axios.com/2026/04/22/openai-gpt-cyber-government-meeting
3•Almured•33m ago•1 comments

Agents with Taste – How to transfer taste into an AI

https://emilkowal.ski/ui/agents-with-taste
3•emilkowalski•33m ago•0 comments

They will force you, open source maintainers, to drink the gasoline

https://www.notcheckmark.com/2026/04/you-will-drink-the-gasoline/
3•withzombies•35m ago•0 comments