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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•10mo ago
Agreed

Video Encoding and Decoding with Vulkan Compute Shaders in FFmpeg

https://www.khronos.org/blog/video-encoding-and-decoding-with-vulkan-compute-shaders-in-ffmpeg
1•y1n0•2m ago•0 comments

Libgoc: A Go-style CSP concurrency runtime for C

https://github.com/divs1210/libgoc
1•divs1210•3m ago•1 comments

Avian Physics 0.6

https://joonaa.dev/blog/12/avian-0-6
1•y1n0•3m ago•0 comments

I scraped and organized 50k Shopify stores into a dataset

1•nazbasho•5m ago•1 comments

AI still doesn't work well, businesses are faking it, and a reckoning is coming

https://www.theregister.com/2026/03/17/ai_businesses_faking_it_reckoning_coming_codestrap/
2•samizdis•8m ago•0 comments

Show HN: Autonomous Prover Running > 1hr

https://perqed.com/minutiae/
1•bneb-dev•8m ago•0 comments

AI error jails innocent grandmother for months in Fargo fraud case

https://www.inforum.com/news/fargo/ai-error-jails-innocent-grandmother-for-months-in-fargo-case
2•YeGoblynQueenne•11m ago•0 comments

In Deep-Red Idaho, a Republican Rift over Schools and 'Parental Choice'

https://www.nytimes.com/2026/03/16/us/idaho-education-republican-rift.html
1•duxup•11m ago•1 comments

The psychedelic that distorts hearing

https://psychedelirium.substack.com/p/the-psychedelic-that-distorts-hearing
2•yenniejun111•14m ago•0 comments

OpenAI to cut back on side projects to focus on core business

https://www.reuters.com/business/openai-cut-back-side-projects-focus-core-business-wsj-reports-20...
1•dev_tty01•16m ago•0 comments

Show HN: An open-source safety net for home hemodialysis

https://safehemo.com/
1•qweliantanner•16m ago•0 comments

Synthetic Training Data for Autonomous Grasping of Lunar Regolith Bags

https://www.mdpi.com/2226-4310/13/2/204
1•PaulHoule•17m ago•0 comments

Executable Archaeology

https://arxiv.org/abs/2603.13514
1•abrax3141•18m ago•0 comments

Show HN: Platform-aware script runner for Node.js projects

https://github.com/carlos-menezes/target-run
1•carlos-menezes•21m ago•0 comments

Scientists discover genetics behind leaky brain blood vessels in Rett syndrome

https://news.mit.edu/2026/scientists-discover-genetics-leaky-brain-blood-vessels-rett-syndrome-0313
1•gmays•23m ago•0 comments

Support Vector Machine in JavaScript by Andrej Karpathy (2012)

https://cs.stanford.edu/~karpathy/svmjs/demo/
1•vismit2000•24m ago•0 comments

Using Quarto to Write a Book

https://kieranhealy.org/blog/archives/2026/03/09/using-quarto-to-write-a-book/
1•jprs•24m ago•0 comments

OpenUI – The Open Standard for Generative UI

https://www.openui.com/
1•reimertz•24m ago•0 comments

Metadeception: The Truth About Oz Pearlman [video]

https://www.youtube.com/watch?v=FnwcU-XDyJ4
1•nomilk•28m ago•0 comments

Show HN: Avalon - Synthetic FHIR R4 patient data as OMOP CDM 5.4 views

https://github.com/foxtrotcommunications/foxtrotcommunications-avalon
1•brady_bastian•28m ago•0 comments

Why Are Normal Distributions Normal?

https://www.journals.uchicago.edu/doi/10.1093/bjps/axs046
1•bediger4000•28m ago•0 comments

Show HN: Self-orchestrating engineering team for Claude Code

https://github.com/navox-labs/agents
1•nahrin•31m ago•0 comments

Show HN: Dilly Labs – structured vendor selection for banks and credit unions

https://www.dillylabs.com
1•reallykanishka•35m ago•0 comments

Do political social media ads influence the outcome of elections?

https://phys.org/news/2026-03-political-social-media-ads-outcome.html
1•pseudolus•36m ago•0 comments

What if California is the most regressive state in America?

https://maxmautner.com/2026/03/09/california-regressive.html
3•mslate•40m ago•0 comments

A Nix Flake Using Literate Programming with Org Mode

https://github.com/natsukium/dotfiles
1•rrvsh•41m ago•0 comments

Show HN: I turned my Claude Max subscription into a 24/7 AI company

https://github.com/Ramsbaby/claude-discord-bridge
1•ramsbaby•45m ago•0 comments

Show HN: CEL v0.2 Pro – cryptographic black box recorder for AI systems (Python)

https://github.com/GhurtSky-GR13/colchis-log
1•GhurtSky•46m ago•0 comments

Lightweight Linux flow data collector

https://github.com/stepbrobd/rfm
1•StepBroBD•46m ago•0 comments

SignalFarm – a web app for prompt-driven song mixing

https://signalfarm.io/
1•ronpastore•47m ago•0 comments