Readit News logoReadit News
eric-p7 commented on AGENTS.md – Open format for guiding coding agents   agents.md/... · Posted by u/ghuntley
eric-p7 · 10 days ago
We can't call it robots.txt?
eric-p7 commented on D2 (text to diagram tool) now supports ASCII renders   d2lang.com/blog/ascii/... · Posted by u/alixanderwang
eric-p7 · 11 days ago
Not to be confused with The D Programming Language, which has a similar domain (dlang.org), and is currently on version 2.
eric-p7 commented on Carbon Language: An experimental successor to C++   docs.carbon-lang.dev/... · Posted by u/samuell
kjksf · a month ago
I think this page describes "what" but not "why" of Carbon.

Carbon exists so that it's possible to migrate a large C++ code base, like Chrome, from C++ to something saner, incrementally.

The most important attribute of Carbon is not the specifics of the syntax but the fact that it's designed to be used in a mixed C++ / Carbon code base and comes with tooling to convert as much of C++ as possible to Carbon.

That's what makes Carbon different from any other language: D, Zig, Nim, Rust etc.

It's not possible to port a millions line C++ code base, like Chrome, to another language so large C++ projects are stuck with objectively pretty bad language and are forced to continue to use C++ even though a better language might exist.

That's why Carbon is designed for incremental adoption in large C++ projects: you can add Carbon code to existing C++ code and incrementally port C++ over to Carbon until only Carbon code exists.

Still a very large investment but at least possible and not dissimilar to refactoring to adopt newer C++ features like e.g. replacing use of std::string with std::string_view.

That's why it's a rational project for Google. Even though it's a large investment, it might pay off if they can write new software in Carbon instead of C++ and refactor old code into Carbon.

eric-p7 · a month ago
> That's what makes Carbon different from any other language: D, Zig, Nim, Rust etc.

I know you can compile C++ files to object files, pass them to the D compiler, and have them call eachothers' functions. I've never tried it though.

--------

g++ -c foo.cpp

dmd bar.d foo.o -L-lstdc++

--------

https://dlang.org/spec/cpp_interface.html

eric-p7 commented on Ask HN: What are you working on? (July 2025)    · Posted by u/david927
eric-p7 · a month ago
I've been working on a minimal, compilation-free JavaScript library that adds reactivity to native web components, as well as scoped styles and a few other ease-of-life features.

Solarite.js: https://vorticode.github.io/solarite/

eric-p7 commented on Why you should choose HTMX for your next web-based side project (2024)   hamy.xyz/blog/2024-02_htm... · Posted by u/kugurerdem
wibbily · a month ago
Interesting. It seems like an easy way to get JS to interact with HTML bits on the client side (if I understand it correctly).

Maybe it could be useful alongside HTMX even: client-side HTML manipulation for simple things and server-side HTML hydration and rendering for complex things.

eric-p7 · a month ago
I haven't tried it, but it should work so long as you don't use htmx to replace the parts of the components being modified by the reactivity.
eric-p7 commented on Why you should choose HTMX for your next web-based side project (2024)   hamy.xyz/blog/2024-02_htm... · Posted by u/kugurerdem
eric-p7 · a month ago
This seems like a good place to plug my own lightweight, compilation-free library that adds reactivity and local styles to native web components:

https://vorticode.github.io/solarite

eric-p7 commented on Supreme Court's ruling practically wipes out free speech for sex writing online   ellsberg.substack.com/p/f... · Posted by u/macawfish
rpmisms · 2 months ago
On a sociological level: good. I personally believe that easy-access porn has been detrimental to society.
eric-p7 · 2 months ago
I immediately scrolled to the bottom of the HN comments so I could find a comment like this to upvote.
eric-p7 commented on Linda Yaccarino is leaving X   nytimes.com/2025/07/09/te... · Posted by u/donohoe
anigbrowl · 2 months ago
Bullshit. Look how normal it is for people on X to cens*r c*rtain w*rds to avoid having their posts downranked.
eric-p7 · 2 months ago
Isn't the X ranking algorithm open source? Does it have hardcoded keywords or how does this censoring work?

Deleted Comment

eric-p7 commented on Berry Script: lightweight embedded scripting language for microcontrollers   berry-lang.github.io/... · Posted by u/hasheddan
eric-p7 · 2 months ago
Why can't this just be an embeddable subset of some other well-known language instead of a brand new language?

I've learned two dozen programming languages. I'm so tired.

u/eric-p7

KarmaCake day34June 11, 2024View Original