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

Show HN: Agent wrapped, like Spotify wrapped

https://swarmpack.github.io/landing-page/
1•dheerusha_•30s ago•0 comments

NASA targets Artemis II crewed moon mission for April 1 launch

https://www.npr.org/2026/03/12/nx-s1-5746128/nasa-artemis-ii-april-launch
1•Brajeshwar•1m ago•0 comments

"Taxing the Threat Actors"

https://snowfroc.com/
1•mooreds•1m ago•0 comments

Vulnerabilities found in satellite receiver IDC SFX2100

https://www.abdulmhsblog.com/posts/sfx2100-vulns/
2•Harvesterify•2m ago•0 comments

Ask HN: Should HN update this site guideline?

2•throwaway23293•2m ago•0 comments

FontCraft – create a font from your handwriting directly in the browser

https://fontcraft.app
1•richardcrosby•2m ago•1 comments

Magic Behind Vite Task Cache

https://twitter.com/branchseer/status/2032464454747893976
1•branchseer•2m ago•0 comments

Notes on Twins Vol. 1 – Fifty Days

https://roryflint.substack.com/p/notes-on-twins-vol-1
1•mrroryflint•3m ago•0 comments

How Russia's new elite hit squad was compromised

https://theins.ru/en/inv/290235
1•mudil•4m ago•0 comments

Compress 100 images in batch to target size online

https://bulkimagecompressor.online
1•jaylew1997•6m ago•0 comments

Court Dismisses DISH's $25M IPTV Piracy Lawsuit Against UK Hosting Provider

https://torrentfreak.com/court-dismisses-dishs-25-million-iptv-piracy-lawsuit-against-uk-hosting-...
2•gslin•7m ago•0 comments

SRT vs. MOQT: Low-Latency Video Transport Comparison

https://www.red5.net/blog/srt-vs-moqt/
1•mondainx•7m ago•0 comments

Flightplanner: Spec-driven E2E testing for the age of AI agents

https://endor.dev/blog/introducing-flightplanner
1•ereslibre•9m ago•0 comments

Investigation: How Russian government assassin was undone by Google Translate

https://twitter.com/i/status/2032451007355953178
1•mudil•12m ago•0 comments

OpenViking – A Context DataBase for AI Agents

https://openviking.ai/
1•lab14•12m ago•1 comments

Show HN: Mesa – A collaborative canvas IDE built for agent-first development

https://www.getmesa.dev/
4•visekr•13m ago•0 comments

Show HN: UberSKILLS – Open-source Workbench for building AI agent SKILLS

https://github.com/uberskillsdev/uberskills
1•felltrifortence•13m ago•0 comments

Openreach trials 'pioneering' fibre-optic water leak detection

https://www.computerweekly.com/news/366640252/Openreach-trials-pioneering-fibre-optic-water-leak-...
1•beardyw•14m ago•1 comments

Iran War Impact on Helium

https://twitter.com/typesfast/status/2032468138768629959
1•tosh•14m ago•0 comments

Hunter Alpha – 1T parameter and 1M token context window AI model

https://openrouter.ai/openrouter/hunter-alpha
1•MaKey•14m ago•1 comments

How to Build an ML Framework in Rust, from Scratch, in a Weekend

https://www.erikkaum.com/blog/zml/
1•erikkaum•15m ago•1 comments

Show HN: A 3-line wrapper that enforces deterministic security for AI agents

1•tonyww•15m ago•0 comments

Meta Platforms: Lobbying, Dark Money, and the App Store Accountability Act

https://github.com/upper-up/meta-lobbying-and-other-findings
3•SilverElfin•16m ago•1 comments

Base25 – Feedback, roadmap, and changelog in one place

https://www.base25.app
1•grayscale-dev•16m ago•1 comments

I built a real-time operating system from scratch

https://github.com/skaiui2/SKRTOS_sparrow
1•skaiuijing•16m ago•2 comments

GIMP: The Movie (2026) – Official Trailer [video]

https://www.youtube.com/watch?v=rs56ILRcYTg
1•robenkleene•16m ago•0 comments

Show HN: Open-source CLIs for Procore and EagleView (construction software APIs)

https://www.opsrev.ai/blog/open-source-construction-clis/
2•sv123•17m ago•0 comments

AFIM: Academic Fraud Inclination Metric

https://www.alexalemi.com/arxiv-metric/docs.html?page=readme
1•mpweiher•17m ago•0 comments

Show HN: Gohpts-IPv4/IPv6/TCP/UDP Transparent Proxy with ARP/NDP/Rdnss Spoofing

https://github.com/shadowy-pycoder/go-http-proxy-to-socks
1•shadowy-pycoder•17m ago•0 comments

Atomic Britain: UK plans regulatory reset to boost nuclear power

https://www.theregister.com/2026/03/13/uk_to_push_nuclear_reset/
1•Bender•19m ago•0 comments