#jogamp @ irc.freenode.net - 20161213 05:06:00 (UTC)


20161213 05:06:00 -jogamp- Previous @ http://jogamp.org/log/irc/jogamp_20161212050600.html
20161213 05:06:00 -jogamp- This channel is logged @ http://jogamp.org/log/irc/jogamp_20161213050600.html
20161213 07:06:00 * monsieur_max (~maxime@anon) has joined #jogamp
20161213 07:56:43 * elect_ (~elect@anon) has joined #jogamp
20161213 08:06:31 <elect_> hey
20161213 08:33:05 * Eclesia (~husky@anon) has joined #jogamp
20161213 08:33:24 <Eclesia> moin
20161213 08:34:28 <monsieur_max> yop
20161213 11:51:24 * caelum19 (~Caelum@anon) has joined #jogamp
20161213 12:38:15 <rmk0> .o.
20161213 12:42:14 <zubzub> ho
20161213 16:30:55 * monsieur_max (~maxime@anon) Quit (Quit: Leaving.)
20161213 16:41:24 <elect_> kotlin is amazing
20161213 16:41:38 <elect_> I can do things g-truc cant
20161213 16:41:56 <elect_> I can play with vector swizzling like in glsl
20161213 16:57:49 <bruce-> elect_: how does that swizzling work?
20161213 16:58:53 <elect_> val b = Vec4(2f)
20161213 16:58:59 <elect_> val a = b.yw
20161213 16:59:45 <elect_> or I can
20161213 16:59:56 <elect_> val a = Vec2()
20161213 16:59:56 <elect_> val b = Vec4(2f)
20161213 16:59:56 <elect_> a to b.yw
20161213 17:00:18 <elect_> moreover, I am using generics
20161213 17:00:39 <elect_> so I can set a Vec4 with whatever extend Number
20161213 17:01:12 <elect_> this includes Float, Double, Short, Long, Int, Byte, Ubyte, Ushort, Uint, Ulong
20161213 17:01:22 <elect_> and all their vector representations
20161213 17:01:28 <bruce-> ah, yeah my Java vector classes have xy() xx() etc methods on them to do that
20161213 17:01:32 <rmk0> boxy
20161213 17:01:51 * Eclesia (~husky@anon) has left #jogamp
20161213 17:04:45 <elect_> the advantage of using a property vs a function is that it can be cached
20161213 17:13:11 <rmk0> ?
20161213 17:14:04 <elect_> https://kotlinlang.org/docs/reference/coding-conventions.html
20161213 17:16:47 <rmk0> it's a stylistic convention to use properties for values that can be cached internally by the implementing class. it's not a property of properties that they can always be cached
20161213 17:17:09 <rmk0> they can have side effects, they can fail to return entirely
20161213 17:17:42 <elect_> ah
20161213 17:18:05 <elect_> I misread
20161213 17:20:40 <rmk0> this finally works in the latest EA build:
20161213 17:20:42 <rmk0> https://gist.github.com/winniequinn/da06ca35f19e3638bb3ac920665818bf
20161213 17:21:07 <rmk0> data classes as subtypes of sealed classes
20161213 17:25:27 <elect_> yep, I read they lift some restriction on data and sealed classes
20161213 17:25:31 <rmk0> it's not life changing, it just means you don't have to declare equals/hashcode/toString yourself just because you wanted a sealed class
20161213 17:25:43 <elect_> sure
20161213 17:32:47 <rmk0> i forget... i think there's a syntax for functional updates of data classes
20161213 17:33:37 <rmk0> ah, copy()
20161213 17:36:30 <elect_> yes
20161213 17:37:07 <elect_> they should include a default constructor for data classes for copy()
20161213 17:46:50 * elect_ (~elect@anon) Quit (Ping timeout: 264 seconds)
20161213 17:52:17 <rmk0> am of the opinion that classes should have a single constructor
20161213 18:46:04 * monsieur_max (~maxime@anon) has joined #jogamp
20161213 21:31:40 * monsieur_max (~maxime@anon) Quit (Ping timeout: 258 seconds)
20161214 01:58:20 * caelum19 (~Caelum@anon) Quit (Quit: Leaving.)
20161214 05:06:01 -jogamp- Continue @ http://jogamp.org/log/irc/jogamp_20161214050601.html