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

Guix System First Impressions as a Nix User

https://nemin.hu/guix.html
1•todsacerdoti•3m ago•0 comments

My homelab without public internet exposure

https://giuliomagnifico.blog/post/2026-01-02-homelab-stack-lan/
2•giuliomagnifico•8m ago•0 comments

Feed of Videos with Zero Context [videos]

https://wwwinfinijest.com
4•hnthrowawaste•10m ago•0 comments

Show HN: I made a one-click Chrome extension to export bookmarks as JSON

https://chromewebstore.google.com/detail/bookmark-cleaner-find-rem/nikggaojcpnfiagmdpfcdefcdghdedpd
1•dwasil•12m ago•0 comments

Show HN: Video Listen and Learn – Practice listening with movie clips

https://64k.net/video-listen
1•UtopiaRC•15m ago•0 comments

What's wrong with my digital products?

https://malvik.de
1•svenmalvik•20m ago•1 comments

AppleUnsold – The Apple products they won't sell you

https://appleunsold.com
1•reaperducer•21m ago•0 comments

The ADHD founder's survival guide

https://www.skunkworks.build/p/the-adhd-founders-survival-guide
2•stared•21m ago•0 comments

Bill Burr on Why Men Will Choose Robots over Women [video]

https://www.youtube.com/watch?v=XU9Ymeovx1U
1•keepamovin•25m ago•0 comments

Are We Claudemaxxing?

https://claudemaxxing.org/
4•namdao2000•26m ago•0 comments

Nvidia's plan to invest up to $100B in OpenAI has stalled

https://www.reuters.com/business/nvidias-plan-invest-up-100-billion-openai-has-stalled-wsj-report...
3•carlos-menezes•26m ago•0 comments

The (AI) Nature of the Firm

https://camerongordon0.substack.com/p/the-ai-nature-of-the-firm
2•iciac•29m ago•0 comments

"Giving up upstream-ing my patches & feel free to pick them up"

https://mail.openjdk.org/pipermail/hotspot-dev/2026-January/118080.html
2•csmantle•32m ago•0 comments

Ancient Greek statues were painted

https://bigthink.com/high-culture/greek-statues-painted/
1•wolfi1•33m ago•0 comments

How to improve your productivity by 200% in just 9 months

https://www.jorgegalindo.me/en/blog/posts/how-to-improve-your-productivity-by-200-in-just-9-months
1•jorgegalindo•37m ago•2 comments

Melania PG, Now Playing, 1h 44M, Documentary

https://www.rottentomatoes.com/m/melania
5•GreenSalem•38m ago•4 comments

Show HN: Afelyon – open-source AI agent that turns Jira tickets into GitHub PRs

https://afelyon.com/
1•AbduNebu•44m ago•0 comments

How Upc Barcodes Work

https://craigball.net/2021/01/25/understanding-the-upc-because-you-can/
1•asaiacai•44m ago•0 comments

Paper Notes – NanoLog – A Nanosecond Scale Logging System

1•carzzyDev•48m ago•0 comments

Show HN: Thought to tweet in 30sec – learns your voice (founder pricing forever)

https://trumpet.house
1•chrislxy•50m ago•0 comments

Euro firms must ditch Uncle Sam's clouds and go EU-native

https://www.theregister.com/2026/01/30/euro_firms_must_ditch_us/
15•jamesblonde•51m ago•0 comments

Show HN: Wanderlust-Rust daemon nukes Windows PATH bloat every 30 min

https://github.com/Michael-A-Kuykendall/wanderlust
1•MKuykendall•52m ago•0 comments

Show HN: LibreBlog – privacy-first, in-browser SSG with citation/RIS import

https://github.com/LibreBlogOrg/LibreBlog
1•libreblog•53m ago•0 comments

htmx: Server Sent Event (SSE) Extension

https://htmx.org/extensions/sse/
11•tosh•54m ago•2 comments

METR releases Time Horizon 1.1 with 34% more tasks

https://metr.org/blog/2026-1-29-time-horizon-1-1/
1•mustaphah•56m ago•0 comments

Tell HN: Kimi AI builds persistent profiles from your conversations

2•csomar•1h ago•0 comments

Show HN: Npmtraffic – mobile-friendly NPM download stats with daily tables

https://npmtraffic.com
1•quietbyte•1h ago•0 comments

This cute AI-generated schoolgirl is a growing far-right meme

https://www.cnn.com/2026/01/31/uk/amelia-meme-ai-far-right-intl-scli
3•breve•1h ago•0 comments

Show HN: New CLI tool to count tokens locally

https://github.com/zahidcakici/tokenizer-cli
2•zahidcakici•1h ago•0 comments

Praxis Nation

https://www.praxisnation.com/
1•xg15•1h ago•1 comments