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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•12mo ago
Agreed

Using Rust for Game Development by Catherine West (2018) [video]

https://www.youtube.com/watch?v=aKLntZcp27M
1•tosh•9s ago•0 comments

Worried Britons 'prepping' for major disruption with stash of tins and cash

https://www.theguardian.com/business/2026/may/09/worried-britons-prepping-for-major-disruption-wi...
1•tomwphillips•2m ago•0 comments

The Memex Method

https://pluralistic.net/2021/05/09/the-memex-method/
1•ingve•2m ago•0 comments

AoS and SoA

https://en.wikipedia.org/wiki/AoS_and_SoA
1•tosh•3m ago•0 comments

VGA Memory Access Is Complicated

https://www.os2museum.com/wp/learn-something-old-every-day-part-xxi-vga-memory-access-is-complica...
1•ingve•7m ago•0 comments

Show HN: Durable async jobs for x402-paid APIs

https://github.com/clearedink/cleared-jobs
1•massanishi•7m ago•0 comments

Ask HN: Notify about DNS records propagation

1•vojtechrichter•8m ago•0 comments

Debunking the Myth That Search Is Dying

https://graphite.io/five-percent/debunking-the-myth-that-seo-traffic-has-dramatically-declined
1•paulpauper•9m ago•0 comments

InMusic and Native Instruments Unite

https://www.inmusicbrands.com/press/inmusic-native/
1•Tomte•10m ago•0 comments

A $15 RISC-V Device Built Its Own Wallet and Learned to Pay the Internet

https://www.eddieoz.com/how-a-15-risc-v-device-built-its-own-lightning-wallet-and-learned-to-pay-...
1•eddieoz•10m ago•0 comments

The Body as a Bioreactor

https://accelerateadvancedtherapies.com/thebodyasbioreactor/ep1/
1•CuriousSoup•11m ago•0 comments

Why Americans pay for unfinished electricity projects

https://www.reuters.com/business/energy/why-millions-americans-pay-unfinished-electricity-project...
1•deadbishop•16m ago•0 comments

Becoming competitive when joining a new company

https://ludwigabap.com/posts/on-becoming-competitive-when-joining-a-new-company/
1•bkjlblh•16m ago•0 comments

JHarmonizer: Java-source reordering and formatting for CI

https://github.com/lemon-ant/JHarmonizer
1•antonlem•18m ago•0 comments

Go Players Disempower Themselves to AI

https://www.lesswrong.com/posts/nR3DkyivzF4ve97oM/how-go-players-disempower-themselves-to-ai
1•momentmaker•19m ago•0 comments

He Couldn't Land a Job Interview. Was AI to Blame?

https://www.wired.com/story/he-couldnt-land-a-job-interview-was-ai-to-blame/
1•momentmaker•21m ago•0 comments

Terry Tao – New Mathematical Workflows – Future of Mathematics Symposium

https://www.youtube.com/watch?v=tN4hsT5t0nw
1•fuglede_•23m ago•0 comments

How to survive the information crisis: 'Now reality itself feels fake'

https://www.theguardian.com/media/ng-interactive/2026/may/06/how-to-survive-the-information-crisi...
1•mitchbob•23m ago•0 comments

AI doesn't know – it guesses. What if meaning lived outside the model?

https://github.com/pekkalepola/colibri-clf
2•PekkaLepola•24m ago•0 comments

The Iran war has changed the global energy system forever

https://grist.org/energy/iran-war-oil-gas-coal-solar-nuclear/
1•ohjeez•25m ago•0 comments

Zed Editor Theme-Builder

https://zed.dev/theme-builder
2•cuechan•26m ago•0 comments

Counterfeit Power Cables – A Fire Waiting to Happen

https://goughlui.com/2026/05/09/notes-counterfeit-power-cables-a-fire-waiting-to-happen/
3•goodburb•27m ago•0 comments

Mandala: Open Source Logistics Orchestration

https://github.com/theoddden/Mandala
1•Facingsouth•27m ago•0 comments

The Two Abstractions of System Design: Hide or Reduce

http://muratbuffalo.blogspot.com/2026/05/the-two-abstractions-of-system-design.html
1•matt_d•28m ago•0 comments

Shelf Source: Tom MacWright

https://roadlessread.com/views/ss-macwright
1•tobr•28m ago•0 comments

Fixed the mobile display issue for income tax calculator

https://takehome.tax
1•ccnomas•29m ago•0 comments

Revibed accused of selling unlicensed vinyl rips without clearing rights (2025)

https://ra.co/news/82409
1•lelandfe•31m ago•0 comments

Hyundai Opens New Global Trade Route Through Mexico's Interoceanic Corridor

https://mexecution.com/en/blogs/hyundai-opens-new-global-trade-route-through-mexico-s-interoceani...
1•gscott•31m ago•1 comments

New Long-Necked Dinosaur Unearthed in Brazil Has European Roots

https://nautil.us/new-long-necked-dinosaur-unearthed-in-brazil-has-european-roots-1280619
1•Brajeshwar•31m ago•0 comments

New data shows how the most common first and last names in the U.S. have changed

https://www.nbcnews.com/data-graphics/data-shows-first-names-last-names-rcna342715
2•freejoe76•31m ago•0 comments