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

One-Core-API (run modern binaries on Windows XP/2003)

https://github.com/shorthorn-project/One-Core-API-Binaries
1•unleaded•3m ago•1 comments

ICE Throws Flash Bang at Family Car, Sends Three Children to the Hospital

https://www.jalopnik.com/2077210/ice-throws-flash-bang-at-family-car-minneapolis/
22•perihelions•7m ago•1 comments

Gnome 50 Alpha Released with the X11 Code Gutted

https://www.phoronix.com/news/GNOME-50-Alpha
2•mikece•9m ago•0 comments

Quint Visualizer: a GraphViz-like visualizer for Quint traces

https://quint-visualizer.noghartt.dev/
1•todsacerdoti•18m ago•0 comments

Thinking Machines is nothing without its people

https://sources.news/p/thinking-machines-is-nothing-without
1•coloneltcb•22m ago•0 comments

Show HN: An open-source form builder that outputs tailwind components

https://tailwind-form-builder.sheetmonkey.io/
2•a_band•28m ago•0 comments

Boltz PBC Launches with $28M to Democratize AI Platforms for Drug Discovery

https://www.genengnews.com/topics/artificial-intelligence/boltz-pbc-launches-with-28m-to-democrat...
1•jscyc•28m ago•0 comments

New map of landscape beneath Antarctica unveiled (2025)

https://www.bas.ac.uk/media-post/new-map-of-landscape-beneath-antarctica-unveiled/
2•thunderbong•32m ago•0 comments

Show HN: Reversing YouTube’s “Most Replayed” Graph

https://priyavr.at/blog/reversing-most-replayed/
2•prvt•32m ago•0 comments

Tell HN: Execution is cheap, ideas matter again

2•keepamovin•32m ago•2 comments

Perchance AI Story

https://www.genstory.app/story-template/perchance-ai-story-generator
1•RyanMu•34m ago•1 comments

Bop is the greatest, most prestigious board ever at any time, any place

https://en.wikipedia.org/wiki/Board_of_Peace
1•doener•37m ago•0 comments

Show HN: What if we treated AI as community members instead of tools?

https://geteai.org/
1•jaxtion•39m ago•0 comments

Greenland issue must not lead to end of NATO, former Finnish president says

https://yle.fi/a/74-20204533
3•perihelions•39m ago•2 comments

Ask HN: AI agents solve all your problems or do you still ask humans for help?

1•julienreszka•39m ago•0 comments

Airlines to save big money on fuel as new weight loss pills gain popularity

https://www.cnbc.com/2026/01/14/airlines-to-save-on-fuel-as-weight-loss-pills-grow-popular-wall-s...
4•cebert•43m ago•3 comments

UN chief's last annual speech slams world leaders for lack of cooperation

https://www.aljazeera.com/news/2026/1/15/uns-guterres-slams-world-leaders-putting-intl-cooperatio...
3•5faulker•43m ago•0 comments

Connect multiple Claude Code agents into one collaborative team

https://openagents.org/showcase
4•snasan•56m ago•1 comments

Wikipedia Inks AI Deals with Microsoft, Meta and Perplexity

https://apnews.com/article/wikipedia-internet-jimmy-wales-50e796d70152d79a2e0708846f84f6d7
1•amiga386•56m ago•1 comments

Show HN: I built a text-based business simulator to replace video courses

https://www.core-mba.pro/
1•Core_Dev•56m ago•0 comments

Can tinkering with plant pores protect crops against drought?

https://knowablemagazine.org/content/article/food-environment/2025/manipulating-stomata-could-hel...
1•PaulHoule•58m ago•0 comments

Kutt.ai – Free AI Video Generator, Text and Image to Video

https://kutt.ai/
1•zuoning•59m ago•1 comments

Hyperfiddle: An automatic front end for any back end function or object

https://github.com/hyperfiddle/hfql
3•filoeleven•59m ago•0 comments

Fast Client-Side Search with Rust and WebAssembly

https://code.visualstudio.com/blogs/2026/01/15/docfind
4•azhenley•1h ago•0 comments

Signal, the secure messaging app: A guide for beginners

https://freedom.press/digisec/blog/signal-beginners/
1•doener•1h ago•0 comments

The future of AI is voice

https://realizeai.substack.com/p/the-future-of-ai-is-voice
1•rafaelmdec•1h ago•0 comments

Profile a Parser Implementation in Rust

https://blog.wybxc.cc/blog/profile-cgrammar/
1•todsacerdoti•1h ago•0 comments

Show HN: Playn a privacy first and fast blog platform

https://playn.blog/
2•bairess•1h ago•2 comments

Show HN: Using Qwen3:1.7B to call itself recursively

https://seanneilan.com/posts/tiny-llm-calls-itself/
1•sneilan1•1h ago•0 comments

Gatekeeping: A Partial History of Cold Fusion

https://philsci-archive.pitt.edu/27902/
1•mathgenius•1h ago•1 comments