5 ms·
its amazing how much the world hasn’t been able to keep up with java. github PRs still have no syntax highlighting support for record and var
by foolfoolz 4y ago
its amazing how much the world hasn’t been able to keep up with java. github PRs still have no syntax highlighting support for record and var
- jayd16 4y agoWhy do you think that is? I thought things like the language server protocol made this a self service kind of problem. Who needs to be catching up?
- oaiey 4y agoBecause syntax highlighting in JavaScript is (presumingly) not covered by LSP but by a generic syntax parser. And these updates take endless through the supply chain pipeline. And as a side note: LSPs are not exactly free these days anymore. Java is not considering it core project (I guess outsourced to RedHat and Eclipse) and Microsoft has a very erratic behavior towards what is in and out the LSP or DAP.
- TheAceOfHearts 4y agoGithub uses Linguist for syntax highlighting and has a section in their CONTRIBUTING document for fixing bad syntax highlighting [0]. Admittedly I couldn't figure out exactly what repo is being used for Java's syntax highlighting since vendor/README.md says Java is using tree-sitter/tree-sitter-java and grammar.js in that repo appeears to already include references to record. languages.yml [1] shows ace_mode java, and ace editor's java_highlight_rules.js doesn't mention record anywhere. I'm not clear if github is using ace editor or code mirror, since both are mentioned there. Hopefully this helps get started on improving the poor syntax highlighting experience. [0] https://github.com/github/linguist/blob/master/CONTRIBUTING.md https://github.com/github/linguist/blob/master/CONTRIBUTING.... [1] https://github.com/github/linguist/blob/c34f887f48d81e2ed42b59825fa5fe12d3918d63/lib/linguist/languages.yml#L3194 https://github.com/github/linguist/blob/c34f887f48d81e2ed42b... [2] https://github.com/ajaxorg/ace/blob/a2e89b94b4dcdff28bf3c8f4cb90ff008b13d0bd/src/mode/java_highlight_rules.js https://github.com/ajaxorg/ace/blob/a2e89b94b4dcdff28bf3c8f4...
- mrkeen 4y agoWith Java it's always win/win. If external software works with it, "Java has great tooling", if it doesn't, the rest of the world is slow.
- DannyBee 4y agoIt's highly amusing to watch java folks frame this as the rest of the world not "keeping up" when it's pretty obvious it's the rest of the world not caring enough to do anything about it. I wonder how long it will be before they realize they are in the slow, sad, decline regardless of how many features get added.
- xyzzy4747 4y agoI think this is true for young companies - for example every crypto startup I’ve interacted with makes their backend in either Node.js, Golang, or Rust. There is quite a lot of legacy software that uses Java though.
- DannyBee 4y agoSure, no doubt there. Where i work has hundreds of millions of lines of java code, and i was the director responsible for the java team for years ;) But: 1. The enterprise users aren't spending their time chasing java versions, and probably already gave up and have a support contract with Azul or someone, or just stick with an unsupported versions. This is why all the cloud vendors, for example, either have such deals, or provide their own guarantee of support. So they almost certainly do not care about Java 20 anytime soon unless they are in the weird category of "serious java shop" (rather than legacy java shop), which is quickly shrinking. That is not a big enough class that people will "try to keep up" to frame it in the java-centric version used by GP. 2. The non-enterprise users are also a shrinking base.
- miffy900 4y ago'The world' in this case also includes a large portion of java programmers; it takes years for Java programmers to adopt new language features, if they do so at all. They're almost as bad as C++ devs. And if you consider the history of Java as a language since the 1990's, it has historically had very slow feature releases. If you review the release history of Java, almost half of major relases and changes to the language came after 2014+. var in Java came out in 2018, record was introduced out in 2020 - feaures that were copied from other languages that already had them for years. Java as a language is still is playing catchup here.
- guru4consulting 4y ago>>Java as a language is still is playing catchup here. It's a feature, not a bug.