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

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•8mo ago
Agreed

We X-Rayed a Suspicious FTDI USB Cable

https://eclypsium.com/blog/xray-counterfeit-usb-cable/
1•aa_is_op•4m ago•0 comments

AI and Abandonware

https://jonathannen.com/ai-npm-abandonware.html
1•jwilliams•6m ago•0 comments

Analysis of Alex Pretti Shooting in Minneapolis [video]

https://www.youtube.com/watch?v=LkFcFVZuBI0
3•doener•8m ago•1 comments

Specs.md – AI-native development framework

https://specs.md
1•onatm•9m ago•0 comments

Ask CLI: A simple open-source tool to get help with commands from the terminal

2•david-minaya•11m ago•0 comments

Genomic evolution of pancreatic cancer at single-cell resolution

https://www.nature.com/articles/s41588-025-02468-9
1•bookofjoe•13m ago•0 comments

The truth about phones and mental health [video]

https://www.youtube.com/watch?v=2yVJffNplJc
1•heavyset_go•14m ago•0 comments

Show HN: I built a Mac OS App to upload your screenshots to S3

https://gofwd.to/screenfwd
1•RCM7•19m ago•0 comments

The DBLP computer science bibliography needs financial support

https://blog.dblp.org/2025/12/18/dblp-is-humbly-asking-you-for-your-kind-support/
1•leoc•20m ago•0 comments

Edward Tryon

https://en.wikipedia.org/wiki/Edward_Tryon
1•doener•20m ago•1 comments

'The robot never gets tired': Hyundai explains its Boston Dynamics Atlas robot

https://www.techradar.com/vehicle-tech/hybrid-electric-vehicles/the-robot-never-gets-tired-hyunda...
2•mikhael•21m ago•0 comments

Inworld TTS-1.5: Upgrading the #1 Ranked TTS Model

https://inworld.ai/blog/introducing-inworld-tts-1-5
1•wahnfrieden•24m ago•0 comments

Clawdbot Showed Me What the Future of Personal AI Assistants Looks Like

https://www.macstories.net/stories/clawdbot-showed-me-what-the-future-of-personal-ai-assistants-l...
1•walterbell•25m ago•0 comments

Share your memories and explore the world together

https://photo.playglenn.com/
2•wavh•28m ago•0 comments

Professor Built a Chatbot to Conduct Oral Exams for His Class

https://betteconnects.substack.com/p/yes-this-professor-built-a-chatbot
1•gozzoo•30m ago•0 comments

Show HN: AI architectures tested against their own structural limits

https://github.com/moketchups/Demerzel
1•MoKetchups•33m ago•0 comments

A new graph viewer for Ghidra

https://twitter.com/0x464d/status/2015037860781453466
1•tosh•34m ago•0 comments

How the Lawyers Killed Practical Adult Education

https://markatwood.substack.com/p/how-the-lawyers-killed-practical
4•mhb•34m ago•0 comments

Informationism and the Fluid Self: Consciousness, Identity, Reality

https://www.yumiwillems.com/post/self-consciousness-identity-and-the-architecture-of-reality
2•yumiatlead•35m ago•0 comments

Peugeot's "Hypersquare" Steering Wheel Prioritizes Novelty over UX

https://www.core77.com/posts/140283
1•fortran77•37m ago•0 comments

Europe wants to end its dangerous reliance on US internet technology

https://theconversation.com/europe-wants-to-end-its-dangerous-reliance-on-us-internet-technology-...
41•DyslexicAtheist•37m ago•10 comments

Looking for engineers who want to prototype patented new-tech no-fuel engines

1•Root-Zero-Tech•39m ago•1 comments

Wake: Terminal History for Claude Code

https://crowprose.com/blog/wake/
3•baobabmeeko•40m ago•1 comments

Direct-to-Cell Satellite Internet

https://www.direct2cell.org
2•SJk7TAy•44m ago•0 comments

How One Steam Developer Made a Million Dollars Selling a Remote Access Trojan

https://outsidetheasylum.blog/screeps/
3•IsaacKing•45m ago•0 comments

400M-pixel superconducting delay-line camera with 30-ps readout circuit

https://pubs.aip.org/aip/adv/article/15/11/115134/3373303/400-million-pixel-superconducting-delay...
2•PaulHoule•45m ago•0 comments

149M Logins and Passwords in Cleartext Discovered

https://www.expressvpn.com/blog/149m-infostealer-data-exposed/
1•cma5•47m ago•0 comments

Elon Musk at Davos 2026: why technology could shape a more 'abundant future'

https://www.weforum.org/stories/2026/01/elon-musk-technology-abundant-future-davos-2026/
2•journey2s•51m ago•2 comments

Show HN: Unicode Explorer – Explore, Search, and Export Unicode Characters

https://unicode-detector-nine.vercel.app/
3•SpyCoder77•51m ago•0 comments

Ask HN: Why can't I apply custom fonts to HN?

2•-__-•52m ago•1 comments