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

Things are finally looking up for NASA's first missions to Venus in a generation

https://arstechnica.com/space/2026/10/nasas-embattled-venus-missions-are-back-on-track-after-canc...
1•Brajeshwar•15s ago•0 comments

From 2,500 requests to 24: Rebuilding star history without the stargazers

https://github.blog/engineering/architecture-optimization/from-2500-requests-to-24-rebuilding-sta...
1•Brajeshwar•25s ago•0 comments

Stripe and Plasma co-develop a new multi-currency card experience

https://twitter.com/StripeCrypto/status/2110717778244018535
1•tosh•1m ago•0 comments

Training a local model to play browser games on the fly

https://ironbee.ai/blog/how-we-trained-an-ai-model-to-play-browser-games
2•berkay•2m ago•1 comments

Special cased quaternion log and exp

http://marc-b-reynolds.github.io/quaternions/2026/10/10/QuatExpMap.html
1•ibobev•3m ago•0 comments

Egg: Using egraphs to build program optimizers and synthesizers

https://egraphs-good.github.io/
1•SerCe•3m ago•0 comments

Ask HN: Apple HomeView. What problem is Apple Home solving?

1•NarcisMirandes•4m ago•0 comments

Show HN: Arneb – A Trino-compatible distributed SQL engine in Rust

https://arneb.io
1•jackypan1989•5m ago•0 comments

Show HN: Mordiem – OpenAI-compatible API with multi-network failover

https://mordiem.com
1•mordiem•5m ago•0 comments

ChatGPT Targets Ads to You Based on Your Prompts, Phone Number, and Email

https://www.404media.co/how-chatgpt-targets-ads-to-you-based-on-your-prompts-phone-number-and-email/
2•pulisse•6m ago•0 comments

Autolith-Webui: A Web Framework

https://github.com/sroerick/autolith-webui
1•sroerick•6m ago•0 comments

AI engineering without getting out of touch

https://noworriesnate.com/blog/cornerstone-development/
1•noworriesnate•6m ago•0 comments

Colossal Squid

https://en.wikipedia.org/wiki/Colossal_squid
2•tosh•7m ago•0 comments

There are many agent harnesses, but this one is mine

https://onebadbit.com/posts/2026/10/i-love-pi-dev/
1•wilkystyle•7m ago•0 comments

Vibe coding is so easy to start and difficult to get right

https://daniel-payne-keldan-systems.medium.com/vibe-coding-is-so-easy-to-start-and-very-difficult...
1•daniel-payne•8m ago•0 comments

TrovaTool

https://www.trovatool.org/
1•teej16•12m ago•0 comments

Show HN: Fantasy Manager – Serverless AI-Enhanced Fantasy Football Manager Agent

https://github.com/nvbd6sgabzxy/fantasy-manager
1•TheBlight•12m ago•0 comments

Wayland desktop for Linux with skeuomorphic design

https://github.com/fyzugx/DEsk
1•FinalDestiny•13m ago•0 comments

Serbian ruler's role in 'illegal' effort to help Trump business

https://www.theguardian.com/world/2026/oct/15/trump-kushner-vucic-belgrade-serbia
1•mo7061•13m ago•0 comments

Are We on the Path to AGI? (Yuval Levin, the New Atlantis)

https://www.thenewatlantis.com/publications/are-we-really-on-the-path-to-agi
1•jerrybrito•15m ago•0 comments

Ask HN: Did you 'invest' in NFTs or memecoins?

2•agent008t•15m ago•0 comments

U.S. Treasury dismisses IMF debt warning and 'messy' forecasting

https://www.cnbc.com/2026/10/15/memory-stocks-micron-sk-hynix-samsung-china.html
1•Betelbuddy•15m ago•0 comments

Computer or That Computer

https://jasonjournals.com/posts/this-computer-or-that-computer
1•surprisetalk•17m ago•0 comments

Choosing a Chunking Strategy for Your LLM Apps: A Decision-Tree Approach

https://machinelearningmastery.com/choosing-a-chunking-strategy-for-your-llm-apps-a-decision-tree...
2•eigenBasis•18m ago•0 comments

GridSnap – an open-source Divvy-style window snapper for macOS

https://github.com/konieczkow/gridsnap
1•zderror•18m ago•0 comments

Apache Subversion 1.15 released with "Pristines On Demand" feature

https://news.apache.org/foundation/entry/the-apache-software-foundation-announces-apache-subversi...
2•chemodax•18m ago•0 comments

Intuitive concurrent programming in any language

https://www.lf-lang.org/
1•mpweiher•18m ago•0 comments

Let's Build a Transformer in C#, One GPU Kernel at a Time

https://andrewphunter.com/writing/cradle-01-the-cradle/
1•andyphunter•20m ago•0 comments

Have You Tried Turning TalkBack Off and on Again

https://fireborn.mataroa.blog/blog/have-you-tried-turning-talkback-off-and-on-again/
1•devinprater•21m ago•0 comments

Genera now under a free for non commercial use license

https://hachyderm.io/@gmpalter/117044268951603975
3•caminanteblanco•21m ago•0 comments