frontpage.
newsnewestaskshowjobs

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

Actojs – Bringing Elixir's Actors to TypeScript

https://www.npmjs.com/package/actojs
1•gidellav•1m ago•0 comments

HairGlimpse

https://hairglimpse.com/
1•lawrenceTang•1m ago•0 comments

Command Line Interface Guidelines

https://clig.dev/
1•subset•2m ago•0 comments

AI Boosts Research Careers but Flattens Scientific Discovery

https://spectrum.ieee.org/ai-science-research-flattens-discovery
1•zaikunzhang•4m ago•0 comments

Show HN: Jargo – Conversational-AI Golang Framework

https://github.com/gojargo/jargo
1•fallais•4m ago•0 comments

Count Binface the Game

https://binfacegame.co.uk
1•dawildcat•4m ago•0 comments

Show HN: Only 1 of 4,356 reachable MCP servers is ready for the 2026-07-28 spec

https://github.com/Roee-Tsur/mcp-spec-check
1•roee_tsur•9m ago•0 comments

I Love Details

https://nuno-icons.com/2026/07/11/i-heart-details/
1•LorenDB•10m ago•0 comments

HFI: Harmonic Firmware Initiative for RISC-V

https://qsoe.net/hfi/
1•ymz5•10m ago•1 comments

Fixed3D, a fixed point conversion of Box3D (box2d.org)

https://github.com/mas-bandwidth/fixed3d/blob/main/README.md
1•gafferongames•11m ago•0 comments

Making Crash Bandicoot (2011)

https://all-things-andy-gavin.com/2011/02/02/making-crash-bandicoot-part-1/
1•alexpls•12m ago•0 comments

Gina Gallery of International Naive Art

https://www.ginagallery.com/
1•o4c•12m ago•0 comments

Show HN: Audit.md for UI/UX Audit

https://www.typeui.sh/audit
1•elwingo1•12m ago•0 comments

The Amazon SES Alternative for AI Agents – MailKite

https://mailkite.dev/blog/amazon-ses-for-ai-agents/
3•gabe_karina•16m ago•0 comments

Show HN: Opinionated Python based Markdown slide generation tool

https://github.com/slidr-cli/slidr
1•rjzzleep•16m ago•0 comments

Most European strawberries contain 'forever chemical' pesticides, study finds

https://euobserver.com/226059/most-european-strawberries-contain-forever-chemical-pesticides-that...
1•kuxv•20m ago•0 comments

ScreenWall, turn old phones and tablets into a shared display wall

https://www.screenwall.app
2•buibuibui•20m ago•0 comments

Meta's New AI Photo Tool Feature Removed

https://gizmodo.com/the-public-got-so-mad-at-metas-new-ai-photo-tool-that-its-scrapped-already-20...
2•etothet•21m ago•1 comments

Do LLMs make code a "materialized view"?

https://www.natemeyvis.com/do-llms-make-code-a-materialized-view/
1•Brajeshwar•24m ago•0 comments

Learning from Brazil and India's Instant Payment Systems [pdf]

https://www.hks.harvard.edu/sites/default/files/centers/mrcbg/Final_AWP_254.pdf
1•alephnerd•27m ago•0 comments

NonStop

https://en.wikipedia.org/wiki/Nonstop
1•skibz•32m ago•0 comments

Who Does Anubis Stop?

https://fzakaria.com/2026/07/09/who-does-anubis-actually-stop
2•supriyo-biswas•35m ago•0 comments

GhosttyFX – JavaFX terminal powered by libghostty

https://github.com/vlaaad/ghosttyfx/
1•vlaaad•36m ago•0 comments

Red Rising Society System

https://red-rising-solar-cartograph.jetrased.chatgpt.site/?era=rising
1•jetrased•38m ago•0 comments

Distro Fighter Game – Linux Distro and Desktop Brawler

https://distrofighter.com/
2•ashitlerferad•38m ago•0 comments

Era: Live Wallpapers for Your Mac

https://mo.software/era
1•megootronic•39m ago•0 comments

India's TCS plans up to 8,900 AI deployment engineers, seeks AI acquisitions

https://www.channelnewsasia.com/business/indias-tata-consultancy-services-plans-up-8900-ai-deploy...
2•rustoo•42m ago•1 comments

Ask HN: Resources for non-web software architecture?

2•xqb64•46m ago•0 comments

Discovering the Hermit in the Garden (2013)

https://blog.oup.com/2013/04/discovering-hermit-in-garden/
1•EndXA•46m ago•0 comments

Nobel-Winning U.S. Chemist Will Move to China to Lead A.I. Institute

https://www.nytimes.com/2026/07/09/science/nobel-winning-us-chemist-will-move-to-china-to-lead-ai...
3•brandonb•48m ago•0 comments