Multi Platform, not Cross Platform
Only real cross platform is java at the end. With codenameone and with javafx you can write all: web, desktop and mobile with exactly the same sourcecode And UI.
You can… kinda do that with a lot of languages.
And with cosmopolitain, you can compile once, run several platforms, without needing an interpreter installed everywhere too.
question is: can you do everything with it what you can do with other languages? The API is not the entire C API. You may have many problems. How you want to build your UI? qt? WXWidgets? thigs you need to find out. And it is a real small community. Will it be actual for decades? Or not? Is there a long term? Or will it pass withon a year.
And here you can see for example what happens when using modern GUI:
And, by the way: most GUI implementations having native API’s for the target systems. So it is impossible to build this without help frm the vendor.
All in all: nice Idea but far away from productiv use.
Perhaps we shouldn’t be so razor focused on our specific use case that we can’t see possibilities elsewhere.
cosmopolitain is cross platform and useful and does what it does very well, even if it won’t recreate specific database java swing application.
Java will never do what cosmopolitain can do because it wasn’t meant for that. The obverse is also true.
The point was, there are many ways to crossplatform, cosmopolitain being an example of a rather impressive way of doing it, and Java isn’t the only language out there.
This is true but a Desktop application it can’t really build. That’s not cross platform Desktop what we discussed here. So. No.
Well, Decker is a desktop application that compiles to a cosmopolitain executable…
And again, it was just an example of what can be done in general, not a cosmopolitain ad.
.Net is cross platform too. Anything Web Assembly runs in any supporting browser. Tauri offers great flexibility in having cross platform complied applications built from web apps. There are options.
I was speaking often enough about dotnet. I don’t get what you want?
The Desktop UI capabilities are limited. And, by the way: I can provide also C++ with QT or with WXWidgets. Also running on all Desktop platforms. No question. C# also. But the point is here: Cosmoplitan can not privide full fledged Desktop applications and has limited API. That makes it a bit hard.
And the next is: running it for Desktop for all platforms is all platform dependent codes in one executabkle package. That, to cite their founder, without maintenance. What is also a bit of a problem in case of secruity updates you may need to provide. But what ever. Program this example with cosmopolitan and provide us a tutorial how to do that. You can look on my Java tutorial and do the same project. Makes sense.
At the end you may have no problems to do it. And everybody can realize what this compiler can do for everybody. I would be happy to test.
The entire point was: there’s options outside of java, and many languages are built for a purpose that they fulfill well. And many projects may fit other solutions better than Java.
I can’t hold the view that java is the only cross platform solution out there, or the one solution for every project. I can’t tell if that’s what you are saying, but I don’t think that view would make sense given that things I’ve worked on exist.
If your criticisms are specifically of cosmopolitain, it’s something I brought up as an novel example. I think it has great potential, and It’s gone far in 4 years. I won’t pretend it doesn’t have faults because that’s why I haven’t used it.
It does apparently do UI way better than I thought it did, and only found out from your link, so that’s good I guess?
That’s no question. But e could compare languages which are fulfilling professional needs and the ones which are for hobbyists need. Looking on this languages I cn see a leaking ecosystem, no real database abilites, gui problems and much more. That isn’t anything you can build up your business on. Looking on Languages like Go, Flutter/Dart, Kotlin, C, C++, C#, Delphi, JavaScript, Pathon: they have what this languages missing. And starting to work for a professional application it should be something with a reliable code base and a Support base which is working. That you may have not. So many arguments for professional languages which are made and maintained for professional use. You can switch Java to C# or Kotlin.