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•11mo 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•11mo 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•11mo 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•11mo 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•11mo ago
"def" is too generic.

"fn" is too cryptic.

"function" is better than the two.

MultifokalHirn•11mo ago
Agreed

Show HN: Building compiler from scratch without the help of LLMs [video]

https://www.youtube.com/watch?v=THIkjQnqsbw
1•aarnphm•32s ago•0 comments

Global freedom declined for the 20th consecutive year in 2025

https://freedomhouse.org/report/freedom-world/2026/growing-shadow-autocracy
1•Cider9986•1m ago•0 comments

Show HN: Mac-computer-use, an open-source clone of Codex Computer Use

https://github.com/TheGuyWithoutH/mac-computer-use
1•guywithnoh•4m ago•0 comments

Colombia will euthanize Pablo Escobar's invasive 'cocaine hippos'

https://www.scientificamerican.com/article/colombia-will-euthanize-pablo-escobars-invasive-cocain...
1•zdw•7m ago•0 comments

Fatal Accident Occurs in Nurburgring Langstrecken-Serie (NLS)

https://www.bbc.com/sport/motorsport/articles/crl1wwdegkno
1•linzhangrun•9m ago•0 comments

Bounce Off the Atmosphere at Reentry? (2016)

https://space.stackexchange.com/questions/19296/bounce-off-the-atmosphere-at-reentry
1•susam•9m ago•0 comments

F-14 Central Air Data Computer

https://en.wikipedia.org/wiki/F-14_CADC
1•unsnap_biceps•11m ago•1 comments

Verkada Deceives School That Verkada Cameras Would Not "Brick"

https://ipvm.com/reports/verkada-school-brick
1•jhonovich•13m ago•0 comments

CTX is a cognitive memory layer for AI systems

https://github.com/diegoxtr/ctx-open
2•diegoxtr•14m ago•0 comments

Show HN: FluxTest for testing network performance of self-hosted infrastructure

https://github.com/siddheshgunjal/flux-test
1•siddheshgunjal•15m ago•0 comments

NASA selects Falcon Heavy to launch ESA Mars rover mission despite budget threat

https://spacenews.com/nasa-selects-falcon-heavy-to-launch-esa-mars-rover-mission-despite-budget-t...
1•bookmtn•16m ago•0 comments

Show HN: Hyprmark – Markdown viewer for the Hyprland ecosystem

https://github.com/robinduckett/hyprmark
1•robinduckett•22m ago•1 comments

A resume builder for pets, for those who need to prove their animal isn't feral

https://petresume.co/
2•droopyKnees•34m ago•1 comments

The Khan Ted Institute

https://khanted.org/Home
2•capex•40m ago•0 comments

Ask HN: API Request for Feedback OK in Show HN?

2•casefile_dev•41m ago•2 comments

Opentargets-py – Python SDK for the Open Targets drug discovery database

https://pypi.org/project/opentargets-py/
2•goknurarican•45m ago•0 comments

Old Computers Sucked

https://oldcomputerssucked.com/
2•st_goliath•45m ago•0 comments

Is ChatGPT's web front end being intentionally degraded?

https://chatgpt.com
2•linzhangrun•49m ago•6 comments

Rise against the Machines: The Luddites [video]

https://www.youtube.com/watch?v=oeFTuD4Mnug
1•linsomniac•51m ago•0 comments

At the HumanX conference, everyone was talking about Claude

https://techcrunch.com/2026/04/12/at-the-humanx-conference-everyone-was-talking-about-claude/
1•Rafsark•51m ago•0 comments

The Cost of Cheap Clone Boards: Streaming Video on an STM32H750

https://msj.prose.sh/debug_streaming_weact_stm32h750
1•melastmohican•53m ago•1 comments

Robotaxi is now rolling out in Dallas and Houston

https://twitter.com/robotaxi/status/2045564609504116771
2•iknowstuff•54m ago•2 comments

AI chip startup Cerebras files for IPO

https://techcrunch.com/2026/04/18/ai-chip-startup-cerebras-files-for-ipo/
2•AnhTho_FR•55m ago•0 comments

Show HN: I built a CLI to fake Git commits

https://github.com/TDiblik/git-forge
2•TDiblik•1h ago•0 comments

No more bill shocks budget alerts comes to Cloudflare

https://projektisle.com/2026/04/no-more-bill-shocks-budget-alerts-comes-to-cloudflare/
1•todotask2•1h ago•0 comments

PostgreSQL Just Got Its Biggest Upgrade That Will Change DB Performance in 2026

https://medium.com/@CodingWithAbhi/postgresql-17-performance-upgrade-2026-f4222e71f577
1•breve•1h ago•0 comments

That 90s Chat Program You Don't Remember

https://www.youtube.com/watch?v=fMKiz7KTSz4
1•1o1o1o1o1•1h ago•0 comments

Deutsche Telekom has a bad DKIM key

https://infosec.exchange/@badkeys/116407565746342278
4•icco•1h ago•0 comments

Show HN: nvsx – A hook layer for NVSentinel GPU fault remediation

https://github.com/nav-beep/nvsx
1•essekar•1h ago•2 comments

MuJoCo – Advanced Physics Simulation

https://github.com/google-deepmind/mujoco
1•modinfo•1h ago•0 comments