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

'adversarial' pattern can prevent surveillance cameras from detecting you

https://techcrunch.com/2026/08/09/this-adversarial-pattern-can-prevent-surveillance-cameras-from-...
1•caruasdo•18s ago•0 comments

Secure Capability-Based Generative UI with WASM Components [video]

https://www.youtube.com/watch?v=RoYFUomDwp8
1•marianoguerra•20s ago•0 comments

ChatTJB

https://chattjb.org/
1•thazework•48s ago•0 comments

Meta releases Muse Glimmer, 30B parameter open-weight edge model

https://twitter.com/finkd/status/2086755195535413696
1•tejus_vignesh•1m ago•0 comments

Quasipolynomial Cryptanalysis of the McEliece Cryptosystem (PIR Meets McEliece)

https://eprint.iacr.org/2026/1630
1•cbzbc•1m ago•0 comments

Muse Glimmer: Meta's open model built for always-on local agents. 30B parameters

https://developer.meta.com/ai/models/muse-glimmer/
2•helsinkiandrew•2m ago•0 comments

Gonemaster checks the DNS health of a domain

https://gonemaster.evilbit.de/
1•pawal•4m ago•1 comments

Ant teams beat gravity-based puzzle solvers

https://phys.org/news/2026-08-ant-teams-gravity-based-puzzle.html
2•wjSgoWPm5bWAhXB•5m ago•0 comments

The Future Is for Everyone – The Path to a Positive AI Future

https://www.meta.com/thefutureisforeveryone/
1•insumanth•5m ago•0 comments

Navy drone boats 'were sending data to China'

https://www.thetimes.com/uk/defence/article/navy-drone-boats-sending-data-china-k3-rcqd2jcfl
2•josephcsible•9m ago•0 comments

GST Notices: Types, Reasons and Response Guide – SMFG India Credit

https://www.smfgindiacredit.com/knowledge-center/gst-notices.aspx
1•saumyaraut11•9m ago•0 comments

Meta Muse Glimmer – open weights 30B local coding model

https://research.meta.ai/blog/introducing-muse-glimmer-open-agentic-model
3•riordan•11m ago•0 comments

V2X Technology Gets a 5G Cellphone Network Solution

https://spectrum.ieee.org/v2x-technology-5g-open-ran
1•rbanffy•13m ago•0 comments

Getting Off the Modernization Treadmill

https://unplannedobsolescence.com/talks/getting-off-the-modernization-treadmill/
1•ggaughan•15m ago•1 comments

A.I.-Driven Chip Crunch Leads to New Rush of Lobbying in Washington

https://www.nytimes.com/2026/08/10/technology/memory-chip-shortage-ai.html
2•giuliomagnifico•15m ago•0 comments

The dumbest ransomware I've ever seen

https://mrunix.me/posts/ransomware/
1•mrunix•16m ago•0 comments

Show HN: Northstar Browser 1.0.7

3•roschdal•16m ago•0 comments

I built a directory to find every indoor dog park in the US

https://www.indoordogpark.org
1•mabalal•18m ago•0 comments

ETQW: Open-Source Reimplementation of Enemy Territory: Quake Wars

https://github.com/jmarshall23/ETQW
1•klaussilveira•18m ago•0 comments

One Email, Three Identities: SPF, DKIM and DMARC Explained

https://senderledger.com/articles/one-email-three-identities-spf-dkim-dmarc
2•adulion•25m ago•0 comments

Study Finds Short AI Chats Reduced Belief in New Conspiracies

https://aiunderstanding.org/news/ai-chats-emerging-conspiracy-beliefs-study
1•ashurandi•26m ago•0 comments

Tech leaders say AI means less work – staff say they work up to 90 hours a week

https://www.bbc.com/news/articles/cvgx4yd1gl2o
2•dijksterhuis•28m ago•0 comments

Robot Videos: Heavy Lift Cargo Drones, Grippers, More

https://spectrum.ieee.org/video-friday-heavy-lift-drone
1•rbanffy•29m ago•0 comments

Show HN: I procrastinated on a course by building a course tracker.

https://ckourse.com
1•redaantar•31m ago•0 comments

Claude Code, AI Slop, and the Death of the Art?

https://vladthe.dev/blog/claude-code-ai-slop-and-the-death-of-the-art
2•pacMakaveli•31m ago•2 comments

One-command OpenTelemetry setup on Linux hosts

https://opentelemetry.io/blog/2026/packaging-first-repo/
1•svrnm•32m ago•0 comments

Bitcoin Home

https://bitcoinhome.com
2•TURNMY•35m ago•0 comments

The Flatness Era

https://refusethemean.magazine-page.workers.dev/
2•rs9000•39m ago•0 comments

After holding Why.com for 27 years, Rasheed Richmond launches the site

https://www.reddit.com/user/rasheed106/submitted/
1•jawns•39m ago•0 comments

So, I wrote a fiction book. Meet "The Side Project"

https://blog.maartenballiauw.be/posts/2026-07-31-so-i-wrote-a-fiction-book-meet-the-side-project/
1•GordonS•39m ago•0 comments