#jshell — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #jshell, aggregated by home.social.
-
Came up with this little “trick” to play around interactively with packages and APIs in jshell (Java's interactive shell) when developing a Maven-based project:
# Gather dependency classpath
mvn dependency:build-classpath -Dmdep.outputfile=deps.cp.txt# run interactive shell
CLASSPATH=$(cat deps.cp.txt) jshellNow classes can be imported inside the interactive shell from any libraries used in your project. So that you could experiment with things iteratively.
-
Came up with this little “trick” to play around interactively with packages and APIs in jshell (Java's interactive shell) when developing a Maven-based project:
# Gather dependency classpath
mvn dependency:build-classpath -Dmdep.outputfile=deps.cp.txt# run interactive shell
CLASSPATH=$(cat deps.cp.txt) jshellNow classes can be imported inside the interactive shell from any libraries used in your project. So that you could experiment with things iteratively.
-
New Features in Java 15
-
JTaccuino is a #JavaFX based notebook application for Java developers.
It is built for usages in education, interactive experimation with algorithms and possible more advanced use cases.
Java code execution is provided by #JShell, the awesome #Java REPL.
https://github.com/jtaccuino/jtaccuino -
JTaccuino is a #JavaFX based notebook application for Java developers.
It is built for usages in education, interactive experimation with algorithms and possible more advanced use cases.
Java code execution is provided by #JShell, the awesome #Java REPL.
https://github.com/jtaccuino/jtaccuino -
Устаревшие мифы про Java
С момента появления Java in 1995 много всего изменилось в мире как в часте софта так и железа. Изменился также и релизный цикл выпуска новых версий. Они начали появлятся гораздо чаще и привносить в язык много интересных возможностей. Язык буквально на глазах преображается и не отстает от трендов индустрии. Язык Java прошел большой жизненный путь и за это время вокруг него сформировалось много разлычных мифов и слухов. Часть из них рождались в холиварных спорах о том какой язык лучше. Часть имеют под собой реальное обоснование и связанны с различными ограничениями софта\железа существовавшими на тот момент, но с течением времени утратившим свою актуальность. В этой статье мы постараемся сфокусироваться как раз на мифах утративших свою актуальность.
-
Two weeks ago I promised a blog post about the process we use for automating code samples verification in our #evitaDB documentation and now I'm keeping that promise.
The approach described, which takes advantage of #JUnit5 dynamic testing and #JShell REPL, looks like a novel approach. I haven't been able to Google any other project that documents something similar.
So if you have a similar use case, read on and get inspired.
-
Quitting #jshell on #osx takes several seconds, I wondered why and ran async-profiler, seems it's related to updating OSX settings (see flamegraph)
Doesn't seem to happen when you provide a script file that contains /exit.
Any ideas how to speed up the #java OSX settings API?
java/util/prefs/MacOSXPreferencesFile.addKeyToNode
-
Quitting #jshell on #osx takes several seconds, I wondered why and ran async-profiler, seems it's related to updating OSX settings (see flamegraph)
Doesn't seem to happen when you provide a script file that contains /exit.
Any ideas how to speed up the #java OSX settings API?
java/util/prefs/MacOSXPreferencesFile.addKeyToNode
-
Want to have fun with timezones and dates in #Java #JShell? Check out my article in #JavaMagazin edition 6.2023: "Zeitzonen und das Java-Tool jshell. Ein Tool für jede Zeitenwende." It even made it to the cover :-)
-
Want to have fun with timezones and dates in #Java #JShell? Check out my article in #JavaMagazin edition 6.2023: "Zeitzonen und das Java-Tool jshell. Ein Tool für jede Zeitenwende." It even made it to the cover :-)
-
"Can I finally use Java as a scripting language and call it JavaScript? - No, you can’t call it JavaScript for obvious reasons." 😂
https://medium.com/@adambgoode/scripting-with-java-10-and-jshell-497d6fdbf8b5
-
"Can I finally use Java as a scripting language and call it JavaScript? - No, you can’t call it JavaScript for obvious reasons." 😂
https://medium.com/@adambgoode/scripting-with-java-10-and-jshell-497d6fdbf8b5
-
Tomorrow I’ll do a demo internally of what I’ve been working on recently, so I prepared a #jshell environment for poking around the innards of the system directly while it’s running. Neat stuff.
-
Tomorrow I’ll do a demo internally of what I’ve been working on recently, so I prepared a #jshell environment for poking around the innards of the system directly while it’s running. Neat stuff.
-
In which a family feud arose while playing Rummikub that required a quick timer to solve. #Teaching #Opportunity #Java #JShell
-
In which a family feud arose while playing Rummikub that required a quick timer to solve. #Teaching #Opportunity #Java #JShell
-
In the Azul blog post "9 Outdated Ideas About Java", I take a look into some false assumptions and outdated ideas about #Java based on early versions.
Because of the work by the community, you can't compare Java from the early days with the versions that have been released every 6 months since 2018. And with excellent tools like #jshell, #jpackage, #jbang, #sdkman, plugins by @gluonhq, and many more, the developer experience has seen a tremendous evolution.
-
In the Azul blog post "9 Outdated Ideas About Java", I take a look into some false assumptions and outdated ideas about #Java based on early versions.
Because of the work by the community, you can't compare Java from the early days with the versions that have been released every 6 months since 2018. And with excellent tools like #jshell, #jpackage, #jbang, #sdkman, plugins by @gluonhq, and many more, the developer experience has seen a tremendous evolution.
-
Funny to see this image being shared by @nixCraft. Just last week, I described exactly this problem with some #Java #JShell experiments on https://webtechie.be/post/2022-12-01-schedule-holiday-2038. The problem is actually worse! When adding one second to 2038-01-19T03:14:08Z[UTC], you don't travel back in time to 1970, but 1901-12-13T20:45:52Z[UTC].
How do they say it? You're not a real programmer if you never had to deal with dates, times, and timezones? ;-)
-
Funny to see this image being shared by @nixCraft. Just last week, I described exactly this problem with some #Java #JShell experiments on https://webtechie.be/post/2022-12-01-schedule-holiday-2038. The problem is actually worse! When adding one second to 2038-01-19T03:14:08Z[UTC], you don't travel back in time to 1970, but 1901-12-13T20:45:52Z[UTC].
How do they say it? You're not a real programmer if you never had to deal with dates, times, and timezones? ;-)
-
I already scheduled my holiday for January 2038, and so should you! Check out why in this blog post, an experiment with date, time, and jshell...
-
I already scheduled my holiday for January 2038, and so should you! Check out why in this blog post, an experiment with date, time, and jshell...
-
Using the #JShell API to implement a #Java Source Browser https://bit.ly/3gs03Ww by @sundararajan_a
-
Using the #JShell API to implement a #Java Source Browser https://bit.ly/3gs03Ww by @sundararajan_a
-
Bon, y’a pas un gens qui a une p**** de doc qui fonctionne pour request en JS ? 🤔 #JSHell