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

Nvidia resurrects older graphics cards as RAM demands impact tech prices

https://mashable.com/tech/nvidia-gpu-rtx-3060-ramageddon
1•ripe•33s ago•0 comments

mRNA vaccines – a new era in vaccinology (2018)

https://www.nature.com/articles/nrd.2017.243
1•downbad_•1m ago•0 comments

Cheaper Than Concrete: Robots and the New Stone Age

https://originals.is/p/cheap-splendor-robots-and-the-new
1•MediaSquirrel•3m ago•0 comments

List of Domesticated Animals

https://en.wikipedia.org/wiki/List_of_domesticated_animals
1•jcmontx•4m ago•0 comments

The best thing that's ever happened for multiplayer games?

https://mas-bandwidth.com/the-best-thing-thats-ever-happened-for-multiplayer-games/
1•gafferongames•7m ago•0 comments

Drone Physics

https://iahmed.me/post/drone-physics/
2•wrxd•8m ago•0 comments

Chad Fowler's "Phoenix Architecture"

https://stevekrouse.com/phoenix
1•stevekrouse•9m ago•0 comments

Show HN: Jensen – a Deus Ex: Human Revolution theme for 30 developer apps

https://tomaytotomato.github.io/jensen/
1•tomaytotomato•10m ago•0 comments

GPT 5.5 uses Grug Brained talk during reasoning for 2x token efficiency

https://www.youtube.com/watch?v=ypO0q_8zhWw
2•m3h•11m ago•0 comments

SlateDB: An Object-Native LSM for Online Systems

https://slatedb.io/blog/introducing-slatedb/
4•agavra•11m ago•0 comments

Why AI Hasn't Cured Anything yet [video]

https://www.youtube.com/watch?v=n-hWHV2ZKOA
1•gurjeet•11m ago•0 comments

Skill.md AI Crawler Visibility

https://github.com/MerqryLabs/ai-crawler-visibility
2•novaesystems•12m ago•0 comments

WordPress Vulnerability Scan Came Back Clean. Are You Still Exposed?

https://blog.wpsec.com/your-wordpress-vulnerability-scan-came-back-clean-are-you-still-exposed/
1•jonasl•13m ago•0 comments

Cinder Dial, a molten forge-machine turning in real time

https://sand-morph.up.railway.app/grand-elemental
1•echohive42•13m ago•0 comments

SCOTUS Decision: Law Enforcement's Use of 'Geofence Warrant' Was a 'Search'

https://daringfireball.net/2026/06/scotus_geofence_warrant_search
1•coloneltcb•14m ago•0 comments

We used coding agents to add RonSQL support to RonDB

http://mikaelronstrom.blogspot.com/2026/06/experiences-from-new-wave-of-ai.html
1•jamesblonde•15m ago•0 comments

Show HN: Frontier AI Lab Jobs – Open Jobs by Function at OpenAI, Anthropic

https://frontierjobs.org/
1•te_ch•17m ago•0 comments

Bromure Agentic Coding: Wrap agent in a VM and proxy that VM, preventing leaks

1•pixdamix•18m ago•0 comments

Tokyo has only two barley tea makers, we visited one to see how mugicha is made

https://soranews24.com/2026/06/30/tokyo-has-only-two-barley-tea-makers-and-we-visited-one-to-see-...
2•zdw•19m ago•0 comments

Learning to Replicate Expert Judgment in Financial Tasks

https://thinkingmachines.ai/news/learning-to-replicate-expert-judgment-in-financial-tasks/
1•dphuang2•20m ago•0 comments

Q&A with Micron's VP and GM of Memory

https://morethanmoore.substack.com/p/q-and-a-with-microns-vp-and-gm-of
1•zdw•20m ago•0 comments

Hologram v0.10: Events and middleware for Elixir running in the browser

https://hologram.page/blog/hologram-v0-10
1•bartblast•21m ago•0 comments

Warp raises $60M Series B

https://www.warp.co/b
3•dphuang2•22m ago•3 comments

AI Could Be the Railroad of the 21st Century. Brace Yourself

https://www.derekthompson.org/p/artificial-intelligence-could-be
2•simonebrunozzi•24m ago•0 comments

Wall-run (4k:c64,v20,c16,zx,PC)

https://orac81.itch.io/wall-run
3•orac81•30m ago•2 comments

Maestral open-source Dropbox client no longer actively supported

https://maestral.app/
4•rja65•31m ago•0 comments

Volkswagen's Crisis in Five Charts

https://www.reuters.com/business/autos-transportation/volkswagens-crisis-five-charts-2026-06-30/
2•leonidasrup•33m ago•0 comments

2021 Florida Condo Collapse. NIST Investigation Concluded

https://www.popularmechanics.com/science/a71731922/surfside-condo-collapse/
2•bryan0•34m ago•1 comments

Doubt that Elon Musk 'earned' his trillion?

https://www.theguardian.com/global/commentisfree/2026/jun/30/elon-musk-trillion-rightwing-media
4•jethronethro•36m ago•0 comments

OrgForge: The Next Step in Enterprise AI Simulation

https://www.machinebrief.com/news/orgforge-the-next-step-in-enterprise-ai-simulation-u364
2•decorner•37m ago•0 comments