News for hackers. Stuff that matters.
Re:Workerd: Open-source Cloudflare workers runtime by the_mitsuhiko on Tuesday September 27, 2022 @11:03AM (#32996214)
That’s probably the first codebase I have seen in years where someone picked .c++ as file extension.

(In my opinion objectively the worst possible choice because + requires URL encoding ;))

Re:Workerd: Open-source Cloudflare workers runtime by kentonv on Tuesday September 27, 2022 @11:08AM (#32996297)
Haha, I started doing this with Cap'n Proto 10 years ago. :)

I periodically get crap for it but so far it hasn't really broken anything.

The biggest annoyance is exactly what you point out -- the GitHub URLs look ugly because they %-encode the plus signs. Though it turns out you can manually un-encode them and it works fine.

Re:Workerd: Open-source Cloudflare workers runtime by teddyh on Tuesday September 27, 2022 @11:21AM (#32996502)
It breaks Make, which does not have a default rule for “*.c++” files, but does have rules both for “*.cpp” files and the older naming custom of “*.C” files.
Re:Workerd: Open-source Cloudflare workers runtime by jchw on Tuesday September 27, 2022 @11:26AM (#32996573)
In modern GNU make it is generally advised to disable default rules anyways. I know some people try to do portable Make, but I am pretty over that idea myself, so if I do use Make, I'm using GNU extensions and GNUmakefile.
Re:Workerd: Open-source Cloudflare workers runtime by teddyh on Tuesday September 27, 2022 @11:30AM (#32996639)
GNU Make does not have a rule for “*.c++” files, either.

Do you have a reference to the advice to disable default rules? It sounds counterproductive to me.

Re:Workerd: Open-source Cloudflare workers runtime by jchw on Tuesday September 27, 2022 @12:25PM (#32997537)
There's lots of different opinions on how to use Make, but here's one. https://tech.davis-hansson.com/p/make/
Re:Workerd: Open-source Cloudflare workers runtime by teddyh on Tuesday September 27, 2022 @06:54PM (#33002179)
Not very well recieved here on HN a month ago: https://news.ycombinator.com/item?id=32541016
Re:Workerd: Open-source Cloudflare workers runtime by jchw on Tuesday September 27, 2022 @07:36PM (#33002544)
That's a sign that it's good :)

Jokes aside though, the only major complaint people have is about .RECIPEPREFIX, which I also don't follow. I didn't read too many comments, but the top voted comments do not appear to take issue with the advice to disable built-in rules.

I'd be surprised, since it is far from the first time I've heard that advice, and it never seemed very controversial.

Re:Workerd: Open-source Cloudflare workers runtime by Thaxll on Tuesday September 27, 2022 @11:32AM (#32996664)
Why would you use .c++ instead of the standard .cpp?
Re:Workerd: Open-source Cloudflare workers runtime by kentonv on Tuesday September 27, 2022 @11:40AM (#32996794)
I got tired of arguing about .cpp vs. .cc vs. .cxx vs. .C.

So I used the actual name of the language, and it worked fine. :)

Re:Workerd: Open-source Cloudflare workers runtime by breakingcups on Tuesday September 27, 2022 @04:24PM (#33000653)
Re:Workerd: Open-source Cloudflare workers runtime by ceejayoz on Tuesday September 27, 2022 @11:04AM (#32996242)
Oh, there's worse; you can use emoji in filenames.
Re:Workerd: Open-source Cloudflare workers runtime by staticassertion on Tuesday September 27, 2022 @11:41AM (#32996824)
Anything other than null and `\` are valid on linux iirc
Re:Workerd: Open-source Cloudflare workers runtime by yencabulator on Tuesday September 27, 2022 @03:35PM (#33000046)
You mean slash, not backslash.
Re:Workerd: Open-source Cloudflare workers runtime by andrewnyr on Tuesday September 27, 2022 @01:17PM (#32998235)
people on this website will complain about the stupidest shit
Re:Workerd: Open-source Cloudflare workers runtime by j16sdiz on Tuesday September 27, 2022 @11:33AM (#32996701)
C++ can be .C, .cc, .cxx, or.c++
Re:Workerd: Open-source Cloudflare workers runtime by Maksadbek on Tuesday September 27, 2022 @12:19PM (#32997450)
How about .cpp ?