4 ms·
JetBrains is kinda crushing it. I've spent the last two days looking into Kotlin. I didn't realize not only that Kotlin can compile to JS but also that you can
by adamnemecek 9y ago
JetBrains is kinda crushing it. I've spent the last two days looking into Kotlin. I didn't realize not only that Kotlin can compile to JS but also that you can interact with say React from it. So you can build a full stack app in it, without ever touching JS. (I think that the JS compilation is still technically in beta but w/e).
https://github.com/Kotlin/kotlin-fullstack-sample https://github.com/Kotlin/kotlin-fullstack-sample
Combined with the fact that you can use Quasar for Erlang style processes, I think that I found my next web language.
I guess you could achieve this with Scala too but I could never get over the compilation times. Also the Kotlin integration seems somewhat more straightforward.
I also like that the company that makes my IDE also makes the ORM (https://github.com/JetBrains/Exposed https://github.com/JetBrains/Exposed) and web framework (https://github.com/Kotlin/ktor https://github.com/Kotlin/ktor). Idk how good these are but I imagine pretty decent.
- rnentjes 9y agoActually the javascript target has been fully supported since version 1.1. For example here is a single page app written with kotlin: https://github.com/rnentjes/simple-password-manager https://github.com/rnentjes/simple-password-manager
- adamnemecek 9y agoYou might be right, I was certain I read somewhere that some things might still change.
- bitL 9y agoHow efficient is the conversion performance-wise and code-length wise? Can I finally get rid of GWT if I want to develop web apps with JVM tooling? Is the debug mapping between JS variables and JVM variables better than with GWT and super dev mode? Is it easy to use Kotlin with ReactVR/Native?
- rnentjes 9y agoWith the 1.1.4 version they have added a dead code eliminator which really helps with the resulting javascript length. In the example above the resulting javascript file is 440 KB (zipped 113 KB). Which is not bad if you take into account that the included libraries are more than 2MB (the standard library and static html builders being the biggest ones). I haven't measured runtime performance, but I haven't noticed anything being slower than plain javascript yet. A clean compile in this example takes ~8 second, incremental compiles takes 3-4 seconds. The jvm doesn't play a role when targeting javascript so I am not sure what you mean with JVM variables and I don't know much about GWT. But you can debug the resulting javascript from intellij and step through the kotlin sources if you want. I don't know how easy it is to integrate with react.
- tootie 9y agoIs isomorphic Kotlin a thing yet?
- adamnemecek 9y agoThis stack is isomorphic no?
- pas 9y agoI think the question refers to this: https://medium.com/@ghengeveld/isomorphism-vs-universal-javascript-4b47fb481beb https://medium.com/@ghengeveld/isomorphism-vs-universal-java...
- scarface74 9y agoBuying my first Mac in over 10 years to learn iOS development is on my bucket list. I also wanted to use it to play with .Net Core on a Unix environment. I'll gladly give JetBrains more money than I do now for Resharper to use Rider (cross platform C# IDE) and all of their other tools.
- ZeroCool2u 9y agoRider Release Candidate is still free atm too!
- louthy 9y agoI really hope they nail it with Rider. I am so sick of Visual Studio. It just gets slower and slower. I have a 20 core machine, with 128gb of RAM and it constantly seizes up for seconds at a time, various components crash randomly, and things sometimes work and sometimes not: Go To Definition for example, or pressing F2 to rename. Whatever it is that suggests I add a missing using sometimes decides it can't do that and instead prefixes the unknown type with the fully qualified name (so it has the namespace, it prefixes the type I wrote, but it can't suggest adding the using). Debugging has been broken too, where sometimes it can't even show me what my local variables are never mind other vars, and it is also much slower than it was. And god help you if you have a large code file in your project. The moment you've opened it once, that's it everything starts falling apart and slowing to a crawl. If I copy a file in a .NETCore project then I have to close the solution and re-open it for the compiler to see it. Et cetera, et cetera. It's obvious that things that shouldn't do a lot of work, do in fact do work. Like if I press Ctrl+C on some selected text. I simply expect it to put the text into the clipboard. But sometimes it will stall, put a dialog on the screen telling me it's doing some formatting and I need to wait! What the hell is it formatting? Every member of my team is sick of it and it's negatively affecting our productivity, so if Rider is good then bye bye Visual Studio.
- snomad 9y agoThank you for this. I have been using VS 2017 primarily for last 6 months as I enter the .net world and thought many of these complaints were me / my substandard machine.
- jorgemf 9y agoI am not sure if you can use the coroutines in javascript, but if you can you don't need React at all
- joncampbelldev 9y agowhat is the relationship between a concurrency primitive like coroutines and a view library like react?
- adamnemecek 9y agoI meant Quasar for backend. But I think that coroutines are possible in JS with generators.
- Xantier 9y agoYou can use coroutines with Kotlin JS. Your sentence doesn't really make sense to me though since coroutines and React have very little to do with each other.
- copperx 9y agoJetBrains is everything that Embarcadero aspired to be. It's perhaps the only for-profit organization I'm happy to give money to.
- conradfr 9y agoI was until their recent insistance to copy Adobe design and removing "distracting" colors in their UI. Also since their new licence scheme it seems releases quality can be hit or miss.
- true_religion 9y agoThey've always had issues with release quality in my opinion. My tactic is to use the upgraded version side-by-side with the old version, until I feel confident there aren't showstopping bugs... then delete the old version.
- rufugee 9y agoI was coincidentally looking at Ktor yesterday. I quickly ran into pages which are linked from the Getting Started guide (such at http://ktor.io/Features http://ktor.io/Features) which don't exist. Doesn't give the best first impression, but I gather it's a very new framework so I'm sure it'll be corrected soon...
- adamnemecek 9y agohttp://ktor.io/features/ http://ktor.io/features/ seems to work
- rufugee 9y agoAh...perhaps it's just a broken link on their end then. See the Features link at the bottom of this page: http://ktor.io/getting-started http://ktor.io/getting-started
- orangy 9y agoWe are sorry for broken links, we just recently migrated from GitHub wiki pages to own site and indeed some links could've migrated incorrectly. Thanks for the heads up, we will fix it :)
- alexwebb2 9y agoThey really do put out some great stuff - ReSharper is tremendously useful for .NET developers, YouTrack is one of the best (if lesser-known) issue trackers out there, and DataGrip is a fantastic database management tool (especially for Postgres, since pgAdmin 3 doesn't support newer versions and pgAdmin 4 is a major step backwards).
- wongarsu 9y agoThere is a pgAdmin 3 fork by BigSQL that supports new postgres versions. I can't say how it compares to DataGrip, but compared to pgAdmin 4 it's a godsend. https://www.openscg.com/bigsql/pgadmin3/ https://www.openscg.com/bigsql/pgadmin3/
- alexwebb2 9y agoOh, neat - I hadn't heard about that. I don't think I can go back from DataGrip, though. Too many nice things I've gotten used to (query tabs, multi-format result exports, etc).
- mythrwy 9y agoDataGrip is awesome. Only complaint is the subscription model. The nice thing about DataGrip as opposed to PG tools listed above is SQLServer support. (Sometimes you don't get to pick the database you'll be working with).
- mmargerum 9y agoLove data grip and I also use it for SQL Server. Im happy to pay the sub for it as I am webstorm and soon gogland. Hope they release a clojure IDE soon.
- erichmond 9y agoIf clojure/script didn't exist, I'd be doing the same thing! Kotlin is a great language!