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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•6mo ago
Agreed

The Futhark Programming Language

https://futhark-lang.org/
1•mvolfik•44s ago•0 comments

X: About Encrypted Direct Messages

https://help.x.com/en/using-x/encrypted-direct-messages
1•tosh•4m ago•0 comments

Make It Possible, Then Make It Normal

https://danielmangum.com/posts/possible-then-normal/
2•hasheddan•4m ago•0 comments

Advent of Compiler Optimisations 2025

https://xania.org/202511/advent-of-compiler-optimisation
1•hasheddan•5m ago•0 comments

How to Not Get Kidnapped for Your Bitcoin

https://www.nytimes.com/2025/11/17/business/how-to-not-get-kidnapped-for-your-bitcoin.html
1•apples_oranges•5m ago•1 comments

FreeMDU: Open-source Miele appliance diagnostic tools

https://github.com/medusalix/FreeMDU
2•Medusalix•5m ago•0 comments

The case against boolean logic

https://abuseofnotation.github.io/boolean-thinking/
1•boris_m•8m ago•0 comments

Countering the Achievement Society (2018)

https://iai.tv/articles/should-we-rediscover-education-as-leisure-auid-1109
1•robtherobber•11m ago•0 comments

Pangram – AI Detection that works

https://www.pangram.com
1•colesantiago•13m ago•0 comments

Intel's next-gen Granite Rapids-WS server CPU lineup leaked

https://www.tomshardware.com/pc-components/cpus/intels-next-gen-granite-rapids-ws-server-cpu-line...
1•rbanffy•14m ago•0 comments

'Buy Now, Pay Later' is expanding fast, and that should worry everyone

https://techcrunch.com/2025/11/16/bnpl-is-expanding-fast-and-that-should-worry-everyone/
2•01-_-•15m ago•0 comments

Ask HN: What's the Least Amount of Process a Small Team Can Get Away With?

2•_phnd_•16m ago•0 comments

WebAssembly Limitations

https://qouteall.fun/qouteall-blog/2025/WebAsembly%20Limitations
3•qouteall•16m ago•0 comments

Interesting websites I found on the internet

1•01-_-•17m ago•0 comments

Wheels of life dashboard – from my deprecated journaling-via-email project

https://wellbio.vercel.app/dashboard
1•danielfalbo•17m ago•0 comments

White nationalist talking points and racial pseudoscience: welcome to Grokipedia

https://www.theguardian.com/technology/2025/nov/17/grokipedia-elon-musk-far-right-racist
2•n1b0m•18m ago•0 comments

From Napster to Spotify: How Music Piracy Shaped the Subscription Economy

https://subscriptocracy.com/blog/spotify/
1•javipas•18m ago•0 comments

Against Exponential Backoff

https://incoherency.co.uk/blog/stories/against-exponential-backoff.html
1•FergusArgyll•18m ago•0 comments

Google is collecting troves of data from downgraded Nest thermostats

https://www.theverge.com/news/820600/google-nest-learning-thermostat-downgraded-data-collection
2•GiorgioG•19m ago•0 comments

Show HN: Blue Divide – Nurikabe puzzles with procgen islands for Mac and iPad

https://apps.apple.com/us/app/blue-divide-nurikabe/id6752651417
1•chribog•20m ago•0 comments

Live most polluted major city ranking

https://www.iqair.com/world-air-quality-ranking
1•ableal•21m ago•1 comments

Show HN: Learn Docker in your terminal with exercises

https://github.com/furkan/dockerlings
1•furk4n•21m ago•0 comments

Dave's Garage PDP-11 BBS Menu System

https://github.com/davepl/pdpsrc/tree/main/bsd/menu
3•rbanffy•22m ago•0 comments

I Built a Chrome Extension Loved by over 9k Parents

https://www.stuartashworth.com/blog/how-i-built-a-chrome-extension-loved-by-9000-parents/
1•Stoot98•22m ago•0 comments

Tabstack.ai by Mozilla

https://tabstack.ai/
2•calcifer•25m ago•0 comments

AI is guzzling energy for slop content

https://www.theguardian.com/environment/2025/nov/17/ai-climate-crisis-cop30
4•tablets•26m ago•0 comments

Polarized Subtyping [pdf]

https://zee.town/publications/polarized-subtyping
1•azhenley•28m ago•0 comments

US startup Substrate announces chipmaking tool that it says will rival ASML

https://www.msn.com/en-in/news/world/us-startup-substrate-announces-chipmaking-tool-that-it-says-...
3•redwood•30m ago•4 comments

All Your Coworkers Are Probabilistic Too

https://scatterarrow.com/content/en/all-your-coworkers-are-probabilistic.html
3•exagolo•30m ago•3 comments

Show HN: An AI nutrition coach you can text on iMessage/WhatsApp

https://habitsdm.com/jess
1•itaydressler•30m ago•0 comments