https://kotlinlang.org logo
#compiler
Title
# compiler
a

anlex N

03/09/2024, 8:55 AM
hello, everyone,
JRE
is bigger and bigger, I don't like. what do you think so?
h

hfhbd

03/09/2024, 9:04 AM
This has nothing to do with the Kotlin compiler. To create a custom minimized JRE use jlink.
👍 1
a

anlex N

03/09/2024, 9:05 AM
idea need jre, android need jre. can Kotlin compiler run without jre?
what is jlink? send me jlink website
m

Michael Paus

03/09/2024, 12:41 PM
a

anlex N

03/09/2024, 2:10 PM
But custom JRE can not develop a intact application. For example. can android studio run normally in the custom JRE ? can idea run normally in the custom JRE ? This is language's base problem.
a

Arjan van Wieringen

03/10/2024, 7:58 PM
Who cares how big the JRE is the IDE runs on?
🤷‍♂️ 1
6
a

anlex N

03/26/2024, 8:14 AM
I know many facts can defeat your opinion. @Arjan van Wieringen For example: 1. I download Intellj, it have a jbr. I download android studio, it have a jbr. I download clion, it have jbr too. so many other IDE and applications that depend on JAVA need a JAVA runtime. so in my computer, there are at least three jbr. 2. some application must need vendor locked in java runtime, like jbr. some application must need oracle java runtime. some application must need others custom runtime so your computer maybe have many different java runtime.
a

Arjan van Wieringen

03/26/2024, 9:32 AM
What is a JBR?
And who cares you have multiple runtimes. Space is almost free
j

Javier

03/26/2024, 9:43 AM
JetBrains one
a

anlex N

03/26/2024, 10:02 AM
I believe many people like me care about space. after all, you buy a computer, computer space is fixed. unless you pay for another storage. I take a example in the world: my grandfather time, a house costs $1000/square. my father time, a house costs $10000/square. now my time, a house costs $100000/square. price maybe not precise. however, from the time going on, house price is growing. this is a very big and silly realworld problem, and this is very unfair to future children
h

hfhbd

03/26/2024, 10:05 AM
How exactly is this relevant to a compiler? The Kotlin compiler only needs a JVM 8. You are not forced to use AS, CLion or any thing else.
2
j

Javier

03/26/2024, 10:06 AM
Not a good example, storage price has decreased over the years.
a

anlex N

03/26/2024, 10:22 AM
I have used these software for android, c++. new java syntax need new runtime. I have no money If I have money, I am not willing to buy a new storage. and my computer SSD is 1T. This is not my problem, however is language problem.
k

Klitos Kyriacou

03/26/2024, 10:41 AM
I've just checked the size of the JBR in my installed copy of IntelliJ IDEA. It's 361 MB which is a fairly large percentage of the total space taken up by the IDE. However, it's still just 361 MB. If you have IntelliJ, AS and CLion installed, those three JBRs make up about 1 GB. That's 1000th of your disk capacity. The proportional cost to you of 1GB of disk space is approximately the same as the cost of electricity spent while you write about the cost of storage.
h

hfhbd

03/26/2024, 10:43 AM
BTW you rarely need IntelliJ CE and Android Studio.
a

anlex N

03/26/2024, 10:47 AM
they are not only big but also duplicate. my programming life is not only about java. I do work for C++, TypeScript and others languages. if many peopel rarely need IntelliJ and Android Studio. why does Jetbrains invent Intellij? why does google invent Android Studio? many people like me use Android Studio to develop android application, use Intellij to develop other java application.
h

hfhbd

03/26/2024, 10:55 AM
AS is a custom fork of (an older) IntelliJ CE maintained by Google. JetBrains ports the AS plugin back to the current IntelliJ CE, so you can use AS or IntelliJ CE, for most use-cases. If you need IntelliJ Ultimate, well, you also have enough money to buy an 1 TB SSD...
a

anlex N

03/26/2024, 10:57 AM
no. it is not money problem. problem is they are not only big but also duplicate.
j

Javier

03/26/2024, 11:01 AM
Because IntelliJ can be used with dozens of languages and a huge amount of frameworks. Meanwhile AS is oriented to only Android, and maintained by a different company, Google.
Kotlin ecosystem is not only Android at the end.
a

anlex N

03/26/2024, 11:08 AM
so whatever, however, everytime IDE update, every big and duplicate runtime occupy my space usage and brandwidth usage.
j

Javier

03/26/2024, 11:09 AM
you can cleanup old installations using jetbrains toolbox
a

anlex N

03/26/2024, 11:15 AM
1. I can do that. but runtime have no little problem? 2. In the future, although I cleanup, I still have no more free storage to fullfill more installation and download size. how to do next?
from time going on, those size is growing bigger and bigger.
j

Javier

03/26/2024, 11:22 AM
No if you only have an IDE and you remove old versions
a

anlex N

03/26/2024, 11:29 AM
your logic is wrong. In the fact, I do not use old IDE. Problem, by itself, natively. new IDE is bigger than old IDE recklessly. new runtime is too.
j

Javier

03/26/2024, 11:32 AM
That happens with everything, are you complaining on all tech Slacks about that obvious thing?
a

Arjan van Wieringen

03/26/2024, 11:37 AM
Why do you even use Kotlin? I only hear complaining tbh
j

Javier

03/26/2024, 11:40 AM
All apps are growing in size over the years, that blocks using anything.
And they are not scaling at the same pace as games, if not, that would be a real joke
h

hfhbd

03/26/2024, 11:47 AM
If you care about IntelliJ size, open a ticket. JetBrains tries to minify IntelliJ as much as possible. You can also remove AS and only use IntelliJ by installing the back ported Android plugins: Android, Android Design Tools and Jetpack Compose.
j

Javier

03/26/2024, 11:48 AM
installing the back ported Android plugins: Android, Android Design Tools and Jetpack Compose.
They are installed by default, no?
h

hfhbd

03/26/2024, 11:49 AM
Nope, only Android. The last two are the new plugins developed by JetBrains and Google to streamline the AS fork (and maybe! get rid of it at all).
m

Michael Paus

03/26/2024, 12:41 PM
If nothing else helps you might want to switch to XCode 😆
😆 3
a

anlex N

04/03/2024, 9:18 AM
I do not care about apple thing. apple is closed. I recommand microsoft practice: one .net runtime for every .net application. latest packaged runtime is left, lastest installed runtime is right.
h

hfhbd

04/03/2024, 9:40 AM
Still don’t get it, .net 8 for Linux is about 200 MB, JRE 21 for Linux too.
a

Arjan van Wieringen

04/03/2024, 9:49 AM
This thread makes 0 sense
k

Klitos Kyriacou

04/03/2024, 9:58 AM
I think the point is that on Microsoft Windows there are typically dozens of GUI applications all using the same single installed instance of the .NET Framework, while JVM applications typically each have their own JRE installed.
m

Michael Paus

04/03/2024, 10:06 AM
You can have a similar experience with Java too. Its called OpenWebStart
a

anlex N

04/03/2024, 10:33 AM
After read chromium source codes for 3 months, I have a deep thinking: write more C/C++, write less other languages. I was very and very painful for those 3 months. This thinking is very important to me. every language have own advantages and disadvantages. C/C++ is for power, other languages is for GUI. those 3 months, I only can hold on through watching videos about Bruce Lee. I want to be water, like Bruce Lee says.
a

Arjan van Wieringen

04/03/2024, 12:14 PM
Surely this is a troll