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

Kharita – Tailwind-style utility strings for Python maps

https://kharita.space/
1•MAEAE•32s ago•0 comments

Sunsetting Decomp.dev

https://decomp.dev/
1•GlumWoodpecker•1m ago•0 comments

Cool Project for Windows

https://github.com/aAhmer1677/VitalsOS
2•lookin_for_feed•3m ago•0 comments

Playing chess over IRC from Emacs, even against a bot

https://blog.adafruit.com/2026/11/30/playing-chess-over-irc-from-emacs-even-against-a-bot/
1•teleforce•3m ago•0 comments

There Is No MCP Server for the Universe

https://aidid.substack.com/p/there-is-no-mcp-server-for-the-universe
1•AntiDyatlov•4m ago•0 comments

Digitizing My Tarot Decks

https://arcana.land/blog/digitizing-my-tarot-decks/
1•dopple•4m ago•0 comments

Show HN: Litmus NVR – Local AI NVR that follows people across your cameras

https://litmusnvr.com/
1•audi0615•5m ago•0 comments

How the Market Is Mispricing the AI Boom

https://www.groundbrkr.com/p/mark-to-swap-how-the-market-is-mispricing
1•oska•6m ago•0 comments

Report: Google Search to Transform into Personal Knowledge Agent in 2027

https://www.seroundtable.com/google-search-personal-knowledge-agent-42644.html
3•goatley•6m ago•0 comments

Canadians under 50 use more cannabis than alcohol, study finds

https://news.mcmaster.ca/canadians-under-50-use-more-cannabis-than-alcohol-study-finds/
1•giuliomagnifico•8m ago•0 comments

Show HN: A GUI for polishing the text your coding agent writes

https://draftmux.raine.dev/
2•rane•11m ago•0 comments

Philipp Emanuel Weidmann (p-e-w), creator of Heretic, has died at 41

https://indianexpress.com/article/india/german-ai-researcher-philipp-emanuel-weidmann-heretic-fou...
2•technusm1•12m ago•1 comments

The AI Quant Trading Leaderboard

https://quantailab.substack.com/p/the-ai-quant-trading-leaderboard
1•delphicalphalab•12m ago•0 comments

Agentic Coding Killed Open Source

https://theelandor.github.io/posts/open-source/
3•theRealEros•12m ago•0 comments

End of Tidelift Support for Ransack

https://github.com/activerecord-hackery/ransack/issues/1816
2•sfc32•13m ago•0 comments

BugStage: Git web server and discussions board for single-maintainers

https://bugstage.dev/
1•thunderbong•14m ago•0 comments

Implementing Every 2026 Agent-Web Spec

https://notibuddy.app/blog/implementing-every-2026-agent-web-spec
1•deegles•17m ago•0 comments

Robot parts, software, China export rules

https://arstechnica.com/gadgets/2026/11/chinas-new-export-rules-may-block-us-access-to-robotics-h...
1•metalman•17m ago•1 comments

Show HN: Graffiti Letters, free graffiti text generator (PNG/SVG, no sign up)

https://graffiti-letters.com/
2•sadeemirfan•20m ago•0 comments

Abliterated, but Better? Paired Evaluations of Cybersecurity Agents

https://arxiv.org/abs/2611.40063
2•abedelez•22m ago•0 comments

Pegasus maker seeking Ontario contracts for his new firm

https://theijf.org/article/former-ceo-of-israeli-spyware-company-seeking-ontario-contracts-for-hi...
3•freakynit•24m ago•1 comments

Piclaw 4.0.0 – The Force Awakens

https://github.com/rcarmo/piclaw/releases/tag/v4.0.0
2•rcarmo•26m ago•0 comments

Software Ate the World. Now It's Starving to Death

https://x.com/awilkinson/article/2127434438682542350
5•neokya•27m ago•2 comments

Free pilot: BitSong AI, a music generator studio built on an open-weight model

https://bitsong.ai/
3•Adriana_Bitsong•27m ago•0 comments

Winning Design for the Sydney Opera House

https://plus.maths.org/advent-calendar-2026-door-1-sydney-opera-house
1•vismit2000•30m ago•0 comments

Rewrite This as a New Ordinance

https://www.transformernews.ai/p/inside-chatgpt-transcripts-city-manager-kingsland-georgia-ai-wri...
1•tosh•31m ago•0 comments

Mozilla's Thunderbird has its own email service now

https://twitter.com/sysxplore/status/2127698683340697661
1•taubek•32m ago•0 comments

AI Video Editor, Open Source – Arrumo

https://github.com/aidevs-pt/arrumo-video-editor
1•antonioaidevs•33m ago•1 comments

Netscanner v0.7.3

2•chleba•38m ago•0 comments

Situational Awareness Q3 Letter – 167 pages

https://drive.google.com/file/d/1PlIN1vUlVjKB8MzilVqqwHbcVVUJnqbY/view
1•oblo_mov•39m ago•0 comments