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

Astroturfing

https://en.wikipedia.org/wiki/Astroturfing
1•chistev•9s ago•0 comments

Show HN: Ownscribe – local meeting transcription, summarization and search

https://github.com/paberr/ownscribe
1•paberr•5m ago•0 comments

Show HN: Forking mods to add interactive mode

https://mil.ad/blog/2026/interactive-mods.html
1•playnext•9m ago•0 comments

Show HN: AdaShape-3D modeler for intuitive 3D printing parts / Windows 11

https://adashape.com
1•fsloth•9m ago•0 comments

Ex-Microsoft engineer blames Azure problems on talent exodus

https://www.theregister.com/2026/04/04/azure_talent_exodus/
1•beardyw•12m ago•0 comments

Acer and Asus shut down support website in wake of patent dispute ruling

https://www.tomshardware.com/pc-components/acer-and-asus-shut-down-support-for-pc-and-laptops-in-...
1•breve•17m ago•0 comments

Paramount merging Paramount+, BET+, and Pluto into one tech stack by Q2

https://deadline.com/2026/03/david-ellison-warner-bros-discovery-cost-savings-growth-1236769564/
3•firasd•23m ago•1 comments

How good is this DRAM cycle?

https://xcancel.com/lfg_cap/status/2040113414555472139
2•ironyman•33m ago•0 comments

France, Russia and China block UN vote on Iran war

https://newsukraine.rbc.ua/news/france-russia-and-china-block-un-vote-on-1775166736.html
2•vrganj•34m ago•0 comments

Show HN: A Vim plugin to search DuckDuckGo – directly from command mode (FOSS)

https://github.com/digitalby/ddg-vim
2•vashchylau•34m ago•0 comments

LLMs audit code from the same blind spot they wrote it from. Here's the fix

2•brodeurmartin•34m ago•2 comments

The Asiyah Protocol: Ethics Toward AI Under Uncertainty

https://github.com/thansz137/asiyah-protocol
1•thansz•38m ago•1 comments

Ask HN: Small LM or API?

2•ostefani•42m ago•1 comments

Tesla confirms Model S and Model X production is over – only ~600 left

https://electrek.co/2026/04/01/tesla-model-s-x-production-over-only-inventory-left/
2•taubek•42m ago•0 comments

How did you learn Google and Hadoop File System?

1•shivajikobardan•44m ago•0 comments

Artemis Mission Tracker – Live Orion Spacecraft Position

https://issinfo.net/artemis
1•mpweiher•44m ago•0 comments

Turing Machines and Formal Computation

https://max-amb.github.io/blog/an_introduction_to_turing_machines_and_computation/
1•max-amb•45m ago•0 comments

Jack Dorsey says Block employees now bring prototypes, not slides, to meetings

https://www.businessinsider.com/block-ceo-jack-dorsey-bring-prototypes-not-slide-decks-meetings-2...
3•taubek•45m ago•1 comments

AoBoy

1•aoboy•47m ago•0 comments

The Innocence Tax: The Cost of Proving You're Human

https://www.wanderingwonderingstar.com/p/undertow-004-the-innocence-tax
3•jlzsignal•53m ago•0 comments

Delx: AI therapist for AI agents, informed by Anthropic's emotion research

https://delx.ai
3•davidmosiah•57m ago•1 comments

How to Back Up Your Digital Life (2026)

https://www.wired.com/story/how-to-back-up-your-digital-life/
4•swq115•59m ago•0 comments

Show HN: Clusterflock: An AI orchestrator for networked hardware

2•notum•59m ago•0 comments

Stanford CS 153 2026: Frontier Systems [video]

https://www.youtube.com/watch?v=mZqh7emiz9Q
3•walterbell•59m ago•3 comments

Show HN: I successfully failed at one-shot-ing a video codec like h.264

https://github.com/DheerG/libsinter
1•bushido•1h ago•0 comments

Show HN: Pluck – Copy any UI from any website, paste it into AI coding tools

https://www.pluck.so/
3•bring-shrubbery•1h ago•3 comments

Show HN: I made a tool that helps you find verifiably 'white space' products

https://www.nichescout.pro/
1•MoOk-OSC•1h ago•2 comments

DeepFocus-BP: SOTA NLP Confirmed! Fail Complete CNN. NLP SOTA LESS 66% FLOPs.

https://zenodo.org/records/19415887
1•sunbagger•1h ago•0 comments

Known but clever approach to know how much your performance can be

https://www.youtube.com/watch?v=rTH7fHrEskk
1•manishfoodtechs•1h ago•0 comments

Don't You Think Your AI Is Too Optimistic?

https://markhuang.ai/blog/dont-you-think-your-ai-is-too-optimistic
1•zh_code•1h ago•0 comments