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

Why External AI Reasoning Breaks Articles 12 and 61 of the EU AI Act by Default

https://zenodo.org/records/18346151
1•businessmate•4m ago•1 comments

Claude Skills for Marketing

https://maestrix.ai/skills
1•guidum80•8m ago•1 comments

A comparison of free credential and breach monitoring services for companies

https://github.com/infostealers-stats/Credential-and-breach-monitoring
6•jonpalanis•10m ago•0 comments

Proton Spam and the AI Consent Problem

https://dbushell.com/2026/01/22/proton-spam/
5•dbushell•12m ago•0 comments

Backseat Software

https://blog.mikeswanson.com/backseat-software/
1•kruuuder•13m ago•0 comments

Most countries on Trump's 'Board of Peace' banned from immigrant visas

https://thehill.com/policy/international/5702418-trump-board-peace-gaza-us-visa-ban-countries/
2•salkahfi•14m ago•0 comments

Open Source meeting companion I use every day

https://github.com/svenmalvik/vissper-oss
1•svenmalvik•16m ago•0 comments

The open-source release of Microsoft Fabric Extension for VS Code

https://blog.fabric.microsoft.com/en-us/blog/announcing-the-open-source-release-of-microsoft-fabr...
2•cchristensendev•20m ago•0 comments

New SpacemiT K3 RISC-V Chip Beats Raspberry Pi 5 in Early Benchmarks

https://www.cnx-software.com/2026/01/23/spacemit-k3-16-core-risc-v-soc-system-information-and-ear...
2•pojntfx•21m ago•0 comments

The abhorrent power of the photograph of a 5-year-old held by ICE

https://www.washingtonpost.com/style/2026/01/22/photo-minnesota-ice/
4•KnuthIsGod•24m ago•1 comments

ClickHouse PostgreSQL Powered by Ubicloud

https://www.ubicloud.com/blog/clickhouse-postgresql-powered-by-ubicloud
2•gouthamve•28m ago•0 comments

Show HN: TDAD - Open source TDD workflow that makes AI fix code until tests pass

https://github.com/zd8899/TDAD
2•zd8899•31m ago•1 comments

Selectively Disabling HTTP/1.0 and HTTP/1.1

https://markmcb.com/web/selectively_disabling_http_1/
2•todsacerdoti•37m ago•0 comments

BU-808: How to Prolong Lithium-based Batteries (2023)

https://www.batteryuniversity.com/article/bu-808-how-to-prolong-lithium-based-batteries/
1•eswat•39m ago•0 comments

Show HN: Wake – Terminal Session Context for Claude Code via MCP

https://github.com/joemckenney/wake
2•baobabmeeko•41m ago•0 comments

Exposing a Multi-Stage Malware Campaign on Windows Systems

https://thecyberedition.com/exposing-a-multi-stage-malware-campaign-on-windows-systems/
2•thehacknews•42m ago•1 comments

Roo Code 3.42.0 – ChatGPT usage tracking – Grey Screen Fix and more

https://docs.roocode.com/update-notes/v3.42.0
1•hrudolph•42m ago•1 comments

EmulatorJS

https://github.com/EmulatorJS/EmulatorJS
1•avaer•47m ago•0 comments

Financing the AI boom: from cash flows to debt

https://www.bis.org/publ/bisbull120.htm
2•gmays•50m ago•0 comments

Llanux, a "Boot to Llama" OS

https://github.com/telepath-computer/llanux
2•stlhood•51m ago•1 comments

eBay bans illicit automated shopping amid rapid rise of AI agents

https://arstechnica.com/information-technology/2026/01/ebay-bans-illicit-automated-shopping-amid-...
2•petethomas•52m ago•1 comments

Agentic Memory Is Still an Unsolved Problem

2•manthangupta109•53m ago•0 comments

What will tech jobs look like in 2026?

https://restofworld.org/2026/tech-jobs-2026-ai-layoffs-hybrid-work/
1•Brajeshwar•54m ago•0 comments

100% AI Coded Game on Steam – Full Dev Log

https://web3dev1337.github.io/epic-survivors-architecture/
2•BlueShrimpGames•59m ago•1 comments

Mail: RFC822:Address: regexp-based address validation (2012)

https://pdw.ex-parrot.com/Mail-RFC822-Address.html
1•vismit2000•1h ago•0 comments

Quantum physicists create largest ever 'superposition'

https://www.nature.com/articles/d41586-026-00177-9
2•typeofhuman•1h ago•0 comments

Show HN: A condo review site for Bangkok renters to avoid deposit scams

https://condoreviewsthailand.com
3•digi_wares•1h ago•0 comments

Finland sets tougher guidelines: No social media or smartphones for under-13s

https://yle.fi/a/74-20205877
4•brylie•1h ago•0 comments

Amazon Gears Up to Ax Thousands More Corporate Employees

https://finance.yahoo.com/news/amazon-gears-ax-thousands-more-224656699.html
2•_____k•1h ago•1 comments

Workplace rights agency scraps anti-harassment guidance

https://apnews.com/article/eeoc-harassment-workplace-gender-trump-lucas-lgbtq-0ac048763668ae4f894...
1•petethomas•1h ago•0 comments