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

Fraudulent church data revealed AI's threat to polling

https://www.theguardian.com/technology/2026/mar/28/how-fraudulent-church-data-revealed-ais-threat...
1•cdrnsf•32s ago•0 comments

Ask HN: What Changed Your Life?

1•chistev•1m ago•0 comments

Show HN: Aurea v0.4, image codec where every constants derive from pi and phi

https://github.com/5ymph0en1x/Aurea
1•Symphoenix•1m ago•0 comments

I Survive Red Eyes

https://kiranrao.ca/2026/03/29/redeye.html
1•KiranRao0•1m ago•0 comments

The enshittification of Audre Lorde: "the Master's tools" in tech discourse

https://tarakiyee.com/on-the-enshittification-of-audre-lorde-the-masters-tools-in-tech-discourse/
1•fanf2•3m ago•0 comments

'Publishers won't stand a chance': literary world in struggle to detect AI

https://www.theguardian.com/technology/2026/mar/29/ai-written-books-novel-shy-girl-publishers
1•fallinditch•3m ago•0 comments

Scientists Create Novel Organism with Primitive Nervous System

https://now.tufts.edu/2026/03/16/scientists-create-novel-organism-primitive-nervous-system
1•geox•3m ago•0 comments

AI agents planned and built a system to monitor AI agents

https://ren.phytertek.com/blog/building-the-panopticon-from-inside/
1•ren_dispatches•5m ago•0 comments

Generative AI Can Harm Learning (2024)

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4895486
1•throw0101c•9m ago•0 comments

Astronaut's Condition That Led to Space Station Evacuation Remains a Mystery

https://www.nytimes.com/2026/03/28/science/space/nasa-astronaut-medical-evaluation.html
1•Brajeshwar•10m ago•1 comments

Aussie Awesomeness

https://cinemasojourns.com/2026/03/29/aussie-awesomeness/
1•jjgreen•13m ago•1 comments

Emacs-libgterm: Terminal emulator for Emacs using libghostty-vt

https://github.com/rwc9u/emacs-libgterm
1•signa11•13m ago•0 comments

Ask HN: Best stack for building a tiny game with an 11-year-old?

3•richardstahl•20m ago•3 comments

Fetch metadata request header – MDN

https://developer.mozilla.org/en-US/docs/Glossary/Fetch_metadata_request_header
1•theandrewbailey•20m ago•0 comments

The world of AI contributions in Open Source

https://robertjwebb.substack.com/p/the-absurd-world-of-ai-contributions
1•haburka•21m ago•0 comments

When prime numbers emerge from motion

https://nkode.gr/EN/articles/278/when-prime-numbers-emerge-from-motion
1•nomemory•22m ago•0 comments

Future of SWE: Efficiency, Learning Velocity, Small Teams, Reasoning

https://blog.rastrian.dev/post/the-future-of-software-engineering-efficiency-learning-velocity-sm...
1•simonpure•23m ago•0 comments

Police used AI facial recognition to wrongly arrest TN woman for crimes in ND

https://www.cnn.com/2026/03/29/us/angela-lipps-ai-facial-recognition
12•ourmandave•25m ago•4 comments

One ant for $220: The new frontier of wildlife trafficking

https://www.bbc.com/news/articles/cg4g44zv37qo
1•ranit•26m ago•0 comments

The Marvelous Misunderstanding of Miss Mustard Oil (2022)

https://sites.bu.edu/gastronomyblog/2022/05/18/the-marvelous-misunderstanding-of-miss-mustard-oil/
1•indigodaddy•27m ago•0 comments

Reflections on the State of the Software and AI Market

https://x.com/loganbartlett/article/2037638091671035994
1•born2web•27m ago•0 comments

Twelve Dimensional Chess is Stupid (2018)

https://www.gilgamath.com/twelve_dimensional_chess.html
4•Tomte•27m ago•0 comments

Initweave – build your Emacs init.el

https://www.initweave.com/
1•signa11•28m ago•0 comments

Moving Towards Determinism with LLMs

https://evgeniipendragon.com/posts/moving-towards-determinism-with-llms/
2•EPendragon•30m ago•0 comments

Show HN: 2.7KB Zig WASM – live globe showing executions at 300 CF edges

https://mcpaas.live/globe
14•wolfejam•31m ago•12 comments

Probability two skaters are equal, to 3rd decimal places, after 4 distances?

https://arxiv.org/abs/2603.19300
1•johnbarron•31m ago•0 comments

gRPC wrapper service for Pi4J 4.x.x

https://github.com/bsautner/krill-oss/tree/main/pi4j-ktx-service
1•bsautner•32m ago•1 comments

The literacy you need for AI literacy

https://paulgraham.com/read.html
3•kurren•33m ago•1 comments

Security Analysis of the Official White House iOS App

https://www.atomic.computer/blog/white-house-app-security-analysis/
1•be_erik•34m ago•0 comments

Number of AI chatbots ignoring human instructions increasing, study says

https://www.theguardian.com/technology/2026/mar/27/number-of-ai-chatbots-ignoring-human-instructi...
1•croes•36m ago•0 comments