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

OpenSSL 4.1 Final Release – Live

https://openssl-library.org/post/2026-10-23-openssl-41-final-release/
1•gslin•32s ago•0 comments

Mozilla soliciting feedback on Firefox 160's new mini window feature

https://connect.mozilla.org/t5/discussions/mini-window-beta-is-going-live-in-firefox-160-and-we-w...
1•davidee•3m ago•1 comments

Why GPT-6 Astra is suddenly so good at robotics

https://twitter.com/josefchen/status/2117749992420946241
1•josefchen•3m ago•0 comments

Revisiting Buttons and Cursors

https://www.abeautifulsite.net/posts/revisiting-buttons-and-cursors/
1•soheilpro•4m ago•0 comments

NotLate

https://www.adribyte-studio.com/mobile-apps/notlate
1•AdriByte-Studio•5m ago•0 comments

OpenSc3k – SimCity 3000 Open Source

https://opensc3k.com/
1•ludde•6m ago•1 comments

Show HN: Predictygraph – animated diagrams styled with CSS, no reshuffle on edit

https://predictygraph.github.io/
1•rjzzleep•7m ago•0 comments

Local AI app that runs an 80B model on an 8GB Mac

https://yanahchat.com
1•giovanniwants•7m ago•1 comments

Show HN:Pptx-to-Pdf – Convert PowerPoint to PDF in Node.js Without LibreOffice

https://github.com/ahmedessam090/pptx-to-pdf
1•domysalem10•8m ago•0 comments

Show HN: Gesture Studio – Windows gesture shortcuts for touch, pen, and mouse

https://apps.microsoft.com/detail/9nz37wkhnbb3?hl=en-US&gl=US
1•askfutureproof•10m ago•0 comments

The Brain Injury That Made Edward Freytag a Musical Genius

https://www.nytimes.com/interactive/2026/11/02/magazine/brain-injury-music-perfect-pitch-edward-f...
1•bookofjoe•14m ago•1 comments

Writing as an act of rebellion (Despite the AI psychosis)

https://charlesfonseca.substack.com/p/writing-as-an-act-of-rebellion
1•barddoo•16m ago•0 comments

How much do tokens cost?

https://substack.hadley.nz/p/how-much-do-tokens-really-cost
1•rorylawless•16m ago•0 comments

Raspberry Pi 5 16GB Price Rises to $385 USD

https://www.phoronix.com/news/Raspberry-Pi-5-16GB-385
2•xlayn•20m ago•1 comments

Gemini Notebook API

https://developers.google.com/notebook/docs
1•jonbaer•23m ago•0 comments

Colour Malarkey

https://retrorgb.com/colour-malarkey.html
1•bpierre•23m ago•0 comments

Testing without a server: using FakeValkey, the in-memory test double for Valkey

https://valkey.io/blog/testing-without-a-server-fakevalkey/
1•gslin•27m ago•0 comments

Google Disrupts 1.3M Device Botnet, Says TV Box Maker Sold Criminal Access

https://cloud.google.com/blog/topics/threat-intelligence/shutting-the-door-on-the-xcpe-botnet/
1•motionlessveloc•29m ago•1 comments

Taco: The Tensor Algebra Compiler

http://tensor-compiler.org/
1•measurablefunc•30m ago•0 comments

Cat Wu, product lead for Claude Code, has left Anthropic

https://www.businessinsider.com/claude-code-leader-cat-wu-exits-anthropic-before-big-ipo-2026-11
1•aanet•30m ago•2 comments

SpaceX Will Be the Biggest AI Cloud

https://newsletter.semianalysis.com/p/elon-is-doing-it-again-spacex-will
2•nsoonhui•35m ago•1 comments

Nsw Health Breached

https://www.smh.com.au/national/nsw/100-000-documents-stolen-from-isolated-nsw-health-server-2026...
3•technion•37m ago•0 comments

Show HN: Retro: I rebuilt bomberman game, same gameplay, new interface

https://playbomber.com/
2•dutay05•38m ago•0 comments

Revolut switched to GLM. We found hidden risks

https://www.hirundo.io/blog/glm-revolut
1•mattifrank•40m ago•0 comments

Systemd Loves Rust

https://amutable.com/blog/systemd-loves-rust
1•jcgl•40m ago•1 comments

AI Can Read Neural Network Weights. I Wasn't Ready for That. – Arcturus Labs

https://arcturus-labs.com/blog/2026/11/03/ai-can-read-neural-network-weights-i-wasnt-ready-for-that/
1•JohnBerryman•43m ago•0 comments

French blood storage facilities targeted in cyberattack

https://www.aa.com.tr/en/science-technology/french-blood-storage-facilities-targeted-in-cyberatta...
2•Fe2O3•44m ago•0 comments

Ask HN: What is the best non mainstream programming language or stack in 2026?

2•kbrannigan•46m ago•0 comments

Show HN: HackerReels - Short Videos for viral HN posts

https://wile.ai/v/BPOH3BHCRWWCAKU4OVNOTEQ73A
2•alexandroskyr•47m ago•3 comments

Sad Nipple Syndrome

https://en.wikipedia.org/wiki/Sad_nipple_syndrome
2•modzu•50m ago•0 comments