Info

Login

Channels

APIs

Credits

  • cheeser
  • ernimril
  • joed
  • kinabalu
  • lunk
  • ojacobson
  • r0bby
  • ThaDon
  • ricky_clarkson
  • topriddy

« 2020-07-31

2020-08-01

2020-08-02 »

Nick Message Date
jason621 [jason621!~jason@2600:1700:f370:6a00:f4e8:cdf2:860e:9b51] has joined ##java [12:06]
white_shadow [white_shadow!~white_sha@unaffiliated/whiteshadow/x-9072] has joined ##java [12:11]
white_shadow I am trying to build javabot project but it is stuck here "exec-maven-plugin:1.2.1:java (default-cli) @ javabot ---" for last 15 minutes [12:18]
Sgeo [Sgeo!~Sgeo@ool-18b982ad.dyn.optonline.net] has joined ##java [12:23]
mindCrime [mindCrime!~prhodes@cpe-98-27-55-10.nc.res.rr.com] has joined ##java [12:29]
vecnah [vecnah!~vec@2a01:e0a:174:4c50:6ece:24a:7415:70d8] has joined ##java [12:39]
Jantz [Jantz!~IceChat9@118-93-27-99.dsl.dyn.ihug.co.nz] has joined ##java [12:41]
RazielXYZ [RazielXYZ!~Raziel@unaffiliated/raziel] has joined ##java [12:48]
snowmanbamm [snowmanbamm!~snowmanba@2600:1702:4360:6d60:b855:317e:6a04:909] has joined ##java [12:49]
Sgeo [Sgeo!~Sgeo@ool-18b982ad.dyn.optonline.net] has joined ##java [12:56]
bocaneri [bocaneri!sauvin@about/linux/staff/sauvin] has joined ##java [01:09]
sunri5e [sunri5e!~sunri5e@unaffiliated/sunri5e] has joined ##java [01:10]
katana [katana!~katana@unaffiliated/katana] has joined ##java [01:13]
dodobrain [dodobrain!~dodobrain@unaffiliated/freakabcd] has joined ##java [01:17]
Sgeo [Sgeo!~Sgeo@ool-18b982ad.dyn.optonline.net] has joined ##java [01:45]
sa02irc [sa02irc!~mbax@155-079-043-212.ip-addr.inexio.net] has joined ##java [02:05]
LiftLeft [LiftLeft!~LiftLeft@2001:19f0:5c01:755:5400:2ff:fe62:b1d9] has joined ##java [02:12]
LiftLeft2 [LiftLeft2!~LiftLeft@2001:19f0:5c01:755:5400:2ff:fe62:b1d9] has joined ##java [02:12]
Jantz [Jantz!~IceChat9@118-93-27-99.dsl.dyn.ihug.co.nz] has joined ##java [02:39]
code-witch [code-witch!~code-witc@150.129.88.5] has joined ##java [02:42]
Jantz [Jantz!~IceChat9@118-93-27-99.dsl.dyn.ihug.co.nz] has joined ##java [02:45]
AMcBain [AMcBain!~Art@071-085-028-052.res.spectrum.com] has joined ##java [02:53]
rocketmagnet [rocketmagnet!~noname@unaffiliated/rocketmagnet] has joined ##java [03:13]
oxum [oxum!~oxum@122.166.140.248] has joined ##java [03:31]
Cahaan [Cahaan!~Cahaan@47.153-136-217.adsl-dyn.isp.belgacom.be] has joined ##java [03:38]
Cahaan [Cahaan!~Cahaan@47.153-136-217.adsl-dyn.isp.belgacom.be] has joined ##java [03:47]
sphenxes [sphenxes!~sphenxes@196.240.57.204] has joined ##java [03:55]
palasso [palasso!~palasso@unaffiliated/palasso] has joined ##java [03:57]
oxum [oxum!~oxum@122.166.140.248] has joined ##java [04:05]
Maldivia white_shadow: exec.... that means it's running, or something is [04:16]
ruurd Well... [04:21]
ruurd ps axu? [04:21]
white_shadow Maldivia so how do i check if its running? [04:37]
white_shadow I tried by running invite command on it but nothing happened [04:37]
oxum [oxum!~oxum@122.166.140.248] has joined ##java [04:40]
lighterowl [lighterowl!~frankfurt@d130-188.icpnet.pl] has joined ##java [04:45]
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c7320628ece76fb52a72e6d7.dip0.t-ipconnect.de] has joined ##java [05:04]
Gazooo [Gazooo!~Gazooo@097-101-147-050.res.spectrum.com] has joined ##java [05:11]
oxum [oxum!~oxum@122.166.140.248] has joined ##java [05:20]
asymptotically [asymptotically!~asymptoti@gateway/tor-sasl/asymptotically] has joined ##java [05:21]
hussam [hussam!uid193284@gateway/web/irccloud.com/x-zvvqrtmfegjnltnc] has joined ##java [05:27]
kindling [kindling!GvWkxr4h@unaffiliated/kindling] has joined ##java [05:30]
white_shadow [white_shadow!~white_sha@unaffiliated/whiteshadow/x-9072] has joined ##java [05:51]
Atlenohen [Atlenohen!~Walter@cpe2-23-244.cable.triera.net] has joined ##java [06:01]
A47 [A47!~A-47@105.112.123.73] has joined ##java [06:09]
Cyp_ [Cyp_!~Cyp_@192038138009.mbb.telenor.dk] has joined ##java [06:14]
Munnu [Munnu!~timo@91-158-130-71.elisa-laajakaista.fi] has joined ##java [06:27]
dreamreal morning [06:29]
A47 morning [06:31]
dreamreal npm-check [06:37]
Silmarilion [Silmarilion!~Silmarili@87.116.162.152] has joined ##java [06:45]
db [db!uid18678@gateway/web/irccloud.com/x-rgbfkmvhchhtpiyi] has joined ##java [06:48]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined ##java [07:16]
exonity01 [exonity01!uid364582@gateway/web/irccloud.com/x-vyjwbyqijjmpwjja] has joined ##java [07:28]
audiofile [audiofile!audiofile@gateway/vpn/privateinternetaccess/audiofile] has joined ##java [07:31]
waz yawns [07:52]
llorllale [llorllale!~llorllale@2607:9880:1078:46:9c93:b213:4bf2:ef8] has joined ##java [08:00]
qqqhhh [qqqhhh!5ee450f3@gateway/web/dev0.sh/ip.94.228.80.243] has joined ##java [08:14]
qqqhhh hello is there a zero copy string split operation ? in my app i do a lot of parsing but the splits do the majority of allocations and i want to minimize them. thanks. [08:15]
qqqhhh i have used JFR recordings with JMC to analyze this [08:17]
dreamreal qqqhhh: no [08:19]
dreamreal are the allocations causing a problem? [08:19]
qqqhhh i want to reduce the gc pressure , JMC has this warrning The JVM was paused for 100 % of the time during 104,286 ms starting at 1. 8. 2020 9:19:47. The time spent performing garbage collection may be reduced by increasing the heap size or by trying to reduce allocation. [08:21]
dreamreal and that's caused by String.split()? [08:21]
qqqhhh yes [08:21]
dreamreal Yikes, what the heck are you doing with those strings [08:22]
qqqhhh splitting very long strings [08:22]
qqqhhh those are mikrotik API responses and they contain many fields [08:22]
dreamreal and then holding on to the split strings forever? [08:22]
qqqhhh no after parsing they are GCd [08:22]
dreamreal that the standard pattern for that would be eden GC, and eden GC tends to be super-duper-fast [08:23]
qqqhhh yes they do not survive long but after around 5 hours there is around 220GB allocations [08:23]
qqqhhh 2GB heap [08:23]
dreamreal well, I don't know the access pattern here, nor am I familiar with mikrotik, but ordinarily short-lived GCs shouldn't be something you notice or care about [08:25]
dreamreal hrmmm [08:25]
qqqhhh this is the stack trace [08:25]
qqqhhh byte[] java.util.Arrays.copyOfRange(byte[], int, int) 355830 [08:25]
qqqhhh String java.lang.String.substring(int, int) 132957 [08:25]
qqqhhh String[] java.lang.String.split(String, int) 103657 [08:25]
qqqhhh String java.lang.StringLatin1.newString(byte[], int, int) 268054 [08:25]
qqqhhh String[] java.lang.String.split(String) 103657 [08:25]
qqqhhh Response aab.mikrotik.api.MikrotikAPIConnector.parseData(LinkedList) 103247 [08:25]
qqqhhh Response aab.mikrotik.api.MikrotikAPIConnector.executeQuery(Query) 103247 [08:25]
qqqhhh void belasanet.monitoring.PreneseneData.run() 88726 [08:25]
dreamreal please don't paste in ##java [08:25]
qqqhhh sorry [08:25]
qqqhhh i thought multiline was in single message [08:25]
Harlin [Harlin!~hseritt@c-24-128-8-53.hsd1.co.comcast.net] has joined ##java [08:26]
RazielZ [RazielZ!~Raziel@unaffiliated/raziel] has joined ##java [08:28]
dreamreal I don't know of a zero-copy split for java strings, but that doesn't mean there isn't one [08:30]
dreamreal why are you using linkedlist? [08:30]
qqqhhh a lot of inserts and only sequential loop [08:30]
qqqhhh unpredictable size [08:30]
qqqhhh linked list of lines [08:31]
dreamreal inserting at the beginning or the end only? [08:31]
qqqhhh yes [08:31]
dreamreal still causes heap disruption, but eh [08:31]
dreamreal at least you're avoiding the worst of it [08:31]
qqqhhh i thought about doing many things into an arraylist [08:31]
qqqhhh but there is much other work for refactoring [08:31]
dreamreal arraylist pretty much always beats a linkedlist except for insertions at the beginning of the list [08:31]
qqqhhh no just at the end [08:32]
dreamreal and then the heap disruption is usually more severe than the cost of inserts [08:32]
dreamreal arraylist will nearly always beat linkedlist for appends [08:32]
qqqhhh even if it has to do many resizes ? [08:32]
ernimril ArrayDeque will probably be better than the linked list here though [08:32]
dreamreal qqqhhh: the resizes drop in number *really* quickly [08:33]
dreamreal it's not like it says "oh, you have a list of 10, you want to add to it, let me add 1 to the number of slots" [08:33]
dreamreal if memory serves, it's size + size >> 1, but it changes by version, it might be different now [08:33]
qqqhhh yes its 2 times, maybe i will compute the average or median size and take that aas initial capacity [08:34]
ernimril qqqhhh, String.substring used to be zero-copy (as in sharing the same char[] behind the scenes), but they changed that because it kept too many long strings in memory for too many people [08:34]
dreamreal qqqhhh: it's size+size now? [08:35]
qqqhhh i do not know exactly, just vaguely remember that it is doubling [08:35]
dreamreal I don't think it EVER doubled [08:36]
ernimril qqqhhh, using String.split heavily is slow, consider indexOf + substring yourself if you are really doing lots of split [08:36]
__lunar_jetman [__lunar_jetman!dave@176.248.199.160] has joined ##java [08:37]
kicked __lunar_jetman (Banned: this ban will expire after 365d) [08:37]
qqqhhh each line does only one split but it is very long hundreds of characters maybe thousands [08:37]
ernimril qqqhhh, split does regex and builds a String[] without knowing in advance how large that array needs to be [08:37]
ernimril qqqhhh, what are you splitting on? single char or complex regex? [08:37]
qqqhhh single char [08:37]
qqqhhh result can be 2 parts or 3 parts [08:38]
ernimril qqqhhh, so replace that with an indexOf loop and see what happens [08:38]
dreamreal and yeah, it's still size=size + size >> 1 in java 14 [08:39]
qqqhhh the thing is there will be always an copy because of the new string instance [08:39]
dreamreal https://java-browser.yawk.at/java/14/java.base/java/util/ArrayList.java#230 <-- the bit where that happens [08:39]
dreamreal dreamreal's title: "java/14 : java.base/java/util/ArrayList.java" [08:39]
qqqhhh i see, so then 3 times the size ? [08:40]
dreamreal no... 1.5 [08:40]
dreamreal size = size + size >> 1 [08:40]
qqqhhh yes i was not sure [08:40]
qqqhhh is there a way to make a zero copy substring ? [08:40]
sphenxes [sphenxes!~sphenxes@196.240.57.204] has joined ##java [08:41]
qqqhhh i read about CharBuffer.wrap but that does a copy too seemingly [08:41]
ernimril qqqhhh, you can build your own string alternative if you really need it [08:41]
qqqhhh yes i thought about that ,seems overkill [08:41]
ernimril qqqhhh, but again, consider skipping split for an indexof loop, it may give you what you need [08:42]
ernimril qqqhhh, also, this is also something that is trivial to write a test case for and benchmark that, jmh may be helpful [08:43]
ernimril jmh [08:43]
ernimril JMH is a micro benchmarking harness written in Java for the JVM, see http://openjdk.java.net/projects/code-tools/jmh/ [08:43]
qqqhhh i will try it but i think the substring does a copy [08:45]
qqqhhh it makes sense to not keep a reference to the bigger parent string - undersstandably causes leaks [08:46]
qqqhhh just this part does around 30% of allocations [08:47]
qqqhhh but thanks for clarifying [08:48]
ernimril qqqhhh, Your best bet right now is to 1) try a few of the things we have suggested, 2) create a test case and use jmh to optimize it [08:49]
qqqhhh i jmh hard to use ? i do not know it yet, i use eclipse [08:50]
ernimril no, it is easy to use [08:50]
qqqhhh in the last days,thanks to JMC i managed to reduce allocation rate from 150MB/s to 60MB/s [08:51]
code-witch [code-witch!~code-witc@150.129.88.5] has joined ##java [09:00]
qqqhhh ah maven, not exactly my type [09:01]
qqqhhh i will try the indexof solution [09:03]
Kol how do i point to the jetbrains repository so i can include this in my gradle project? right now my build.gradle has `repositories { mavenCentral() }` [09:20]
Kol https://mvnrepository.com/artifact/org.jetbrains/markdown/0.1.45 [09:21]
Kol Kol's title: "Maven Repository: org.jetbrains markdown 0.1.45" [09:21]
SwiftMatt [SwiftMatt!~Objective@c-71-205-200-158.hsd1.co.comcast.net] has joined ##java [09:22]
dreamreal well [09:23]
dreamreal Kol: https://docs.gradle.org/current/userguide/declaring_repositories.html#sec:declaring_custom_repository [09:23]
Kol thx [09:25]
dreamreal thank google [09:25]
qqqhhh <ernimril> thanks i did the indexof solution, now my top allocator is string.replace :D [09:39]
qqqhhh <ernimril> but that is a different part that is not mikrotik api parsing [09:40]
ernimril qqqhhh, ok, probably good :-) [09:40]
wymillerlinux [wymillerlinux!~wymillerl@097-084-004-094.res.spectrum.com] has joined ##java [10:01]
dqx_ [dqx_!~dqx@unaffiliated/dqx] has joined ##java [10:08]
qqqhhh <ernimril> now down to 40MB/s average allocation rate [10:10]
ernimril qqqhhh, nice to hear [10:10]
paws_ [paws_!uid89121@gateway/web/irccloud.com/x-rpnuhmlcxqqusbeh] has joined ##java [10:37]
white_snack [white_snack!~white_sha@unaffiliated/whiteshadow/x-9072] has joined ##java [10:40]
zhangxaochen_sh [zhangxaochen_sh!uid406753@gateway/web/irccloud.com/x-nxhzrjnpmcnqwqnf] has joined ##java [10:40]
Arimil [Arimil!~Renari@70.44.83.129.res-cmts.bgr.ptd.net] has joined ##java [10:43]
fedora117 [fedora117!~fedora117@2600:2b00:6d0b:ec00:f6c1:8d41:4479:8eb5] has joined ##java [10:53]
hussam [hussam!uid193284@gateway/web/irccloud.com/x-tzzeybeqvjiyzliv] has joined ##java [11:05]
deltreey [deltreey!~deltreey@097-100-016-143.res.spectrum.com] has joined ##java [11:08]
code-witch [code-witch!~code-witc@150.129.88.5] has joined ##java [11:14]
SwiftMatt [SwiftMatt!~Objective@c-71-205-200-158.hsd1.co.comcast.net] has joined ##java [11:15]
Renari [Renari!~Renari@70.44.83.129.res-cmts.bgr.ptd.net] has joined ##java [11:18]
deltreey [deltreey!~deltreey@097-100-016-143.res.spectrum.com] has joined ##java [11:19]
Cahaan [Cahaan!~Cahaan@47.153-136-217.adsl-dyn.isp.belgacom.be] has joined ##java [11:21]
Arimil [Arimil!~Renari@70.44.83.129.res-cmts.bgr.ptd.net] has joined ##java [11:23]
CookieM [CookieM!~tomek@r-45-155-148-237.gpon.bialnet.pl] has joined ##java [11:27]
cristian_c [cristian_c!~cristian@unaffiliated/cristianc/x-324636] has joined ##java [11:31]
killvenom [killvenom!~killvenom@84.67.39.190] has joined ##java [11:31]
wymillerlinux [wymillerlinux!~wymillerl@097-084-004-094.res.spectrum.com] has joined ##java [11:41]
orbyt_ [orbyt_!~orbyt@172.92.4.78] has joined ##java [11:42]
gelignite [gelignite!~gelignite@55d4ee71.access.ecotel.net] has joined ##java [11:46]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [11:55]
deltreey_ [deltreey_!~deltreey@2607:fb90:4099:8fcb:ac22:b7b1:62d0:2910] has joined ##java [12:06]
white_shadow [white_shadow!~white_sha@unaffiliated/whiteshadow/x-9072] has joined ##java [12:13]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [12:19]
Jantz [Jantz!~IceChat9@118-93-27-99.dsl.dyn.ihug.co.nz] has joined ##java [12:19]
audiofile what's a good way to loop over an IP range? [12:26]
audiofile I have two IP addresses in strings [12:26]
audiofile *Strings [12:26]
cheeser well, talk it through... [12:33]
cheeser what have you tried? [12:33]
ricky_clarkson2 Sounds like the question might really be about subnets. You need the IPv4 address segment plus a number of bits for the netmask. Two IP addresses won't cut it, you could infer a subnet but get a different one (narrower) than you were intending. [12:37]
ricky_clarkson2 and I've no idea if/how subnets apply to IPv6 [12:37]
cheeser well, if the variance is only in the 4th quartet, it's trivial. [12:37]
Cahaan [Cahaan!~Cahaan@47.153-136-217.adsl-dyn.isp.belgacom.be] has joined ##java [12:38]
ricky_clarkson2 1.1.1.0/25 , int ipSegment = 1 <<< 24 | 1 <<< 16 | 1 <<< 8; int netMaskInverted = some bit formula to get binary 0000.. 1111111; loop from ipSegment to ipSegment + netMask [12:41]
_lucifer [_lucifer!sid308373@musicbrainz/user/amCap1712] has joined ##java [12:41]
ricky_clarkson2 and be very careful about negative numbers ruining your loop [12:42]
cristian_c sorry [12:44]
cristian_c is this the right channel for discussions about jad and jar? [12:44]
cristian_c any ide? [12:44]
cristian_c *ideas [12:44]
ernimril cristian_c, jad and jar, sure. Ideas, not so much, probably better to take such in their respective channels [12:49]
SagaciousZed [SagaciousZed!~harbinger@162.244.78.24] has joined ##java [12:52]
kirua [kirua!~kirua@unaffiliated/kirua] has joined ##java [12:54]
fstd_ [fstd_!~fstd@unaffiliated/fisted] has joined ##java [12:56]
cheeser we don't really do decompliation conversations here, no. [01:00]
junktext [junktext!junktext@fsf/member/junktext] has joined ##java [01:09]
bobek [bobek!~bobek@unaffiliated/bobek] has joined ##java [01:10]
audiofile cheeser I discovered guava covers all of this including converting from string to inetaddress and incrementing as well :) [01:25]
audiofile thanks [01:25]
palasso [palasso!~palasso@unaffiliated/palasso] has joined ##java [01:26]
escanda [escanda!4f93c066@gateway/web/cgi-irc/kiwiirc.com/ip.79.147.192.102] has joined ##java [01:26]
escanda hey there! :) how is that there's no bsd kqueue nio implementation? [01:27]
escanda (in openjdk) [01:27]
ernimril escanda, probably because nobody stepped up to implement it [01:27]
cheeser probably a question for the openjdk irc channel [01:27]
cheeser audiofile: great! good luck. [01:28]
escanda interesting :) it would be cool I think. besides there's no aio support for linux neither [01:28]
escanda (from what I gathered from a quick glance at the sources) [01:28]
escanda perhaps xnio implements that part [01:29]
escanda i am going to take a look [01:29]
escanda nope [01:31]
audiofile uhh, is jre version != java version? [01:33]
dreamreal it's the same [01:33]
cristian_c ernimril: ok [01:33]
audiofile https://github.com/google/guava/wiki/UseGuavaInYourBuild how do they mention jre 23.5 here? [01:33]
audiofile audiofile's title: "UseGuavaInYourBuild google/guava Wiki GitHub" [01:33]
cheeser there is no (separate) jre after 8 [01:33]
cheeser 23.5 is probably the guava version [01:34]
audiofile oooh okay! [01:34]
escanda ernimril I think the issue is bigger since it could require an impl specific folder and some more than nio's impl [01:34]
audiofile can I skip that if I want latest version? [01:34]
audiofile skip that subtag [01:34]
cheeser \_(?)_/ [01:34]
fizzie Yeah, it's just called "23.5-jre" with the "jre" there to distinguish it from the Android-specific build. [01:34]
ernimril well, some distributions have jre, adoptopenjdk is one such place [01:34]
white_shadow I am trying to build javabot project but it is stuck here "exec-maven-plugin:1.2.1:java (default-cli) @ javabot ---" for last 15 minutes [01:34]
audiofile ah ok [01:34]
audiofile ty! [01:34]
cheeser hrm. that might be the call out to git. it shouldn't take any noticeable time. kill it and restart the build [01:35]
cristian_c in order to install a jar aplication, a jad file is needed [01:35]
cheeser tech support [01:36]
cheeser Hello, ##java is not a technical support channel for your Java apps or virtual machines; it's a development channel for enthusiasts to discuss programming with the Java language. Please ask the vendor of your software for support if you're having trouble with it. [01:36]
cristian_c so, I've created a 1 kb jad file using the manifest parameters [01:36]
sizeof_void34 [sizeof_void34!~Thunderbi@ppp91-79-82-127.pppoe.mtu-net.ru] has joined ##java [01:37]
Sgeo [Sgeo!~Sgeo@ool-18b982ad.dyn.optonline.net] has joined ##java [01:37]
escanda cristian_c is it working so far? [01:37]
cristian_c but when I try to install the jar application, selecting the jad file, I get jar info and then I see he following message: 'not valid JAD descriptor' [01:38]
cheeser tech support [01:38]
cheeser cristian_c, Hello, ##java is not a technical support channel for your Java apps or virtual machines; it's a development channel for enthusiasts to discuss programming with the Java language. Please ask the vendor of your software for support if you're having trouble with it. [01:38]
cristian_c escanda: I don't know [01:38]
escanda cristian_c you might want to check out what a jad file and instead run the jar as is [01:38]
cristian_c cheeser: I just have to make a question yet [01:39]
audiofile what is the meta build tool right now for jav [01:39]
audiofile *java. is it maven? [01:39]
cristian_c escanda: it's not possible to install an application without a jad file [01:39]
cheeser maven and gradle are the most popular. [01:39]
cheeser cristian_c: this is not the forum for help installing your app [01:39]
audiofile ah, I've seen gradle a fair bit when I messed around with android applications =) [01:39]
cristian_c cheeser: I've not made a question yet [01:40]
audiofile was the most popular kid in my class when I fixed a guy's gradle build issues [01:40]
white_shadow cheeser tried many times but same happens [01:40]
cheeser i know you haven't, cristian_c [01:40]
cristian_c cheeser: so, you don't know what question I have yet [01:40]
Ragnor [Ragnor!~Ragnor@dslb-084-062-047-251.084.062.pools.vodafone-ip.de] has joined ##java [01:40]
cheeser cristian_c: is this your code? are you writing this project? [01:41]
Ischwitch [Ischwitch!~Ingvix@134.19.189.4] has joined ##java [01:41]
cristian_c cheeser: I've crrated the jad file [01:41]
cheeser cristian_c: is this your code? are you writing this project? [01:41]
cheeser or are you trying to get some random 3rd party app to work? [01:41]
cristian_c I need to create the jad properly, I mean [01:41]
cheeser you could try asking an actual question for starters. [01:42]
cristian_c I couldntry to make a question [01:43]
cheeser eh? [01:43]
cristian_c *I could try to make a question [01:43]
cristian_c btw, my questiin is composed in such way: exactky, what does 'not valid descriptor' mean? and what is a good way to create a jad file without making mistakes? [01:45]
cheeser it means your descriptor is wrong. [01:46]
cristian_c and in order to better answer my questions: what resources I could read/study in order to get this target? [01:46]
cheeser when you talk about "jad files" what's the context? what consumes these files? [01:46]
cristian_c a jar application, if I0ve got the question [01:47]
cheeser "a jar application" is meaningless. [01:48]
cristian_c I0ve tried some method last week in order to generate the jad file (by hand or by a tool, so I've crested the fike in some ways) [01:48]
yawkat It's a java me thing I think [01:48]
yawkat me [01:48]
yawkat yawkat, what does that even *mean*? [01:48]
cristian_c jar archive [01:48]
yawkat java me [01:49]
yawkat yawkat, what does that even *mean*? [01:49]
yawkat ( [01:49]
cristian_c yawkat: kava me? [01:49]
cristian_c *java [01:49]
cheeser cristian_c: what are you working with exactly? you've given exactly 0 details beyond "a jad file" [01:49]
cheeser show us [01:49]
cheeser Paste the code (and any errors) in a pastebin where we can see it. See ~pastebin for options. Also see ~testcase for good examples as to how to help us help you quickly diagnose and solve problems. [01:49]
cristian_c yeah, I've thought to pastebin the jad file [01:49]
cristian_c it0s jut a manifest [01:50]
cheeser and what consumes this jad file? [01:50]
escanda cristian_c, jad files are only for java me apps, you probably just got a jar file you can run using: `java -jar <filepath>` [01:51]
cristian_c it's about midlet [01:51]
escanda oh, then you need a jad file... sorry to hear that [01:52]
cristian_c so, couldnI trymto run by commabd line? [01:52]
cheeser ffs, cristian_c [01:52]
cheeser you really need to learn how to ask for help [01:52]
cristian_c https://pastebin.com/MMnePAkL [01:54]
dreamreal cristian_c: unlikely unless you have a jme emulator [01:54]
dreamreal but this isn't a good java me channel [01:54]
dreamreal tech support [01:55]
dreamreal Hello, ##java is not a technical support channel for your Java apps or virtual machines; it's a development channel for enthusiasts to discuss programming with the Java language. Please ask the vendor of your software for support if you're having trouble with it. [01:55]
cheeser and now we come full circle [01:55]
cheeser cristian_c: as i said 20 minutes, talk to the vendor of your app (or midlet in this case) [01:55]
cristian_c so, not executing the code by java -jar command, dreamreal , I suppose [01:56]
dreamreal it's not a jar [01:56]
dreamreal not a real one. It's not for a jre. [01:56]
cristian_c dreamreal: anyway, I've asked if jad-jar discussions were allowed, before askingnin this channel [01:57]
cristian_c and answer was yes [01:57]
cheeser was it now? because that's not how I remember that going. [01:57]
cheeser oh, i see ernimril's response now. [01:57]
dreamreal you can ask anything you want. But getting answers is different. [01:57]
cristian_c cheeser: abput creating jad files, do iou mean? [01:58]
cristian_c *about [01:58]
MikeBux [MikeBux!~Michael@dyndsl-178-142-137-238.ewe-ip-backbone.de] has joined ##java [01:59]
cristian_c dreamreal: do you mean java micro edition? [02:00]
dreamreal yes, that's what would run midlets. [02:00]
cristian_c oh [02:00]
cristian_c ok [02:00]
fedora117 [fedora117!~fedora117@2600:2b00:6d0b:ec00:f6c1:8d41:4479:8eb5] has joined ##java [02:01]
led1 [led1!~Thunderbi@217.66.160.14] has joined ##java [02:02]
zalt [zalt!~devp@unaffiliated/lambda443] has joined ##java [02:02]
cristian_c dreamreal: I suppose jme and j2me are not very differnt [02:03]
cristian_c maybe java version [02:04]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined ##java [02:04]
cheeser they're the same thing [02:04]
dreamreal JME is a rebranded j2me [02:04]
cristian_c ok, there is a proper channel for java micro developement, I've fpund [02:05]
cristian_c *found [02:05]
cristian_c ##j2me, I mean [02:05]
dreamreal huzzah, can you stop spamming us about it? [02:05]
cristian_c (in freenode) [02:05]
cristian_c dreamreal: ? [02:06]
dreamreal if you cut the number of lines you type by eight, the amount of actual useful relevant information would be ... the same [02:06]
cristian_c ok, so all the previousminformation in onemline is not spam [02:07]
dreamreal it still wouldn't be really very relevant but it'd be fewer lines [02:07]
cristian_c I've just looked for one of ypur suggestions, ao it seem so, ok [02:09]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [02:10]
killvenom [killvenom!~killvenom@89.32.123.111] has joined ##java [02:15]
jason621 [jason621!~jason621@2600:1700:f370:6a00:f50f:1d4:d55b:c84] has joined ##java [02:18]
audiophile [audiophile!~audiofile@unaffiliated/audiofile] has joined ##java [02:27]
white_shadow [white_shadow!~white_sha@unaffiliated/whiteshadow/x-9072] has joined ##java [02:30]
cristian_c dreamreal: btw, jar start properly on j2me emulator (auto-converted?!) [02:35]
tomboy65 [tomboy65!~tomboy64@gateway/tor-sasl/tomboy64] has joined ##java [02:45]
tazle [tazle!tazle@kapsi.fi] has joined ##java [02:55]
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c7320622297a054114b75d92.dip0.t-ipconnect.de] has joined ##java [02:56]
mindCrime [mindCrime!~prhodes@2606-a000-112a-8159-ea44-563a-99f1-db26.inf6.spectrum.com] has joined ##java [03:13]
Hanii [Hanii!~Hanii@2a00:23c5:c587:6d00:9122:b7ef:1b44:8c49] has joined ##java [03:16]
tomboy65 [tomboy65!~tomboy64@gateway/tor-sasl/tomboy64] has joined ##java [03:17]
Goplat [Goplat!~Goplat@reactos/developer/Goplat] has joined ##java [03:20]
peaceguy [peaceguy!~peaceguy@unaffiliated/peaceguy] has joined ##java [03:31]
Hanii [Hanii!~Hanii@2a00:23c5:c587:6d00:713b:d003:a401:78da] has joined ##java [03:32]
moonlighter [moonlighter!c4aa09c6@196.170.9.198] has joined ##java [03:32]
Hanii [Hanii!~Hanii@2a00:23c5:c587:6d00:b4fd:76c5:a228:3f18] has joined ##java [03:48]
mindCrime [mindCrime!~prhodes@2606-a000-112a-8159-ea44-563a-99f1-db26.inf6.spectrum.com] has joined ##java [03:52]
Hanii [Hanii!~Hanii@2a00:23c5:c587:6d00:8562:c5d6:93b3:653d] has joined ##java [04:06]
zalt_ [zalt_!~devp@unaffiliated/lambda443] has joined ##java [04:11]
orbyt_ [orbyt_!~orbyt@172.92.4.78] has joined ##java [04:18]
kankles [kankles!~kclem0@68.235.43.69] has joined ##java [04:20]
audiophile [audiophile!audiofile@gateway/vpn/privateinternetaccess/audiofile] has joined ##java [04:33]
WiseOwL [WiseOwL!~WiseOwL@2.223.59.198] has joined ##java [04:37]
Hanii [Hanii!~Hanii@2a00:23c5:c587:6d00:c4fe:842e:8537:8b0d] has joined ##java [05:06]
mzajc [mzajc!~marko@unaffiliated/mzajc] has joined ##java [05:18]
zalt_ [zalt_!~devp@unaffiliated/lambda443] has joined ##java [05:18]
Inu [Inu!~Inu@unaffiliated/inu] has joined ##java [05:19]
Hanii [Hanii!~Hanii@2a00:23c5:c587:6d00:41cd:2bc8:596d:1e80] has joined ##java [05:20]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [05:25]
zalt_ [zalt_!~devp@unaffiliated/lambda443] has joined ##java [05:40]
Inu_ [Inu_!~Inu@unaffiliated/inu] has joined ##java [05:42]
audiofile hi, i have following code http://vpaste.net/QaDn9?bg=dark&nu but each iteration takes ~15s to run. Why is it so slow? I hope it's not performing dns lookups for *that* [05:54]
audiofile audiofile's title: "db/QaDn9 - vpaste.net" [05:54]
fizzie If you mean "I hope it's not performing DNS lookups for 15 seconds", that's a fair enough hope -- but maybe it's some sort of DNS misconfiguration, and it's taking 15 seconds to time out and give up. [05:58]
fizzie If you mean "I hope it's not performing DNS lookups for getHostName()", that's not a reasonable hope, because a DNS lookup is what it's documented to do, when the InetAddress was created without a hostname. [05:58]
fizzie (Well, a result "based on the system configured name lookup service", to be exact.) [05:59]
audiofile yeah I was thinking #2 [06:14]
audiofile my bad, sorry [06:14]
audiofile how can I check if one inetaddress is less than another one (not equality check) http://vpaste.net/Z1i6I?bg=dark&nu [06:20]
audiofile audiofile's title: "db/Z1i6I - vpaste.net" [06:20]
audiofile oh ignore that ^ [06:29]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [06:58]
Sheilong [Sheilong!uid293653@gateway/web/irccloud.com/x-tzjsjtoyzmlozght] has joined ##java [07:04]
kenalex [kenalex!~alexi5@38.92.122.159] has joined ##java [07:07]
kenalex hello everyone [07:07]
kenalex is the book "Java Concurrency in Practice" still relevant to learning mutithreading and concurrency in java ? [07:09]
beatbrot2 [beatbrot2!~beatbrot@p54913eb1.dip0.t-ipconnect.de] has joined ##java [07:13]
terabyte [terabyte!23b2eb13@ec2-35-178-235-19.eu-west-2.compute.amazonaws.com] has joined ##java [07:23]
terabyte Hi, I'm using a processbuilder to execute a command. I'm gonna give the exact command as it would appear on a shell, I can't seem to get the processBuilder to assemble it properly. That is, executing the cmdarray works fine on a shell but not on a processbuilder... [07:25]
terabyte How should the --extra-args parameter and its 2 key=value values be passed? ansible-playbook -i thisworksfine.ini --extra-args 'key1=value1 key2=value2' site.yml [07:27]
zeden [zeden!~user@unaffiliated/zeden] has joined ##java [07:28]
terabyte i've tried passing ["--extra-args", "'key1=value1 key2=value2'"], but no luck also ["--extra-args", "key1","value1", "key2","value2"] different kind of failure, first one without single quotes doesn't work either. [07:29]
terabyte from the docs an example command should be issued like this ` ansible-playbook release.yml --extra-vars "version=1.23.45 other_variable=foo" ` it all works fine with the java processbuilder until i try to use the extra-vars parameters, it doesn't seem to pass them propertly. [07:32]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [07:35]
kankles i have a list of elements and i need to mimic rate limiting api. [07:36]
kankles is thread.sleep good enough? [07:37]
kankles or is there some other way to get n elements per second? [07:37]
dreamreal *shrug* there's also a way to run things on schedule [07:43]
dreamreal like "in a second" [07:43]
dreamreal so are you writing guava or something? [07:44]
kankles no, just unit testing [07:46]
dreamreal well, guava's throttling works and has tests [07:46]
kankles so theres some utility for returning elements from a list at some interval? [07:47]
dreamreal there's a utility for limiting requests over time [07:47]
dreamreal i.e., a throttle, and you are more than able to use that to limit ... anything, including returning elements from a list [07:48]
kankles ya, this could work. [07:51]
kankles is there anything in particular wrong with just thread.sleep ? [07:51]
dreamreal nah [07:52]
dreamreal it's just that you don't have to test throttling :) [07:52]
kankles cool. thanks. [07:53]
LiftLeft [LiftLeft!~LiftLeft@2001:19f0:5c01:755:5400:2ff:fe62:b1d9] has joined ##java [07:56]
deavmi [deavmi!~tbk@165.0.49.28] has joined ##java [08:00]
plarsen [plarsen!~plarsen@redhat/jboss/pdpc.professional.plarsen] has joined ##java [08:08]
AtomicInteger [AtomicInteger!~primamate@p200300ee171dd700be9b14f72dce0cc6.dip0.t-ipconnect.de] has joined ##java [08:08]
terabyte kankles i once did a thing using blocking queues where i periodically consumed freeing up space according to a formula and made the calling api block waiting for a slot. [08:10]
terabyte the rate description was "100,000 per 24 hours" (not n per second), so making space every 30 seconds worked. [08:10]
wenxin [wenxin!~wenxin@124.206.0.224] has joined ##java [09:07]
LiftLeft [LiftLeft!~LiftLeft@2001:19f0:5c01:755:5400:2ff:fe62:b1d9] has joined ##java [09:10]
katana [katana!~katana@unaffiliated/katana] has joined ##java [09:37]
sagax [sagax!~sagax_nb@213.138.71.146] has joined ##java [09:39]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [09:47]
toytoy [toytoy!~toytoy@unaffiliated/t0yt0y] has joined ##java [09:49]
Sgeo [Sgeo!~Sgeo@ool-18b982ad.dyn.optonline.net] has joined ##java [10:11]
LiftLeft [LiftLeft!~LiftLeft@2001:19f0:5c01:755:5400:2ff:fe62:b1d9] has joined ##java [10:29]
wenxin [wenxin!~wenxin@124.206.0.224] has joined ##java [10:39]
wenxin hey folks. i am very new to java . i just encountered a very simple question. i had already installed jdk and jre. when i typed javac in terminal , i got the message:'javac' not found [10:40]
wenxin and i still get the message :this path is not pointing to a jdk' from vscode [10:41]
AMcBain [AMcBain!~Art@071-085-028-052.res.spectrum.com] has joined ##java [10:49]
wymillerlinux [wymillerlinux!~wymillerl@097-084-004-094.res.spectrum.com] has joined ##java [10:51]
TheresaJayne [TheresaJayne!sid37392@gateway/web/irccloud.com/x-uhmnysmopwwesrqv] has joined ##java [10:58]
audiofile [audiofile!~audiofile@unaffiliated/audiofile] has joined ##java [11:10]
audiofile hullo, I'm curious what this line means https://github.com/K-OpenNet/ONOS-SSM/blob/9a6ba39969d483956e98026182b03952b4fea1f1/cli/src/main/java/org/onosproject/cli/net/GroupsListCommand.java#L81 [11:11]
audiofile audiofile's title: "ONOS-SSM/GroupsListCommand.java at 9a6ba39969d483956e98026182b03952b4fea1f1 K-OpenNet/ONOS-SSM GitHub" [11:11]
audiofile for reference, http://api.onosproject.org/1.7.0/org/onosproject/net/device/DeviceService.html it is an interface [11:11]
audiofile audiofile's title: "DeviceService (onos-docs-external 1.7.0 API)" [11:11]
audiofile how can you call a function from an interface? shouldn't you be able to call only from classes which implement that interface methods? [11:11]
audiofile I know I'm missing something here [11:12]
Cyp__ [Cyp__!~Cyp_@192038138009.mbb.telenor.dk] has joined ##java [11:23]
Me4502 [Me4502!~quassel@unaffiliated/me4502] has joined ##java [11:38]
HaniiLaptop [HaniiLaptop!~HaniiLapt@2a00:23c5:c587:6d00:2d7a:7db0:3203:1c21] has joined ##java [11:42]
immibis_ [immibis_!~immibis@x4e369d94.dyn.telefonica.de] has joined ##java [11:47]
BT40 [BT40!~hextreme@103.41.27.103] has joined ##java [11:48]
Rainier [Rainier!~Art@071-085-028-052.res.spectrum.com] has joined ##java [11:48]
BT40 I , need help from u guys [11:49]
BT40 I am getting this error in linux terminal [11:50]
BT40 Error: Could not find or load main class .home.hextreme.local.lib.python2.site-packages.nosqldb.kvproxy.lib.kvproxy.jar: [11:50]
BT40 i have checked manually, the class exists. The syntax is recommended by oraclre, still getting error [11:50]
BT40 please guide [11:50]
BT40 Tried changing directory of the jar package, still getting same error. -verbose parameters is also providing no additional info for troubleshooting [11:51]
AMcBain [AMcBain!~Art@071-085-028-052.res.spectrum.com] has joined ##java [11:53]