frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Public/protected/private is an unnecessary feature

https://catern.com/private.html
2•todsacerdoti•1d ago

Comments

baobun•1d ago
...in absence of inheritance
bccdee•21h ago
> Access modifiers were originally invented in Simula. As far as I can tell from extensive research, the inventors and users at that time simply didn't realize that access modifiers duplicated the interface-defining features that were already available: virtual methods and subtyping, which together are sufficient to define interfaces in Simula.

Simula was designed in the '60s. Public methods are still static, which mattered a lot back then. An 00s language like Java can take vtable hits for granted, but in the 60s that price was too high.

Anyway, interfaces and visibility serve different purposes. Interfaces exist so the caller can abstract over multiple implementations of a particular behaviour. Private methods exist for the callee's sake, to protect its internals from misuse that might violate invariants.

This is why languages like Go and Rust can comfortably define privacy at the module level—something that would make much less sense for interfaces—and why a language like python needs private methods (or, at least, _courtesy_private and __mangled_private methods) even though it has no interfaces.

dragonwriter•21h ago
> Simula was designed in the '60s. An 00s language like Java

Not that it is a big deal, but Java is a 90s language, not 00s.

> This is why a language like python can have private methods (or, at least, _courtesy_private and __mangled_private methods) but no interfaces

Interfaces are a feature of typing, and Python has them for both runtime (abc) and statically-checked (protocol) typing.

bccdee•21h ago
Java 1.0 was in '96. I had remembered it as being more like '98, which was why I said 00s and not 90s—1998 felt a bit late to really be "90s" for me.

I wouldn't really call abstract classes interfaces. They're a way to spread behaviour across an inheritance hierarchy, but a fully abstract class doesn't do anything. Python is duck-typed; inheriting from a fully-abstract class is a no-op unless you're doing something metaprogrammy.

Just dropped ragbits v1.0 and create-ragbits-app – spin up a RAG app in minutes

https://github.com/deepsense-ai/ragbits
1•mhordynski•2m ago•1 comments

Tsukuyomi: Intelligent Modular Framework for Structured Analysis and Processing

https://github.com/ShimazuSystems/TSUKUYOMI
1•handfuloflight•2m ago•0 comments

IBM Cloud login breaks for second time in a fortnight

https://www.theregister.com/2025/06/03/ibm_cloud_outage/
1•eniac111•6m ago•0 comments

Ask HN: Why doesn't HN have dark mode yet?

1•schappim•8m ago•0 comments

Show HN: A wah effect plugin for regular DAWs, web browsers and C64

https://clack.digital/asid
1•stefanorastron•8m ago•0 comments

Doubling Down on Open Source

https://langfuse.com/blog/2025-06-04-open-sourcing-langfuse-product
3•clemo_ra•8m ago•0 comments

Types ⊂ Tests ⊂ Evals?

https://nilesh.trivedi.link/thoughts/we-need-a-formal-theory-of-agent-evals
1•nileshtrivedi•9m ago•0 comments

How Will AI Transform Human Life in the Next 20 Years?

https://www.thetimes.com/life-style/celebrity/article/demis-hassabis-ai-could-cure-all-diseases-in-10-years-09pcqh7cb
1•_elephant•10m ago•1 comments

"Give me a few seconds to get everything ready for you so that I can help."

1•chrisjj•11m ago•1 comments

I'm organizing a free class on design as a tool for change ⬛

https://bipocdesignhistory.com/products/all-power-to-the-people-black-panther-party-artist-emory-douglas-s-posters-as-activism-and-tools-for-change/
1•chronictanvi•12m ago•0 comments

The Gutting of America's Medical Research

https://www.nytimes.com/interactive/2025/06/04/health/trump-cuts-nih-grants-research.html
5•pmags•12m ago•1 comments

Assessing the Duration of the Paleocene-Eocene Thermal Maximum

https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2024GL113117
2•PaulHoule•12m ago•0 comments

Startup Wants to Help Parents Rank Embryos for Longevity (Nuclear Genomics)

https://www.wsj.com/health/embryo-ivf-screening-longevity-2b1f096a
1•Bostonian•12m ago•1 comments

Why finding a new job as an engineer is becoming so boring

https://blog.canellariccardo.it/why-finding-a-new-job-as-an-engineer-is-becoming-so-boring-1726936be2ba?sk=0a95a50f292b39d326229f30520e5b75
1•thecreazy•13m ago•0 comments

Precision is not limited by the second law of thermodynamics

https://www.nature.com/articles/s41567-025-02929-2
3•bookofjoe•14m ago•0 comments

Show HN: The never-ending story, create your own 8-bit AI adventure.

https://neverendingstory.ca/
1•ramathornn•15m ago•0 comments

No More Shading Languages: Compiling C++ to Vulkan Shaders [pdf]

https://xol.io/random/vcc-paper.pdf
2•todsacerdoti•16m ago•0 comments

The Longest Journey

https://magazine.atavist.com/the-longest-journey-lena-rowat-coast-range-ski-traverse-devils-thumb-mount-logan/
1•mooreds•17m ago•0 comments

Mistral Code

https://mistral.ai/news/mistral-code
2•meetpateltech•18m ago•0 comments

Behind Monty Hall's Doors: Puzzle, Debate and Answer? (1991)

https://www.nytimes.com/1991/07/21/us/behind-monty-hall-s-doors-puzzle-debate-and-answer.html
1•freels•19m ago•0 comments

Ask HN: An AI tool to instantly turn text into infographics sound interesting?

1•refinedea•19m ago•0 comments

No people, no problem: AI chatbots predict elections better than humans

https://www.semafor.com/article/09/20/2024/ai-startup-aaru-uses-chatbots-instead-of-humans-for-political-polls
2•virtual_rf•19m ago•0 comments

Canada proposes sweeping immigration and security bill

https://www.bbc.com/news/articles/c780rj9nve0o
1•mooreds•19m ago•0 comments

Systematic Strategies and Quant Trading 2025

https://hedgenordic.com/2025/06/report-systematic-strategies-and-quant-trading-2025/
1•sebg•19m ago•0 comments

From JSON to Binary: How We Made DeBERTa Tokenizer 100x Faster

https://corewood.io/blog/json-to-binary-deberta-tokenizer
1•mooreds•20m ago•0 comments

Show HN: Turn your Twitter profile into a live talking clone of YOU

https://x.avatartalkai.com/
2•jasonliu0704•20m ago•1 comments

How AI Companions Could Shape Us

https://blog.wesleyabbey.io/p/how-ai-companions-could-shape-us
1•wesleyabbey•20m ago•0 comments

Show HN: Tweety – An Integrated Terminal for Any Chromium-Based Browser

https://github.com/pomdtr/tweety
2•pomdtr•22m ago•0 comments

BBC and Sky bosses criticise plans to let AI firms use copyrighted material

https://www.theguardian.com/technology/2025/jun/04/bbc-sky-government-uk-ai-technology-copyright
3•chrisjj•23m ago•0 comments

Identifying Signals of Expertise in Interviews

https://sharedphysics.com/signals-of-expertise/
1•goopthink•24m ago•0 comments