Info

Login

Channels

APIs

Credits

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

« 2019-04-14

2019-04-15

2019-04-16 »

Nick Message Date
macropreprocess is it possible to use String().split to implement a tokenizer or would i need an actual parser/lexer [12:01]
macropreprocess if multiple delimiters are required [12:01]
macropreprocess as my first attempt is just this lmao [12:02]
macropreprocess var2 = [i, am, split, by, space, tokens] [12:02]
macropreprocess var2 = [i , m split by sp, ce tokens] [12:02]
macropreprocess with the delimiters " a" [12:02]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [12:12]
ppareit [ppareit!~ppareit@178-117-89-32.access.telenet.be] has joined #kotlin [12:13]
ppareit [ppareit!~ppareit@ptr-cdbjikpv8fq7qltqnmu.18120a2.ip6.access.telenet.be] has joined #kotlin [12:15]
macropreprocess also how do i implement the forEach function [12:16]
macropreprocess would it be something like this? inline fun forEach(action: (T?) -> Unit) { val iter = iterator() var it = iter.next() while(it != null) { action.invoke(p1 = it) it = iter.next() } } [12:22]
macropreprocess as forEach itself is part of java.Collections right? [12:23]
macropreprocess which cannot be accessed in kotlin native [12:23]
kostrifon [kostrifon!~kostrifon@31.28.114.241] has joined #kotlin [12:31]
Bombe Amazing. You pasted Kotlin code and still think it?s in Java? [01:01]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [01:02]
macropreprocess then where tf does the .forEach function originate from [01:16]
macropreprocess so i can add it to my class [01:16]
macropreprocess instead of trying to re impliment it [01:16]
macropreprocess ughhh how tf do i make a interface depend on a method declared in a class [01:25]
vigilancer [vigilancer!~developer@unaffiliated/vigilancer] has joined #kotlin [01:45]
veegee [veegee!~veegee@ipagstaticip-3d3f7614-22f3-5b69-be13-7ab4b2c585d9.sdsl.bell.ca] has joined #kotlin [01:51]
Serafeim [Serafeim!~Username@host-84-205-228-6.cpe.syzefxis.ote.gr] has joined #kotlin [01:52]
Serafeim good morning [01:52]
Pitel [Pitel!~pitel@fw2o.masterinter.net] has joined #kotlin [01:59]
raoul11_ [raoul11_!~raoul11_@unaffiliated/raoul11] has joined #kotlin [02:00]
Ladicek [Ladicek!~lthon@109.164.114.141] has joined #kotlin [02:04]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [02:29]
raoul11_ [raoul11_!~raoul11_@unaffiliated/raoul11] has joined #kotlin [02:33]
kostrifon [kostrifon!~kostrifon@31.28.114.241] has joined #kotlin [02:34]
macropreprocess how do i correctly define a kotlin.collections.Iterator<T> object [02:39]
macropreprocess so i can return it to override fun iterator(): kotlin.collections.Iterator<T> { return i } [02:39]
thana by not crossposting questions [02:40]
macropreprocess as i get undefined reference: T in object i : kotlin.collections.Iterator<T> [02:40]
Serafeim l o l I remember x-posting from my Usenet years [02:43]
macropreprocess who tf sais x-posting, its cross-posting, not ex-posting [02:44]
Serafeim val koko= object : Iterator<String> {} [02:48]
macropreprocess ok [02:58]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [02:59]
Serafeim [Serafeim!~Username@host-84-205-228-6.cpe.syzefxis.ote.gr] has joined #kotlin [02:59]
Serafeim [Serafeim!~Username@host-84-205-228-6.cpe.syzefxis.ote.gr] has joined #kotlin [02:59]
Serafeim [Serafeim!~Username@host-84-205-228-6.cpe.syzefxis.ote.gr] has joined #kotlin [03:00]
Serafeim [Serafeim!~Username@host-84-205-228-6.cpe.syzefxis.ote.gr] has joined #kotlin [03:01]
Serafeim [Serafeim!~Username@host-84-205-228-6.cpe.syzefxis.ote.gr] has joined #kotlin [03:01]
Serafeim [Serafeim!~Username@host-84-205-228-6.cpe.syzefxis.ote.gr] has joined #kotlin [03:02]
Serafeim [Serafeim!~Username@host-84-205-228-6.cpe.syzefxis.ote.gr] has joined #kotlin [03:02]
Serafeim [Serafeim!~Username@host-84-205-228-6.cpe.syzefxis.ote.gr] has joined #kotlin [03:07]
Tazmain [Tazmain!~Tazmain@unaffiliated/tazmain] has joined #kotlin [03:10]
macropreprocess what interface profides the forEach functions [03:10]
macropreprocess provides* [03:10]
Serafeim [Serafeim!~Username@host-84-205-228-6.cpe.syzefxis.ote.gr] has joined #kotlin [03:11]
thana what about looking into the sorucecode?! [03:11]
macropreprocess as 'override fun forEach(action: (T?) -> Unit)' tells me that 'forEach' overrides nothing [03:12]
macropreprocess with class LinkedList<T> : kotlin.collections.Iterable<T> { [03:12]
thana so what does that tell you? [03:13]
macropreprocess yet i broke kotlin ;-; [03:18]
macropreprocess i broke kotlin ;-; * [03:18]
macropreprocess e: Compilation failed: Protocol message tag had invalid wire type. [03:18]
macropreprocess e: org.jetbrains.kotlin.protobuf.InvalidProtocolBufferException: Protocol message tag had invalid wire type. [03:18]
macropreprocess in Kotlin compiler: (2 errors) [03:18]
thana yeah... maybe programming is nothing for you? [03:19]
macropreprocess tries restarting the IDE [03:21]
Serafeim [Serafeim!~Username@host-84-205-228-6.cpe.syzefxis.ote.gr] has joined #kotlin [03:31]
Serafeim [Serafeim!~Username@host-84-205-228-6.cpe.syzefxis.ote.gr] has joined #kotlin [03:32]
macropreprocess i still get the error ;-; [03:33]
macropreprocess even in a new project i still get the error ;-; [03:35]
Serafeim [Serafeim!~Username@host-84-205-228-6.cpe.syzefxis.ote.gr] has joined #kotlin [03:38]
serafeim [serafeim!54cdf48a@gateway/web/freenode/ip.84.205.244.138] has joined #kotlin [03:47]
macropreprocess reinstalls my OS [03:50]
thana no. just delete it pls [03:53]
Bombe ) [03:55]
ppareit [ppareit!~ppareit@178-117-89-32.access.telenet.be] has joined #kotlin [04:14]
kapil____ [kapil____!uid36151@gateway/web/irccloud.com/x-rvkrhpisqlefnzzc] has joined #kotlin [04:33]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [04:59]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [05:07]
argo [argo!~argo@unaffiliated/argo] has joined #kotlin [05:10]
kostrifon [kostrifon!~kostrifon@31.28.114.241] has joined #kotlin [05:12]
computeiro [computeiro!~computeir@189.15.139.229] has joined #kotlin [05:43]
waz [waz!~waz@pdpc/supporter/active/waz] has joined #kotlin [05:50]
argo [argo!~argo@unaffiliated/argo] has joined #kotlin [05:53]
glosoli [glosoli!~glosoli@unaffiliated/glosoli] has joined #kotlin [06:04]
Jetoni [Jetoni!~luser@unaffiliated/jetoni] has joined #kotlin [07:02]
lankanmon [lankanmon!~LKNnet@CPE64777d632383-CM64777d632380.cpe.net.cable.rogers.com] has joined #kotlin [07:23]
kostrifon [kostrifon!~kostrifon@31.28.114.241] has joined #kotlin [07:53]
MassDebates [MassDebates!~MassDebat@unaffiliated/massdebates] has joined #kotlin [08:01]
argo [argo!~argo@unaffiliated/argo] has joined #kotlin [08:06]
thana he really did it *facepalm* [08:22]
Addax who, what [08:22]
cheeser macroprocess deleted his OS. [08:22]
thana macropreprocess reinstalled his os because he thought that caused his compile errors [08:23]
Addax oh, good [08:23]
Addax maybe he switched to an OS he could manage to use successfully [08:23]
Addax I would say "NOBODY is that stupid" but... [08:23]
thana haha [08:23]
Addax I've been trying to think of a good OS for him but as far as I know none of them consist of a single large red button with a label of "don't panic" [08:26]
Addax of course, then he'd go to #machinelearning or something like that and complain that pressing the button is relaxing but he doesn't know how to get it to do anything ("it relaxes you") [08:27]
ytti i think he got compile errors on entirely new project after reinstalling kotling [08:29]
ytti so perhaps like environment variable affecting compilation or something [08:29]
ytti but he is peculiar fella, he isn't doing trivial stuff, he seems to want to figure out something very complex and unidiomatic, just to understand how it works, but lacks greatly in communication at least [08:30]
ytti making it impossible for anyone to help him [08:30]
cheeser i think he's a chatbot [08:31]
ytti he's asking similar stuff in kotlin slack too [08:31]
ytti getting mostly same reception there [08:31]
thana similar? he's conistantly crossposting [08:31]
thana *constantly [08:32]
Addax oh really! ... oh, smallville7123 [08:32]
cheeser he's banned in ##java for that and many other reasons [08:33]
Addax geeez [08:33]
Addax and kotlin slack has pointed out that he spams all the time everywhere too [08:35]
Addax Gael Ribes [31 minutes ago] @Smallville7123 why do you keep spamming all the time everywhere? [08:35]
Addax Smallville7123 [29 minutes ago] i dont know\ [08:35]
thana "A rose by any other name would smell as sweet" [08:37]
Addax "and a fart is still a wet fart" [08:37]
thana -) [08:37]
Addax https://medium.freecodecamp.org/learn-the-fundamentals-of-a-good-developer-mindset-in-15-minutes-81321ab8a682 [08:42]
wakingrufus [wakingrufus!~rufus@172.58.142.150] has joined #kotlin [09:00]
ppareit [ppareit!~ppareit@178-117-89-32.access.telenet.be] has joined #kotlin [09:07]
MassDebates_ [MassDebates_!~MassDebat@unaffiliated/massdebates] has joined #kotlin [09:46]
greggerz [greggerz!~greggerz@unaffiliated/greggerz] has joined #kotlin [09:55]
Tazmain Hi all, with collections like a list,would it be possible to sort with `sortedBy` but some items used can be null? So I would like to sort by LocalDate and then if not null an int field? [10:00]
cheeser isn't there an overload that take a lambda to do that sorting? [10:00]
Tazmain sortedWith [10:02]
Tazmain that takes a comparitor [10:03]
Addax so provide a comparator [10:04]
cheeser yep [10:04]
cheeser easy peasy [10:04]
Tazmain yeah that is what I am gonna do now. trying to see if compareBy can accept nulls [10:04]
thana it does accept nulls... [10:05]
cheeser AND THEN EXPLODES! [10:05]
cheeser (i dunno, really) [10:05]
thana i guess what you mean is: it doesn't ignores nulls. so waht you cctually want is a compareBy implementation which considers null to be equal to any other value [10:06]
sbalmos You get a black hole [10:06]
thana cheeser: no it handles them correctly [10:06]
sbalmos with requisite interesting picture [10:06]
cheeser thana: i'm sure it does. it's a kotlin after all. :) [10:06]
thana true :) [10:06]
Tazmain thana, no more like sort by dates, then if you get a int value in the second item that isn't null for that date then sort that way, so that I can (12-04-2019,1)(12-04-2019,2) (13-04-2019,null) [10:07]
thana ok in that case: write a cmoparator. you can't do taht with compareBy as that handles on property after another and ignores the context [10:09]
thana s/ on / one / [10:09]
Tazmain or its a client side problem :p [10:11]
kostrifon [kostrifon!~kostrifon@31.28.114.241] has joined #kotlin [10:50]
kostrifon [kostrifon!~kostrifon@31.28.114.241] has joined #kotlin [10:52]
reflect_ [reflect_!~reflect@unaffiliated/reflect/x-3064159] has joined #kotlin [10:57]
esro [esro!~esro@user119-167.otvarta.com.pl] has joined #kotlin [11:11]
waz [waz!~waz@pdpc/supporter/active/waz] has joined #kotlin [11:20]
Addax yo cheeser, I need a sanity check [11:46]
cheeser you're nuts [11:51]
Addax sighs [11:51]
Addax you on the intellij slack? [11:51]
cheeser the kotlin one... [11:52]
Addax cheeser ++ excellent advice offered, going to try it [11:59]
Addax cheeser has a karma level of 1,492, Addax [11:59]
kostrifon [kostrifon!~kostrifon@31.28.114.241] has joined #kotlin [12:06]
serafeim [serafeim!~serafeim@2a02:587:1d0c:c400:998f:2d5:2fec:48a0] has joined #kotlin [12:36]
vikikas [vikikas!~vikas@2a02:1205:5035:8020:7da6:8ff5:6d43:8b3c] has joined #kotlin [12:38]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [12:46]
reflect_ [reflect_!~reflect@unaffiliated/reflect/x-3064159] has joined #kotlin [12:59]
reflect_ [reflect_!~reflect@unaffiliated/reflect/x-3064159] has joined #kotlin [01:04]
serafeim_ [serafeim_!~serafeim@2a02:587:1d0c:c400:998f:2d5:2fec:48a0] has joined #kotlin [01:04]
serafeim_ [serafeim_!~serafeim@2a02:587:1d0c:c400:998f:2d5:2fec:48a0] has joined #kotlin [01:18]
jdlee which channel? now i'm curious :P [01:40]
cheeser #general [01:40]
cheeser depending on what topic you're trying to track [01:40]
jdlee kotlinlang.slack.com? [01:41]
jdlee ah. there it is [01:41]
Addax jdlee: I can show you what I was doing if you like [01:42]
jdlee i'm curious :) [01:42]
Addax what's your nick on that slack? [01:42]
jdlee jasondlee :) [01:43]
Addax naturally I was looking for other combinations, pfah [01:45]
jdlee ) [01:48]
MadLamb [MadLamb!~fabio@ip5b40f0ee.dynamic.kabel-deutschland.de] has joined #kotlin [02:49]
serafeim__ [serafeim__!~serafeim@2a02:587:1d0c:c400:ed8e:4008:e8ec:b559] has joined #kotlin [03:02]
zutat [zutat!5d831222@gateway/web/freenode/ip.93.131.18.34] has joined #kotlin [03:34]
reflect_ [reflect_!~reflect@unaffiliated/reflect/x-3064159] has joined #kotlin [03:37]
k5_ [k5_!~k5@2001:16b8:a0ef:5300:b40b:16df:c032:cb80] has joined #kotlin [03:41]
serafeim_ [serafeim_!~serafeim@2a02:587:1d0c:c400:ed8e:4008:e8ec:b559] has joined #kotlin [04:07]
royal_screwup21 [royal_screwup21!89de72f4@gateway/web/cgi-irc/kiwiirc.com/ip.137.222.114.244] has joined #kotlin [04:21]
royal_screwup21 I'm looking at a kotlin lib here - and I'm wondering if it's idiomatic to have 2 build.gradle files? https://github.com/ajalt/clikt There's one in the root, and another in clikt/ [04:21]
royal_screwup21 royal_screwup21's title: "GitHub - ajalt/clikt: Intuitive command line interface parsing for Kotlin" [04:21]
jdlee it's a multimodule build, so yes https://github.com/ajalt/clikt/blob/master/settings.gradle [04:45]
jdlee jdlee's title: "clikt/settings.gradle at master ajalt/clikt GitHub" [04:45]
royal_screwup21 oh I see, that makes sense, thanks for clarifying [04:48]
jdlee yup [04:50]
orbyt_ [orbyt_!~orbyt@8.4.228.63] has joined #kotlin [04:58]
yawkat [yawkat!~yawkat@cats.coffee] has joined #kotlin [04:58]
royal_screwup21 I'm reading an article on how to create a self-executing jar here https://medium.com/@preslavrachev/kotlin-basics-create-executable-kotlin-jars-using-gradle-d17e9a8384b9 At one point, it says to run: java -jar <MY_PROJECT_NAME>.jar -- but where do we run this? [05:06]
vortumnus At the path of the generated jar file [05:20]
sbalmos1 [sbalmos1!~sbalmos@2605:a000:1304:8078:5f0:368:824a:af86] has joined #kotlin [05:38]
Addax royal_screwup21: it's a file reference only [06:57]
Addax so if yourthing.jar happens to be at ./build/libs/distribution/yourthing.jar, well, you'd run java -jar ./build/libs/distribution/yourthing.jar [06:58]
rex_victor [rex_victor!~rex_victo@HSI-KBW-085-216-042-248.hsi.kabelbw.de] has joined #kotlin [07:02]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [07:18]
ziyourenxiang__ [ziyourenxiang__!~ziyourenx@unaffiliated/ziyourenxiang] has joined #kotlin [08:20]
orbyt_ [orbyt_!~orbyt@172.92.5.20] has joined #kotlin [08:25]
yawkat [yawkat!~yawkat@cats.coffee] has joined #kotlin [08:27]
waz [waz!~waz@pdpc/supporter/active/waz] has joined #kotlin [08:49]
veegee [veegee!~veegee@ipagstaticip-3d3f7614-22f3-5b69-be13-7ab4b2c585d9.sdsl.bell.ca] has joined #kotlin [08:53]
waz_ [waz_!~waz@pdpc/supporter/active/waz] has joined #kotlin [09:16]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [09:53]
Addax [Addax!~jottinger@unaffiliated/dreamreal] has joined #kotlin [10:29]
rruizt [rruizt!~rruizt@83-84-23-124.cable.dynamic.v4.ziggo.nl] has joined #kotlin [10:30]
kostrifon [kostrifon!~kostrifon@31.28.114.241] has joined #kotlin [11:55]