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

Show HN

https://isitartstudio.com
1•is-it-art•21s ago•0 comments

Deployer V8

https://deployer.org/blog/deployer-v8
1•medv•39s ago•0 comments

No Idle GPUs: Managing Research Compute at Runway

https://runwayml.com/news/no-idle-gpus-managing-research-compute-at-runway
1•nielka•1m ago•0 comments

Uptime Golf

https://anderegg.ca/2026/04/27/uptime-golf
1•GavinAnderegg•4m ago•0 comments

DeepSeek-V4 arrives with near SotA intelligence at 1/6th the cost

https://venturebeat.com/technology/deepseek-v4-arrives-with-near-state-of-the-art-intelligence-at...
2•OutOfHere•4m ago•0 comments

LLMs and the Adversarial Loop

https://myers.io/2026/04/15/LLMs-and-the-Adversarial-loop/
1•dalemyers•5m ago•0 comments

The World Can't Keep Up with AI Labs

https://www.greaterwrong.com/posts/fewDbvpKMZLgGuWT2/the-world-can-t-keep-up-with-ai-labs
1•gmays•9m ago•0 comments

Bubbles

https://bubbles.town/
2•sonicrocketman•10m ago•0 comments

Show HN: Archik – architecture diagrams as YAML, with a Claude Code skill

https://github.com/bacharSalleh/archik
1•bacharsalehov•11m ago•0 comments

Can Musk force OpenAI to stay a nonprofit? AI's most anticipated trial starts

https://arstechnica.com/tech-policy/2026/04/musk-and-altman-face-off-in-trial-that-will-determine...
2•chhum•15m ago•0 comments

We retired an AI agent through a formal hearing

https://gist.github.com/david-steel/92fe0d4abb610303a3da0613ad5710d4
1•dsteel•17m ago•0 comments

The quiet power of headphones for people with autism

https://www.rnz.co.nz/life/wellbeing/the-quiet-power-of-headphones-for-people-with-autism
5•billybuckwheat•17m ago•0 comments

Entering the Post-Prompting World

https://blog.southparkcommons.com/p/entering-the-post-prompting-world
1•nadis•21m ago•0 comments

Show HN: A small hook to prevent agents from destructive things

https://gist.github.com/natew/3ff0751f26195e4e6b9927473595f5fe
1•nwienert•21m ago•0 comments

Ask HN: Will fixed applications become a thing of the past with agentic AI?

4•ex-aws-dude•21m ago•0 comments

Matter, Thread and Zigbee: What IoT Developers Need to Know Before Choosing

https://electronicsconsult.com/blog/matter-thread-zigbee-what-iot-developers-need-to-know-before-...
1•OOHehir•22m ago•0 comments

Series Raised $5.1M to Put Warm Intros in iMessage

https://www.siliconsnark.com/series-raised-5-1-million-to-put-warm-intros-in-imessage/
1•SaaSasaurus•22m ago•0 comments

(Morgan) Supersport 400

https://morgan-motor.com/news/introducing-supersport-400/
1•gnabgib•22m ago•0 comments

Zero-config Go heap profiling

https://coroot.com/blog/zero-config-go-heap-profiling/
2•valyala•24m ago•0 comments

An eBay Outage is Underway [reddit Megathread]

https://old.reddit.com/r/Ebay/comments/1sxbik2/ebay_outage_megathread/
2•WarOnPrivacy•25m ago•0 comments

Spotify Launches Fitness Hub with 1,400 Peloton Workouts

https://newsroom.spotify.com/2026-04-27/spotify-fitness-workouts-peloton/
1•7777777phil•26m ago•0 comments

Version Sentinel – Claude Code plugin that blocks outdated dependency installs

https://github.com/KSEGIT/Version-Sentinel
1•dupadupa234•28m ago•0 comments

Message Brokers Are Modern Grids

https://yusufaytas.com/message-brokers-are-modern-grids
1•birdculture•29m ago•0 comments

Longevity Science Is Overhyped. But This Research Could Change Humanity

https://www.nytimes.com/2026/04/27/magazine/cell-rejuventation-biotech-longevity-research-altos-l...
1•wjb3•30m ago•0 comments

Three men are facing 44 charges in Toronto SMS Blaster Arrests

https://www.tps.ca/media-centre/stories/unprecedented-sms-blaster-arrests/
5•gnabgib•31m ago•0 comments

Ask HN: Best way to escalate critical GAS bug ignored by Google

1•civeng•32m ago•0 comments

CinemaCLIP: A hybrid CLIP model for the visual language of cinema

https://www.ozu.ai/cinemaclip/
5•rsomani95•37m ago•1 comments

Rick and Morty Tried to Warn Us About Agentic AI

https://jadarma.github.io/blog/posts/2026/04/rick-and-morty-tried-to-warn-us-about-agentic-ai/
1•tymscar•37m ago•0 comments

Softmax, can you derive the Jacobian? And should you care?

https://idlemachines.co.uk/essays/softmax
1•smaddrellmander•37m ago•0 comments

The origin of human eyes traces back to an ancient "cyclops"

https://www.sciencedaily.com/releases/2026/04/260426012308.htm
2•yusufaytas•37m ago•0 comments