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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

Why are my AI coding sessions falling apart mid-way?

https://techroom101.substack.com/p/why-are-my-ai-coding-sessions-falling
1•ahaydar•1m ago•0 comments

High-Fidelity AI Voice Generator and Cloning

https://magicvoice.app
1•julian2026•2m ago•0 comments

I found the most powerful large models in various fields

https://nanoai.run
1•Li_Evan•3m ago•1 comments

Institute of Mentalphysics

https://www.atlasobscura.com/places/institute-mentalphysics
1•andsoitis•8m ago•0 comments

Openclaw.net

https://github.com/clawdotnet/openclaw.net
1•scopeT86•10m ago•1 comments

People Loved the Dot-Com Boom. The A.I. Boom, Not So Much

https://www.nytimes.com/2026/02/21/technology/ai-boom-backlash.html
2•1vuio0pswjnm7•10m ago•0 comments

Meta has an answer to YouTube Face

https://lolware.net/blog/meta-answer-youtube-face/
1•technion•15m ago•0 comments

Japanese Woodblock Print Search

https://ukiyo-e.org/
5•curmudgeon22•16m ago•0 comments

What the F are you guys talking about?

1•diametricsound•17m ago•0 comments

Automatically Learning Skills for Coding Agents

https://gepa-ai.github.io/gepa/blog/2026/02/18/automatically-learning-skills-for-coding-agents/
1•handfuloflight•20m ago•0 comments

Why has GitHub billing support been unresponsive for weeks?

1•huabin•25m ago•0 comments

Meridian Raises $17M for AI Agents That Build Financial Models (A16Z-Led)

https://theagenttimes.com/articles/meridian-raises-17m-to-let-agents-build-financial-models-that-...
1•Ross00781•34m ago•0 comments

Fast Emery Upgrades With pebble-scalable

https://blog.chrislewis.me.uk/?post=2026-02-01-Fast-Emery-Upgrades-With-Pebble-Scalable
1•yablak•35m ago•0 comments

Show HN: Subscribable calendar feeds for astronomical events

https://github.com/gardner/sunlight
1•gardnr•37m ago•0 comments

Help me pick a thumbnail, swipe right to vote

https://ytvote.com/Vote/ForMe/45pU5
1•riley-i•38m ago•0 comments

CL-Kawa: A Turducken of Programming Languages

https://atgreen.github.io/repl-yell/posts/cl-kawa/
1•todsacerdoti•38m ago•0 comments

Alloy: JavaScript framework for building Pebble smartwatch apps

https://developer.repebble.com/guides/alloy/
1•patrikcsak•41m ago•0 comments

The tenacious brain: Anterior mid-cingulate contributes to achieving goals

https://www.sciencedirect.com/science/article/abs/pii/S0010945219303326
1•samuel246•43m ago•0 comments

We Fixed YAML Comment Preservation in Ruby (and Why We Sponsored It)

https://blog.discourse.org/2026/02/how-we-fixed-yaml-comment-preservation-in-ruby-and-why-we-spon...
1•todsacerdoti•44m ago•0 comments

Ask HN: Claude crashed? Am I playing for the tokens for it to fix itself?

1•jrs235•44m ago•1 comments

Selling AI Software Isn't as Easy as It Used to Be

https://www.wsj.com/articles/selling-ai-software-isnt-as-easy-as-it-used-to-be-4933e401
1•1vuio0pswjnm7•46m ago•0 comments

Benchmarks: Go's FFI is finally faster then GDScript (and Rust?)

https://github.com/quaadgras/graphics.gd/discussions/277
1•Splizard•48m ago•0 comments

Your Disk Just Lied to You – and Your Checksums Said Everything Was Fine

https://medium.com/@jingyuzhou/your-disk-just-lied-to-you-and-your-checksums-said-everything-was-...
1•tanelpoder•49m ago•0 comments

AI Agent Achieves 1000 Turns Without Drift or Loss of Coherence [pdf]

https://github.com/Rychek4/Pattern_Project_Public/blob/main/AI%20Agent%20Achieves%201000%2B%20Tur...
1•Rychek4•52m ago•1 comments

Meta cuts staff stock awards for a second straight year

https://www.ft.com/content/071d5503-b3dc-46bc-bc55-28f92dbdd42a
3•1vuio0pswjnm7•57m ago•1 comments

Show HN: ThreadKeeper – Save and restore Windows working context with Ollama

https://www.thethread-keeper.com/en/index.html
2•tatsube•57m ago•0 comments

Fix Your Tools

https://ochagavia.nl/blog/fix-your-tools/
3•todsacerdoti•1h ago•1 comments

Show HN: Slack as an AI Coding Remote Control

https://github.com/DiscreteTom/juan
2•DiscreteTom•1h ago•0 comments

Giant stop killing games updates 2026 [video]

https://www.youtube.com/watch?v=CNVKqRDalLo
2•st_goliath•1h ago•0 comments

Sexting study reveals an "alarming" reality for teens who share explicit images

https://www.psypost.org/new-sexting-study-reveals-an-alarming-reality-for-teens-who-share-explici...
2•gnabgib•1h ago•0 comments