the compile time is so bad in kotlin. 25s for meas...
# announcements
w
the compile time is so bad in kotlin. 25s for measly 300 lines of code + 1 library. insane.
j
wineluis: what OS are you on?
w
arch linux
j
ok, there was an issue on OSX where host lookups took forever which made compile times super long, for a simple hello world, it also took 25+ seconds. After putting ::1 and localhost in the hosts file, it went down to half a second
might be something similar ?
w
golang compiles in 5 seconds with 20-40 times the size
shit lang
idk
im using gradle
maven is also terribly slow
j
add the following in your /etc/hosts file:
Copy code
127.0.0.1   localhost machinename.local 
::1         localhost machinename.local 
0:0:0:0:0:0:0:1 localhost machinename.local
where machinename is whatever you see in your terminal before the blinking cursor
my compile time is around 2 seconds on a large project
w
wtf
i check
j
is it making a difference ?
w
do I need to restart something ?
j
nope, should just start working
maven tries to resolve certain things at machinename.local and for some reason on certain OSes, this takes extremely long.
w
its at least 5 seconds now
j
ok, that’s a huge improvement already
now switch on incremental compile
w
thats active by default
j
I compile from command line, that takes in the millisecond range for something that takes several seconds in IntelliJ
see if there’s a Kotlin package available for Arch Linux, I know OSX got one via HomeBrew
w
but youd evelop with intellij ?
i hate this ide
j
In your maven properties add:
Copy code
<properties>
        <!-- This option is experimental, if you're having build issues, disable it -->
        <kotlin.compiler.incremental>true</kotlin.compiler.incremental>
    </properties>
IntelliJ is the best IDE around
👍 4
d
why do you hate it?
w
its overweight and the vim plugin sucks
d
no idea about vim plugin because I don’t use it, but by “overweight” I guess you mean it’s slow?
j
Compared to Netbeans which doesn’t have a Vim plugin last time I checked and Eclipse which has a buggy one, IntelliJ’s one is pretty close to running Vim straight in the command line.
w
intellij fucks it up if you use mouse to copy
j
use
v
for visual mode,
y
for copy and
p
for paste You’re also supposed to be in insertion mode before you paste, regular VIM does the same.
w
in vscode you can use the mouse to copy paste properly and use y and p
j
sounds like a cool feature, log a feature request: https://youtrack.jetbrains.com/issues/VIM
w
y
thank you
i think it compiles a bit faster now
👍 1
o
@wineluis I would strongly ask you to watch your language. If you don’t like something it’s fine, but you need to put arguments on the table, not rude words.
2
👍 3