4 ms·
Java has the JVM the same way that Elixir has Beam/OTP/...
by lionkor 5mo ago
Java has the JVM the same way that Elixir has Beam/OTP/...
- hackyhacky 5mo agoAnd CPython runs Python bytecode, which is basically running in a Python virtual machine. I am not sure what GP is objecting to.
- rfgplk 5mo ago> I am not sure what GP is objecting to. Elixir always felt like it would be a solid functional systems programming language, so not having a compiled backend is a genuine downside.
- 7bit 5mo agoRead again... Here's what you need to do for elixir: Download and run the Erlang installer Download and run the Elixir installer Here for Java: Download and run the Java SDK And for Python: Download and run the Python installer
- WolfeReader 5mo agoHere's what you need for Java: Download SDKMan/Jenv Install the version(s) of Java you need for your projects Make sure your JAVA_HOME environment variable is set Ensure your IDEs locate the correct Java home Compared to all that, Elixir's two installers are trivial. And if you have a competent package manager, you can just tell it to get Elixir and it'll handle Erlang for free.
- vips7L 5mo agoNo you don't. The process is exactly the same for Java.
- WolfeReader 5mo agoNah, I work on a team that has multiple microservices written over the years in different versions of Java. "Just click the installer" is not sufficient. That's why programs like jenv, SDKman, nvm, and others even exist (and are popular). Your lack of real-world experience is showing.
- vips7L 5mo agoLOL LaCk oF eXpErIeNcE. Bro all you have to do is open intellij and it will prompt you to install the correct version of Java.
- WolfeReader 5mo agoDon't tell OP this - he doesn't want to install multiple things. You'll scare him away from Java.
- 7bit 5mo agoJava is ugly anyway
- dematz 5mo agoIs your issue something with the runtime itself, or just the difficulty of installing it?
- WolfeReader 5mo agoI think the issue is "I have to install two things instead of one thing" which is a pretty weird way to judge a programming language. I guess we know how he feels about TypeScript.
- sokols 5mo agoTo use Python/Java you have to download and install an OS. (Though some versions might run on bare metal)
- sbuttgereit 5mo agoIf you're going to try and use this analogy, you need to compare Elixir to Kotlin or Scala or Clojure rather than Java. Elixir is a language written for the BEAM which was created for Erlang. The BEAM happened to be useful VM for these other languages such as Elixir, Gleam, LFE, & Luerl.
- 7bit 5mo agoNo, I don't. I'm not writing gleam etc for the same reasons.
- dematz 5mo agoIf you don't want to then fair enough :) that said if your problem is just installation, some of the gleam people realized it can be tricky and made a nice guide for various operating systems and package managers: https://gleam.run/install/ https://gleam.run/install/ Note this includes installing erlang as well While it is multiple steps, the frustration is a much more one time thing compared to the problems and frustrations you'd have using a language or its ecosystem for a long time or big project
- freedomben 5mo agoFor Java you need a JRE and JDK depending on whether you're just running or also building. That they are bundled (for Windows) is slightly convenient, but they're not bundled on Linux so what you're saying is OS dependent
- burnt-resistor 5mo agoJRE or JDK, not "and". The JDK is a superset of the JRE.
- freedomben 5mo agoThank you, appreciate the correction
- flexagoon 5mo ago> Download and run the Erlang installer Download and run the Elixir installer No, you just install the elixir package from a package manager. Windows not including a proper one by default is not a fault of the language.