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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•10mo ago
Agreed

From Distributed Scheduler to WebAssembly

https://volodymyrrudyi.com/blog/from-distributed-scheduler-to-wasm/
1•vrudyi•1m ago•0 comments

Pentagon declines to reaffirm NATO's collective defense, says up to Trump

https://www.reuters.com/business/aerospace-defense/pentagon-declines-reaffirm-natos-collective-de...
1•Bondi_Blue•1m ago•0 comments

EPropelled Electric Propulsion Motors for Uncrewed Vehicles

1•ePropelled•2m ago•0 comments

Cloud Cost Optimizer – Magical one-click button

https://stopburning.money/
1•alianinfo•3m ago•1 comments

A Change to Common Crawl Dataset Size Reporting

https://commoncrawl.org/blog/announcing-a-change-to-common-crawl-dataset-size-reporting
1•ccgreg•4m ago•1 comments

I open-sourced Claude's best feature

https://github.com/Kilo-Loco/homie-mcp
1•kiloloco•6m ago•1 comments

Show HN: TraceLit – debug LeetCode step by step

https://tracelit.dev/
1•eric_z•10m ago•0 comments

Claude Code source leak reveals how much info Anthropic can hoover up about you

https://www.theregister.com/2026/04/01/claude_code_source_leak_privacy_nightmare/
3•jruohonen•15m ago•0 comments

CERN levels up with new superconducting karts

https://home.cern/news/news/engineering/cern-levels-new-superconducting-karts
11•fnands•19m ago•0 comments

AWS App Runner availability change

https://docs.aws.amazon.com/apprunner/latest/dg/apprunner-availability-change.html
2•seyz•20m ago•0 comments

Remembering Magnetic Memories and the Apollo AGC

https://2earth.github.io/website/20260304.html
2•2earth•23m ago•0 comments

Show HN: Kbot – open-source terminal AI with dream engine (676 tools, $0 local)

https://github.com/isaacsight/kernel
2•isaacsight•30m ago•0 comments

Paste clipboard images into Claude Code over SSH

https://alexanderzeitler.com/articles/paste-clipboard-images-into-claude-code-over-ssh/
2•alexzeitler•30m ago•0 comments

Portel: The Observability Platform for Portlet-Based Generative UI

https://ollygarden.com/press/portel-april-2026
1•ollygarden•32m ago•0 comments

Why AI agents fail customer operations

https://www.sentohq.com/posts/why-ai-agents-fail-customer-operations
3•adrved•33m ago•0 comments

Embracing AI with Claude's C Compiler

https://chipsandcheese.com/p/embracing-ai-with-claudes-c-compiler
4•kevvok•34m ago•0 comments

Italy Senate Wi-Fi Password Sparks Buzz After "Dux" Appears in Network Sign

https://www.repubblica.it/politica/2026/04/01/news/senato_spunta_dux_password_wifi-425256568/
2•omblivion•36m ago•0 comments

Project Lean – The $10B Singularity Architecture

1•tk-LEAN•37m ago•0 comments

Atemis II Launch

https://www.esa.int/Science_Exploration/Human_and_Robotic_Exploration/Watch_live_Artemis_II_launch
1•nhatcher•37m ago•0 comments

Mediatek predictive reboot engine driver

https://github.com/openwrt/openwrt/pull/22722
2•mradalbert•37m ago•0 comments

Show HN: HookBell – Turn any webhook into a push notification on your phone

1•akshitkrnagpal•42m ago•0 comments

Using DNA as a method to encrypt sensitive messages has become possible

https://www.cnrs.fr/en/press/dna-cryptography-new-french-japanese-approach-has-proven-its-worth
2•matthieu_bl•42m ago•0 comments

Quantum computers need fewer resources than thought to break vital encry

https://arstechnica.com/security/2026/03/new-quantum-computing-advances-heighten-threat-to-ellipt...
3•joozio•42m ago•0 comments

Art schools are being torn apart by AI

https://www.theverge.com/tech/903954/art-schools-generative-ai-education-creative-jobs
6•bundie•46m ago•2 comments

Grist (spreadsheets) v1.7.12 adds Automations

https://support.getgrist.com/automations/
1•raybb•47m ago•0 comments

Delve – Fake Compliance as a Service – Part II – Day 1 of 5

https://substack.com/home/post/p-192144506
2•nickvec•48m ago•1 comments

Ask HN: What is the best software IDE to program with a local LLM and GPU?

1•roschdal•48m ago•1 comments

Open Multi-Agent: Multi-agent orchestration framework for TypeScript

https://github.com/JackChen-me/open-multi-agent
1•JackChen_me•52m ago•0 comments

Cutia: An AI-native, open-source video editor and free alternative to CapCut

https://cutia.msgbyte.com/en
1•moonrailgun•53m ago•0 comments

Manual SRE – For Artisanal Infrastructure Care

https://manual-sre.pro/
2•ilan34•58m ago•0 comments