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

Microsoft's AI Chief says we'll have intimate AI companions within 5 years

https://www.windowscentral.com/artificial-intelligence/microsoft-ai-chief-intimate-ai-companion-i...
1•thunderbong•11s ago•0 comments

Seagate Shipping 32TB HAMR Hard Drives for Server, NAS, & Surveillance Markets

https://www.servethehome.com/seagate-shipping-32tb-hamr-hard-drives-for-server-nas-surveillance-m...
1•rbanffy•14s ago•0 comments

Ask HN: Which common map projections make Greenland look smaller?

1•jimnotgym•16s ago•0 comments

Weprepyou.com Releases BKSB Practice Tests for Only $1.99

https://weprepyou.com/
1•obayuwj•21s ago•1 comments

Nvidia Arm-based N1X gaming laptops reportedly set to debut this quarter

https://www.tomshardware.com/pc-components/cpus/nvidias-arm-based-n1x-equipped-gaming-laptops-are...
1•rbanffy•2m ago•0 comments

DevOps engineer moving to physical CCTV biz – how to manage the mess?

https://soltra.africa
1•jongi_ct•2m ago•1 comments

Building the first open-source quantum computer using Open Quantum Design (OQD)

https://uwaterloo.ca/news/global-futures/building-worlds-first-open-source-quantum-computer
1•giuliomagnifico•3m ago•0 comments

The Free Trade Titans

https://cnliberalism.org/senate-tariff-response-index
1•DustinEchoes•3m ago•0 comments

Monitoring and engaging in social media conversations during a crisis

https://www.tandfonline.com/doi/full/10.1080/23311975.2015.1084978
1•Caarticles•3m ago•0 comments

Shingles vaccine linked to slower biological aging in older adults

https://medicalxpress.com/news/2026-01-shingles-vaccine-linked-slower-biological.html
2•bikenaga•5m ago•0 comments

Palantirization: Pairing enterprise software with high-touch delivery

https://www.a16z.news/p/the-palantirization-of-everything
1•eden123•8m ago•0 comments

How I Use AI

https://carolyngalvin.com/2026/01/15/how-i-use-ai/
2•mooreds•8m ago•0 comments

ARPA-H director eyes future beyond vaccines, winning biotech race against China

https://www.fiercebiotech.com/research/arpa-h-director-eyes-future-beyond-vaccines-and-winning-bi...
1•JPLeRouzic•9m ago•0 comments

Show HN: I built a little catfishing helper

https://halftwin.com
1•hamzaawan•9m ago•1 comments

Show HN: Built a children's hospice donation site using AI agents as team in 8h

https://hoki.help
1•Sem_pre•10m ago•0 comments

Show HN: Ergon – A Durable Execution Library

https://github.com/richinex/ergon
1•richinex•10m ago•0 comments

Show HN: Vibe Coding Coach - Get Instant Help from Senior Software Engineers

https://getvibecodingcoach.com
1•torettoyoung•10m ago•1 comments

Open-Source Python Script Drives Social Media Phishing Campaign

https://reliaquest.com/blog/threat-spotlight-open-source-python-script-drives-social-media-phishi...
1•speckx•12m ago•0 comments

Show HN: I built a GPT that breaks logic into jokes

https://humoropedia.com/
1•RNMI•13m ago•0 comments

Show HN: I built an app to track Autopay bills and subscriptions in one place

https://play.google.com/store/apps/details?id=com.trackautopay.app&hl=en_US
1•vamsi9640•14m ago•0 comments

Poll: When will the thinking machines be destroyed?

1•Bender•15m ago•0 comments

Charity Majors - Bring Back Ops Pride

https://charitydotwtf.substack.com/p/bring-back-ops-pride
3•milkglass•15m ago•0 comments

Generating Shakespeare Without Neural Networks

https://nathan.rs/posts/shakespeare-n-gram/
4•nathan-barry•15m ago•0 comments

DSCI – dead simple CI – better testing call

http://deadsimpleci.sparrowhub.io/doc/demo
1•melezhik•16m ago•0 comments

Internet Archive's Storage

https://blog.dshr.org/2026/01/internet-archives-storage.html
2•zdw•16m ago•0 comments

Show HN: Xv6OS – A modified MIT xv6 with GUI

https://github.com/danko1122q/xv6-os
1•danko_os•16m ago•0 comments

Share and upvote startup ideas – Problem Hunt

https://twitter.com/raj_jagiasi/status/2013000466896998709
1•RJagiasi•17m ago•0 comments

Show HN: Web API with JavaScript rendering and prompt injection defense

https://quercle.dev
1•liran_yo•18m ago•0 comments

Should a Country Speak a Single Language? (2024)

https://www.newyorker.com/magazine/2024/11/25/should-a-country-speak-a-single-language
1•mooreds•18m ago•1 comments

MySQL 8.4 disables AHI – Why and What you need to know

https://kedar.nitty-witty.com/blog/mysql-8-4-disables-ahi-why-and-what-you-need-to-know
1•tanelpoder•20m ago•0 comments