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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

Swift on Nvidia Jetson

https://mihaichiorean.com/blog/hard-part-of-swift-on-jetson/
1•mihaichiorean•16s ago•0 comments

Musk Testifies OpenAI Was Created as Nonprofit to Counter Google

https://www.cnbc.com/2026/04/28/openai-trial-elon-musk-sam-altman-live-updates.html
2•m463•5m ago•0 comments

Voxels in R3forth

https://www.reddit.com/r/Forth/s/wf7M7hV779
1•rickcarlino•7m ago•0 comments

State Dept. Finalizing Plan to Put Trump Picture on U.S. Passports

https://www.thebulwark.com/p/exclusive-state-dept-finalizing-plan
3•mikhael•7m ago•0 comments

Warp is now open-source

https://twitter.com/zachlloydtweets/status/2049154460039979268
1•dsr12•7m ago•1 comments

Personal Loan EMI Calculator – Check EMI Online – SMFG India Credit

https://www.smfgindiacredit.com/personal-loan-emi-calculator.aspx
1•saumyaraut11•18m ago•0 comments

AI Sandboxes with Memory

1•ajaysheoran2323•19m ago•0 comments

Google co-founder Sergey Brin says he fled socialism, rips billionaire tax

https://nypost.com/2026/04/27/us-news/google-co-founder-sergey-brin-says-he-fled-socialism-in-sta...
3•1vuio0pswjnm7•19m ago•3 comments

Omeka S: a platform for digital cultural heritage collections and resources

https://omeka.org/s/
1•the-mitr•19m ago•0 comments

Artificial Inteligence that works (maybe)

https://github.com/thepoorsatitagain/Artificial-Inteligence-that-works-maybe-./blob/main/README.md
1•thepoors•21m ago•0 comments

icloud-backup: The iCloud backup tool I always wanted

https://github.com/evantahler/icloud-backup
3•evantahler•22m ago•1 comments

Affinity gatekeeps MCP server; only available for Claude

https://www.affinity.studio/help/ai-connector-setup/
2•nik5•27m ago•2 comments

ChatGPT/Gemini can now draw on your screen to help you navigate complex software

https://sketchvlm.github.io/
4•septisum•29m ago•1 comments

Show HN: Plonk.world – Daily Geography Game

https://plonk.world/
1•plonk-er•32m ago•1 comments

Website is your first agent

https://nedkarlovich.com/writing/your-website-is-your-first-agent
1•birdwhistler•34m ago•0 comments

Ask HN: Google Account Is Being Deleted

2•14•37m ago•0 comments

Built a small side project to solve a tiny daily pain point

1•bbsclub•38m ago•0 comments

GitHub uses eBPF to improve deployment safety

https://github.blog/engineering/infrastructure/how-github-uses-ebpf-to-improve-deployment-safety/
1•geoffbp•38m ago•0 comments

Why AI Startup Offices in NYC Are Flashy but Mostly Empty

https://www.wsj.com/real-estate/commercial/why-ai-startup-offices-in-nyc-are-flashy-but-mostly-em...
1•petethomas•40m ago•0 comments

Full List of Cars with Soy-Based Wiring (2026 Update)

https://www.box-kat.com/blogs/box-kat-blog/full-list-of-cars-with-soy-based-wiring-2025-update
2•thunderbong•43m ago•0 comments

The versioned filesystem for AI agents

https://coregit.dev
2•AlenzhanJ•45m ago•1 comments

Show HN: Docktor – I put live window previews and widgets on the macOS 26 Dock

https://petercsauer.github.io/docktor-releases/
1•petercsauer•45m ago•0 comments

After the AI Crash: A Proposal, from the Vanderbilt Policy Accelerator

https://vanderbiltpolicyaccelerator.substack.com/p/after-the-ai-crash
1•adityaathalye•47m ago•0 comments

Crystal Sapphire Pokemon: Claude Code (Opus 4-7) vs. Codex (GPT 5.5)

https://www.twitch.tv/pokemon_race
1•oelmgren•47m ago•0 comments

Why Capitalism Can't Survive AI

https://www.newconsensus.com/blog/series/why-capitalism-cant-survive-ai
4•kjohnston71•53m ago•0 comments

Instacart co-founder launches hedge fund backing AI agents

https://www.privatebankerinternational.com/news/instacart-co-founder-launches-hedge-fund-backing-...
1•nlpnerd•58m ago•0 comments

Temperature Trends in India

https://www.dataforindia.com/temperature-trends-in-india/
2•neehao•59m ago•0 comments

AdaExplore: Search for Efficient Kernel Generation

https://stiglidu.github.io/AdaExplore/
1•matt_d•1h ago•0 comments

Sparkit: A Research Agent in an API

https://sparkit.science
2•JLSteenwyk•1h ago•0 comments

Britain Has a Tiny-Window Epidemic, and Old Ladies Are to Blame

https://www.wsj.com/world/britain-has-a-tiny-window-epidemic-and-old-ladies-are-to-blame-9ece9791
3•cwwc•1h ago•0 comments