News for hackers. Stuff that matters.
Re:CLion Nova Explodes onto the C and C++ Development Scene by jicea on Thursday November 09, 2023 @11:12AM (#38206884)
I really like developing Rust with CLion: when I'm using C libs and Rust bindings, I can debug it seamlessly and efficiently. If RustRover [1], the dedicated JetBrains IDE for Rust, doesn't support C/C++, It will be a showstopper for switching.

[1]: https://www.jetbrains.com/rust/

Re:CLion Nova Explodes onto the C and C++ Development Scene by the__alchemist on Thursday November 09, 2023 @11:24AM (#38207076)
I'm running into this. I had a versatile setup previously where PyCharm had first-class support with the main languages I used: Python, Rust, JS, CSS, HTML, TS.

Now I'm working on a Rust + CUDA FFI project; RustRover has minimal support for the CUDA (essentially C++) code. It does syntax highlighting and comment-hotkey, but the introspection and refactoring appear inop. It would be nice if RustRover and CLion were combined.

Re:CLion Nova Explodes onto the C and C++ Development Scene by askonomm on Thursday November 09, 2023 @01:28PM (#38208820)
JetBrains, if you're reading this: LionRover. You're welcome.
Re:CLion Nova Explodes onto the C and C++ Development Scene by make3 on Thursday November 09, 2023 @01:49PM (#38209152)
You can even make the joke that you're guiding the LionRover from Space, their virtual desktop solution
Re:CLion Nova Explodes onto the C and C++ Development Scene by Xeamek on Thursday November 09, 2023 @02:32PM (#38209813)
Clion + Rust plugin should have feature parity with RustRover, but not the other way around.

Just switch to Clion and You'll problem will be solved

Re:CLion Nova Explodes onto the C and C++ Development Scene by ActionHank on Thursday November 09, 2023 @11:14AM (#38206916)
There is also a push towards Rust on the web side of things too, it would be amazing to have a single language that could be used for both worlds
Re:CLion Nova Explodes onto the C and C++ Development Scene by flohofwoe on Thursday November 09, 2023 @11:34AM (#38207186)
That's already reality though, technically any language with WebAssembly support can be used in "both worlds".

In reality of course it's a bit more than just compiler support, you'd want easy interop with Javascript and Web APIs and a working debugger. With the Emscripten SDK and Chrome's and VSCode's WASM DWARF support it's looking pretty good now at least for C and C++ (but I assume the WASM DWARF debugging stuff also works for Rust, since it's the same compiler infrastructure underneath).

Re:CLion Nova Explodes onto the C and C++ Development Scene by zamalek on Thursday November 09, 2023 @04:32PM (#38211654)
I have really tried using Rust for the web (because I truly enjoy Rust). The ergonomics just aren't there yet.

Leptos, as a popular recent example, suffers from one major issue (that most others suffer from too): the JSX stuff is opaque to Rust Analyzer. Code completion aside, you lose the ability to hover - massively crippling any hope of tracking down how to resolve a type mismatch.

Web Rust also has the impedance mismatch that Rust has for UI. There are several success stories - e.g. Cosmic Desktop, but I'm certain that there's more love than practicality involved.

I think part of the reason is that we are trying to shove in existing patterns - which originate from OOP languages - into Rust. In both semantic and ergonomic terms I have been bitten by trying to OOP in Rust when I was first learning it.

I think that there exists an (as yet unknown) solution to the UI problem. It's just going to look nothing like React (or Elm even).

Re:CLion Nova Explodes onto the C and C++ Development Scene by it on Thursday November 09, 2023 @11:21AM (#38207037)
Kotlin does this.
Re:CLion Nova Explodes onto the C and C++ Development Scene by gavinray on Thursday November 09, 2023 @03:30PM (#38210791)
As does Scala, Clojure, and C#.
Re:CLion Nova Explodes onto the C and C++ Development Scene by cmrdporcupine on Thursday November 09, 2023 @11:28AM (#38207127)
My annual renewal for CLion is coming up, and I need to make a decision.

These days I only do Rust dev really. I'm not clear on what their plans are for ongoing Rust support in CLion going forward now that they're rolling out RustRover. Are they going to pull it?!

Re:CLion Nova Explodes onto the C and C++ Development Scene by nicce on Thursday November 09, 2023 @11:40AM (#38207266)
The plugin is deprecated now, so I believe so.
Re:CLion Nova Explodes onto the C and C++ Development Scene by zlurker on Thursday November 09, 2023 @12:13PM (#38207773)
Yep, I got intellij to work with python/rust/scala and it's frustrating to see it pulled out like that. Not sure why they need to sell so many IDEs that are almost identical. Would've been happy with some upcharge for a "premium" plugin but I don't want to install three IDEs like they apparently want me to.
Re:CLion Nova Explodes onto the C and C++ Development Scene by dijit on Thursday November 09, 2023 @12:36PM (#38208086)
from what I understood there is “Intellij IDEA Ultimate” which allows you to enable all the features of the specific IDEs as if they are plugins.
Re:CLion Nova Explodes onto the C and C++ Development Scene by rafaelmn on Thursday November 09, 2023 @01:37PM (#38208969)
No, this only works for a few languages supported as plugins. Most of JetBrains IDEs are separate even if built on a same core. I have all products license and still can't use a single app to access all languages.
Re:CLion Nova Explodes onto the C and C++ Development Scene by zlurker on Thursday November 09, 2023 @02:39PM (#38209969)
even with the supported plug-ins it's still not the same either. intellij with python plugin has just enough differences with it that it throws off some of my coworkers who use pycharm.
Re:CLion Nova Explodes onto the C and C++ Development Scene by cmrdporcupine on Thursday November 09, 2023 @12:26PM (#38207968)
The old plugin is deprecated, but the new plugin installs fine into CLion. The question is how long that will be the case.

Because I work at a company that is mostly C++, with some Rust. My team's project is 90% Rust, but I still need to do C++ now and then. I'd be super annoyed to lose that.

They should at least continue to offer the plugin as a paid expansion option for CLion.

Re:CLion Nova Explodes onto the C and C++ Development Scene by nicce on Thursday November 09, 2023 @02:41PM (#38210012)
Yeah, the future is a big question. Here is quote from some mail:

> As said in the announcement, RustRover is available as a plugin to IntelliJ IDEA during the preview period. However, we have yet to determine whether this will be the case once we’ve released RustRover. This is because we’re still not certain whether users will need the plugin or whether a dedicated Rust IDE will be sufficient. Around the release time, when we make our decision. We’ll also consider the cases when IntelliJ IDEA licenses were primarily bought for Rust development with the IntelliJ Rust plugin and which options we can suggest to our users in these cases. Please stay tuned!

https://github.com/intellij-rust/intellij-rust/issues/10867#...

Re:CLion Nova Explodes onto the C and C++ Development Scene by the_duke on Thursday November 09, 2023 @11:46AM (#38207371)
You'll need to get Intellij Ultimate, where the new Rust plugin will be available; or switch to RustRover.
Re:CLion Nova Explodes onto the C and C++ Development Scene by Xeamek on Thursday November 09, 2023 @02:33PM (#38209861)
Rust plugin is avaible in Clion as well, and it has more features then in IntelliJ (like debugging)
Re:CLion Nova Explodes onto the C and C++ Development Scene by ziml77 on Friday November 10, 2023 @05:58PM (#38225717)
You just need to install the Native Debugging Support plugin into IntelliJ. I recently switched from having all the language specific apps installed to centralizing on IntelliJ IDEA. As far as I can tell, that plugin gives you all the same debugging features as CLion and RustRover.
Re:CLion Nova Explodes onto the C and C++ Development Scene by JKCalhoun on Thursday November 09, 2023 @02:20PM (#38209604)
Yeah the rental/subscription model is what turned me away from CLion. It was cool while it was still in free-trial mode and I'd have happily paid for it as an app that doesn't require a subscription.
Re:CLion Nova Explodes onto the C and C++ Development Scene by beached_whale on Thursday November 09, 2023 @03:03PM (#38210363)
you are not renting but paying for updates. The latest version when your subscription ends is what you are licensed for. I think it's after 1 year though.
Re:CLion Nova Explodes onto the C and C++ Development Scene by cmrdporcupine on Thursday November 09, 2023 @04:10PM (#38211356)
The money is entirely worth it, to me. And I pay for it out of pocket rather than billing my employer for it, even. And I'll still be able to use the latest version I had at the time the sub ended.
Re:CLion Nova Explodes onto the C and C++ Development Scene by Leo_Germond on Friday November 10, 2023 @02:58AM (#38216299)
You should consider having it paid by your employer, even with some chargeback on your pay you would save on taxes.
Re:CLion Nova Explodes onto the C and C++ Development Scene by cmrdporcupine on Sunday November 12, 2023 @10:33AM (#38241012)
I don't like having my employer pay for tools that I also use for my own open source IP.
Re:CLion Nova Explodes onto the C and C++ Development Scene by thegrim22 on Friday November 10, 2023 @04:28PM (#38224779)
I really dislike it and every time my license expires I somehow end up getting screwed over. I'll be using version X, then pay for a year license, use version X for the entire year, never upgrade, and then after a year when the license expires all of the sudden I'm locked out of version X and told my "fallback" version is some version older than X. Why isn't my fallback version the latest stable version at the time I purchased the product?
Re:CLion Nova Explodes onto the C and C++ Development Scene by aldanor on Thursday November 09, 2023 @04:29PM (#38211627)
I was a happy user of CLion + intellij-rust since its first version, I believe, advertising it to everyone. Switched to neovim + RA half a year ago and don't think I'm ever going back :)
Re:CLion Nova Explodes onto the C and C++ Development Scene by self_awareness on Thursday November 09, 2023 @11:55AM (#38207487)
True, I've used CLion for a few years to do C++ and Rust dev, and I'm currently making an effort to check if VSCode meets my workflow. I don't want to buy another IDE just to have what I already had.
Re:CLion Nova Explodes onto the C and C++ Development Scene by api on Thursday November 09, 2023 @01:14PM (#38208570)
My biggest gripe with JetBrains' lineup is the different "spins" for different languages. They should make a single IDE with plugins for many different languages to deliver a vastly superior experience to VSCode.

Multi-language code bases aren't that uncommon either. As you say mixing C and Rust is common in apps and systems level programming. Mixing JavaScript, TypeScript, Go, and other languages like Python is also pretty common in web-centric stuff.

Re:CLion Nova Explodes onto the C and C++ Development Scene by softjobs on Thursday November 09, 2023 @01:24PM (#38208748)
Re:CLion Nova Explodes onto the C and C++ Development Scene by api on Thursday November 09, 2023 @01:28PM (#38208809)
Yeah that looks like the VSCode killer.
Re:CLion Nova Explodes onto the C and C++ Development Scene by make3 on Thursday November 09, 2023 @01:48PM (#38209136)
hopefully not too little too late
Re:CLion Nova Explodes onto the C and C++ Development Scene by api on Thursday November 09, 2023 @02:07PM (#38209420)
There’s not much lock in with VSCode. I could change in a day, and might when this is mature.
Re:CLion Nova Explodes onto the C and C++ Development Scene by pjmlp on Friday November 10, 2023 @02:33AM (#38216157)
Besides having to pay for Fleet, it isn't available as Web editor on Github and Azure, allowing one to develop server based software as in the timesharing gold days.

The plugin ecosystem from VSCode is the only reason I tolerate an Electron powered editor for specific use cases.

Re:CLion Nova Explodes onto the C and C++ Development Scene by JoRyGu on Thursday November 09, 2023 @02:38PM (#38209946)
It's still way too early to declare it just yet. It's still vastly inferior to their existing separated IDEs. I'm optimistic though.
Re:CLion Nova Explodes onto the C and C++ Development Scene by byteknight on Thursday November 09, 2023 @01:22PM (#38208712)
You're describing IntelliJ Ultimate.
Re:CLion Nova Explodes onto the C and C++ Development Scene by dgfitz on Thursday November 09, 2023 @01:17PM (#38208634)
Wasn’t this the model the Eclipse IDE uses/used?
Re:CLion Nova Explodes onto the C and C++ Development Scene by pjmlp on Thursday November 09, 2023 @01:22PM (#38208713)
No, JetBrains only makes some plugins available on specific IDE workloads, unless you buy InteliJ Ultimate.

Whereas you get the whole experience on Eclipse out of the box.

To keep in context, to this day you can't debug JNI on regular InteliJ, unless having CLion as well.

Something that Netbeans and Eclipse support for at least 20 years now.

Re:CLion Nova Explodes onto the C and C++ Development Scene by api on Thursday November 09, 2023 @01:22PM (#38208717)
Yes, and that aspect of Eclipse was good. Eclipse was too bloated and its language support wasn't nearly as good as anything by Jetbrains.

(It still exists but seems kind of dead outside Java shops.)