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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•10mo ago
Agreed

OpenFlow – Dashboard for Managing Claude Code Sessions with RuFlo

https://github.com/ai-genius-automations/openflow
2•andycodeman•2m ago•0 comments

Poll: What mobile OS do you primarily use?

1•chistev•5m ago•0 comments

You Need Deterministic Gates for Probabilistic AI Agents

https://www.appsoftware.com/blog/you-need-probabilistic-gates-for-deterministic-ai-agents
3•gbro3n•9m ago•1 comments

Watch TK Video Without App

https://watchwithoutapp.org/
1•0xCafeBabee•9m ago•0 comments

The Internet After Search (Matthew Prince from Cloudflare at SXSW) [video]

https://www.youtube.com/watch?v=mQL_97LxAPE
1•gala8y•10m ago•0 comments

Atoms

https://atoms.co/
1•doppp•12m ago•0 comments

Rosetta Map – translating neighborhoods between cities

https://walzr.com/rosetta-map/
1•walz•12m ago•0 comments

A fast, single-file terminal emulator for macOS

https://github.com/LEVOGNE/quickTerminal
1•LEVOGNE•14m ago•0 comments

Identical twins on trial: can DNA testing tell them apart?

https://www.nature.com/articles/d41586-026-00521-z
1•beardyw•15m ago•0 comments

The Appalling Stupidity of Spotify's AI DJ

https://www.charlespetzold.com/blog/2026/02/The-Appalling-Stupidity-of-Spotifys-AI-DJ.html
2•ingve•15m ago•0 comments

A Guide to vim.pack (Neovim built-in plugin manager)

https://echasnovski.com/blog/2026-03-13-a-guide-to-vim-pack
1•birdculture•16m ago•0 comments

Auto-research: The Lab that runs while you sleep

https://adlrocha.substack.com/p/adlrocha-auto-research-the-lab-that
1•adlrocha•16m ago•0 comments

Samsung Galaxy S26 Ultra Review: The Privacy Screen

https://www.wired.com/review/samsung-galaxy-s26-ultra/
1•joozio•16m ago•0 comments

The Serial Safety Net: Efficient Concurrency Control on Modern Hardware

http://muratbuffalo.blogspot.com/2026/03/the-serial-safety-net-efficient.html
1•ingve•20m ago•0 comments

Way of the Future – Religious organization dedicated to the worship of AI

https://en.wikipedia.org/wiki/Way_of_the_Future
1•j3th9n•20m ago•0 comments

Supply-chain attack using invisible code hits GitHub and other repositories

https://arstechnica.com/security/2026/03/supply-chain-attack-using-invisible-code-hits-github-and...
2•tannhaeuser•21m ago•0 comments

Ask HN: Founder is claiming my 2-year RAG architecture as his AI's Featured Work

2•2dogsanerd•29m ago•0 comments

PrivAI – private AI search that runs locally

https://chatpdf-server-shtq.onrender.com/
1•Blockbanana•30m ago•1 comments

How to try Google Chrome vertical tabs

https://9to5google.com/2026/01/19/google-chrome-vertical-tabs-beta/
1•tosh•34m ago•0 comments

Apple Rankings

https://applerankings.com/
1•thunderbong•39m ago•0 comments

Alysa Liu Won Olympic Gold, but She Would've Been Fine Either Way

https://www.teenvogue.com/story/alysa-liu-olympic-gold-teen-vogue-cover-interview-2026
2•Tomte•40m ago•0 comments

What does it take for male friendship to thrive?

https://www.csmonitor.com/Books/Book-Reviews/2026/0313/who-needs-friends-andrew-mccarthy-male-fri...
2•Tomte•41m ago•0 comments

Palantir CEO on Iran, AI Weapons and America's Advantage: A16Z American Dynamism [video]

https://www.youtube.com/watch?v=Wj6ttdIeBnE
1•keepamovin•42m ago•0 comments

Agents prefer structured queries over natural language when given the choice

3•snoren•44m ago•2 comments

Solo founder launching my first product on producthunt can I get some support

2•dattapt•45m ago•0 comments

Trump administration to be paid $10B for brokering TikTok deal

https://www.theguardian.com/technology/2026/mar/14/tiktok-trump-administration-10bn
2•gizzlon•46m ago•0 comments

Zirco.ai – AI employee for dental front desk operations

1•vosidov-msaid•50m ago•0 comments

I built an AI hedge fund panel that debates any stock

https://ainvest-jnpzmtom62rulztvu24d6c.streamlit.app/
2•lovvoong•51m ago•0 comments

Biased AI writing assistants shift users' attitudes on societal issues

https://www.science.org/doi/10.1126/sciadv.adw5578
2•tobr•56m ago•0 comments

Built by Americans. Captured by Foreigners

https://twitter.com/chiefengineerce/status/2032927887943417991
4•MrBuddyCasino•57m ago•1 comments