frontpage.
newsnewestaskshowjobs

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

NIST: Small Business Cybersecurity Corner

https://www.nist.gov/itl/smallbusinesscyber
1•rramadass•1m ago•0 comments

Show HN: Tempo Match – find a Spotify song at any BPM

https://tempo-match.hadalin.me/
1•supr_strudl•2m ago•0 comments

The Internals of a Badbox Operation

https://synthient.com/blog/the-internals-of-a-badbox-operation
1•ersinesen•6m ago•0 comments

Autonomous Agents Need Mandatory Access Control

https://www.legiscope.com/blog/autonomous-agents-mandatory-access-control.html
2•Thiebaut•8m ago•1 comments

Drama Studio: local realistic text-to-speech synthesis engine for Apple Silicon

https://github.com/maralski/drama-studio
1•maralski•9m ago•0 comments

Remote Jobs API – one JSON API for 70 remote job boards (1.4M+ live listings)

https://remote-jobs-api.tten.no
1•earnnova-dev•9m ago•0 comments

The quest for immortality has become serious business

https://economist.com/business/2026/11/02/the-quest-for-immortality-has-become-serious-business
1•andsoitis•9m ago•0 comments

Show HN: WorkProof – Discover Fresh Global Work Opportunities

https://www.worknproof.online/
1•Vakra•10m ago•0 comments

Ask HN: How are you protecting your apps and infra after recent vulnerabilities?

1•__warlord__•11m ago•1 comments

Railway infra agent goes rogue, attempts to breach competitor

https://twitter.com/jakerunzer/status/2117474337682780643
1•kristianc•13m ago•0 comments

Ask HN: What are you doing to protect the privacy of your notes?

2•ugur2nd•17m ago•2 comments

Show HN: OpenYog, SQLyog Community Ported to Qt 6 for Linux and Windows

https://github.com/AbdulOhab/openyog
2•ab_wahab01•20m ago•0 comments

Nvidia orders data centre clients to reduce China exposure

https://www.ft.com/content/1902df70-1380-4588-bad5-171352b575f2
2•JumpCrisscross•20m ago•0 comments

Lite Pinescript

https://ribqa.com/chart
1•armatadh•23m ago•0 comments

Show HN: Inline Logs, console.log values next to your code in VS Code

https://github.com/lagudafuadtosin/inline-logs
2•lagudafuad•27m ago•0 comments

Nvidia – open-source auto-ontology

https://github.com/NVIDIA/auto-ontology
2•campervans•27m ago•1 comments

GitHub Agentic Workflows are generally available

https://github.blog/changelog/2026-10-28-github-agentic-workflows-generally-available/
3•theletterf•31m ago•0 comments

Railway employee tries to hack a competitors infrastructure

https://twitter.com/joshmanders/status/2117458724407415295
1•ashishmax31•32m ago•0 comments

Show HN: Building a Self-Evolving WAF Engine via Inductive Logic Programming

https://prologwaf.site/
2•lokinpendawa•32m ago•0 comments

Walking Through the Knowldge Era

https://sert121.bearblog.dev/the-knowledge-era/
2•sert_121•34m ago•0 comments

AI Arbitrator

https://www.adr.org/ai-arbitrator/
1•JumpCrisscross•35m ago•0 comments

Quantity vs. quality in pottery is a lie – LessWrong

https://www.lesswrong.com/posts/LrAqM4bGmAoA79rP3/quantity-vs-quality-in-pottery-is-a-lie
2•amanverasia•37m ago•1 comments

Lovable: Many Apps Built on the Platform Expose Sensitive Data

https://www.crissyfield.de/research/lovable-en/
3•taubek•38m ago•0 comments

Disney Plans Layoffs, Targeting 20% Cost Savings

https://www.bloomberg.com/news/articles/2026-11-03/disney-eyes-thousands-of-layoffs-with-managers...
3•thunderbong•44m ago•0 comments

A Decade of Kill Bugs

https://alangrow.com/blog/a-decade-of-kill-bugs
3•signa11•44m ago•1 comments

Show HN: Vectoys – 3D devices for landing pages, drawn as plain SVG

https://vectoys.com/
1•mertduzgun•45m ago•0 comments

Show HN: Privato - smart, scoped and temporary data access for personal agents

1•richardmeng•47m ago•0 comments

For anyone who wants to build a complete website

https://www.facebook.com/p/Mustafa-Mahmoud-61593084344596/?locale=ar_AR
2•T-inter•48m ago•0 comments

Progress on provable inference for large language models

https://www.anthropic.com/research/provable-inference
1•mildog8•48m ago•0 comments

Show HN: Mintype – Free, zero-knowledge notes app with whiteboards (AGPL)

https://mintype.app
1•project59•53m ago•0 comments