frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•1y 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•1y 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•1y 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•1y 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•1y ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•1y ago
Agreed

Unearthing a 31 year old Easter egg in Ecco the Dolphin

https://32bits.substack.com/p/under-the-microscope-ecco-the-dolphin-98c
1•bbayles•27s ago•0 comments

Show HN: NYC's 349 CCTV feeds as a live crowd map

https://somodus.com/a/25e5b366a8033e5b147e8a9546ebd871
1•eric2025•1m ago•0 comments

RF Filter Design for ESP32-S3 – PCB Effects and EM Co-Simulation

https://dispatch.altivlabs.com/esp32-s3-rf-filter-design-part-2/
1•yourstruly-br•1m ago•0 comments

Stealing Reasoning Traces from Proprietary LLM APIs

https://arxiv.org/abs/2608.09867
1•shikharbhardwaj•2m ago•0 comments

LFM2.5-VL-3B: A Better and Faster Vision-Language Model for the Edge

https://www.liquid.ai/blog/lfm2-5-vl-3b
2•samstevens•3m ago•0 comments

South Africa's Eskom targets data centre 'gold rush' for its power surplus

https://www.ft.com/content/107b354b-ba03-44f2-9939-517cbcc11cd0
2•JumpCrisscross•4m ago•0 comments

The Railway Bubble vs. the AI Bubble (2025)

https://awealthofcommonsense.com/2025/11/the-railway-bubble-vs-the-ai-bubble/
1•mooreds•5m ago•0 comments

Show HN: Research on LLM Disagreement on Factual Claims

https://zenodo.org/records/21829261
1•kostaj•5m ago•1 comments

Circumstantial Complexity, LLMs and Large Scale Architecture

https://datagubbe.se/aiarch/
1•andsoitis•5m ago•0 comments

McDonald's built a 515-page dossier on one customer

https://www.wired.com/story/mcdonalds-built-a-515-page-dossier-on-me-it-says-ill-never-leave/
1•BlueBerry2001•6m ago•0 comments

Did poop enable the evolution of complex animals?

https://arstechnica.com/science/2026/08/feces-fueled-a-flurry-of-evolution-during-the-cambrian-st...
1•Brajeshwar•6m ago•0 comments

User Interfaces of the Demo Scene

https://datagubbe.se/scenegui/
1•andsoitis•6m ago•0 comments

Show HN: Monkey see, monkey do – reproduce text via native OCR on macOS

https://github.com/faheel/msmd
1•faheel•6m ago•0 comments

Simulated red blood cells and microscopy

https://lucasamoudruz.com/blog/red-blood-cells.html
1•amlucas•7m ago•0 comments

Singapore Airlines loses almost $800M on Air India bet

https://www.ft.com/content/5ed01c06-573f-4864-bc11-6cea70593197
1•JumpCrisscross•7m ago•0 comments

If the markets reject OpenAI and Anthropic, the US should nationalize them

https://www.theguardian.com/commentisfree/2026/aug/12/openai-anthropic-ai-models
1•andsoitis•8m ago•0 comments

GulliBench: Measuring Skepticism in Frontier Models

https://vetto.ai/companies/gullibench.html
5•rigelbm•8m ago•0 comments

Show HN: NoCrap – Gamifying porn addiction recovery

https://nocrap.vercel.app/
2•uioio•9m ago•0 comments

Obituary: AmigaDOS developer Dr. Tim King has passed away

https://amiga-news.de/en/news/AN-2026-08-00070-EN.html
2•doener•10m ago•0 comments

Reverse-engineering an abandoned capture box with AI (and where it failed)

https://chiptron.eu/reviving-old-unsupported-devices-with-ai-avermedia-game-capture-hd-ii/
1•smitka•10m ago•1 comments

80% of Investing Tools Have a Free Tier

https://www.findmymoat.com/stats/investing-tools
2•jera_value•11m ago•0 comments

Show HN: Cc-probeline – Claude Code status line with Fable limits and turn costs

https://github.com/labzink/cc-probeline
1•labzink•11m ago•1 comments

anti-slop: Opinionated Oxlint rules

https://github.com/dmmulroy/anti-slop
1•tosh•11m ago•0 comments

Teaching my kid to code with a modern MUD

https://tau.dev/2026/08/07/canon
1•andrewjanke•12m ago•0 comments

German advocacy group lodges criminal complaint over Meta AI glasses

https://www.reuters.com/legal/government/german-advocacy-group-lodges-criminal-complaint-over-met...
7•tartoran•13m ago•0 comments

Browsers and Earnings Statements

https://burruscompstrategies.com/blog/f/browsers-and-earnings-statements
2•robin_reala•13m ago•0 comments

Ghosthub: All your multiplexers in one native terminal

https://ghosthub.ai/
2•tosh•14m ago•0 comments

Show HN: Lucky Dangle – a lucky charm for your Mac

https://luckydangle.app/
2•kar-ma•14m ago•0 comments

I built a private YouTube thumbnail feed previewer

https://yt-thumbnail-preview.app/
2•houseofclipsss•14m ago•1 comments

Show HN: OpenMicroKbd: $40 open source alternative to Codex Micro Keyboard

https://openmicrokbd.org/
2•greatony•16m ago•0 comments