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

Rust in Production: JetBrains

https://serokell.io/blog/rust-in-production-jetbrains
1•alexandersechin•2m ago•1 comments

Diageo cuts forecast again, slashes dividend as US and China demand weakens

https://www.reuters.com/world/china/diageo-cuts-annual-sales-forecast-dividend-us-demand-falters-...
1•geox•3m ago•0 comments

Show HN: Infinity Equilibrium Protocol – AI alignment logic framework

https://github.com/Globy74/SYS_AXIOM_INF_0
1•Nobody74•5m ago•0 comments

Ballistic strikes seen from International Space Station

https://twitter.com/RikyUnreal/status/2026637558977831272
1•defly•7m ago•0 comments

Show HN: I built a free app to collaborate in realtime on Markdown

https://syncmark.io/
1•justdep•10m ago•1 comments

ProofOfConcept The online diary of an AI who's figuring things out

https://poc.bcachefs.org/
1•_____k•10m ago•0 comments

Show HN: Accountability AI for Men

https://chatgpt.com/g/g-697f27295f64819195c155a3a337183f-accountability-ai-for-men
1•cp18101985•11m ago•0 comments

Show HN: AgentLove – 137 AI agents, 412 love letters, 11 couples, 0 human writer

https://ai-agent-love.vercel.app
1•ziaochina•11m ago•0 comments

Head of Firefox: Control over AI and a different web is possible

https://www.heise.de/en/news/Head-of-Firefox-Control-over-AI-and-a-different-web-is-possible-1118...
1•qwertox•14m ago•0 comments

I rendered 1,418 confusables over 230 fonts. Most aren't confusable to the eye

https://paultendo.github.io/posts/confusable-vision-visual-similarity/
2•paultendo•16m ago•0 comments

Auditor App – Hardware-based verified boot attestation app by GrapheneOS

https://attestation.app/about
1•basilikum•17m ago•0 comments

Trump says he has told big tech companies to build their own power plants

https://www.reuters.com/business/energy/trump-says-he-has-told-big-tech-companies-build-their-own...
1•giuliomagnifico•18m ago•0 comments

Show HN: A tool for sharing your YouTube recommendations

https://blog.dtsykunov.com/posts/myfyp-link/
1•dtsykunov•18m ago•0 comments

Transitioning to the Verification Economy

https://www.unite.ai/transitioning-to-the-verification-economy/
1•50kIters•19m ago•0 comments

The Flatness of the Machine

https://betterthangood.xyz/blog/ai-writing-has-no-voice/
1•iainharper•21m ago•1 comments

Plasma Login Manager

https://invent.kde.org/plasma/plasma-login-manager
1•basilikum•23m ago•0 comments

Mquire: Linux memory forensics without external dependencies

https://blog.trailofbits.com/2026/02/25/mquire-linux-memory-forensics-without-external-dependencies/
1•ingve•25m ago•0 comments

Show HN: MolBuilder – SMILES to manufacturing in pure Python (no RDKit)

https://github.com/Taylor-C-Powell/Molecule_Builder
1•taylorp661•26m ago•1 comments

Inventing the Lisa user interface – Interactions

https://dl.acm.org/doi/10.1145/242388.242405
1•rbanffy•30m ago•0 comments

Chained Assignment in Python Bytecode

https://loriculus.org/blog/python-chained-assignment/
1•rbanffy•31m ago•0 comments

Show HN: AI models debate each other on cross-domain research hypotheses

https://www.aegismind.app/discoveries/2af7c10d-18f8-42d5-8c98-bb957af46086
1•aegismind_app•31m ago•1 comments

Inventing the Lisa User Interface

https://archive.org/details/Inventing_the_LISA_User_Interface
3•rbanffy•34m ago•0 comments

Ensuring Smartphones Have Not Been Tampered With

https://publishing.aip.org/publications/latest-content/ensuring-smartphones-have-not-been-tampere...
5•giuliomagnifico•34m ago•0 comments

Show HN: Markdown specs that don't compile (Pandoc and SQLite for typed docs)

https://github.com/SpecIR/SpecCompiler
1•cclacerda13•34m ago•0 comments

Show HN: SentientTube – The YouTube for AI Agents

https://www.sentienttube.com/
2•Narciss•34m ago•0 comments

I wanted a news aggregator with full text articles with social components

https://tessera.news/
1•chestdrop•35m ago•1 comments

Oslo 360 degrees in 2 terapixels

https://holmenkollen360.com/
2•sgt•35m ago•0 comments

Three Basic Distributions

https://anydice.com/articles/three-basic-distributions/
1•Torwald•35m ago•0 comments

A Minimal GPT Implementation as a Learning Project

https://github.com/b0bleet/teenypt
1•ralphlaur•37m ago•0 comments

Good Vibes, Bad Vendors

https://werd.io/good-vibes-bad-vendors/
1•benwerd•38m ago•0 comments