#jshell

cryptaxcryptax
2025-03-03

I just discovered Jshell, a Java REPL shell. It's like Python's interactive shell , but in Java ;-)

It's not new. Jshell was introduced in ... Java 9. Shame to me I only learn about it in Java 23!

asciinema.org/a/nKxwuTgFPEeHgL

2024-10-12

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.
github.com/jtaccuino/jtaccuino

2024-09-11

Устаревшие мифы про Java

С момента появления Java in 1995 много всего изменилось в мире как в часте софта так и железа. Изменился также и релизный цикл выпуска новых версий. Они начали появлятся гораздо чаще и привносить в язык много интересных возможностей. Язык буквально на глазах преображается и не отстает от трендов индустрии. Язык Java прошел большой жизненный путь и за это время вокруг него сформировалось много разлычных мифов и слухов. Часть из них рождались в холиварных спорах о том какой язык лучше. Часть имеют под собой реальное обоснование и связанны с различными ограничениями софта\железа существовавшими на тот момент, но с течением времени утратившим свою актуальность. В этой статье мы постараемся сфокусироваться как раз на мифах утративших свою актуальность.

habr.com/ru/articles/842384/

#java #jvm #jshell

2024-03-07

#JShell aka Java #REPL finde ich immer wieder ein sehr nützliches Tool, wenn man "mal eben" etwas Code evaluieren will

Juan Vegajuanvegadev
2023-09-20

Mejor tarde que nunca, pero por fin tenemos un playground "oficial" para java 🎉

dev.java/playground/

Jan Novotný ♥️🇺🇦novoj@mastodonczech.cz
2023-05-23

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.

evitadb.io/blog/06-document-ex

Michael Hunger 🇺🇦mesirii@chaos.social
2023-05-13

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

2023-05-09

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 :-)

entwickler.de/java/jshell-zeit

Cover of JavaMagazin 6.2023Picture of the title of the articlePicture of a part of the articlePicture of a part of the article
2023-05-04

@sparsick Using #Java 's #JShell for this:

echo println(UUID.randomUUID()) | jshell PRINTING -

"Can I finally use Java as a scripting language and call it JavaScript? - No, you can’t call it JavaScript for obvious reasons." 😂

#JShell

medium.com/@adambgoode/scripti

2023-03-16

@sundararajan_a came up with clever usage of #Java TOOLING.jsh #JShell script.

> We can use that jextract_jdk's jshell & define jextract command to extract a C headers. We import the generated class to call native method. 😀

See details on the screenshots at twitter.com/sundararajan_a/sta

Chris Vestchrisvest
2023-02-24

Tomorrow I’ll do a demo internally of what I’ve been working on recently, so I prepared a environment for poking around the innards of the system directly while it’s running. Neat stuff.

2023-02-16

A new Y2K bug seems to be approaching, and we still have time to prevent it! Or you can already schedule a long holiday for the year 2038... with #Java and #jshell and @frankdelporte!

foojay.io/today/still-time-to-

youtube.com/watch?v=-CPrq3NxPO

#foojaytip

Michael Simonsrotnroll666
2023-02-11

In which a family feud arose while playing Rummikub that required a quick timer to solve.

Code that counts down from 60 and starts beeping at 10 seconds 

for(int i=60; i>=1;--i) {
    if(i<=10) {
        System.out.println("\007");
    }
    System.out.println(i);
    Thread.sleep(1_000);
}
2023-01-27

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.

azul.com/blog/9-outdated-ideas

#openjdk

2022-12-06

Funny to see this image being shared by @nixCraft. Just last week, I described exactly this problem with some #Java #JShell experiments on webtechie.be/post/2022-12-01-s. 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? ;-)

2022-12-04

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...

webtechie.be/post/2022-12-01-s

#Java #JShell #Y2K #2038

2022-11-28

Using the #JShell API to implement a #Java Source Browser bit.ly/3gs03Ww by @sundararajan_a

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst