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

In-House Counsel Is About to Get Good

https://www.whatrunsai.com/research/harvey
1•hmichaelson20•1m ago•0 comments

Where We Expect AMD EPYC 9006 CPUs in the Era of Agentic AI – ServeTheHome

https://www.servethehome.com/where-we-expect-amd-epyc-9006-cpus-in-the-era-of-agentic-ai/
1•rbanffy•2m ago•0 comments

Micron projects tightening RAM shortages through 2028, generates record profit

https://www.tomshardware.com/pc-components/dram/micron-projects-tightening-ram-shortages-through-...
1•rbanffy•2m ago•0 comments

Books that made me a 10x engineer

https://www.thetrueengineer.com/p/3-books-that-made-me-a-10x-engineer
1•adletbalzhanov•2m ago•0 comments

Custom Automations are now GA in Factory

https://twitter.com/FactoryAI/status/2105713248507138483
1•kstrauser•3m ago•0 comments

.si Registrations Surge After US Shift to 'Super Intelligence'

https://circleid.com/posts/dot-si-domain-registrations-surge-after-us-shift-to-super-intelligence
2•speckx•3m ago•0 comments

US jobless claims near 57-year low as layoffs fall in September

https://www.reuters.com/legal/litigation/us-weekly-jobless-claims-fall-layoffs-drop-september-202...
1•frank_clover•4m ago•0 comments

ExplainDB: A Database System Built for Understandability

https://github.com/explaindb/explaindb
1•pykello•5m ago•0 comments

Show HN: I built an app that scours the internet to create a daily news briefing

https://github.com/yogthos/newsroom
1•yogthos•6m ago•0 comments

The Front Page of the Internet Is Killing RSS Feeds

https://www.extremetech.com/internet/the-front-page-of-the-internet-is-killing-rss-feeds
1•rreyes1979•6m ago•0 comments

Show HN: Yedric – Add a natural-language interface to your SaaS

https://www.yedric.ai
2•aaroneous•8m ago•0 comments

View: Program that drew, in 3D, what Apollo astronauts would see out the window

https://claude.ai/artifact/5cPjoQTJ8PvXF5FUwwbLEC
1•mariuz•10m ago•1 comments

Everybody Loves Big Boy

https://defector.com/everybody-loves-big-boy
1•speckx•12m ago•0 comments

Last.fm Album Linkr: adds 'headers' on Recent Tracks section and Album collages

https://github.com/StigNygaard/Stigs_Last.fm_Album_Linkr
1•Baljhin•12m ago•0 comments

EU/Jev – First System One Model Hosted in the EU

https://jev.bevel.software/
1•juanviera23•13m ago•0 comments

I Gave My OpenClaw Agent a Physical Body

https://www.wired.com/story/i-gave-my-openclaw-agent-physical-body-robot/
1•gmays•15m ago•0 comments

Twitter Follower Distribution (2022)

https://www.johndcook.com/blog/2022/08/09/twitter-follower-distribution/
1•theanonymousone•15m ago•0 comments

Show HN: RGBoo – interactive lofi stream for Halloween

https://rgboo.com/
2•na10•15m ago•1 comments

Record-Low 31% Say College Education Is 'Important'

https://news.gallup.com/poll/715133/record-low-say-college-education-important.aspx
2•bilsbie•16m ago•0 comments

Show HN: Vote on which of Hacker News' challenges for AI have been met

https://stoppels.ch/goalposts/
1•stabbles•19m ago•0 comments

TwIL-LM3-Pro: 3.6B formal-logic model that beats VibeThinker-3B

https://huggingface.co/webAI-Official/TwIL-LM3-Pro
3•CD_webai•22m ago•0 comments

Ask HN: Email leaked while traveling abroad?

2•thatonehack•23m ago•0 comments

The GPU Black Market That Washington Can't Shut Down

https://www.amcompute.com/blog/gpu-black-market-washington-cant-shut-down
2•ilreb•24m ago•0 comments

Pebble Round 2 Starts Shipping

https://repebble.com/blog/pebble-round-2-starts-shipping
1•gumby271•25m ago•0 comments

MCP server for editing Excel with real-time calc and diffs

https://github.com/pixelsmasher13/gridpath
2•escapingsingula•26m ago•0 comments

We are inventing the governor module

https://techcrunch.com/2026/09/30/openais-jev-clone-could-help-the-frontier-lab-stop-its-swarming...
1•gmarkwa•26m ago•0 comments

The AI Pascal's Wager

https://ploum.net/2026-10-01-pascal_wager.html
1•1matin•27m ago•0 comments

TanStack Intent v0.5: Skills you can maintain

https://tanstack.com/blog/intent-0.5-skills-you-can-maintain
2•chrisweekly•29m ago•0 comments

Echo, a new AI site to mimic the styles of particular writers or writing styles

https://echo.fulcrum.inc/
2•shaftoe444•29m ago•0 comments

Show HN: Taracode – a local DevOps agent, and 18 open models scored on one GPU

https://github.com/tara-vision/taracode
1•stefanoski•31m ago•0 comments