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

If you read cursive, the Newberry has a job for you

https://lithub.com/if-you-read-cursive-the-newberry-has-a-job-for-you/
1•mooreds•1m ago•0 comments

Intent to Experiment: Agentic Federated Login

https://groups.google.com/a/chromium.org/g/blink-dev/c/FLaenhru3zo/m/SM-UiWsBDgAJ
1•mooreds•2m ago•0 comments

A Skill for Easter: Teaching Claude to Speak EventSourcingDB

https://docs.eventsourcingdb.io/blog/2026/04/02/a-skill-for-easter-teaching-claude-to-speak-event...
1•goloroden•4m ago•0 comments

Show HN: Continuously Improve Claude Code Plans

https://plannotator.ai/blog/continuously-improve-claude-code-plans/
1•ramoz•4m ago•0 comments

A pathogenic Tau mutation drives dysfunction limiting Tau degradation

https://www.nature.com/articles/s41467-026-70473-5
1•bookofjoe•5m ago•0 comments

Wikidata: WikiProject Ontology/Ontology Course

https://www.wikidata.org/wiki/Wikidata:WikiProject_Ontology/Ontology_Course
1•taubek•6m ago•0 comments

I, Sysadmin

1•sudosteph•6m ago•0 comments

Do Not Stick Out

https://cdt.org/insights/do-not-stick-out-the-dynamics-of-the-ech-rollout/
1•jruohonen•7m ago•0 comments

FusionAuth Brainfuck SDK Repo

https://github.com/FusionAuth/fusionauth-brainf-sdk
1•bewalt•10m ago•0 comments

Kremlin Enters the Chat with Russia's New Super-App

https://www.wsj.com/world/russia/kremlin-enters-the-chat-with-russias-new-super-app-830c703a
1•impish9208•10m ago•1 comments

AbodeLLM – An offline AI assistant for Android devices, based on open models

https://github.com/brendmung/AbodeLLM
2•shaicoleman•11m ago•0 comments

Computer Repair in Oklahoma City, OK

https://okcitpros.com
1•Veritaco•11m ago•1 comments

Ask HN: How are you handling Japanese prompt injection in LLM apps?

1•nexus-api-lab•12m ago•0 comments

Gene Editing Therapy Shows Success Against Sickle Cell Disease

https://newsroom.clevelandclinic.org/2026/04/01/gene-editing-therapy-shows-success-against-severe...
1•geox•13m ago•0 comments

Crypto Data Recovery Services – Highly Rated Service

1•WilliamHenry•16m ago•0 comments

When to Finetune an Image Model

https://www.oxen.ai/blog/when-to-fine-tune-an-image-model
2•suriya-ganesh•18m ago•0 comments

Swappa.com for GrapheneOS compatible devices – Stay Away

https://discuss.grapheneos.org/d/33727-swappacom-for-grapheneos-compatible-devices-stay-away
14•OsrsNeedsf2P•20m ago•5 comments

Google officially launches option to change your Gmail address

https://9to5google.com/2026/03/31/google-change-gmail-address-launch/
2•WaitWaitWha•23m ago•2 comments

Ask HN: How far off are AI virtual games?

3•itmitica•24m ago•2 comments

Claude Buddy – We reverse-engineered the pet system from the Claude Code leak

https://www.claudebuddy.me/
1•peronif5•25m ago•0 comments

MAME moves to rust / AI refactoring

https://www.reddit.com/r/MAME/s/ReyyrrW41z
1•appstorelottery•25m ago•0 comments

The Hidden Blast Radius of the Axios Compromise

https://socket.dev/blog/hidden-blast-radius-of-the-axios-compromise
4•feross•26m ago•0 comments

Timesliced reservoir sampling: a new(?) algorithm for profilers

https://pythonspeed.com/articles/reservoir-sampling-profilers/
1•ingve•28m ago•0 comments

Phalus: Private Headless Automated License Uncoupling System (Self-Hosted)

https://phalus.sh/
1•smugglereal•29m ago•0 comments

Non-Determinism Isn't a Bug. It's Tuesday

https://www.kasava.dev/blog/why-pms-are-built-for-ai
1•benbeingbin•31m ago•0 comments

Show HN: Mkdnsite – Markdown-native web server for humans (HTML) and agents (md)

https://github.com/mkdnsite/mkdnsite
1•nexdrew•31m ago•0 comments

Cline Kanban

https://cline.bot/blog/announcing-kanban
1•rglover•33m ago•0 comments

Secret Codes and Yuan Fees Get Ships Through Iran's Hormuz Tollbooth

https://www.bloomberg.com/news/articles/2026-04-01/strait-of-hormuz-ships-paying-iran-yuan-and-cr...
2•petethomas•35m ago•0 comments

Cindy Cohn of the EFF Interviewed by Jon Stewart on the Daily Show [video]

https://www.youtube.com/watch?v=QkC1aK7jfLo
4•latexr•36m ago•0 comments

Smart cushioning device integrating self-folding origami honeycomb structure

https://www.nature.com/articles/s41528-025-00527-z
1•PaulHoule•36m ago•0 comments