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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•8mo ago
Agreed

NASA to Develop Lunar Reactor by 2030

https://www.nasa.gov/news-release/nasa-department-of-energy-to-develop-lunar-surface-reactor-by-2...
1•ghostoftiber•37s ago•0 comments

Generative Video Compression: 0.01% Compression Rate for Video Transmission

https://www.alphaxiv.org/overview/2512.24300v1
1•ksec•1m ago•0 comments

Gamers Overwhelmingly Hate Gen AI in Games, Major Industry Report Finds

https://wjamesau.substack.com/p/gamers-overwhelmingly-hate-gen-ai
1•SLHamlet•1m ago•0 comments

What Is Maintenance, Anyway?

https://blog.rust-lang.org/inside-rust/2026/01/12/what-is-maintenance-anyway/
1•weinzierl•1m ago•0 comments

Show HN: 'Irrational' Tools – Perception-first color/image utilities

https://irrationaltools.com/color-palette-generator/
1•piyush_soni•1m ago•0 comments

AI Can't Touch These Skilled Trade Jobs. If Only Enough Humans Would Fill Them

https://www.wsj.com/lifestyle/careers/ai-cant-touch-these-skilled-trade-jobs-if-only-enough-human...
2•thm•3m ago•0 comments

Native ZFS VDEV for Object Storage (OpenZFS Summit)

https://www.zettalane.com/blog/openzfs-summit-2025-mayanas-objbacker.html
1•suprasam•4m ago•0 comments

Global AI computing capacity is doubling every 7 months

https://epoch.ai/data-insights/ai-chip-production
1•gmays•5m ago•0 comments

Protobuf Has LSP Support

https://buf.build/blog/protobuf-lsp
1•g0xA52A2A•7m ago•0 comments

Almost 7 Signs That Your JavaScript Project Is Legacy

https://devops.com/almost-seven-signs-that-your-javascript-project-is-legacy/
2•ViktoriiaYarosh•9m ago•0 comments

Show HN: Connect Claude AI to iMessage/WhatsApp via Poke MCP

https://github.com/andrexibiza/claude-mcp-poke
1•andrexibiza•9m ago•0 comments

The convergence of AI and data streaming – Part 1: The coming brick walls

https://www.redpanda.com/blog/convergence-ai-data-streaming-part-1
1•PeterCorless•10m ago•0 comments

Fuzzing an eBPF Implementation in Rust

https://secret.club/2022/05/11/fuzzing-solana.html
2•fanf2•12m ago•0 comments

Anatomy of a great product update

https://personabox.app/blog/anatomy-of-a-product-update
1•mpc75•12m ago•0 comments

Jeff Bezos hopes that you'll give up your PC to rent one from the cloud

https://www.windowscentral.com/artificial-intelligence/jeff-bezos-says-the-quiet-part-out-loud-be...
2•_____k•14m ago•1 comments

Why Google Gemini looks poised to win the AI race over OpenAI

https://www.theverge.com/ai-artificial-intelligence/861863/google-gemini-ai-race-winner
1•speckx•15m ago•0 comments

Show HN: Cloud Code – Launch coding agents via API

https://cloud-code-chi.vercel.app
1•thymathgeek•16m ago•0 comments

Architecture discovery in Riemannian neural fields

https://www.researchgate.net/publication/399760434_STRUCTURED_KNOWLEDGE_ACCUMULATION_GEODESIC_LEA...
1•quantiota•18m ago•1 comments

Navigating with Starlink-Signals in GPS-Denied Environments

https://xxtomcooperxx.substack.com/p/navigating-with-starlink-signals
1•jnsaff2•19m ago•0 comments

Show HN: Tabstack – Browser infrastructure for AI agents (by Mozilla)

3•MrTravisB•20m ago•0 comments

Running cheap and crappy USB hard drives in RAID0 is indeed a terrible idea

https://ounapuu.ee/posts/2026/01/14/raid0/
2•speckx•21m ago•0 comments

How to Use LLMs for Continuous, Creative Code Refactoring

https://thenewstack.io/how-to-use-llms-for-continuous-creative-code-refactoring/
1•rbanffy•21m ago•0 comments

Beijing tells Chinese firms to stop using US and Israeli cybersecurity software

https://www.yahoo.com/news/articles/exclusive-beijing-tells-chinese-firms-094036030.html
2•jmsflknr•22m ago•0 comments

How to avoid dynamic linking of Steam's client library using a old trick

https://nullonerror.org/2025/06/03/how-to-avoid-dynamic-linking-of-steam-s-client-library-using-a...
1•delduca•22m ago•0 comments

How to Stand Out When Every AI Product Promises the Same Magic

https://toolsfortech.substack.com/p/how-to-stand-out-when-every-ai-product
1•eh_tk•26m ago•0 comments

Show HN: A kids' math app without dark patterns

https://playlumi.app/
1•matheusml•26m ago•0 comments

Can AI Generate New Ideas?

https://www.nytimes.com/2026/01/14/technology/ai-ideas-chat-gpt-openai.html
1•lateforwork•27m ago•0 comments

Molecular bio-researcher, lifespan elongation

1•vikmarec•28m ago•0 comments

Clone Wars: IBM Edition

https://hackaday.com/2026/01/14/clone-wars-ibm-edition/
1•quantumfissure•28m ago•0 comments

Show HN: AI Vibe Coding Hackathon

https://vibe.devpost.com/
1•abdibrokhim•29m ago•0 comments