Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
za3faran
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
za3faran
2mo ago
After reading many comments from its original authors, it's not surprising.
2.
▲
by
za3faran
2mo ago
There's a couple of languages I follow their roadmap and I find exciting, including Java and C#. I don't feel there's proper justification of writing backend services in something like python or ruby anymore, for example.
3.
▲
by
za3faran
2mo ago
Visual studio (at least its "core") is written in C++, yet is very heavy weight, so it's not the programming language at play here.
4.
▲
by
za3faran
2mo ago
It should address the most common use case for reification. Type erasure has its advantages which we saw in the JVM ecosystem.
5.
▲
by
za3faran
2mo ago
> You mean it needs 15 lines whete C# needs one? ;) Can you elaborate? The async/await approach is much more than 1 line when you need to switch a call between them. Whereas the green thread approach does not need anything.
6.
▲
by
za3faran
2mo ago
Value types are scheduled to be in preview next release (6 months). And C# does not have type classes.
7.
▲
by
za3faran
2mo ago
Nullness annotations are already usable. The JEP is for further integration into the type system.
8.
▲
by
za3faran
2mo ago
> Proper IEnumerable with proper iterators that in turn enables Linq Are you referring to generators? > Properties As far as I'm aware, it is a deliberate choice not to implement them, and I can see their point of view. > obje
9.
▲
by
za3faran
2mo ago
Golang tried to be simple, but reality hit and they started adding features (generics, and now generics on method, iterators, fixed loop variable scoping). Yet when you program in it, you can feel so much resistance because it took a naive
10.
▲
by
za3faran
2mo ago
It hasn't been lingering since they were bought by Oracle. We've seen a rapid increase in the pace of feature and performance development.
11.
▲
by
za3faran
2mo ago
Also solved for Java: * https://jspecify.dev/docs/user-guide/ * https://openjdk.org/jeps/8303099
12.
▲
by
za3faran
2mo ago
Golang is not faster than Java, the opposite in fact. With native image, Java can be used for sidecar applications as well.
13.
▲
by
za3faran
2mo ago
Many of those are getting addressed. Value types are in the works, generics specialization for primitives, and even type classes.
14.
▲
by
za3faran
2mo ago
What better options are there if starting from scratch? The only thing IMO that comes somewhat close is C# for general backend systems.
15.
▲
by
za3faran
2mo ago
Golang doesn't have solutions like these: * https://jspecify.dev/docs/user-guide/ * https://openjdk.org/jeps/8303099
16.
▲
by
za3faran
2mo ago
Which features exactly? Java got exhaustive pattern matching before C# (through sealed interfaces), it has switch expressions, multi-line strings, green threads and structured concurrency, is getting value types, and even type classes in th
17.
▲
by
za3faran
2mo ago
This should address your example https://openjdk.org/jeps/218
18.
▲
by
za3faran
2mo ago
Java can and has been used for real-time systems, but it does not look like the Java that you would come across in normal programs. Obviously, RTOS have specific requirements, which usually rule out GCs and other runtimes, where even "
19.
▲
by
za3faran
2mo ago
Hopefully more people start realizing this. It's been happening behind the scenes for way too long, but now it's out in the open, they don't care about hiding it anymore.
20.
▲
by
za3faran
2mo ago
CPU is still more expensive than memory. Trading more memory to save CPU (and reduce the # of nodes required to run your service) can still hold.
21.
▲
by
za3faran
2mo ago
It's not untrue, there are people who have observed this, and for a long time now. AOT compilers assume a closed world system, whereas JIT are able to perform runtime optimizations that AOT can't. By real world systems, I mean lon
22.
▲
by
za3faran
2mo ago
Key is "well optimized". At some point and scale, it becomes almost impossible to chase those manual optimizations, not to mention that usage patterns at runtime can change in such a way that make such an optimization prohibitivel
23.
▲
by
za3faran
2mo ago
GraalVM native-image already provides an AOT-only executable.
24.
▲
by
za3faran
2mo ago
To be fair, it's not that hard to get an improvement compared to running TS in the backend.
25.
▲
by
za3faran
2mo ago
We've seen several anecdotes where JIT languages (e.g. Java) outperform Rust in throughput and latency in long-running server programs.
26.
▲
by
za3faran
2mo ago
In real world systems, Java can beat programs in compiled languages like C++ and Rust when it comes to throughput and even latency.
27.
▲
Principles of Memory Management in Java [video]
(youtube.com)
5 points
by
za3faran
2mo ago
|
0 comments
28.
▲
by
za3faran
2mo ago
Fus-ha Arabic (High Arabic) is intelligible as it is used in official communication, academia, news papers, documentaries, etc. But obviously it is not spoken day to day.
29.
▲
by
za3faran
3mo ago
What is more important that those $75 is whether or not the gas offered at the other station is Top Tier grade. Costco always is as far as I can tell. (I am not affiliated with Costco in any way shape or form)
30.
▲
by
za3faran
3mo ago
> But I can get gas for $3.62 right now at the station down the block from my house. But is that gas station selling Top Tier[1] gas? As far as I'm aware, Costco always sells Top Tier, and now they're rolling out Top Tier+. [1]
More ›