This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-16
Channels
- # announcements (19)
- # babashka (41)
- # beginners (9)
- # calva (1)
- # cider (28)
- # clerk (2)
- # clj-kondo (33)
- # cljs-dev (1)
- # clojars (32)
- # clojure (29)
- # clojure-europe (36)
- # clojure-nl (1)
- # clojure-norway (10)
- # clojure-uk (4)
- # clojurescript (33)
- # datahike (6)
- # datomic (44)
- # emacs (35)
- # fulcro (25)
- # hyperfiddle (22)
- # introduce-yourself (1)
- # java (11)
- # kaocha (7)
- # membrane (3)
- # off-topic (2)
- # pathom (7)
- # polylith (15)
- # portal (3)
- # squint (1)
If i want to partition my lazy list into subsists by subsist size, i assume my options are a for loop which creates sublists based on the size of the current sublist compared against the max sub-list size or a stream which does the same only i have to likely write a custom accumulator or something. Should i just use a loop then? Is that a principle difference between the two abstractions or does it just seem simpler because i haven't written a custom accumulator before. For brevity (or possible as a distraction since i'm not sure i can enable this on my project), their are also https://download.java.net/java/early_access/jdk22/docs/api/java.base/java/util/stream/Gatherer.html which look like streaming "windows" to me.
Hey team, noob java question. My nephew asked me the following: His school computers are on java 1.8, which can't run the jar that he is building. Is there some tool that can "pre-package" whatever java runtime is needed for his jar?
Can you elaborate a bit more on what you mean by "cannot run the jar he is building"
What he says:
He goes to the school's windows computer, and double-clicks the jar file.
I would imagine this just runs the equivalent of java -jar
The reason he can't run it, paraphrased from his words:
The UI Library he is using looks much worse when run with java 1.8. He also uses lambda expressions, which don't work in 1.8
In terms of running it, it depends on what the OS is set to do on double click of the file. Is there any way he can open up a terminal/command prompt and do java -jar myjar.jar
and see what the output is?
And what UI library is he using? (Re-reading your reply, it seems he can run it, otherwise, how would he know that the UI library looks worse?)
Okay, I think he may have been a bit confused. He thought java 8 and java 1.8 were different versions. Looks like yes lambda expressions are supported, and FlatLaf (his UI library) supports java 8 too. I guess he had a previous project and developed some intuition that he hasn't tested. Thanks @U11EL3P9U 🙂 Will tell him to go to school and actually try running the jar