frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Is there any programming language that doesn't have WTFs?

5•behnamoh•9mo ago
After reading this page:

https://github.com/satwikkansal/wtfpython?tab=readme-ov-file#-needles-in-a-haystack-

I wonder if there's any language that thought about all edge cases and avoided exceptions and such gotchas at the design level.

JS is notorious for such WTFs but even Python—which I've used for over a decade now—has surprised me countless times.

Is Haskell also like that? How about Lisps (CL, Racket, Clojure, Scheme, etc.)?

Comments

PaulHoule•9mo ago
Only highly abstract languages like Brainfuck

https://esolangs.org/wiki/Brainfuck

which are too simple to have WTFs, although you might say the whole thing is a WTF. I think AVR-8 assembler is WTF free, but I'd like a more powerful macro assembler which would probably introduce a WTF.

Common Lisp is full of WTFs, I went through many stages of grief reading Graham's On Lisp but most notable was "if he was using Clojure he wouldn't be fighting with nconc". People have problems with Clojure too

https://www.more-magic.net/posts/thoughts-on-clojure.html

Gibbon1•9mo ago
For #3 on that list C has that too. And I often use it.

   printf( "thing1=%u\n"
           "thing2=%u\n"
           "thing3=%u\n"
           "thing4=%u\n"
           "thing5=%u\n",
       thing1,
       thing2,
       thing3,
       thing4,
       thing5);
tromp•9mo ago
Haskell is relatively WTF free as a language, behaving pretty much like the lambda calculus, but the standard libraries have their share of WTFs, such as the Enum instance for Double:

ghci> [0, 0.3 .. 2.0] [0.0,0.3,0.6,0.8999999999999999,1.2,1.5,1.7999999999999998,2.1]

I'd rather not see 2.1 in a range up to 2.0

jose_zap•9mo ago
That’s floating point, though. Not Double. Floating point has the same gotchas in all languages because it is a defined standard.
tromp•9mo ago
That list is of type (Fractional a, Enum a) => [a], but ghci defaults to Doubles, as you can see from

    ghci>  [0, 0.3 .. 2.0]  :: [Float]
    [0.0,0.3,0.6,0.90000004,1.2,1.5,1.8000001,2.1000001]
    ghci>  [0, 0.3 .. 2.0]  :: [Double]
    [0.0,0.3,0.6,0.8999999999999999,1.2,1.5,1.7999999999999998,2.1]
Exceeding the upper bound by 0.1 is not due to a general floating gotcha, but a specific choice in the definition of typeclass method enumFromThenTo for both Floats and Doubles.
Qem•9mo ago
Related: https://en.wikipedia.org/wiki/Principle_of_least_astonishmen...

Visual data modelling in the browser (open source)

https://github.com/sqlmodel/sqlmodel
1•Sean766•1m ago•0 comments

Show HN: Tharos – CLI to find and autofix security bugs using local LLMs

https://github.com/chinonsochikelue/tharos
1•fluantix•1m ago•0 comments

Oddly Simple GUI Programs

https://simonsafar.com/2024/win32_lights/
1•MaximilianEmel•2m ago•0 comments

The New Playbook for Leaders [pdf]

https://www.ibli.com/IBLI%20OnePagers%20The%20Plays%20Summarized.pdf
1•mooreds•2m ago•0 comments

Interactive Unboxing of J Dilla's Donuts

https://donuts20.vercel.app
1•sngahane•4m ago•0 comments

OneCourt helps blind and low-vision fans to track Super Bowl live

https://www.dezeen.com/2026/02/06/onecourt-tactile-device-super-bowl-blind-low-vision-fans/
1•gaws•5m ago•0 comments

Rudolf Vrba

https://en.wikipedia.org/wiki/Rudolf_Vrba
1•mooreds•6m ago•0 comments

Autism Incidence in Girls and Boys May Be Nearly Equal, Study Suggests

https://www.medpagetoday.com/neurology/autism/119747
1•paulpauper•7m ago•0 comments

Wellness Hotels Discovery Application

https://aurio.place/
1•cherrylinedev•7m ago•1 comments

NASA delays moon rocket launch by a month after fuel leaks during test

https://www.theguardian.com/science/2026/feb/03/nasa-delays-moon-rocket-launch-month-fuel-leaks-a...
1•mooreds•8m ago•0 comments

Sebastian Galiani on the Marginal Revolution

https://marginalrevolution.com/marginalrevolution/2026/02/sebastian-galiani-on-the-marginal-revol...
1•paulpauper•11m ago•0 comments

Ask HN: Are we at the point where software can improve itself?

1•ManuelKiessling•11m ago•0 comments

Binance Gives Trump Family's Crypto Firm a Leg Up

https://www.nytimes.com/2026/02/07/business/binance-trump-crypto.html
1•paulpauper•12m ago•0 comments

Reverse engineering Chinese 'shit-program' for absolute glory: R/ClaudeCode

https://old.reddit.com/r/ClaudeCode/comments/1qy5l0n/reverse_engineering_chinese_shitprogram_for/
1•edward•12m ago•0 comments

Indian Culture

https://indianculture.gov.in/
1•saikatsg•15m ago•0 comments

Show HN: Maravel-Framework 10.61 prevents circular dependency

https://marius-ciclistu.medium.com/maravel-framework-10-61-0-prevents-circular-dependency-cdb5d25...
1•marius-ciclistu•15m ago•0 comments

The age of a treacherous, falling dollar

https://www.economist.com/leaders/2026/02/05/the-age-of-a-treacherous-falling-dollar
2•stopbulying•15m ago•0 comments

Ask HN: AI Generated Diagrams

1•voidhorse•18m ago•0 comments

Microsoft Account bugs locked me out of Notepad – are Thin Clients ruining PCs?

https://www.windowscentral.com/microsoft/windows-11/windows-locked-me-out-of-notepad-is-the-thin-...
4•josephcsible•18m ago•0 comments

Show HN: A delightful Mac app to vibe code beautiful iOS apps

https://milq.ai/hacker-news
5•jdjuwadi•21m ago•1 comments

Show HN: Gemini Station – A local Chrome extension to organize AI chats

https://github.com/rajeshkumarblr/gemini_station
1•rajeshkumar_dev•21m ago•0 comments

Welfare states build financial markets through social policy design

https://theloop.ecpr.eu/its-not-finance-its-your-pensions/
2•kome•25m ago•0 comments

Market orientation and national homicide rates

https://onlinelibrary.wiley.com/doi/10.1111/1745-9125.70023
4•PaulHoule•25m ago•0 comments

California urges people avoid wild mushrooms after 4 deaths, 3 liver transplants

https://www.cbsnews.com/news/california-death-cap-mushrooms-poisonings-liver-transplants/
1•rolph•26m ago•0 comments

Matthew Shulman, co-creator of Intellisense, died 2019 March 22

https://www.capenews.net/falmouth/obituaries/matthew-a-shulman/article_33af6330-4f52-5f69-a9ff-58...
3•canucker2016•27m ago•1 comments

Show HN: SuperLocalMemory – AI memory that stays on your machine, forever free

https://github.com/varun369/SuperLocalMemoryV2
1•varunpratap369•28m ago•0 comments

Show HN: Pyrig – One command to set up a production-ready Python project

https://github.com/Winipedia/pyrig
1•Winipedia•30m ago•0 comments

Fast Response or Silence: Conversation Persistence in an AI-Agent Social Network [pdf]

https://github.com/AysajanE/moltbook-persistence/blob/main/paper/main.pdf
1•EagleEdge•30m ago•0 comments

C and C++ dependencies: don't dream it, be it

https://nibblestew.blogspot.com/2026/02/c-and-c-dependencies-dont-dream-it-be-it.html
1•ingve•30m ago•0 comments

Show HN: Vbuckets – Infinite virtual S3 buckets

https://github.com/danthegoodman1/vbuckets
1•dangoodmanUT•31m ago•0 comments