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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

Show HN: Agnt – Free open-source CLI to run any public or MIT-licensed AI agent

1•meajsinghk22•2m ago•0 comments

Show HN: Due Diligence Agents – 13 AI agents for M&A contract analysis

https://github.com/zoharbabin/due-diligence-agents
1•zoharbabin•2m ago•0 comments

Realtime Stocks Prices that you can put Fullscreen

https://stocks.stagas.deno.net/
1•stagas•2m ago•0 comments

Open Itinerary

http://bryanhu.com/open-itin/
1•thatxliner•4m ago•1 comments

A Family Secret No More

https://www.nytimes.com/2026/05/15/us/degrange-family-history-race.html
1•js2•4m ago•0 comments

Checking Multiplication Overflow

https://lemire.me/blog/2026/05/06/checking-multiplication-overflow/
1•tosh•5m ago•0 comments

CarTalk-AMP: Search and Play Car Talk Episodes

https://cartalk-amp.exe.xyz
1•indigodaddy•5m ago•0 comments

Back in My Day

https://old.reddit.com/r/opencodeCLI/comments/1tftit9/back_in_my_day/
2•theanonymousone•5m ago•0 comments

Show HN: Kami Subs – Live AI subtitles overlay for any browser video

https://github.com/MohammdKopa/kami-subs
1•mohamedkeba•7m ago•0 comments

Neptune: Direct3D Virtualization for QEMU

https://blog.getutm.app/2026/introducing-neptune-direct3d-virtualization-for-qemu/
1•linolevan•7m ago•0 comments

Almost there: Aptera has built five solar EVs on their validation assembly line

https://aptera.us/first-five-vehicles/
1•TeaVMFan•7m ago•1 comments

Why this 26-year-old software engineer doesn't want a promotion

https://www.reuters.com/markets/on-the-money/why-this-26-year-old-software-engineer-doesnt-want-p...
2•tartoran•10m ago•0 comments

Can Bloom Energy build them?

https://theloadgrowth.substack.com/p/can-bloom-energy-build-them
2•agordhandas•13m ago•0 comments

WHO declares Ebola outbreak in Congo, Uganda emergency of international concern

https://www.reuters.com/business/healthcare-pharmaceuticals/who-declares-ebola-outbreak-congo-uga...
2•tartoran•13m ago•0 comments

F.03 Livestream – Watch a team of humanoid robots running a full 8-HR shift [video]

https://www.youtube.com/watch?v=luU57hMhkak
1•Teever•13m ago•0 comments

A bad blog post led to GamerGate and the rise of the alt-right

https://www.dontbeasucker.blog/p/you-are-what-you-beat
1•betterthanever•13m ago•0 comments

Curated list of 736 verified remote tech companies hiring (May 2026)

https://dj5333111-ux.github.io/traction-data/
3•tractiondata•14m ago•1 comments

Dontsurveil.me

https://opencivics-labs.github.io/dontsurveil.me/c22.html
1•laurex•15m ago•1 comments

The clean-up cost of AI-generated code is what the velocity narrative leaves out

https://webflow.com/blog/cleanup-cost-ai-generated-code
1•Brajeshwar•16m ago•0 comments

AI can fix the fragmented online public transport space

https://simianwords.bearblog.dev/ai-can-fix-the-fragmented-online-public-transport-space/
1•simianwords•20m ago•0 comments

He Federal Data Field Guide

https://www.federaldatafieldguide.us/
1•firexcy•22m ago•0 comments

Pokemon NPCs Powered by Local LLMs

https://www.owenmc.dev/posts/local-inference-npcs
1•owenmccadden•24m ago•0 comments

Mistral's CEO: Europe has 2 years to stop becoming America's AI 'vassal state'

https://www.businessinsider.com/mistral-ceo-warns-europe-2-years-avoid-us-ai-dependence-2026-5
2•LelouBil•26m ago•0 comments

Mudflat Hiking

https://en.wikipedia.org/wiki/Mudflat_hiking
1•debarshri•26m ago•0 comments

Don't Outsource the Learning

https://addyosmani.com/blog/dont-outsource-learning/
1•korecodes•26m ago•0 comments

In 1979 engineer Hugh Padgham discovered "gated reverb" – by accident

https://producelikeapro.com/blog/how-one-recording-mistake-created-a-musical-phenomenon-in-the-80s/
1•bookofjoe•29m ago•0 comments

I want to try S.Y's GasTown to create code from a Spec without spending any $

https://github.com/stevef1uk/freeride
1•apiemotion•31m ago•1 comments

JSON logging isn't enough anymore: A deep dive into OTel Logs

https://www.dash0.com/knowledge/opentelemetry-logging-explained
1•ayoisaiah•33m ago•0 comments

Poll: Do you customize the TCP/IP settings of your OS, Router or Firewall?

1•Bender•33m ago•0 comments

Ask HN: Reading AI Assisted Essays

1•parentheses•35m ago•0 comments