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•9mo 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•9mo 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•9mo 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•9mo 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•9mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•9mo ago
Agreed

Numinals – Certified prime numbers as identity tokens for AI bots

https://www.numinals.io/
1•Pehlivanian•9s ago•1 comments

Show HN: Experimental Revocable Signatures Using Model-Based Encoding

https://lyfe.ninja/demos/signature/
1•lyfeninja•10s ago•0 comments

Surviving as a Developer When Most Code Is Generated by AI

https://nemorize.com/roadmaps/surviving-as-a-developer-when-most-code-is-generated-by-ai
1•reverseblade2•1m ago•0 comments

We Automated Everything Except Knowing What's Going On

https://eversole.dev/blog/we-automated-everything/
2•kennethops•1m ago•0 comments

Rtk – reduce up to 90% of CLI noise and save agent tokens

https://www.rtk-ai.app/
1•openmaze•1m ago•0 comments

Hetzner outage: FSN1 is down

https://status.hetzner.com/incident/1c082fde-fe61-40b0-ab41-8d4d7deaf6fe
1•alcazar•1m ago•0 comments

The least understood driver of AI progress

https://epochai.substack.com/p/the-least-understood-driver-of-ai
1•speckx•1m ago•0 comments

Managing hostesses in Yakuza 0's cabaret club: a surprisingly feminist mini-game

https://www.mothership.blog/yakuza-0-cabaret-club-czar-feminist-mini-game/
1•Julesprobably•2m ago•0 comments

Transformers and Evolution

https://www.symmetrybroken.com/asymmetric-evolution/
1•riemannzeta•3m ago•0 comments

Show HN: FileShot – zero-knowledge file sharing, nothing locked behind accounts

https://fileshot.io/
1•GraysoftDev•3m ago•0 comments

Google's Nano Banana 2 promises Flash speeds with Pro results

https://thenewstack.io/nano-banana-2/
1•blazercohen•5m ago•0 comments

Show HN: ReleasAI – Paste Git commits, get polished release notes in <1s

https://releasai.vercel.app/
1•pramhatibie•5m ago•0 comments

Show HN: Ablo - AI slides without the generic look or layout restrictions

https://www.ablo.finance/
1•lukasanderss•5m ago•0 comments

Agent Skills Marketplace

https://skillsmp.com/
1•pama•6m ago•0 comments

I don't know marketing, so I built a tool to track what I do

https://www.buildemotion.com/
1•Kamil_KKA•7m ago•1 comments

To update blobs or not to update blobs

https://codon.org.uk/~mjg59/blog/p/to-update-blobs-or-not-to-update-blobs/
1•trelane•7m ago•0 comments

I Spent $120 Trying to Make an AI Vertical Drama About Cats. It Was a Disaster

https://www.streaming-radar.com/p/i-spent-120-trying-to-make-an-ai
1•lbostral•8m ago•0 comments

Show HN: Construct Computer – Agentic Cloud OS for Daily Work

https://construct.computer
1•ankushKun•8m ago•0 comments

Finding Peaks with SIMD

https://halleysfifthinc.github.io/posts/find-peaks-simd/
1•allenofthehills•8m ago•0 comments

Building an Inference Engine in 1,800 Lines of C++

https://linuxtoaster.com/blog/toasted.html
1•dirk94018•8m ago•1 comments

$82,000 in 48 Hours from stolen Gemini API Key

https://old.reddit.com/r/googlecloud/comments/1reqtvi/82000_in_48_hours_from_stolen_gemini_api_ke...
1•virgildotcodes•9m ago•0 comments

So You Want to Work in Hardware

https://ourancientfuture.substack.com/p/so-you-want-to-work-in-hardware
1•ls65536•10m ago•0 comments

Aria-haspopup might not do what you think it does

https://www.matuzo.at/blog/2026/aria-haspopup-menu
1•speckx•10m ago•0 comments

OpenAI amends Pentagon deal as Sam Altman admits it looks 'sloppy'

https://www.theguardian.com/technology/2026/mar/03/openai-pentagon-ceo-sam-altman-chatgpt
1•TutleCpt•11m ago•0 comments

How to combat Claude's code duplication, ranked from least to most AI-native

https://ngof.nikhaldimann.com/p/4-ways-to-combat-claudes-code-duplication
1•nikhaldi•12m ago•0 comments

Show HN: Core Rth. A governed AI kernel for engineers who don't trust their LLMs

https://github.com/rthgit/CORE-RTH
1•christianrth•12m ago•0 comments

Show HN: DataPilot – SQL workspace with scheduling, and on-prem execution

https://getdatapilot.com/
1•vincenzo_nudo•13m ago•0 comments

Show HN: PDFBolt – HTML to PDF API with Git-like template versioning

https://pdfbolt.com/
1•Ametrin•14m ago•0 comments

Show HN: ScrollMind – Learn how AI works by scrolling a feed, not a textbook

https://scrollmind.ai/course/intro-ai
1•bkraszewski•14m ago•1 comments

Go code is leaving 90% of the CPU idle until now

https://samuelberthe.substack.com/p/your-go-code-is-leaving-90-of-the
1•samber•14m ago•0 comments