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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

Android CLI: Build Android apps 3x faster using any agent

https://android-developers.googleblog.com/2026/04/build-android-apps-3x-faster-using-any-agent.html
1•ingve•1m ago•0 comments

Show HN: Online Sound Decibel Meter

https://soundmeterx.com/
1•artiomyak•2m ago•0 comments

Thinking about building agents for humans

https://frontierai.substack.com/p/build-agents-for-humans
1•tajshaik24•3m ago•0 comments

Zipper: the archival utility for macOS you didn't know you needed

1•krishshah5•3m ago•1 comments

Ask HN: How do you maintain flow when vibe coding?

1•fny•3m ago•0 comments

What's the point of the App Store, if it can't protect users?

https://www.macworld.com/article/3115356/whats-the-point-of-the-app-store-if-it-cant-protect-user...
3•cdrnsf•6m ago•0 comments

Ask HN: To open-source, or not to open-source

1•tracker1•7m ago•0 comments

openDoJa — full reimplementation of DoCoMo's DoJa SDK in modern Java

https://github.com/GrenderG/openDoJa
1•Lammy•8m ago•0 comments

Future Long Range Assault Aircraft Officially Named MV-75 Cheyenne II

https://news.bellflight.com/en-US/264304-future-long-range-assault-aircraft-officially-named-mv-7...
1•uticus•8m ago•0 comments

Text of OS age verification bill (HR 8250) [pdf]

https://www.congress.gov/119/bills/hr8250/BILLS-119hr8250ih.pdf
3•asdfglkjh•11m ago•0 comments

Gravtory – crash-proof Python workflows on your existing database

1•vatryok•12m ago•0 comments

Slint 1.16 Released

https://slint.dev/blog/slint-1.16-released
1•jandeboevrie•12m ago•0 comments

Stakes high as Supreme Court set to rule on Monsanto's weed-killing pesticide

https://www.theguardian.com/us-news/2026/apr/16/supreme-court-monsanto-glyphosate
1•mitchbob•12m ago•0 comments

Fire risks and ugly designs are stalling EV charger adoption

https://restofworld.org/2026/ev-charger-backlash-fire-safety-aesthetics/
1•PaulHoule•12m ago•0 comments

Show HN: HyperFrames – Render Video from HTML via Chrome's BeginFrame API

https://github.com/heygen-com/hyperframes
3•bored_hacker•13m ago•0 comments

Ask HN: How to Launch First SaaS

1•nicck1•14m ago•1 comments

Djangocon EU: when SaaS is not allowed: shipping Django as a desktop app

https://reinout.vanrees.org/weblog/2026/04/16/7-django-as-desktop-app.html
1•jandeboevrie•15m ago•0 comments

Show HN: Claude Opus 4.7: Everything You Need to Know

1•anju-kushwaha•16m ago•0 comments

The Unpleasant Side of Life with Horses in Cities

https://www.newyorkalmanack.com/2021/02/the-unpleasant-side-of-life-with-horses-in-cities/
1•ohjeez•16m ago•0 comments

How a subsea cable is repaired

https://www.onesteppower.com/post/subsea-cable-repair
1•slicktux•16m ago•0 comments

Ternary Bonsai: Top Intelligence at 1.58 Bits

https://prismml.com/news/ternary-bonsai
4•throwaway2027•17m ago•1 comments

An interesting art style: Warli Art

https://portraitart.app/photo-to-indian-warli
1•bethemoly•17m ago•0 comments

Open-world evaluations for measuring frontier AI capabilities [pdf]

https://cruxevals.com/open-world-evaluations.pdf
1•randomwalker•17m ago•0 comments

New undersea cable cutter risks Internet's backbone

https://arstechnica.com/gadgets/2026/04/china-tests-an-undersea-cable-cutter-as-suspected-sabotag...
3•pseudolus•19m ago•0 comments

Show HN: Open-source Perplexity clone one file back end, streaming answers

https://github.com/oncellai/oncell-research
6•anupsing_ai•21m ago•0 comments

Cavalry Is Now Free

https://cavalry.studio/en/
1•Seich•22m ago•1 comments

I Made the "Next-Level" Camera and I love it

https://thelibre.news/i-made-the-next-level-camera-and-i-love-it/
3•ndr•22m ago•0 comments

Leaving Gas Town – What Happens When the AI Bubble Bursts?

https://slowlywilliam.com/2026/04/12/leaving-gas-town.html
3•quicklywilliam•25m ago•1 comments

Show HN: Constellate – Finding patterns by reasoning about groups, not pairs

https://constellate.fyi
1•harthor•25m ago•0 comments

Show HN: A native Rust TUI for Claude Code, because Ink got slow

https://www.npmjs.com/package/claude-code-rust
1•srothgan•28m ago•0 comments