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

TwoMillionKit: Private Cloud Compute in FoundationModels without an entitlement

https://github.com/insidegui/TwoMillionKit
1•zdw•1m ago•0 comments

'Quality decays exponentially following AI arrival': Experts leaving in droves

https://www.techradar.com/pro/quality-decays-exponentially-following-ai-arrival-research-shows-ex...
1•Fricken•2m ago•0 comments

Red Hat's Project Lightwell. Interview with Mo Duffy

https://opensourcesecurity.io/2026/2026-07-lightwell-mo-duffy/
1•LaSombra•7m ago•0 comments

NyxOS

https://github.com/kazah-png/nyx-os
1•kazah•13m ago•0 comments

Ask HN: How long do you use your personal laptop before replacing it?

3•thallavajhula•17m ago•1 comments

Gleam for Python Programmers

https://third-bit.com/gl4py/
2•TheWiggles•18m ago•0 comments

Letl1en

1•l1en•20m ago•0 comments

Billionaire exodus? California drew 10x more venture capital than anyother state

https://www.latimes.com/business/story/2026-07-10/billionaire-exodus-california-attracted-10-time...
1•WarOnPrivacy•20m ago•1 comments

Is the top song on Australian radio AI-generated?

https://www.theguardian.com/music/2026/jul/13/josh-fawaz-like-a-prayer-song-is-it-ai-radio
2•sbulaev•20m ago•0 comments

Sticky Note Chrome Extension Turns Favorites into Multimedia Sticky Notes

https://chromewebstore.google.com/detail/sticky-note-web-clipper-s/gniilbpapgommpalikcclpcnbcamgila
1•taskloco_nyc•23m ago•0 comments

The Future Worth Building Is Human

https://thinkingmachines.ai/blog/the-future-worth-building-is-human/
1•gmays•24m ago•0 comments

The University in the AI Era

https://htmx.org/essays/universities-and-ai/
1•vismit2000•25m ago•0 comments

Comparing the Burn Ability of 4 Materials Used for Wall Insulation [video]

https://www.youtube.com/watch?v=CdItsso3ur0
1•nomilk•26m ago•0 comments

[jdubray/sam-lib] V2 (PR #25)

https://github.com/jdubray/sam-lib/pull/25
1•turtleyacht•26m ago•1 comments

Show HN: 2026 World Cup Simulator with redemition mode

https://7-0worldcup.org/
1•cksmct•27m ago•0 comments

Droidsaw Rust Utility

https://lib.rs/crates/droidsaw
1•axus•28m ago•0 comments

Ask HN: As a customer, how do you feel about AI-First Customer Support?

1•gerardojbaez•37m ago•0 comments

Fable 5 on Playcode. As well as Sol, Grok 4.5 and GLM 5.2

https://playcode.io/blog/fable-5
1•ianberdin•44m ago•0 comments

Playcode Cloud – Firecracker backed and Neon inspired

https://playcode.io/blog/playcode-cloud
1•ianberdin•45m ago•0 comments

Adapnex: PLC Programming for Software Engineers

https://adapnex.com/
1•nobodyknowsyoda•49m ago•0 comments

A Metallurgist's Doubts About Self-Replicating Probes

https://www.centauri-dreams.org/2026/07/10/a-metallurgists-doubts-about-self-replicating-probes/
5•EA-3167•51m ago•0 comments

Global Talent Fund

https://www.globtalent.org/
1•nobodyknowsyoda•51m ago•0 comments

Common Cog: The Calibration Case Method

https://commoncog.com/calibration-case-method/
2•nobodyknowsyoda•53m ago•0 comments

This summer ski destination in the Andes isn't getting enough snow

https://www.cnn.com/2026/07/11/americas/chile-santiago-ski-snow-intl-latam
1•mooreds•1h ago•0 comments

Count Binface

https://countbinface.com
59•mooreds•1h ago•13 comments

Tend turns intent into local, reviewable feeds you can inspect, steer, and teach

https://github.com/EveryInc/tend
1•mooreds•1h ago•0 comments

Run SSH and Claude Code on 3DS

1•cadl11•1h ago•0 comments

Global Careers Hub – Free AI Tools, Scholarships and Career Resources

https://globalcareers-3qwcpfkw.manus.space/
1•Shuborna•1h ago•0 comments

DVD-Audio

https://en.wikipedia.org/wiki/DVD-Audio
4•hdz•1h ago•0 comments

Your own secure, personalized movie server

https://elvern.xyz
2•Sectum•1h ago•1 comments