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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

Local storage for coding agents resolves amnesia

https://github.com/mobydeck/pantry
1•arthurpro•11s ago•0 comments

Ask HN: In the Age of AI, How Do I Grow as a Software Engineer?

1•mc-0•1m ago•0 comments

Show HN: Remote Coding Agent

https://github.com/tacogips/QraftBox
1•tacogips•1m ago•0 comments

Deaths in Ice Custody Texas

https://www.texastribune.org/2026/02/19/ice-detention-deaths-texas-east-montana-dilley-campos/
1•marysminefnuf•2m ago•0 comments

Claude Code in the cloud as an API (persistent workspace and scheduled jobs)

https://computer-agents.com
1•janlucasandmann•5m ago•1 comments

Beyond Slop – Why generative AI is stuck on content production, not expression

https://www.joelsimon.net/beyond-slop
2•joelS•5m ago•0 comments

Show HN: Ghostty-based terminal with vertical tabs and notifications

https://github.com/manaflow-ai/cmux
3•lawrencechen•7m ago•0 comments

Show HN: YAML SSH Task Runner

https://github.com/mikemasam/nyatictl
2•mikemasam•7m ago•0 comments

Show HN: StillOnAir – Turn YouTube into programmable, linear TV for free

https://www.stillonair.com/
2•nanamichael•8m ago•0 comments

In contrast with Trump's America, Europe's 100 gigawatt clean energy hub

https://www.cnn.com/2026/02/19/climate/trump-wind-europe-clean-energy-independence
3•asplake•8m ago•1 comments

ASCIIQuarium

https://robobunny.com/projects/asciiquarium/html/
1•threekindwords•8m ago•0 comments

Canada If Day, WW2, when "German" troops invaded Winnipeg

https://bsky.app/profile/cdnhistoryehx.bsky.social/post/3mf7y6sjumi2q
1•vinnyglennon•10m ago•0 comments

Cortex 1.6: Learning from the Way Things Unfold

https://sereact.ai/posts/cortex-1-6
1•pancakenetwork•10m ago•0 comments

Show HN: Skicamslive.com

https://skicamslive.com
1•mcoliver•10m ago•0 comments

Building an Agent SaaS with Cloudflare Containers

https://alec.is/posts/building-an-agent-saas-with-cloudflare-containers/
1•arm32•10m ago•0 comments

Show HN: Fn-p to Picture-in-Picture any macOS window

https://lowtechguys.com/pipiri/
1•alin23•12m ago•0 comments

Weather Intelligence for Smarter Sailing

https://incusgrid.com
1•cburgdorf•12m ago•0 comments

Taalas Hardcore Llama – the fastest inference on the planet

https://chatjimmy.ai
1•ljubisa_bajic•13m ago•1 comments

Apple Watch or Don't Bother

https://fireborn.mataroa.blog/blog/apple-watch-or-dont-bother/
1•samtheDamned•15m ago•0 comments

A psychedelic medicine performs well against depression

https://www.economist.com/science-and-technology/2026/02/19/a-psychedelic-medicine-performs-well-...
2•vinni2•16m ago•0 comments

The Beige Plague

https://journal.erratalabs.org/the-beige-plague
1•mldev_exe•16m ago•0 comments

Show HN: Receiver – Internet radio for GNOME with 30K pre-verified stations

https://github.com/meehow/receiver
1•meehow•16m ago•0 comments

Show HN: Hi.new – DMs for agents (open-source)

https://www.hi.new/
2•elieskilled•16m ago•0 comments

Ask HN: An approachable book on programming concepts/computer basics for a teen?

1•jamesgill•18m ago•2 comments

Malaysian Farmers Made a Fortune on Durian. Now It Is Piling Up

https://www.nytimes.com/2026/02/10/world/asia/durian-malaysia-china-demand.html
3•bookofjoe•18m ago•1 comments

'You can't just remove the cloud': US sprinting's reckoning before LA 2028

https://www.theguardian.com/sport/2026/jan/23/marvin-bracy-williams-doping-us-sprinting-paranoia
1•PaulHoule•19m ago•0 comments

Conductor removing support for Claude subscription authentication

https://twitter.com/charlieholtz/status/2024585923619590497
1•jrsj•19m ago•0 comments

A review of tumor-treating electric fields (TTFields): clinical advancements

https://pmc.ncbi.nlm.nih.gov/articles/PMC10476910/
1•CGMthrowaway•21m ago•0 comments

What's next for Chinese open-source AI

https://www.technologyreview.com/2026/02/12/1132811/whats-next-for-chinese-open-source-ai/
1•calcifer•24m ago•0 comments

Show HN: CursorLens – Open-source screen recorder/editor for product demos

https://github.com/blueberrycongee/CursorLens
1•blueberrycongee•25m ago•0 comments