frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

Bong: DuckDuckGo bang alternative, open-source and self-hosted

https://bong.glendalab.com
1•captain_bender•2m ago•0 comments

Understanding the World: A Practical Worldview Framework[pdf]

https://zenodo.org/records/24029901
1•jeyananth•11m ago•0 comments

GenAI Generate GenAI – A Diffusion Model That Generates Neural Networks

https://github.com/vagrillo/nngen
1•ConteMascetti71•12m ago•0 comments

Show HN: Coding agent skills, tested on 15 backend tasks with hidden checks

https://github.com/globalmpc/backendskills
1•bayarkhuu5155•16m ago•1 comments

Show HN: Slate Terminal

https://slate.weichart.de/
1•surrTurr•20m ago•0 comments

Found this really cool app for gamified interactions

https://apps.apple.com/in/app/wundr-fun/id6826169890
1•vaishcodescape•22m ago•0 comments

SultanC – an Arabic-first systems programming language

https://github.com/sultan-language/sultanc
1•supax•24m ago•0 comments

Show HN: Ryph – Self-Hosted, Open-Source Coding Agents for Incident Response

https://github.com/ryph-hq/ryph
1•lftherios•25m ago•0 comments

Six humanoid robots worked a 24-hour shift at a convenience store

https://www.techspot.com/news/114445-six-humanoid-robots-worked-24-hour-shift-convenience.html
3•calme_toi•27m ago•1 comments

Tiger Management

https://newsletter.richardtoad.com/tiger-management/
1•gmays•29m ago•0 comments

An injured Ukrainian soldier was evacuated by drone

https://www.theguardian.com/world/ng-interactive/2026/nov/07/how-injured-ukrainian-soldier-rescue...
2•jimnotgym•32m ago•0 comments

Meta joins Microsoft and Google in offering employees voluntary exit packages

https://www.peoplematters.in/news/strategic-hr/meta-joins-microsoft-and-google-in-offering-employ...
1•vismit2000•33m ago•0 comments

I Wired a Whole Fly Brain into ARC-AGI-3. It Lost All Season, Then Won One Back

https://www.kaggle.com/competitions/arc-prize-2026-paper-track/writeups/flygi-connectome-attribut...
1•MegusAlexandrus•34m ago•1 comments

Linux for Your Mac

https://gravitylinux.org/
1•fulafel•35m ago•0 comments

Arete-27B: Qwen3.8-27B, post-trained to reinforce Western values

https://nousresearch.com/arete
4•pretext•35m ago•4 comments

Google extends voluntary buyout offers to employees in several countries

https://www.reuters.com/business/media-telecom/google-extends-voluntary-buyout-offers-employees-s...
1•vismit2000•38m ago•0 comments

Find hiphop class near you

1•florapeterpaul3•47m ago•1 comments

Apple to Drop the iPhone's Action Button Next Year

https://www.macrumors.com/2026/11/06/apple-rumored-to-drop-the-action-button/
1•mgh2•56m ago•0 comments

Galactica, a TypeScript codebase map for developers and agents

https://github.com/cognitap/galactica
1•holistio•1h ago•0 comments

The Components of Agent Memory

https://www.anthropic.com/research/components-of-agent-memory
8•geoffbp•1h ago•1 comments

A proof of the Aaronson‑Ambainis conjecture

https://psi.inc/research/aaronson-ambainis/
1•harporoeder•1h ago•0 comments

Slonbase – A PocketBase like back end built on PostgreSQL

https://github.com/ayeshrodz/slonbase
2•ayeshrodz•1h ago•0 comments

DailyCal Your Daily Calendar

https://apps.mjanssen.nl/dailycal/
1•marc0janssen•1h ago•1 comments

Cyber Crime Investigation Masterclass – Complete Course (14 Video Chapters)

https://www.youtube.com/playlist?list=PLXMaCa5cj96E
2•rakshanex•1h ago•0 comments

Stream generative UI with JSON-render

https://vercel.com/changelog/json-render-and-chat-sdk-agents
3•burnrate•1h ago•0 comments

Are You Ready for Superintelligence?

https://twitter.com/knowerofmarkets/status/2103138714050331089
2•gmays•1h ago•0 comments

Creating Logic Using Waves: Photonic Gates [video]

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

Do Not Tread Lightly

https://www.palladiummag.com/2026/11/02/do-not-tread-lightly/
1•networked•1h ago•0 comments

Major strawberry grower for Driscoll's calls it quits in coastal California

https://www.sfgate.com/centralcoast/article/california-berry-grower-layoffs-22514855.php
3•madihaa•1h ago•1 comments

Daily game guess what old tech cost at launch (and where it was invented)

https://pricetimemachine.com/
2•chirk•1h ago•0 comments