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

HN Show: Cubepals - Open-source Minecraft hosting, servers sleep until you join

https://cubepals.com
1•xlmnxp•1m ago•0 comments

Microsoft – more details on the root cause

https://twitter.com/clamanna/status/2122209697226948729
1•hyperman1•1m ago•0 comments

The small African lab sounding the alarm on AI bioweapons

https://restofworld.org/2026/ghana-ai-lab-minohealth-bioweapons-threat-dna-synthesis-regulation/
1•milali•4m ago•0 comments

Running a 6M parameter model on a Game Boy

https://twitter.com/timhwang/status/2122011842549600506
1•MrBuddyCasino•8m ago•0 comments

Bessent calls for 'dramatic shakeup' at Nvidia, urges outside CEO

https://www.cnbc.com/2026/11/15/bessent-nvidia-ceo-lutnick-megaspeed.html
1•Betelbuddy•9m ago•1 comments

All 178 fiction-writing notes I took in my MFA

https://cristinwhite.substack.com/p/all-178-notes-i-took-on-writing-fiction
1•jger15•10m ago•0 comments

Footguns in Git CRLF conversions of text files

https://bef.no/gitcrlf/
1•AgoRapide•13m ago•0 comments

Secure access homelab like Homeassistant, terminal, etc.

https://github.com/Bajusz15/beacon
3•Bajusz15•14m ago•0 comments

How Many Companies Are Using a Software Factory?

https://ryanxcharles.com/blog/2026-11-15-how-many-companies-are-actually-using-a-software-factory/
1•adunk•15m ago•0 comments

I posted in "Who wants to be hired?" and a recruiter sent me a RAT and a stealer

https://getjump.me/posts/03-huntrole-fake-take-home/
2•GetJump•15m ago•0 comments

How the brain decides which moments to remember – and which to forget

https://www.independent.co.uk/news/science/how-brain-stores-memories-amygdala-study-new-science-b...
2•nephihaha•16m ago•0 comments

People Shape the Earth–and Are Shaped in Return

https://worldsensorium.com/the-land-within-us/
1•dnetesn•16m ago•0 comments

New Windows SignDrop zero-day gives hackers SYSTEM privileges

https://www.bleepingcomputer.com/news/security/new-windows-signdrop-zero-day-gives-hackers-system...
2•absqueued•17m ago•0 comments

Know Your Contacts: Usable Authentication for Secure Messaging

https://tsmr.eu/blog/2026-master-thesis/
1•upofadown•19m ago•0 comments

The Village That Gave Back Its Sea

https://blue-continuum.com/the-village-that-gave-back-its-sea
1•dnetesn•20m ago•0 comments

Ablation

https://en.wikipedia.org/wiki/Ablation_(artificial_intelligence)
1•tosh•21m ago•0 comments

A local, read-only UI for AWS AI-DLC workflows

https://github.com/Senora-dev/aidlc-ui
1•ShakedBY•21m ago•0 comments

Between Interest and Intention: The Environment and the Formation of Autonomy

https://medium.com/@smoking2man/between-interest-and-intention-the-digital-environment-and-the-fo...
1•Aldus551•23m ago•0 comments

Coffeehouses and the Rise of Science [pdf]

https://www.monirbounadi.com/Bounadi_JMP.pdf
15•Michelangelo11•26m ago•2 comments

May be data is the bottleneck for AGI

1•thomasjeff1•27m ago•0 comments

Doing Show HN generates a ton of automated email pitches

https://petervandijck.com/post/pbrgs-ev0bc
2•petervandijck•29m ago•1 comments

Tracing the news coverage against Jensen

https://jensencoverage.vercel.app/
1•theanonymousone•33m ago•0 comments

Show HN: Sum Transcribes and Summarizes Audio

https://sumtranscribe.com
1•sparkalpha•34m ago•0 comments

Remote procedure calls for interactive applications

https://willybrauner.com/journal/remote-procedure-calls-for-interactive-applications
1•willybrauner•35m ago•0 comments

The Campaign to Bring Back Jensen Huang as Nvidia CE

https://www.wsj.com/tech/the-campaign-to-bring-back-jensen-huang-as-nvidia-ceo-e91b0b2c
2•JumpCrisscross•37m ago•0 comments

Ask HN: How are you dealing with AI burnout?

2•allanmacgregor•38m ago•0 comments

Two Dogmas of Agent Communication

https://masr.gitlab.io/blog/quine-two-dogmas/
1•ioper•39m ago•0 comments

Show HN: Interpretability-guided weight edits for Gemma 270M, no training

https://balajsaleem.github.io/weight-space-editing/
1•balaj•42m ago•0 comments

I cheated: South Korean admits he used AI to achieve top score in national exam

https://www.cbc.ca/news/world/south-korea-tax-accounting-exam-ai-cheating-9.7423029
4•curmudgeon22•47m ago•0 comments

Show HN: Lead Rescue – answer every website inquiry before it goes cold

https://xargaar-tools.com/lead-rescue/
1•tyrxargaar•51m ago•0 comments