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

Leak of 15M Deutsche Bank files exposes systemic failures

https://www.ft.com/content/df518845-ed97-4a38-8a38-7fa9d4d24003
1•petethomas•36s ago•0 comments

Coding Agents Underestimate the Cost of Code They Own

https://ben3d.ca/blog/coding-agents-underestimate-the-cost-of-code
1•sebg•9m ago•0 comments

A new evolution of databases: Self learning Databases

https://heatherdb.com/
1•nguthiru•10m ago•0 comments

Oxide Integrates Micron Memory and Storage into Its Cloud Computer

https://oxide.computer/blog/oxide-micron-second-generation-cloud-computer
1•tosh•14m ago•0 comments

OVH announces Olala mini 7A1B

https://corporate.ovhcloud.com/en-ie/newsroom/news/ovh-olala-mini/
4•Nico2706•19m ago•1 comments

Ask HN: Syncthing

1•bikvfeee•19m ago•0 comments

Building trade desk – Using agents to trade all possible markets

https://www.sayantan.sh/blog/hood-agent
1•sayantan317•21m ago•1 comments

The METR Graph, Updated

https://twitter.com/ben_j_todd/status/2122318704260403562/photo/1
1•simonebrunozzi•22m ago•0 comments

Joyce in Bloom (2011)

https://www.vanityfair.com/culture/2004/06/hitchens-200406
1•hamonrxe•25m ago•0 comments

Meta built TLX, a GPU compiler extension for Triton

https://engineering.fb.com/2026/11/10/open-source/tlx-a-hardware-native-gpu-compiler-for-producti...
1•fourfire•25m ago•0 comments

Redict Is Deprecated

https://redict.io/posts/2026-11-17-redict-deprecated/
1•progval•26m ago•0 comments

Show HN: AI Agent Infrastructure and Memory Compaction Specifications

https://github.com/grfdsasdvef/awesome-ai-agent-infrastructure
1•snowdensay•30m ago•0 comments

Run your FreeBSD services from one console

https://jailops.net/
2•root420•33m ago•0 comments

A Deep Dive into Building the Pylyzer-Zed Language Server Extension

https://medium.com/@therealcomtom/extending-zed-a-deep-dive-into-building-the-pylyzer-zed-languag...
1•comtom•33m ago•0 comments

Show HN: Lantern – desktop app that maps your repo and reviews AI-written PRs

https://github.com/MobileReality/lantern
2•gitsad•34m ago•0 comments

Chasing Ghosts in the Machine: Debugging a File Descriptor Leak in Exchangelib

https://medium.com/@therealcomtom/chasing-ghosts-in-the-machine-debugging-a-file-descriptor-leak-...
1•comtom•35m ago•0 comments

Detroit bus drivers get training to accommodate horses

https://apnews.com/video/city-of-detroit-says-drivers-will-get-additional-training-after-horses-w...
3•illidan1000•37m ago•1 comments

Autopilot: Use whichever AI model you want, with one coding-agent interface

https://github.com/directionally-local/autopilot
1•doppp•38m ago•0 comments

C++ Proposal: break label; and continue label;

https://eisenwave.github.io/cpp-proposals/break-continue-label.html
1•qtqtqt•38m ago•0 comments

Trump: I don't take any responsibility

https://bsky.app/profile/atrupar.com/post/3n2grgyw3u32e
1•o_-_o•38m ago•0 comments

What should an agent memory leaderboard measure beyond recall?

https://x.com/AgentMemoryL/
1•SndOfViento•40m ago•1 comments

DotShield – stop Claude Code and Cursor from reading your .env

https://github.com/dot-shield/dotshield-releases
1•gma692002•41m ago•0 comments

Agent Memory Leaderboard Cycle 2: What to Watch

https://twitter.com/AgentMemoryL/status/2122336386246484179
2•IreneAI•42m ago•0 comments

The Illusions Index

https://www.illusionsindex.org/
1•genxy•43m ago•0 comments

Ask HN: What was your weirdest or funniest job rejection?

2•cristaloleg•45m ago•1 comments

Contabo – Potential Security Incident

https://help.contabo.com/en/support/solutions/articles/103000426255-potential-security-incident-o...
2•ensocode•49m ago•0 comments

How Microsoft Vaporized a Trillion Dollars

https://isolveproblems.substack.com/p/how-microsoft-vaporized-a-trillion-b73
2•vismit2000•49m ago•0 comments

Show HN: A serene digital prayer journal.Log prayers,celebrate answered prayers

https://chromewebstore.google.com/detail/faithjournal-–-prayer-jou/pefifbegbbciegbaabkelegnaghl...
1•gsngsn•50m ago•0 comments

NASA's Voyager 1 is now one light-day away from Earth

https://science.nasa.gov/mission/voyager/voyager-1/shine-bright-for-voyagers-light-day/
4•hubraumhugo•50m ago•1 comments

We built a CX platform for people in founder mode

https://www.parlant.io/
1•ymarcov•57m ago•1 comments