greptilian logo

IRC log for #friendlyjava, 2018-01-29

##friendlyjava on freenode

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
07:04 nanoz joined ##friendlyjava
07:07 nanoz although people ask about multi threading
07:07 nanoz but i havent worked on it
07:07 nanoz have you guys worked on multi threading?
07:09 aditsu I have
07:10 nanoz aditsu use case?!
07:11 aditsu generally, doing things in parallel to 1) make it faster and 2) make it more responsive
07:11 nanoz your use case :?
07:12 aditsu most recently, getting insurance quotes from multiple insurers
07:12 nanoz i havent used till this day
07:12 nanoz they were afraid of multi threading
07:13 aditsu getting a quote may take up to 20+ seconds, if you have 3 or more insurers, it adds up a lot
07:13 nanoz if java was multi threaded why we have parallel stream?
07:13 aditsu I'm not familiar with parallel streams
07:14 abba joined ##friendlyjava
07:17 aditsu nanoz: I'm guessing parallel streams make it easier to do things in parallel without having to handle the multithreading yourself
07:17 nanoz aditsu then why we go for akka framework?
07:18 aditsu (but I don't expect it to be useful very often)
07:18 aditsu I haven't heard of "akka framework"
07:18 nanoz aditsu your using java 8 / 9
07:19 aditsu most of my code is java 6-compatible, but I'm starting to move to java 7-8 (and a couple of projects are already java 8)
07:20 nanoz what features you use in java 8?
07:20 aditsu mostly lambdas and javafx (that's for desktop GUI)
07:22 nanoz O.O
07:22 nanoz 0.0
07:23 aditsu also method references and an occasional default method..
07:23 aditsu something wrong?
07:25 nanoz why do they have default methods? java8 aditsu
07:26 nanoz why require method reference >> just+for+cool!
07:27 aditsu default methods are useful for adding more functionality to interfaces, without turning them into abstract classes, so you can still do multiple inheritance
07:27 aditsu it helps with functional interfaces for lambdas
07:28 aditsu method references also help with lambdas, when you already have a method that does what you need but it's not implementing an interface
07:34 nanoz idl lambda
07:34 nanoz since it forces you to have single method per interface
07:35 aditsu there are already many such interfaces, lambdas make it much easier to use them
07:35 nanoz yea alot of functional interfaces given already
07:35 nanoz i agree on it
07:36 nanoz but still you look to do it
07:36 aditsu they're supposed to be standalone functions, but in java everything has to be in a class or interface, so...
07:43 nanoz aditsu just a curious note have you released any updates to your language?
07:43 nanoz is it possible to have your language in package manager?
07:43 nanoz like chocolate for windows?!
07:44 aditsu chocolate? what?
07:44 aditsu I haven't worked on it for quite a long time..
07:44 aditsu but I plan to get back to it
07:45 aditsu (my language)
07:45 nanoz chocolate is a package manager for windows OS
07:45 aditsu I don't use windoze anyway
07:45 nanoz so if you can have it on chocolate i could do > choco install? aditsu
07:46 aditsu you can just download the jar file and run it
07:47 aditsu or you can use it in the browser (js version)
07:48 nanoz :)
07:48 nanoz i will look into browser version :)
07:50 aditsu http://cjam.aditsu.net
07:52 nanozz joined ##friendlyjava
08:00 aditsu I also have a question.. is there a way to detect if the standard input is redirected?
08:06 pulsar nanozz: wiremock
08:06 pulsar you are looking for wiremock.
08:08 kirua joined ##friendlyjava
08:14 nanoz joined ##friendlyjava
08:22 kirua hi
08:26 nanoz hi kirua
08:26 nanoz wb
08:27 nanoz what do you mean by standard input redirected? aditsu
08:28 nanoz do you mean which listener?
08:28 pulsar [09:06:29] <pulsar> nanozz: wiremock
08:28 pulsar [09:06:34] <pulsar> you are looking for wiremock.
08:28 pulsar in case you missed it
08:28 pulsar stable connection you have got there.
08:29 nanozz joined ##friendlyjava
08:29 pulsar this is a joke, right?
08:29 pulsar nanozz: get a bouncer
08:30 nanozz anything wrong? pulsar
08:31 pulsar yes, with you. i take it you did not get anything i told you before
08:31 pulsar you tend to time out / disconnect while ppl talk to you. a bouncer would help.
08:32 pulsar https://wiki.znc.in/ZNC
08:32 nanozz :D
08:32 nanozz no for ZNC :)
08:32 pulsar [09:28:38] <pulsar> [09:06:29] <pulsar> nanozz: wiremock
08:32 pulsar [09:28:38] <pulsar> [09:06:34] <pulsar> you are looking for wiremock.
08:32 nanozz ya i saw the log
08:34 nanozz so wiremock for SOAP?
08:34 pulsar yes, it has been done and can be done.
08:35 pulsar also soapui is told to be able to do that. never tried it though.
08:35 * nanozz have a private server of my own will connect from there later.Need to config IRC
08:36 pulsar whtas there to config? fire up weechat in a tmux/screen session, done.
08:39 nanozz there are lot of things to config on my private server :! btw irssi i use
08:40 nanozz https://irssi.org/download/
08:40 pulsar use whatever works for you.
08:40 pulsar i prefer weechat over irssi, but irsi isnt bad.
11:46 nanoz joined ##friendlyjava
12:03 kirua joined ##friendlyjava
12:36 aditsu nanoz: I mean e.g. foo|bar or bar < foo; the standard input of bar is redirected in both cases
12:42 aditsu apparently System.console() can detect if at least one of standard input and output is redirected
14:32 nanoz i havent worked on javafx
14:32 aditsu I'm not talking about javafx
16:27 nanoz okay aditsu
16:28 nanoz i feel abba and kirua are same guys.

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

##friendlyjava on freenode