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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•6mo ago
Agreed

Star Wars Q&A: Computers (1983)

https://www.flickr.com/photos/paxtonholley/albums/72157627392602868/
1•phil-pickering•54s ago•0 comments

Fei-Fei Li's World Labs speeds up the world model race with Marble

https://techcrunch.com/2025/11/12/fei-fei-lis-world-labs-speeds-up-the-world-model-race-with-marb...
1•cl42•1m ago•0 comments

Jasmine: A Simple, Performant and Scalable Jax-Based World Modeling Codebase

https://arxiv.org/abs/2510.27002
2•PaulHoule•6m ago•0 comments

Release Notes for Safari Technology Preview 232

https://webkit.org/blog/17601/release-notes-for-safari-technology-preview-232/
1•feross•8m ago•0 comments

AI Codes Electronics with Tscircuit

https://tscircuit.com
1•cat-whisperer•9m ago•0 comments

Can AI tell when someone's lying? MSU study says not yet

https://msutoday.msu.edu/news/2025/11/can-ai-tell-when-someones-lying-msu-study-says-not-yet
1•rmason•14m ago•0 comments

The Selfish (AI) Model

https://crocccante-engineering.vercel.app/doc
1•olirex99•14m ago•0 comments

Ask HN: AI video models are good at nude body movement => porn in training data?

1•sendos•15m ago•0 comments

Restructuring Vector Quantization with the Rotation Trick

https://arxiv.org/abs/2410.06424
1•fzliu•16m ago•0 comments

GPT-5.1 Instant and GPT-5.1 Thinking System Card Addendum [pdf]

https://cdn.openai.com/pdf/4173ec8d-1229-47db-96de-06d87147e07e/5_1_system_card.pdf
3•mnemonet•19m ago•0 comments

SBoM Diffing: Next Frontier for Supply Chain Security

https://worklifenotes.com/2025/11/12/sbom-diffing-next-frontier-for-supply-chain-security/
1•taleodor•21m ago•0 comments

Show HN: The Prompt Engineering Bible – Complete Guide to AI Communication

https://dimitriosmitsos.gumroad.com/l/prompt-engineering-bible
2•Cranot•23m ago•0 comments

Ask HN: Realistic prospects of getting back to management later

1•throwaway123198•23m ago•0 comments

Halting problem in neural networks: Some AI Systems are Impossible to Compute

https://spectrum.ieee.org/deep-neural-network
3•orbitalremnant•24m ago•1 comments

Jim Sanborn open letter to Kryptos community

https://www.documentcloud.org/documents/26229389-adobe-scan-nov-12-2025/
2•elahieh•24m ago•1 comments

Marble: A Multimodal World Model

https://www.worldlabs.ai/blog/marble-world-model
3•meetpateltech•30m ago•0 comments

Andrej Karpathy reviews latest wide-release Tesla FSD version

https://twitter.com/karpathy/status/1988705360723763242
5•Rover222•35m ago•1 comments

OneUptime – Complete open-source monitoring and observability platform

https://github.com/OneUptime/oneuptime
2•ndhandala•40m ago•0 comments

Russia's AI robot falls seconds after being unveiled

https://www.bbc.com/news/videos/crre8g5e45jo
3•onemoresoop•42m ago•1 comments

Making .NET Serialization Gadgets by Hand

https://www.vulncheck.com/blog/making-dotnet-gadgets
1•albinol0bster•43m ago•0 comments

An explosion 92M miles away just grounded Jeff Bezos' New Glenn rocket

https://arstechnica.com/space/2025/11/an-explosion-92-million-miles-away-just-grounded-jeff-bezos...
1•pseudolus•43m ago•0 comments

Gift List Planner and Tracker

https://apps.apple.com/us/app/gift-list-planner-tracker/id6754363807
1•MarcoAtPixolini•46m ago•0 comments

Problem, 7 Libraries (on the GPU) [video]

https://www.youtube.com/watch?v=EEwREnUdbFs
1•todsacerdoti•48m ago•0 comments

Experience the Complete Codemasters Legacy

https://thecodemastersarchive.co.uk/playonline/
1•xd•49m ago•0 comments

Valve is helping Arm get a foothold in PC gaming with its latest work

https://www.pcgamer.com/hardware/vr-hardware/steamos-launching-for-arm-fex-translation-layer/
3•Intralexical•50m ago•3 comments

Homebrew no longer allows bypassing Gatekeeper for unsigned/unnotarized software

https://github.com/Homebrew/brew/issues/20755
57•firexcy•51m ago•45 comments

Rapidly build data science apps with code gen

https://blog.engora.com/2025/11/how-to-rapidly-build-and-deploy-data.html
1•Vermin2000•52m ago•1 comments

Reddit no longer allows API access without an approval process

https://old.reddit.com/r/redditdev/comments/1oug31u/introducing_the_responsible_builder_policy_new/
8•busymom0•56m ago•3 comments

Parakaryon

https://en.wikipedia.org/wiki/Parakaryon
2•tonyonodi•56m ago•0 comments

Webb-Site Database Continued

https://webb-database.com/dbpub/
1•sequant•56m ago•0 comments