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

« 2019-04-15


2019-04-17 »

Nick Message Date
computeiro [computeiro!~computeir@] has joined #kotlin [12:11]
djhworld [djhworld!~djhworld@] has joined #kotlin [12:38]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [01:11]
_xor [_xor!] has joined #kotlin [01:15]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [01:20]
DTZUZO [DTZUZO!] has joined #kotlin [01:43]
vigilancer [vigilancer!~developer@unaffiliated/vigilancer] has joined #kotlin [01:52]
kapil____ [kapil____!uid36151@gateway/web/] has joined #kotlin [01:57]
Ladicek [Ladicek!~lthon@] has joined #kotlin [02:06]
raoul11_ [raoul11_!~raoul11_@unaffiliated/raoul11] has joined #kotlin [02:12]
raoul11_ [raoul11_!~raoul11_@unaffiliated/raoul11] has joined #kotlin [02:13]
serafeim [serafeim!54cdf48a@gateway/web/freenode/ip.] has joined #kotlin [02:14]
serafeim good morning [02:14]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [02:14]
reflect_ [reflect_!~reflect@unaffiliated/reflect/x-3064159] has joined #kotlin [02:19]
Pitel [Pitel!] has joined #kotlin [02:32]
macropreprocesso [macropreprocesso!] has joined #kotlin [02:44]
jml [jml!sid162989@gateway/web/] has joined #kotlin [02:50]
Tazmain [Tazmain!~Tazmain@unaffiliated/tazmain] has joined #kotlin [02:52]
lineos [lineos!sid103986@gateway/web/] has joined #kotlin [02:52]
barq [barq!sid103986@gateway/web/] has joined #kotlin [02:54]
kostrifon [kostrifon!~kostrifon@] has joined #kotlin [02:54]
r4vi [r4vi!sid166794@gateway/web/] has joined #kotlin [02:55]
lankanmon [lankanmon!] has joined #kotlin [03:03]
royal_screwup21 [royal_screwup21!89de72f4@gateway/web/cgi-irc/] has joined #kotlin [03:41]
jml_ [jml_!sid162989@gateway/web/] has joined #kotlin [04:05]
ChrisLane [ChrisLane!] has joined #kotlin [04:14]
Tazmain Okay this is just weird, doing val task = async { foo()} val result = task.await() give me null, but task.getCompleted() gives me the results :/ I feel like I missed something here [05:09]
Tazmain s/give/gives [05:12]
yawkat Tazmain: that sounds odd, since await shouldnt be able to return null if foo doesnt return null. [05:17]
yawkat just from a typing perspective. [05:17]
Tazmain yeah it seems odd to me as well yawkat , and the fact that at that exact point if I do getCompleted (which seems to be deprecated? ) gives me the expected results [05:18]
yawkat it doesnt only seem odd to me, it seems "shouldnt compile" to me. [05:18]
yawkat show us. [05:18]
yawkat 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. [05:18]
Tazmain lol it does compile. Unless I break the jvm , I took out the async and it works as epxected with foo giving 9 items. Will paste though [05:19]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [05:20]
kostrifon [kostrifon!~kostrifon@] has joined #kotlin [05:29]
Tazmain Lines 26 and 48 [05:31]
Tazmain Okay odd, I think the debugger is being screwy because the unit test passed. [05:33]
Tazmain might be at the time I was looking that ,the code didn't need the value yet [05:33]
Tazmain Okay I am actually sorted, it's working now :/ that was a bit of odd behaviour [05:35]
yawkat yea, submissionStatuses is not nullable, so it cant be null [05:38]
Tazmain yeah must have been the debugger at that point where it stopped [06:02]
ChrisLane [ChrisLane!] has joined #kotlin [06:32]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [06:46]
waz [waz!~waz@pdpc/supporter/active/waz] has joined #kotlin [06:48]
lankanmon [lankanmon!] has joined #kotlin [06:52]
Serafeim [Serafeim!] has joined #kotlin [07:05]
serafeim [serafeim!54cdf48a@gateway/web/freenode/ip.] has joined #kotlin [07:10]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [07:28]
kostrifon [kostrifon!~kostrifon@] has joined #kotlin [07:59]
Tazmain [Tazmain!~Tazmain@unaffiliated/tazmain] has joined #kotlin [08:21]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [08:26]
wakingrufus [wakingrufus!~rufus@] has joined #kotlin [08:50]
argo [argo!~argo@unaffiliated/argo] has joined #kotlin [08:57]
t2mkn [t2mkn!~t2mkn@] has joined #kotlin [09:04]
MassDebates [MassDebates!~MassDebat@unaffiliated/massdebates] has joined #kotlin [09:04]
Dwarf Here's an interesting question: I've got a java codebase which has the ability to load modules. It does so using a URLClassLoader. It seems to be unable to load my kotlin compiled jar for some reason [09:26]
Addax doesn't work [09:27]
Addax Addax, doesn't work is useless. Tell us what it is, what you want it to do, and what it is doing. Consider putting some code and any errors on a pastebin. (use ~pastebin for suggestions) [09:27]
waz [waz!~waz@pdpc/supporter/active/waz] has joined #kotlin [09:28]
Dwarf I am well aware that wasn't a well formed question. I suppose my question here is: Has anyone ran into similar issues? [09:28]
Dwarf In this case the relevant code is and [09:30]
freeone3000 Dwarf: Your class doesn't load? Let's go down the usual checklist! First: Is the class actually compiled for a JRE version <= the JRE version you're using? Second: Does the class exist on the classpath? Third: Is the class named what you think it is? [09:32]
Addax freeone3000: yo, there you are! [09:32]
Addax I had a question for you yesterday [09:33]
freeone3000 Do you still have a question for me today? [09:33]
sbalmos the question is what was the question yesterday [09:33]
Addax well, I'm still interested in what your answer might have been - but I didn't want to harangue you if you'd already seen the question [09:33]
Addax geez, you guys suck, hold on [09:33]
freeone3000 okay. autocomplete. this is one of our interview questions actually. [09:34]
Addax freeone3000: In case I forget: I need to find some decent resources on building an autocomplete that is better than brute force matching: i.e., "wh" should match "the who" as well as "what happened to baby jane". I'm not trying to implement it, just find good resources for it. I've found some, but I hoped you might know of others, or whether the ones I found were canonical enough [09:34]
Dwarf freeone3000: Should be, the code finds the jar in ~/.m2/repository/ and yes point 2 should include that as well. My kotlin module has the following pom.xml: [09:34]
Addax *nod* I'm trying to gloss over the complexities of autocomplete BUT I'd like to provide resources for people who are interested [09:34]
Addax found fuzzywuzzy (a java port of python's lib) [09:35]
Addax and a *few* research papers [09:35]
Dwarf Made a typo in that pom.xml - actual one should be [09:37]
freeone3000 So traditionally you'd use a trie, of course (which is what jquery does); what Completely (a java lib) does is it uses a token list and prefix matches against the token list with no data structs, but this requires an index build step; minimialistic deterministic finite automata with n-ary search based on word boundaries gets max points. [09:37]
freeone3000 part of the issue here is that the boring solution is "throw it into lucene they get this right" and the interview question solution doesn't come with a medium article. [09:38]
freeone3000 Dwarf: That's a build script and I'm asking questions about what happens at runtime. [09:39]
Addax *nod* I was going to point out Solr's suggester, as well as talking about some of the concerns that go into autocomplete (such that it isn't ACTUALLY "select term where term like 'fo%'" [09:39]
freeone3000 it's the usual space-speed tradeoffs but unless you're working with actual Big Data pretty much anything you write will perform acceptably. [09:40]
freeone3000 curse of the pocket supercomputer. [09:40]
Addax well, "acceptably" is also typically wrong [09:40]
Addax "th" will match "the who" but "wh" won't, if it's crude enough [09:40]
freeone3000 for solr/lucene you'd exclude explicitly "stop words" (words that english requires grammatically but don't actually mean anything) [09:41]
freeone3000 ... which leads us to the google "the is a very common word and not included in your search. who is a very common word and not included in your search." [09:42]
freeone3000 The current research in the area is actually in better user intent matching, last 3 years or so we've been focusing on phonetic matching (we have a lib for that, linked later), semantic matching (there's some arxiv papers), and a mix of both. [09:43]
freeone3000 "skip over the first word if it's an article" is probably acceptable for your specific case? [09:44]
vikikas [vikikas!~vikas@2a02:1205:5035:8020:cc88:495f:5766:87c7] has joined #kotlin [09:45]
Addax I'm not actually looking for a solution: I'm actually using "select term where term like 'fo%'" [09:45]
freeone3000 what acm calls this is "substring matching" or "top-k relevance ranking" [09:46]
Addax but I didn't want to ignore the reality, so there's an aside block basically saying "look, there's a lot more here than we're implementing, and here's why, and here's an example of what 'a lot more' is" [09:46]
Dwarf freeone3000: Quite difficult to explain, but it should have every bit of information it requires: [09:47]
freeone3000 Dwarf: Cool! So the classpath URL loader has the jar built above, which should contain... I don't actually know what the class is called. Or the version, since your pom doesn't specify source or destination versions. Or your JRE version that you're running this on. [09:48]
Dwarf Should be called YouTube. I suppose I could explicitly add the JRE version [09:48]
freeone3000 Addax: So is sort of a deep-dive into bing, which is moderately sophisticated. [09:49]
freeone3000 freeone3000's title: "More Intelligent Autocomplete: Academic and Movie Search | Search Quality Insights" [09:49]
freeone3000 They do a statistical approach. [09:49]
freeone3000 Addax: And Lucene spellchecker + top-n ranker gives you a bag-of-words match [09:50]
freeone3000 (As in ) [09:50]
freeone3000 freeone3000's title: "java - How to do query auto-completion/suggestions in Lucene? - Stack Overflow" [09:50]
Addax ah, excellent! thank you. [09:50]
Addax and now I need your real name :/ [09:51]
freeone3000 Addax: /whois me [09:51]
Addax ah, I knew that, thank you [09:52]
Addax Will be adding a thank you and acknowledgement [09:52]
freeone3000 Thanks. [09:52]
Dwarf freeone3000: I seem to have fixed it by correcting /something/ in my pom.xml. Thanks for your time! [09:56]
waz [waz!~waz@pdpc/supporter/active/waz] has joined #kotlin [10:00]
Addax freeone3000: want me to include a url for you or anything like that? [10:09]
greggerz [greggerz!~greggerz@unaffiliated/greggerz] has joined #kotlin [10:14]
kostrifon [kostrifon!~kostrifon@] has joined #kotlin [10:23]
Dwarf Is there a better way of doing regex matching than this code? I only need the match groups [10:53]
esro [esro!] has joined #kotlin [11:05]
r4vi [r4vi!sid166794@gateway/web/] has joined #kotlin [11:23]
freeone3000 That's how you do it. [11:47]
DTZUZU [DTZUZU!] has joined #kotlin [11:54]
kostrifon [kostrifon!~kostrifon@] has joined #kotlin [12:33]
Dwarf Awesome, thanks. I was wondering if toMatchResult was of any use for me. Perhaps I should just dive into the documentation [12:37]
t2mkn [t2mkn!~t2mkn@] has joined #kotlin [01:28]
Justin_T [Justin_T!~Justin@unaffiliated/justin-t/x-2448977] has joined #kotlin [01:39]
t2mkn [t2mkn!~t2mkn@] has joined #kotlin [03:10]
zutat [zutat!02f318f0@gateway/web/freenode/ip.] has joined #kotlin [03:21]
veegee [veegee!] has joined #kotlin [03:35]
veegee [veegee!] has joined #kotlin [03:40]
t2mkn [t2mkn!~t2mkn@] has joined #kotlin [03:55]
orbyt_ [orbyt_!~orbyt@] has joined #kotlin [04:30]
orbyt_ [orbyt_!~orbyt@] has joined #kotlin [06:30]
Addax I have an annotation placed on a var in a constructor that doesn't seem to be retained at runtime. I copied the annotation properties from jackon's @JsonProperty, though. Anyone have any idea what I'd look for? [06:35]
Addax got it: @field:annotationname [06:37]
cheeser yeah. was gonna suggest that. :) [06:49]
Addax pretty short search for it, so that's good [06:50]
waz [waz!~waz@pdpc/supporter/active/waz] has joined #kotlin [07:33]
orbyt_ [orbyt_!~orbyt@] has joined #kotlin [07:41]
orbyt_ [orbyt_!~orbyt@] has joined #kotlin [08:02]
computeiro [computeiro!~computeir@] has joined #kotlin [08:02]
waz [waz!~waz@pdpc/supporter/active/waz] has joined #kotlin [08:17]
yawkat [yawkat!] has joined #kotlin [08:29]
macropreprocesso [macropreprocesso!] has joined #kotlin [09:34]
t2mkn [t2mkn!~t2mkn@] has joined #kotlin [09:48]
computeiro [computeiro!~computeir@] has joined #kotlin [09:52]
Jetoni [Jetoni!~luser@unaffiliated/jetoni] has joined #kotlin [10:16]
kostrifon [kostrifon!~kostrifon@] has joined #kotlin [11:36]