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

I went down a rabbit hole on who owns every power tool brand

https://old.reddit.com/r/Tools/comments/1s4jjs8/i_went_down_a_rabbit_hole_on_who_owns_every_power/
1•thunderbong•4m ago•0 comments

Scientists prepare expeditions in remote environments

https://actu.epfl.ch/news/how-scientists-prepare-expeditions-in-remote-envir/
1•defrost•13m ago•0 comments

The Heils – Hate to Say I Told You So (Official Music Video)

https://www.youtube.com/watch?v=xKXu_eL3IhE
1•keepamovin•13m ago•1 comments

Kelsey Hightower: What the AI Hype Machine Won't Tell You

https://bitdrift.io/podcast/beyond-the-noise/episode-11
1•karinakarina3•13m ago•0 comments

Critical: Active supply chain attack on axios

https://twitter.com/feross/status/2038807290422370479
2•9woc•16m ago•0 comments

252mya.earth – The Age of Dinosaurs, Shown to Scale

https://252mya.earth/
2•gmays•16m ago•0 comments

Show HN: Headless Timeshift Emulation

https://github.com/RodBarnes/ts-tools/blob/main/README.md
1•IronRod•17m ago•0 comments

I built an AI image generator that turns simple prompts into quality visuals

https://nanobananagen.org/
2•huixiaodewenzi•20m ago•2 comments

FluxVector – Free vector search API with built-in multilingual embeddings

https://fluxvector.dev
1•andresdp•20m ago•0 comments

Axios Compromised on NPM – Malicious Versions Drop Remote Access Trojan

https://www.stepsecurity.io/blog/axios-compromised-on-npm-malicious-versions-drop-remote-access-t...
3•mtud•20m ago•1 comments

Seems like a bad idea: "One login to connect Glassdoor and Indeed"

https://www.glassdoor.ca/about/onelogin/
2•SteveVeilStream•20m ago•1 comments

Show HN: Asto – AST-based code editing for AI agents

https://github.com/ntaraujo/asto
1•ntaraujo1•28m ago•0 comments

Show HN: HN Sieve – AI scores every HN project so you don't miss the good ones

https://github.com/primoia/hn-sieve
1•cezarvil•30m ago•0 comments

Earth's Fortunate Escape Velocity

https://www.universal-sci.com/headlines/2018/4/22/the-challenges-of-an-alien-spaceflight-program-...
2•sinoue•34m ago•0 comments

You still have to refactor, even with AI

https://www.adamhjk.com/blog/you-still-have-to-refactor-even-with-ai/
3•vinhnx•34m ago•0 comments

Super Investor

https://apps.apple.com/us/app/super-investor/id1441737952
1•jm33077•35m ago•0 comments

TokenSurf – Drop-in proxy that cuts LLM costs 40-94%

https://tokensurf.io
2•CemBas•35m ago•0 comments

Llama.cpp at 100k Stars

https://twitter.com/ggerganov/status/2038632534414680223
2•simonpure•37m ago•0 comments

NASA Computing in the '80's – JPL Building 230 [video]

https://www.youtube.com/watch?v=T_bqc76_3xU
1•jnord•40m ago•0 comments

American Exchange Group to buy sneaker maker Allbirds for $39M

https://www.reuters.com/business/american-exchange-group-buy-sneaker-maker-allbirds-39-million-20...
2•noleary•42m ago•0 comments

100x Less Power: The Breakthrough That Could Solve AI's Energy Crisis

https://scitechdaily.com/100x-less-power-the-breakthrough-that-could-solve-ais-massive-energy-cri...
1•g-b-r•42m ago•2 comments

Inkline: All-in-one workspace for authors and creative writers

https://github.com/enxilium/inkline
1•sukdip•43m ago•1 comments

Askable – give any UI element LLM awareness with one attribute

https://askable-ui.github.io/askable/
2•vamgan•45m ago•0 comments

Trump Tells Aides He's Willing to End War Without Reopening Hormuz

https://www.wsj.com/world/middle-east/trump-iran-war-strait-of-hormuz-ee950ad4
7•Jimmc414•47m ago•4 comments

Federal judges report broad adoption of AI tools

https://news.northwestern.edu/stories/2026/03/northwestern-study-finds-a-significant-number-of-fe...
2•pseudolus•47m ago•0 comments

We hate AI-assisted articles

https://idiallo.com/blog/why-we-hate-llm-articles
3•foxfired•48m ago•1 comments

Mr. Chatterbox is a Victorian-era ethically trained model

https://simonwillison.net/2026/Mar/30/mr-chatterbox/
2•y1n0•48m ago•0 comments

Effective Strategies for Asynchronous Software Engineering Agents

https://arxiv.org/abs/2603.21489
2•simonpure•50m ago•1 comments

Artemis II is not safe to fly

https://idlewords.com/2026/03/artemis_ii_is_not_safe_to_fly.htm
4•idlewords•51m ago•2 comments

How the Solar Wind Works

https://phys.org/news/2026-03-solar.html
2•y1n0•53m ago•0 comments