# IRC log for #rosettacode, 2014-06-05

All times shown according to UTC.

Time Nick Message
00:02 mwn3d joined #rosettacode
00:53 sorear joined #rosettacode
01:01 sorear joined #rosettacode
01:12 sorear joined #rosettacode
01:33 sorear joined #rosettacode
02:03 mwn3d1 joined #rosettacode
02:22 mwn3d joined #rosettacode
02:36 sorear joined #rosettacode
03:11 sorear joined #rosettacode
06:52 samskulls joined #rosettacode
07:43 ideasman42 joined #rosettacode
07:43 ideasman42 Hey
07:44 ideasman42 I was thinking to suggest a task
07:44 ideasman42 thaiught it could be good to ask here?
07:45 ideasman42 tessellate a polygon
07:45 ideasman42 I have code from java, I made a python and C port already
07:51 centrapheta ideasman42, You interested in a challenge I divised? :)
07:52 centrapheta <centrapheta> Given 7 9 8 7 6 5 4 3 2 5 6 7 3 4 2 4 5 8 7 = 476 Goal: find out what mathematical operators (minus, multiply, divide, add) satisfy that solution (476)
07:52 centrapheta <centrapheta> Order of operation is variable.
07:52 centrapheta <centrapheta> Example output: http://pastebin.com/qWB3rnmA
07:52 centrapheta <centrapheta> Haskell solution: http://pastebin.com/EcrHutsg
07:52 centrapheta <centrapheta> Would be interested in seeing a dynamic programming approach to this problem.
07:52 centrapheta <centrapheta> (Mine is naive bruteforce)
07:52 centrapheta <centrapheta> In any language
07:52 ideasman42 eh, well - not especially. sorry
07:52 ideasman42 as in, I had already ported some code, I was curious if its worth to add
08:30 ivanshmakov ideasman42: I guess it will do no harm.
08:32 ideasman42 ivanshmakov, whats policy on licensing?
08:32 ideasman42 is apache2 code ok?
08:33 ivanshmakov ideasman42: AIUI, the “primary” license is GNU FDL. I don’t know for sure whether it covers the code contributed or not.
08:33 ideasman42 code in my case isnt close to original
08:33 ideasman42 and code is simple enough
08:33 ideasman42 dont think its copyrightable
08:35 ideasman42 ivanshmakov, this is original code
08:35 fedaykin "libgdx/gdx/src/com/badlogic/gdx/​math/EarClippingTriangulator.java at 97fc1ca069731b24a0183e1b66964bfdfae65a09 · libgdx/libgdx · GitHub" http://rldn.net/BKD
08:36 ideasman42 infact that java is a bit verbose
08:36 ideasman42 py version is way simpler
08:36 ideasman42 even my C version is :)
08:37 ideasman42 mine https://developer.blender.org/diffusion/B/browse/​master/source/blender/blenlib/intern/polyfill2d.c
08:38 ideasman42 hrm... maybe too big for rosetta code
08:38 ideasman42 both can be cut down
08:38 centrapheta Hmmmh, a genetic programming approach is even possible for my challenge
08:59 ttmrichter centrapheta: I'm not sure if Rosettacode is actually supposed to be about "challenges".
09:02 ttmrichter "the goal is to address a problem a programmer may face or want to think about"
09:06 centrapheta ttmrichter, Fair enough, I just thought it may be a fun programming exercise.
09:07 ttmrichter There's a place in StackExchange somewhere for those kinds of things.  They have loads of interesting such puzzles.
09:07 ttmrichter And there's a Code Golf site there too for the people with character count fetishes.  :D
09:08 centrapheta lol
09:28 ideasman42 ttmrichter, do you have policy on py2 vs py3?
09:28 ideasman42 I updated an example to support py3
09:28 ttmrichter Policy?
09:28 ideasman42 assume it was ok
09:28 ttmrichter I'm not a policy-maker.
09:29 ttmrichter You'd want to talk to people like mikemol or sorear or the like for that.
09:29 ideasman42 is it ok to update all py examples to work in py3?
09:29 ideasman42 does this ever come up?
09:29 ideasman42 I assume it would
09:29 ideasman42 c++11 etc
09:29 ideasman42 or even c-11 with _Generic
11:10 ivanshmakov joined #rosettacode
11:14 ivanshmakov joined #rosettacode
11:22 eMBee ideasman42: if py2 and p3 solutions differ, both should be included
11:23 eMBee the point is that the samples are usable. if i am using py2 and the py3 sample does not work, that's not usable, but the reverse is true too
11:24 eMBee writingit so that it works in both is best, but there may be cases where one wants to show the difference, if it is significant
11:26 eMBee there could even be an argument to show 3 versions, py2, py3 and py2+3, for cases where the  py2 and py3 solutions are by themselves better than a combined one
11:27 eMBee the point here is being able to learn from it. sometimes there are even 2 or 3 different solutions for the same language, if there are different ways to approach the same problem
11:28 eMBee this is all my opinion though, and what i have seen and would expect from rosettacode
11:28 ideasman42 eMBee, If it can work for both 2.7 and 3.4x, thats ok?
11:29 ideasman42 (but not py2.4x)
11:48 mwn3d1 joined #rosettacode
13:32 kpreid joined #rosettacode
14:00 ivanshmakov joined #rosettacode
16:02 ivanshmakov joined #rosettacode
16:04 ivanshmakov joined #rosettacode
16:46 ivanshmakov joined #rosettacode
16:48 ivanshmakov joined #rosettacode
19:13 sorear joined #rosettacode
19:27 sorear joined #rosettacode