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

IP Crawl: Living atlas of open webcams discovered on the public internet

https://ipcrawl.com/
1•arm32•2m ago•0 comments

Best IPTV Apps for 2026 – Tested on Fire TV, Android, and iOS

https://xtreamcode.tv/blog/best-iptv-apps-2026
1•nathany664•2m ago•0 comments

EA Advertising will let brands 'integrate' ads into games

https://www.pcgamer.com/gaming-industry/say-hello-to-ea-advertising-which-will-let-your-favourite...
1•thm•3m ago•0 comments

Show HN: Kimün – A TUI note taking app Obsidian compatible and Vim friendly

https://github.com/nico2sh/kimun
1•pnikosis•4m ago•0 comments

Iroh 1.0

https://www.iroh.computer/blog/v1
3•chadfowler•7m ago•0 comments

It Is Trivially Easy to Use Reddit to Manipulate AI Search, Research Suggests

https://www.404media.co/it-is-trivially-easy-to-use-reddit-to-manipulate-ai-search-research-sugge...
4•Brajeshwar•7m ago•0 comments

Yottasynth, an open-source synthesizer with Persian microtonal tuning support

https://github.com/yottanami/yottasynth
1•yottanami•8m ago•0 comments

Show HN: Treenix. Typed runtime for humans and agents

https://github.com/treenix-io/treenix
1•treenix_io•9m ago•0 comments

My Homelab AI Dev Platform

https://rsgm.dev/post/ai-dev-platform/
2•rsgm•10m ago•0 comments

Token-saviour – routing skill for AI agent tool selection (~70% fewer tokens)

https://github.com/vagkaratzas/skills/blob/main/token-saviour/SKILL.md
1•vagkaratzas•11m ago•0 comments

BM25 vs. Vector vs. Hybrid Search

https://search.playground.weaviate.io/
1•plurby•12m ago•0 comments

Modrinth Joins Spark Universe

https://modrinth.com/news/article/joining-spark-universe
2•EDM115•13m ago•0 comments

Americans Aren't Money Savvy, and They're Only Getting Worse

https://www.nytimes.com/2026/06/12/your-money/americans-financial-knowledge.html
1•MattSayar•14m ago•0 comments

Savearoundtrip: Publish an HTTPS DNS record, skip a round trip

https://savearoundtrip.com/
2•robin_reala•16m ago•0 comments

Tcom: ASCII Video Chats from the Terminal

2•smalltorch•17m ago•0 comments

Companies are scrambling to curtail soaring AI costs

https://www.economist.com/business/2026/06/14/companies-are-scrambling-to-curtail-soaring-ai-costs
1•achenet•18m ago•0 comments

Aegis: A Backup Reflex for Physical AI

https://arxiv.org/abs/2606.06660
1•josefchen•18m ago•0 comments

MemSoph

https://memsoph.ai/
1•ParkinEasy•19m ago•0 comments

Anthropic to meet with Trump administration over Mythos dispute

https://www.cnbc.com/2026/06/15/anthropic-mythos-trump-ai.html
2•cebert•19m ago•0 comments

Semi-solid batteries emerge as safer lithium-ion alternative

https://www.techbuzz.ai/articles/semi-solid-batteries-emerge-as-safer-lithium-ion-alternative
1•Vaslo•20m ago•0 comments

Show HN: Mood

https://mood.lasagna.pizza/
1•kinduff•20m ago•0 comments

Ask HN: How do you deal with the feeling of "loss of control" with AI coding?

2•xiaoyu2006•22m ago•2 comments

Show HN: AI Metrics, Visually

https://barvhaim.github.io/visual-ai-metrics/
2•bignet•22m ago•0 comments

Ocean monitoring network of 900 sensors meant for 20 years is being dismantled

https://apnews.com/article/ocean-observatories-initiative-trump-congress-9b306cb05ec3c824f5e03482...
2•ck2•24m ago•0 comments

Fox Is Buying Roku

https://www.fastcompany.com/91559558/fox-corp-buying-roku-stock-prices-fall-on-tv-streaming-merger
14•simonebrunozzi•24m ago•1 comments

Show HN: Hammermind – Game-ready pixel art and audio files from a single prompt

https://hammermind.com
1•cryptohammer•24m ago•0 comments

Cancelled Xbox 360 version of GoldenEye 007 gets recompiled for PC – no emulator

https://github.com/SunJaycy/GoldenEye-Recomp
1•HelloUsername•24m ago•0 comments

Sakana AI Launches Its First Commercial Product, Sakana Marlin

https://sakana.ai/marlin-release/#English
1•hardmaru•24m ago•0 comments

Gliderboy Reinvents Humble Weather Balloon with Flight Home

https://www.bloomberg.com/news/newsletters/2026-06-15/-gliderboy-reinvents-weather-balloon-with-r...
1•kejaed•24m ago•0 comments

The most complete citizen participation tool for a democratic government

https://consuldemocracy.org/
1•snowpid•28m ago•0 comments