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•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

I put Codex and Claude into a tank arena. Codex is winning 55% so far

https://old.reddit.com/r/codex/comments/1tgbb28/comment/omfo1by/
1•mazzystar•6m ago•0 comments

KiviDB – In Memory Store

https://kividb.io/
1•_nvp•8m ago•1 comments

Nobody understands the point of hybrid cars [video]

https://www.youtube.com/watch?v=KnUFH5GX_fI
1•CHB0403085482•9m ago•0 comments

Show HN: A CLI command to test internet speed

https://pypi.org/project/tracerate
1•rushil_b_patel•12m ago•0 comments

Litterbox: Somewhat Isolated Development Environments [video]

https://www.youtube.com/watch?v=OMCWs7qmKFc
1•Gerharddc•12m ago•1 comments

I built an AI vulnerability scanner with Claude and Codex. It failed

https://github.com/janitor-security/the-janitor
1•GhrammR•14m ago•0 comments

RCE and arbitrary file write in Vitess vtbackup via untrusted MANIFEST fields

https://neurowinter.com/security/2026/05/18/RCE-and-arbitrary-file-write-in-Vitess-vtbackup-via-u...
1•NeuroWinter•17m ago•0 comments

The Infinite Policeman – Preliminary Movement

https://medium.com/luminasticity/the-infinite-policeman-preliminary-movement-5038a293c1f2
1•bryanrasmussen•20m ago•0 comments

Playing with Jupyter style playbooks that work with Claude Code

https://old.reddit.com/r/ClaudeCode/comments/1tgdvex/playing_with_jupyter_style_playbooks_that_work/
1•bgnm2000•21m ago•0 comments

Building a Micro-Drilling Machine [video]

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

Better CSS fluid sizing with round()

https://ishadeed.com/article/css-round/
1•BaudouinVH•25m ago•0 comments

Void Room – an offline writing app that does nothing on purpose

https://noirsonance.com/product/void-room/
1•Rimedag•26m ago•0 comments

Your Evals Will Break and You Won't See It Coming

https://wanglun1996.github.io/blog/your-evals-will-break.html
1•muggermuch•26m ago•0 comments

DeerFlow 2.0 – Deep Exploration and Efficient Research Flow

https://github.com/bytedance/deer-flow
1•epaga•27m ago•0 comments

More than 100 UK datacentres plan to burn gas to generate electricity

https://www.theguardian.com/business/2026/may/18/uk-datacentres-plan-to-burn-gas-to-generate-elec...
2•pera•31m ago•0 comments

SFC vs. Vizio Ruling on General Public License Compliance

https://www.dlapiper.com/en-us/insights/publications/2026/01/sfc-v-vizio-ruling-on-general-public...
1•beckford•33m ago•0 comments

Animated 3D map of Chongqing metro [video]

https://www.bilibili.com/video/BV16Z421W7o3/?spm_id_from=333.1387.homepage.video_card.click
1•decimalenough•34m ago•1 comments

2ality Blog: Temporarily Offline because of AI

https://2ality.com
1•tbassetto•35m ago•0 comments

Old Kindle e-readers will stop working on May 20th

https://goodereader.com/blog/kindle/old-kindle-e-readers-will-stop-working-on-may-20th
2•kozmonaut•36m ago•0 comments

Ask HN: Which AI harness comes close to Claude Code?

1•shivang2607•36m ago•0 comments

Code Orange: Fail Small is complete. The result is a stronger Cloudflare network

https://blog.cloudflare.com/code-orange-fail-small-complete/
2•thewisenerd•40m ago•0 comments

`Never-ending' AI slop strains corporate hacking reward schemes

https://www.ft.com/content/dbec4441-02dc-4053-8500-85677973d324
2•1vuio0pswjnm7•45m ago•1 comments

Spring Physics in my Word Game? A technical deep dive into SvelteJS animations

https://colechamberlin.substack.com/p/spring-physics-in-my-word-game
2•jessecoleman•47m ago•0 comments

Ask HN: Favorite In-Depth Deep Dives

4•vsupalov•47m ago•1 comments

Defence Tech Jobs for the week of 2026-05-18

https://defencetechjobs.substack.com/p/defence-tech-jobs-for-the-week-of-561
4•hnsa•51m ago•0 comments

Hacking a weird TV censoring device [video]

https://www.youtube.com/watch?v=a6EWIh2D1NQ
3•goodmythical•1h ago•0 comments

AI Eats the World (2026)

https://www.ben-evans.com/presentations
3•andrewjb•1h ago•0 comments

RAG vs. Fine-Tuning – The Question Every AI Builder Gets Wrong

https://thingswithai.org/posts/rag-vs-fine-tuning
2•UtkarshPatel13•1h ago•0 comments

Wayland Compositor in Minecraft [video]

https://www.youtube.com/watch?v=cTkEM7b0IQw
1•bigyabai•1h ago•0 comments

Stanford AA228V: Validation of Safety Critical Systems (2025)

https://www.youtube.com/playlist?list=PLoROMvodv4rOq1LMLI8U7djzDb8--xpaC
2•imakwana•1h ago•1 comments