frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

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

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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•12mo ago
Agreed

Think Linear Algebra

https://allendowney.github.io/ThinkLinearAlgebra/index.html
1•tamnd•41s ago•0 comments

0.12949 This is not randomness this is Determinism HST

https://github.com/sel8888/harmonic-shape-transform-2026-koncept
1•sel8888•7m ago•0 comments

The Era of the Tiger Mom Is Over. Enter the Beta Mom

https://www.wsj.com/lifestyle/relationships/beta-moms-influencers-tiktok-6cf99674
2•huhkerrf•10m ago•0 comments

Show HN: WfmOxide a Rust parser (.wfm/.isf) with CLI and time axis

https://github.com/SGavrl/WfmOxide
1•Galo43•13m ago•0 comments

FreeBSD – A Lesson in Poor Defaults

https://vez.mrsk.me/freebsd-defaults
2•jruohonen•14m ago•0 comments

Bill Gates' Mosquito Factory in Colombia and Its Contribution to Health

https://aldianews.com/en/wellness/investigation/gates-mosquito-factory
2•thunderbong•22m ago•0 comments

Lego raises age limit to 100 for David Attenborough's birthday

https://www.instagram.com/p/DYCw8KIlaDJ/
3•Brajeshwar•26m ago•1 comments

AI Act Article 50 transparency rules. Heading for another cookie consent moment?

https://digital-strategy.ec.europa.eu/en/library/draft-guidelines-implementation-transparency-obl...
2•nilen•34m ago•0 comments

Simpler Agent Orchestration WTF

https://alokit.substack.com/p/the-number-nobody-runs-before-building
1•avikalp•35m ago•1 comments

Foo on You, Asparagirl! (2002)

http://esr.ibiblio.org/?p=112
2•jruohonen•39m ago•0 comments

I made a better viewer for the WAR.GOV/UFO Files

https://hypergrid.systems/site/
3•keepamovin•39m ago•0 comments

Open-source Express.js dev panel for routes and request logs

https://www.npmjs.com/package/express-dev-panel
1•dvsxdev•42m ago•0 comments

Engineering as Humanity's Highest Achievement

https://walkingtheworld.substack.com/p/engineering-as-humanitys-highest
1•hermitcrab•48m ago•0 comments

Three Cultures of Math

https://rkirov.github.io/posts/three-cultures-of-math/
1•mathgenius•49m ago•0 comments

Chess.com produces 3500 ton of CO2 in air for loading JavaScript bundles

https://www.chess.com/
1•emifo3•51m ago•5 comments

Mlx-serve – run LLMs natively on your Mac

https://ddalcu.github.io/mlx-serve/
1•wrxd•52m ago•0 comments

Outlook on Windows silently scales your email by 1.5×

http://picmel.com/blog/outlook-dpi-scaling-bug
2•rudixworld•53m ago•0 comments

Show HN: Query years of HN discussions and comments as a knowledge graph

https://github.com/hash-anu/lightrag-snkv
1•swaminarayan•54m ago•0 comments

AI cost optimization tool "distillfast.com"

2•ashuashpawar•1h ago•2 comments

UtaForth – 303-byte 16-bit Forth in pure Netwide Assembler

https://github.com/Fuwn/UtaForth
2•irdc•1h ago•1 comments

LLMs Won't Replace Programming Languages

https://mech-lang.org/post/2025-01-09-programming-chatgpt/
1•tosh•1h ago•0 comments

Rotten Dot Com

https://www.theparisreview.org/blog/2026/05/06/rotten-dot-com/
47•lordgrenville•1h ago•27 comments

Machine Learning Offers Faster, More Reliable Analysis of Fermi Surfaces

https://www.tus.ac.jp/en/mediarelations/archive/20260417_0478.html
1•rustoo•1h ago•0 comments

Arm, the UK and Apple

https://thechipletter.substack.com/p/arm-the-uk-and-apple
2•klelatti•1h ago•0 comments

LLMorphism: When humans come to see themselves as language models

https://arxiv.org/abs/2605.05419
3•okey•1h ago•0 comments

Real signals or artificial stereotypes? Adventures with a cultural Copilot

https://kucharski.substack.com/p/real-signals-or-artificial-stereotypes
2•ceejayoz•1h ago•0 comments

In a quest to becoming AI independent

https://adlrocha.substack.com/p/adlrocha-in-a-quest-to-becoming-ai
6•adlrocha•1h ago•1 comments

Show HN: Tinyblok – publishes conditioned sensor data to NATS from an ESP32

https://github.com/lexvicacom/tinyblok
2•alexjreid•1h ago•0 comments

RISC-V Serial Debug Protocol Specification (Draft)

https://gitlab.com/lauterbach/riscv-rsdp-spec
2•jonesjohnson•1h ago•0 comments

Gen Z Resentment Toward AI Grows as Adoption Stagnates and Workplace Fears Mount

https://www.waltonfamilyfoundation.org/about-us/newsroom/gen-z-resentment-toward-ai-grows-as-adop...
6•mgh2•1h ago•0 comments