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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•7mo ago
Agreed

Rubio Deletes Calibri as the State Department's Official Typeface

https://www.nytimes.com/2025/12/09/us/politics/rubio-state-department-font.html
1•hdk•1m ago•0 comments

Israeli researchers achieve new lymphoma treatment posting 100% survival rates

https://www.ynetnews.com/health_science/article/s1z0e4hz11e
1•mhb•2m ago•0 comments

Show HN: OG Image API – Generate social preview images from JSON

https://www.ogimageapi.io/
1•malachi_dev•3m ago•1 comments

Kaizen-Organizational-Operating-Model-KOOM- Public

https://github.com/deathnail298-creator/Kaizen-Organizational-Operating-Model-KOOM-
1•deathnail298•3m ago•1 comments

Augment Context Engine SDK

https://docs.augmentcode.com/context-services/sdk/overview
2•handfuloflight•14m ago•0 comments

Emoji Book Synopses

https://taylor.town/synopsi
1•jjgreen•18m ago•0 comments

Show HN: Crystal Sage, I got tired of fighting with webhooks

https://github.com/olivatooo/crystal-sage
1•olivato•19m ago•0 comments

When a Small Open-Source Tool Blows Up: An Unexpected Experience

https://kaic.me/win-post-install/
1•birdculture•21m ago•0 comments

Mapping the Open Future AI Territory

https://openfuture.tenstorrent.com/
1•transpute•23m ago•0 comments

Stop Trying to Ban Teens from the Internet

https://www.thefp.com/p/stop-trying-to-ban-teens-from-the
2•mhb•24m ago•0 comments

How will AI transform the field of genetic counseling?

https://jordanagraifman.substack.com/p/how-will-ai-transform-the-field-of
1•jbuse•25m ago•0 comments

Show HN: OCIdol – AI OC maker and studio for original characters

https://www.ocidol.com/
1•maoaeiou•29m ago•1 comments

2026 Calendar Printable – Free PDF with Holidays and Shift Planner

https://2026calendar.org
1•heihieih•29m ago•0 comments

After Neuralink, Max Hodak is building something even wilder

https://techcrunch.com/2025/12/05/after-neuralink-max-hodak-is-building-something-stranger/
2•fcpguru•33m ago•0 comments

Potential Breach in Syncthing Fork

https://gitlab.com/fdroid/fdroiddata/-/issues/3712
2•nimbius•37m ago•0 comments

Halftime: Dynamically weaves AI-generated ads into the scenes you're watching

https://twitter.com/xai/status/1997875236415676619
4•ch_fr•39m ago•1 comments

Canada's accelerated pathway for H-1B visa holders

https://www.cicnews.com/2025/12/the-new-pathways-to-permanent-residence-coming-to-canada-in-2026-...
3•geox•40m ago•0 comments

Gin is a bad software library

https://eblog.fly.dev/ginbad.html
5•thunderbong•47m ago•1 comments

Netflix and Paramount are battling for more than just Warner Bros

https://www.economist.com/business/2025/12/09/netflix-and-paramount-are-battling-for-more-than-ju...
2•andsoitis•49m ago•0 comments

Mathematicians Crack a Fractal Conjecture on Chaos

https://www.scientificamerican.com/article/mathematicians-crack-a-fractal-conjecture-on-chaos/
1•mikhael•50m ago•1 comments

Rubio stages font coup: Times New Roman ousts Calibri

https://www.reuters.com/world/us/rubio-stages-font-coup-times-new-roman-ousts-calibri-2025-12-09/
11•italophil•52m ago•0 comments

Echogram: The Vulnerability Undermining AI Guardrails

https://hiddenlayer.com/innovation-hub/echogram-the-hidden-vulnerability-undermining-ai-guardrails/
2•kevin061•53m ago•1 comments

mood.camera – An indie iPhone camera app with film character

https://www.mood.camera/
2•subdomain•57m ago•0 comments

Liquid-rust: Liquid templating for Rust

https://github.com/cobalt-org/liquid-rust
1•transpute•59m ago•0 comments

The Eternal Return of Abstraction: Why Programming Was Never About Code

https://generativeai.pub/the-eternal-return-of-abstraction-why-programming-was-never-about-code-1...
1•JelteF•1h ago•0 comments

Show HN: QonQrete – Local-first multi-agent system for sandboxed code generation

https://github.com/illdynamics/qonqrete
1•illdynamics•1h ago•1 comments

From the cold war to the gig economy: the changing face of Russian spycraft

https://www.economist.com/insider/inside-defence/from-the-cold-war-to-the-gig-economy-the-evoluti...
3•petethomas•1h ago•0 comments

US International Trade Administration Shaped EU Censorship Against US Companies

https://foundationforfreedomonline.com/us-international-trade-administration-shaped-eu-censorship...
8•iamnothere•1h ago•5 comments

Can Jollibee Beat American Fast Food at Its Own Game?

https://www.theatlantic.com/magazine/2026/01/jollibee-fried-chicken-american-fast-food/684949/
3•petethomas•1h ago•1 comments

SCOTUS swats NBA shot to limit class actions over data sharing with Meta

https://courthousenews.com/scotus-swats-nba-shot-to-limit-class-actions-over-data-sharing-with-meta/
8•c420•1h ago•0 comments