News for hackers. Stuff that matters.
Re:Ray Tracing for the TI-84 CE by isomel on Thursday February 10, 2022 @01:32PM (#30290470)
GitHub claim this is 93% C and 3.8% C++, despite it being entirely in C++ (and a bit of ASM). I guess GitHub just consider that a .h file is a C file
Re:Ray Tracing for the TI-84 CE by flohofwoe on Thursday February 10, 2022 @01:52PM (#30290748)
Yes, github's language detection is definitely messed up, especially in the C language family. A while ago, a C or C++ source file would be detected as Objective-C if you had a variable called "id" (I think that's been fixed though).
Re:Ray Tracing for the TI-84 CE by pjmlp on Friday February 11, 2022 @02:15AM (#30298071)
You can override it. I had to provide such an override so that my C++ module files would be reckognised as C++.

A .gitattributes file must be present with something like,

    *.ixx linguist-language=C++
More info here, https://github.com/github/linguist/blob/master/docs/override...
Re:Ray Tracing for the TI-84 CE by Raineer on Thursday February 10, 2022 @02:26PM (#30291184)
To add to that, Github reads Arduino code as C++.

I know it's not truly this simple, but if the file extension is ".ino", I feel like your detection algorithm should be free to use that as a massive indication it is Arduino code.

Re:Ray Tracing for the TI-84 CE by pragmatic8 on Thursday February 10, 2022 @02:49PM (#30291500)
…but Arduino code IS c++ code. I don’t believe a distinction would make much sense.
Re:Ray Tracing for the TI-84 CE by isomel on Friday February 11, 2022 @01:28AM (#30297774)
They should throw AI at this problem.