Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
apta
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
77 ms
·
781.
▲
by
apta
7y ago
> Try to run some service with -XMX -XMS 128MB and tell us how it goes. What does the service do? An API call that returns the current time? A batch processor? A payment portal? The memory usage depends on the type of work performed obvi
782.
▲
by
apta
7y ago
> where each pods are in the range of 2 digits MB, it woudn't be possible whith languages mentioned above. Not sure about NodeJS and Python, but it's certainly doable with Java and C#. It's just that people don't take
783.
▲
by
apta
7y ago
> Religious ideology creates thinking patterns of the blame is on the victim What now?
784.
▲
by
apta
7y ago
> C# and Java are slower to compile Not for any meaningful work in my experience. As a matter of fact, I found the change/compile/run loop in golang to be slower on projects I've been working on due to the fact that it doe
785.
▲
by
apta
7y ago
The first golang result in the plaintext benchmark ranks 8th (atreugo-prefork), which is incidentally immediately followed by firenio-http-lite, a Java library. My point still stands, this is a third party library that is not commonly used,
786.
▲
by
apta
7y ago
> real world benchmark Highly debatable. Even then, you see that golang ranks in the 102nd place for the plaintext benchmark, almost 6x slower than Netty, which is very established in the JVM world. Same with the JSON benchmark, golang
787.
▲
by
apta
7y ago
Java and C# provide the benefits you mentioned, while being more expressive languages and having better runtimes compared to golang.
788.
▲
by
apta
7y ago
I thought this was a solved issue since JDK 10: https://www.docker.com/blog/improved-docker-container-integr...
789.
▲
by
apta
7y ago
> Go, however, used a lot less memory, which means that it can scale down to smaller instances. I could be mistaken, but this sounds like they went ahead with the default JVM settings, where it tends to use as much memory it is allowed t
790.
▲
by
apta
7y ago
> Java 14 records, pattern matching and switch expressions are like a joke compared to Scala case class and pattern matching. What does Scala's pattern matching do that Java's (upcoming) doesn't? > For example, does Jav
791.
▲
by
apta
7y ago
Practically everything you mentioned is already done better by Java or C#. Not to mention them having advantages that golang isn't even close to solving.
792.
▲
by
apta
7y ago
> Java is another boring language, but it's also a very verbose one, even when fully utilizing Lombok/G-libraries/etc.. Incidentally, I find golang to be more verbose than Java. The amount of one-off functions you have to
793.
▲
by
apta
7y ago
> Java teams across the world are not at least seriously considering changing to Scala. I've used Scala before. It has challenges that would make it a non-starter for many teams. It has some cool features, but those (IMO) don't
794.
▲
by
apta
7y ago
> I do see Rust potentially replacing a lot of backend Java, eventually. I'm not quite so sure. Rust can be a good fit for services that need to be very optimized for memory or CPU usage. Java brings so many other extremely importan
795.
▲
by
apta
7y ago
> For instance, Java 8 enabled new ways of programming via Lambdas and structural typing What does structural typing refer to in this context?
796.
▲
by
apta
7y ago
Java is getting fibers (check out project Loom). They're supposed to provide the same level of debugability as regular multi-threaded code.
797.
▲
by
apta
7y ago
Java is getting green threads/fibers by means of project Loom. Arguably much more straightforward to use compared to async/await.
798.
▲
by
apta
7y ago
This doesn't negate the fact that I stated. You can throw more hardware at the problem to reach higher throughput if your problem domain allows for it (such as the use case you link to). It goes without saying that this is an inefficie
799.
▲
by
apta
7y ago
"Servers" refers to a broad range of software. If you're writing a simple app that parses JSON and handles REST, it can be an ok fit. Now if you're writing server software that needs to be high-throughput, then that'
800.
▲
by
apta
7y ago
I think with a program of that size and complexity, it will be memory hungry no matter what language it's written in. Visual Studio is a C++ application if I'm not mistaken, and it can be sluggish and slow for larger projects.
801.
▲
by
apta
7y ago
> I've seen a lot of people fiddle with JVM settings without doing the controlled experiments That's a problem with what the people are doing then, not the JVM. Furthermore, the new low latency JVM GCs only have 2-3 knobs to tu
802.
▲
by
apta
7y ago
The JVM is shipping with two low latency collectors (currently in experimental stage): ZGC and Shenandoah.
803.
▲
by
apta
7y ago
> There are some great pieces of tech that really push the boundaries forward in areas of scheduling and garbage collection. There have been very low latency garbage collectors way before golang, see offerings by Azul for instance.
804.
▲
by
apta
7y ago
> I've had project where we needed all of 7,8,9 and 10 [0] for the data stack: Hadoop, Scala, Spark, HDFS, zookeeper, pyspark. I suspect that a big reason was due to using Scala, which is notorious for not maintaining binary backwar
805.
▲
by
apta
7y ago
You still can't equate mass shooting perpetrators with other scenarios for example. In this case, there is no doubt whatsoever who committed the crime.
806.
▲
by
apta
7y ago
> C# developers are like Java developers, spending so much time thinking how to write a feature instaed of just getting on with the work. I see this in Scala, not Java, as the latter's feature set is much more restricted.
807.
▲
by
apta
7y ago
Because it already works like this in other regions/cultures, and it seems to be doing quite well.
808.
▲
by
apta
7y ago
> We already have the simple rule that if there is any reasonable doubt that they committed the crime, they shouldn’t be punished. This is different from what I wrote. When there's a serious punishment like the death penalty, then a
809.
▲
by
apta
7y ago
> As well as most articles that bring a higher being into a rational discussion. It's interesting to see how some people outright deny to even entertain the thought under the guise of rationalism. It really is another religion pract
810.
▲
by
apta
7y ago
> In other words, religious propaganda. Which does not automatically imply you can dismiss it without question.
More ›