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

The Machiavellian Maze

https://www.robkhenderson.com/p/the-machiavellian-maze
1•barry-cotter•6m ago•0 comments

Pretext: JavaScript/TypeScript library for multiline text measurement and layout

https://github.com/chenglou/pretext
1•davidbarker•6m ago•0 comments

Building shared coding guidelines for AI (and people too)

https://stackoverflow.blog/2026/03/26/coding-guidelines-for-ai-agents-and-people-too/
1•vinhnx•8m ago•0 comments

Scientists film whale giving birth while other whales work together to help her

https://www.theguardian.com/environment/2026/mar/27/scientists-film-whale-giving-birth-other-whal...
1•sandebert•8m ago•0 comments

Ada and Spark on ARM Cortex-M – A Tutorial with Arduino and Nucleo Examples

http://inspirel.com/articles/Ada_On_Cortex.html
1•swq115•9m ago•0 comments

Poison AI Training Data Scrapers

https://github.com/austin-weeks/miasma
1•250call•16m ago•1 comments

Show HN: Local Vault – AES-256-GCM password manager in a single HTML file

https://github.com/RachidBoutaguiout/local-vault
1•frederic123•18m ago•0 comments

Stop Calling Them VPNs (2024)

https://flameeyes.blog/2024/09/29/stop-calling-them-vpns/
2•sysoleg•22m ago•0 comments

Ask HN: Best place to host a Node.js App in 2026

1•chbkall•24m ago•0 comments

The Deliverable Is You Programming as Theory Building

https://nekolucifer.substack.com/p/the-deliverable-is-you-programming
1•tartoran•25m ago•0 comments

Stop Calling Every AI Miss a Hallucination

https://ai.gtzilla.com/papers/stop-calling-every-ai-miss-a-hallucination-v1.0/
2•osconfused•28m ago•0 comments

Show HN: BillingEngine – usage-based billing for APIs with real-time rating

https://billingengine.cloud/cs/
1•mkellercz•34m ago•0 comments

Play Anthakshari

https://anthakshari.ai/
2•hareeshimo•36m ago•0 comments

101 Ads – Highway 101 Billboard Map

https://101ads.org/
1•ChrisArchitect•37m ago•0 comments

What happens when you clone mice for 20 years straight?

https://denovo.substack.com/p/what-happens-when-you-clone-mice
2•vinhnx•48m ago•0 comments

Atomic Rockets – Build your own spaceship

https://projectrho.com/public_html/rocket/heatrad.php
1•vismit2000•51m ago•0 comments

Show HN: Every Minute a Startup

https://everyminuteastartup.com
1•sawirricardo•52m ago•0 comments

What do frontier AI companies' job postings reveal about their plans?

https://epochai.substack.com/p/what-do-frontier-ai-companies-job
1•vinhnx•54m ago•0 comments

Pi: The Minimal Agent Within OpenClaw

https://lucumr.pocoo.org/2026/1/31/pi/
1•Anon84•57m ago•0 comments

Show HN: VizTools – 16 free tools for PMs and freelancers, deliberately no AI

https://viztools.app/
2•mizarau•59m ago•0 comments

400 cuckoo clocks go on display as time springs forward

https://www.rte.ie/news/ireland/2026/0328/1565545-clocks-exhibition-waterford/
2•austinallegro•1h ago•0 comments

Potato Fruit

https://en.wikipedia.org/wiki/Potato_fruit
3•jedbrooke•1h ago•0 comments

Adaptive hedging library (reduces p99 latency by ~74%)

https://github.com/bhope/hedge
1•soniccontroller•1h ago•0 comments

The Joy of Numbered Streets

https://humantransit.org/2026/03/the-joy-of-numbered-streets-or-call-it-39th-avenue.html
4•dmit•1h ago•0 comments

Bitmoji Anthropology [video]

https://www.youtube.com/watch?v=E2I0tqgaEVo
1•broabprobe•1h ago•0 comments

Dandelion Mesh: Serverless mesh network for browsers using WebRTC

https://github.com/predatorray/dandelion-mesh
1•zetaplusae•1h ago•0 comments

I made aipack and wanted to share

https://github.com/shrug-labs/aipack
1•waffleman21•1h ago•1 comments

CLTR finds a 5x increase in scheming-related AI incidents

https://www.longtermresilience.org/reports/v5-scheming-in-the-wild_-detecting-real-world-ai-schem...
1•kuerbel•1h ago•0 comments

I did a deep dive into cursors SQLite storages, different from Claude Code

https://vibe-replay.com/blog/cursor-local-storage/
1•tuo-lei•1h ago•2 comments

Aldus PageMaker on the Apple Macintosh

https://stonetools.ghost.io/pagemaker-mac/
2•zdw•1h ago•0 comments