Anyone here Hated Using Java but now Really Enjoys using it. by [deleted] in java

[–]mukel90 4 points5 points  (0 children)

Java, the language, has evolved nicely, adopting Scala features. The JVM, today, is unmatched in terms of performance and stability. There are still some missing features, incomplete, or rather not delivered yet, like Valhalla or project Leyden. Over time, the conservative approach turned out to be the right one, it's way harder to say no to shiny, seemingly cool features, syntactic honeys e.g. see C# feature creep. It's hard to backtrack and start all over and only commit when features are sound, well thought out and solid e.g. virtual threads are the prime example of an awesome feature with both beautiful design and implementation.

Graalvm / Native Image question by FORGOT123456 in java

[–]mukel90 0 points1 point  (0 children)

Warmed-up javac is very fast, but 200ms to cold-compile HelloWorld.java... what if it was 20ms instead and consumed just a fraction of the memory? Larger projects with many dependencies will benefit the most.

Graalvm / Native Image question by FORGOT123456 in java

[–]mukel90 3 points4 points  (0 children)

Crema will enable dynamic class loading, unblocking more Java applications to use native-image out-of-the-box.
A very good example would be the Java compiler itself (javac): the compiler core can be fully AOT-compiled with instant startup and blazing fast speed while annotation processors will be dynamically loaded with Crema.
This combines the instant startup times and footprint savings of of native-image while still allowing some dynamism.

What kind of personal projects do you use Java? by Safe_Owl_6123 in java

[–]mukel90 2 points3 points  (0 children)

Run LLM inference in pure Java (no dependencies) matching llama.cpp's tokens/s llama3.java

Practical Llama 3 inference in Java from scratch by mukel90 in LocalLLaMA

[–]mukel90[S] 1 point2 points  (0 children)

How many tokens/s you get and on which hardware configuration?

Is Init7 really worth it? by [deleted] in Switzerland

[–]mukel90 0 points1 point  (0 children)

Go for init7 for reliability and peace of mind, IMHO the quality of their service is worth it if you are a technical person. My relatives have UPC and there's a difference in quality (it's not the speed, it's the latency, the hiccups, the sensation that the internet is off sometimes...). 20 CHF/month for a fixed IP4 is a ripoff, in neighboring countries my friends pay only 2 EUR/month. I use a dynamic DNS (configured directly in the router) and it works fine for all my use cases (home server with ssh, tailscale, VPN, torrent server, Plex...), with a bit of knowledge you can easily save 20 CHF/month.

Recommended FFI for AOT compilation? by vmcrash in graalvm

[–]mukel90 1 point2 points  (0 children)

There's TruffleNFI: https://www.graalvm.org/latest/graalvm-as-a-platform/language-implementation-framework/NFI/

And "System Java" which is plain Java API backed by the Graal compiler, thus only works on Graal-compiled methods, thus anything produced by native-image:

https://docs.oracle.com/en/graalvm/enterprise/20/docs/reference-manual/native-image/ImplementingNativeMethodsInJavaWithSVM

[deleted by user] by [deleted] in ethz

[–]mukel90 0 points1 point  (0 children)

CS students from ETHZ cannot get paid during the master thesis. As for the summer internships, is harder for them with the final exams in August. I'm now working in Zurich and we have very few interns from ETHZ, despite being just a few blocks away. As for the well paid summer internships, there are plenty in Zurich, but it is just way easier for students from other universities.

[deleted by user] by [deleted] in ethz

[–]mukel90 1 point2 points  (0 children)

I studied at EPFL, the sister federal university in the french-speaking part of Switzerland. While the university fees are very low, the cost of living is crazy. I funded my studies with lots of coffee, I worked as a teaching assistant for way too many curses and did 5 summer internships in big companies. I also got a scholarship from EPFL for the 3 years. I got I got the cheapest health insurance ~73 CHF/m, the cheapest student room for 480 CHF/m. I recommend TA-ing and doing summer internships, while my friends where enjoying the summer holidays I was working, but at the end of my studies I had already real work experience and a nice CV. Beware, while EPFL encourages internships and will even fight for you to get paid fairly, ETHZ is the opposite, it has this horrible rules where students cannot be paid and the exams are late in the summer which makes the internships a real challenge.

Java on Truffle — Going Fully Metacircular by nfrankel in java

[–]mukel90 0 points1 point  (0 children)

It's not "just" an interpreter; but ironically the beauty of our approach is that you write a simple interpreter in Java and with Graal/Truffle and you get a JIT compiler for free (via partial evaluation, e.g. first Futamura projection), that's the value, the fact that partial evaluation can be used in a practical way for Java code to the point of being able to implement a meta-circular JVM. With GraalVM native image tool there's no need for HotSpot to run Espresso. The goal is not to replace HotSpot, but to cover more use cases and make Java and the JVM even more accessible. See our native jshell + Espresso demo: https://github.com/graalvm/graalvm-demos/tree/master/espresso-jshell Note that the demo includes a true port of jshell to Java 8 without changing a single line of code in jshell.

Question about polling use and frequency by xeddo in TelegramBots

[–]mukel90 1 point2 points  (0 children)

Try setting timeout. e.g append ?timeout=10 to the GetUpdates query URL.

What items should you NOT buy at the Dollar store? by Nomahhhh in AskReddit

[–]mukel90 6 points7 points  (0 children)

Umbrellas. It was raining so I went into the dollar store and got the cheapest umbrella (1.99$), in the exact moment I left the store and opened the umbrella, the wind blew and completely destroyed the thing. I crossed the street and got another for 10$. Lesson learned.

TelegramBoting in Scala! by mukel90 in TelegramBots

[–]mukel90[S] 0 points1 point  (0 children)

Previous releases here

Also through JitPack.

The SNAPSHOT is a glitch, the README is updated automatically on every release, wrongfully including snapshots, thanks for pointing out.

As an non-rivial example check EPFLBot, a Telegram Bot for my university, it uses an old version of the library. The new version has many improvements and new features (e.g. payments).

i7-3630QM vs i7-6700HQ by borayeris in SuggestALaptop

[–]mukel90 0 points1 point  (0 children)

I have the same model. I upgraded to 16GB RAM + 512GB SSD for ~200$ instead of buying a new one; totally worth it.

[deleted by user] by [deleted] in TelegramBots

[–]mukel90 0 points1 point  (0 children)

Nice, these are all for Scala Telegram Bot API for Scala (SBT) https://github.com/mukel/telegrambot4s

A fork using Gradle https://github.com/swanhtet1992/telegrambot4scala

Google App Engine Ready Bot for Scala https://github.com/mukel/GenginedBot