warrshrike 2017-02-11 01:45:16
monad-mad: sorry...will use next time :)
warrshrike 2017-02-11 01:45:29
because the next task it to implement those functions
dramforever 2017-02-11 01:45:31
warrshrike: it means that the given board is not contradictory
warrshrike 2017-02-11 01:45:50
dramforever: I meant this part Use toElements, -- fromElements, and sudokuElements functions described below.
monad-mad 2017-02-11 01:45:54
I am doing simple bits of code as I am learning. I was talking about small projects
dramforever 2017-02-11 01:46:10
monad-mad: That's about right?
warrshrike 2017-02-11 01:46:32
Do I assume they exist now? And then as I implement them later i can test?
dramforever 2017-02-11 01:46:43
Sounds about right
warrshrike 2017-02-11 01:46:57
ah...alright tho it sounds about a
warrshrike 2017-02-11 01:47:04
backwards way of doing things ~_~
monad-mad 2017-02-11 01:47:26
dramforever: yeah
monad-mad 2017-02-11 01:47:57
dramforever: I do things a little different, just like haskell :D
dramforever 2017-02-11 01:48:10
TBH I don't I think I can write a sudoku solver without basic utilities already in place...
warrshrike 2017-02-11 01:48:30
Brothers. A man abused me and asked me to learn clojure instead as it is so much better
dramforever 2017-02-11 01:48:39
Aaand lpaste is down :(
warrshrike 2017-02-11 01:48:40
it was an experienced and well respected man
dramforever 2017-02-11 01:48:59
Oh wait it's not. Ignore that
warrshrike 2017-02-11 01:49:00
from the valley. Can you guys tell me why he might he say that? IS there any advantage?
cocreature 2017-02-11 01:49:14
dramforever: is a sat solver included in "basic utilities"? :)
monad-mad 2017-02-11 01:49:29
warrshrike: clojure is good if you come from Java or wanna go to LISP
dramforever 2017-02-11 01:49:47
cocreature: 'toElements' and 'fromElements' sound like basic input conversion
dramforever 2017-02-11 01:50:17
Well I guess perhaps clojure has a larger community?
monad-mad 2017-02-11 01:50:38
warrshrike: interop with Java, is a biggie
dramforever 2017-02-11 01:50:42
Like LISPers can do clojure, and there's the JVM behind it or something
warrshrike 2017-02-11 01:50:50
can you guys actually implement this sudoku for me? I imagine it wouldn't take more than a few minute and I would LOVE a stock solution to compare myself against
dramforever 2017-02-11 01:50:56
Haskell is just heck too different
warrshrike 2017-02-11 01:51:18
Hmmm...are you saying haskell will be difficult to use as an 'every day lang'
warrshrike 2017-02-11 01:51:26
:/
dramforever 2017-02-11 01:51:50
I said *different*
mangobot 2017-02-11 01:51:52
cocreature can i ask one more question? if in this function http://lpaste.net/352363 id like to further parse the board string seperatly into positions in order to find the coordinates on the field, i just write the name of that function that does it in the parseResult function? haskell will know that the first list = board?
monad-mad 2017-02-11 01:52:02
I enjoy writing haskell, so it is not difficult for mw
warrshrike 2017-02-11 01:52:12
Like I typically use ruby whenever I need to do some quick shit or sth like that...scripts and competitive programming and the like
reactormonk 2017-02-11 01:52:24
warrshrike, there's a reason that stackoverflow has a high difference between haskell posts during the week and weekend. Don't let that discourage you. I also started with ruby :-)
monad-mad 2017-02-11 01:52:29
a fellow ruby user, :D
reactormonk 2017-02-11 01:52:48
I haven't written any ruby in the last few years though.
monad-mad 2017-02-11 01:52:48
coming from ruby, haskell is much more simple for me
warrshrike 2017-02-11 01:53:10
monad-mad: yeah srsly...in ruby you can literally rape classes at run time
warrshrike 2017-02-11 01:53:25
it can lead to confusion and less clarity while still not being too expressive
reactormonk 2017-02-11 01:53:27
warrshrike, heh, ever done template haskell? ^^
monad-mad 2017-02-11 01:53:34
I do C# too, so learning F# after haskell will help me become more productive
dramforever 2017-02-11 01:53:42
It's different enough that so-called language agnostic algorithm descriptions don't suit Haskell well :(
warrshrike 2017-02-11 01:53:43
reactormonk: I'm still a 'askell rookie good sir
kgadek 2017-02-11 01:54:05
dramforever: "language agnostic algorithm"? whoah
cocreature 2017-02-11 01:54:15
mangobot: sry I'm busy right now, but maybe someone else can help you
reactormonk 2017-02-11 01:54:22
warrshrike, it's +/- macro haskell, for metaprogramming. A tiny bit more advanced.
AWizzArd 2017-02-11 01:54:33
I want to produce an IO Int via read <$> getLine - is (\x -> read x :: Int) <$> getLine the right way to do it?
monad-mad 2017-02-11 01:54:38
warrshrike: exactly, I feel that haskell gives me that same flexibility ruby gave me
dramforever 2017-02-11 01:54:45
kgadek: I don't believe them
kgadek 2017-02-11 01:54:52
;D
dramforever 2017-02-11 01:55:05
But algorithm books often write pseudo-code thing and they claim that it's language agnostic
dramforever 2017-02-11 01:55:10
It's all bs
monad-mad 2017-02-11 01:55:32
haskell is more mathematical, innit?
warrshrike 2017-02-11 01:55:45
monad-mad: Yup. So basically haskell is more mistress than wife. Good for fun and shit and side projects but not like every day job-y stuff
monad-mad 2017-02-11 01:55:47
so converting maths to code will work
kgadek 2017-02-11 01:55:49
dramforever: well, there was a point in my life when I though "ok, I know $n languages, no new language will be a challenge to me"
dramforever 2017-02-11 01:55:52
uh, I mean the 'language agnostic' part is bullshit
kgadek 2017-02-11 01:56:10
then I've learned that beyond syntactical differences there are other
kgadek 2017-02-11 01:56:20
like: FP, immutability, laziness
monad-mad 2017-02-11 01:56:41
the books write in some form of pascal, it is OO language agnostic
monad-mad 2017-02-11 01:56:50
never language agnostic
dramforever 2017-02-11 01:57:00
kgadek: You've heard people claiming things like a programmer should be able to learn the basics of any PL in a day
dramforever 2017-02-11 01:57:03
right?
kgadek 2017-02-11 01:57:12
dramforever: something like that, yes
mangobot 2017-02-11 01:57:16
if in this function http://lpaste.net/352363 id like to further parse the board string seperatly into positions in order to find the coordinates on the field, i just write the name of that function that does it in the parseResult function? haskell will know that the first list = board?
dramforever 2017-02-11 01:57:21
like all PLs are different but just minor syntactic differences
monad-mad 2017-02-11 01:57:26
dramforever: wait, really?
dramforever 2017-02-11 01:57:33
monad-mad: bs
kgadek 2017-02-11 01:57:35
dramforever: exactly, that's what it was :D
dramforever 2017-02-11 01:57:37
they need to see Haskell
kgadek 2017-02-11 01:57:43
dramforever: then I've learned common lisp
monad-mad 2017-02-11 01:57:45
dramforever: C to Haskell or LISP in a day
kgadek 2017-02-11 01:57:48
and my world never looked the same
monad-mad 2017-02-11 01:57:54
I challenge anyone
kgadek 2017-02-11 01:58:03
then was Erlang, then was OCaml, then was Haskell
kgadek 2017-02-11 01:58:05
oh boy
dramforever 2017-02-11 01:58:07
monad-mad: Welcome to Haskell. Have your nice one day heree
dramforever 2017-02-11 01:58:08
*here
warrshrike 2017-02-11 01:58:13
Ocaml was a good 'un
warrshrike 2017-02-11 01:58:22
like a one night stand it was goof un
warrshrike 2017-02-11 01:58:28
fun*
warrshrike 2017-02-11 01:58:56
how are the standard libs for haskell? are they at least as good as stl for cpp?
monad-mad 2017-02-11 01:59:11
dramforever: It took me a week to get to novice level in haskell. I was saying that in a day, is impossible
dramforever 2017-02-11 01:59:15
mangobot: I didn't really get your English description, but line 6 looks about right
dramforever 2017-02-11 01:59:21
monad-mad: yeah
monad-mad 2017-02-11 01:59:39
dramforever: what was that bs for?
dramforever 2017-02-11 01:59:52
the 'one-day myth'
monad-mad 2017-02-11 02:00:00
yeah
kgadek 2017-02-11 02:00:05
dramforever, monad-mad: well, sometimes it's true. Like golang
kgadek 2017-02-11 02:00:12
gosh, this is such a boring language
warrshrike 2017-02-11 02:00:13
mangobot: what are you trying to make?
dramforever 2017-02-11 02:00:15
mangobot: You can just write [board, color] for that, Haskell will know :)
kgadek 2017-02-11 02:00:25
(though I have to admit, it's beautiful in terms of engineering)
dramforever 2017-02-11 02:00:29
kgadek: That's not how 'any' works
dramforever 2017-02-11 02:00:48
golang is an amazing language tbh
kgadek 2017-02-11 02:00:49
yes, I precisely used 'exists', not 'forall'
monad-mad 2017-02-11 02:00:58
kgadek: if the paradigm is same
dramforever 2017-02-11 02:01:04
not too low-level, very fast
mangobot 2017-02-11 02:01:07
warrshrike im trying to parse that string1 with b,b,b,.. into positions in order to find out each players coordinates on the board
kgadek 2017-02-11 02:01:13
dramforever: well, my first encounter with golang was with FFI with C
kgadek 2017-02-11 02:01:19
that was pure beauty
kgadek 2017-02-11 02:01:21
srsly
kgadek 2017-02-11 02:01:24
import "C"
warrshrike 2017-02-11 02:01:32
mangobot: cool. I mean what board game is this?
dramforever 2017-02-11 02:01:41
kgadek: what's the C part like?
dramforever 2017-02-11 02:01:43
regular C?
mangobot 2017-02-11 02:01:47
warrshrike pjb.com.au/laska/play_laska.html
kgadek 2017-02-11 02:01:55
FFI looks like this:
kgadek 2017-02-11 02:01:59
import "C"
monad-mad 2017-02-11 02:02:00
kgadek: have you done elixir?
kgadek 2017-02-11 02:02:03
/ arbitrary C statement
kgadek 2017-02-11 02:02:12
import "C"
kgadek 2017-02-11 02:02:12
// arbitrary C statement
mangobot 2017-02-11 02:02:13
warrshrike http://pjb.com.au/laska/play_laska.html
dramforever 2017-02-11 02:02:14
Oh god
warrshrike 2017-02-11 02:02:24
mangobot: cool cool
dramforever 2017-02-11 02:02:29
That looks even better than Haskell's
kgadek 2017-02-11 02:02:37
yes, and it just works
dramforever 2017-02-11 02:02:39
but Haskell's sure suits Haskell better :P
kgadek 2017-02-11 02:02:43
I did #import
kgadek 2017-02-11 02:02:50
then I could call anything
kgadek 2017-02-11 02:02:52
the same for my libs
kgadek 2017-02-11 02:03:01
that is just engineering beauty
kgadek 2017-02-11 02:03:18
monad-mad: no, I didn't "yet
kgadek 2017-02-11 02:03:39
though I don't find the Erlang syntax "bad" so…
kgadek 2017-02-11 02:03:50
…that's probably the reason I didn't pursue elixir too much
monad-mad 2017-02-11 02:04:58
kgadek: erlang vs haskell. where do you use one over the other?
kgadek 2017-02-11 02:05:15
monad-mad: haven't used erlang for quite a while
monad-mad 2017-02-11 02:05:20
I wanted to learn erlang instead of haskell, for elixir's sake
kgadek 2017-02-11 02:05:30
though I would say, that Erlang is more battle tested
monad-mad 2017-02-11 02:05:34
but then I fell in love with Monads
kgadek 2017-02-11 02:05:55
well, Erlang is different in terms of "safety"
kgadek 2017-02-11 02:06:07
in Haskell (or cloud-haskell for this matter) you have typechecker
monad-mad 2017-02-11 02:06:13
I watched a video about monads in ruby and was captivated with them
kgadek 2017-02-11 02:06:20
in Erlang you don't care too much, you just pattern match and embrace failure
monad-mad 2017-02-11 02:06:24
so I said, to haskell we go
kgadek 2017-02-11 02:06:30
both are nice
kgadek 2017-02-11 02:06:45
but I know that Erlang had some really amazing stories regarding uptime
monad-mad 2017-02-11 02:07:01
similar? like C# and Java similar?
kgadek 2017-02-11 02:07:02
so if I would have to create system with high uptime (many 9's)
kgadek 2017-02-11 02:07:20
I would probably use Erlang
kgadek 2017-02-11 02:07:46
because their VM is older, because it has been tested so thoroughly in so many places
kgadek 2017-02-11 02:07:55
because their 'behaviours' are amazing
monad-mad 2017-02-11 02:08:07
Oh, College kid here, so no scalable creations in functional languages any time soon
monad-mad 2017-02-11 02:08:28
Haskell seems more fun tho
kgadek 2017-02-11 02:08:57
"fun" :D
monad-mad 2017-02-11 02:09:26
kgadek: My brain hurt a lot learning haskell
kgadek 2017-02-11 02:09:38
me too, that's why I love it :D
kgadek 2017-02-11 02:09:43
Haskell
kgadek 2017-02-11 02:09:46
the BDSM of languages
monad-mad 2017-02-11 02:09:49
and the last time that happened was learning C# reflections
monad-mad 2017-02-11 02:10:03
and more advanced C#
monad-mad 2017-02-11 02:10:21
and even C pointers when I was a complete newbie
monad-mad 2017-02-11 02:10:46
The languages I like fuck with my head a lot
monad-mad 2017-02-11 02:10:56
even ruby metaprogramming is crazy
monad-mad 2017-02-11 02:11:07
and I love all these languages
monad-mad 2017-02-11 02:11:56
Want to go into language design in future, so Haskell seems like a good choice to get my feet wet with functional concepts
thoradam 2017-02-11 02:14:10
Reading the source for PureScript is also fun for that ^_^
monad-mad 2017-02-11 02:15:03
thoradam: there is a difference between masochism and self harm
monad-mad 2017-02-11 02:15:06
:P
thoradam 2017-02-11 02:15:10
Haha
monad-mad 2017-02-11 02:15:29
Javascript is the only language I truly hate
reactormonk 2017-02-11 02:16:09
monad-mad, no hate here, just pity.
thoradam 2017-02-11 02:16:15
Well that's the why of PS hehe
monad-mad 2017-02-11 02:16:34
reactormonk pity is reserved for php
thoradam 2017-02-11 02:16:55
There's also http://dev.stephendiehl.com/fun/
monad-mad 2017-02-11 02:17:12
thoradam: PS hello world looks like applicative functors
monad-mad 2017-02-11 02:17:18
what is up with that?
thoradam 2017-02-11 02:17:48
Hmm, the Flare thing on the homepage?
monad-mad 2017-02-11 02:18:30
thoradam: ooh writing haskell, noice
monad-mad 2017-02-11 02:18:48
yes the Flare thing
thoradam 2017-02-11 02:18:57
It generates html :)
monad-mad 2017-02-11 02:18:59
looks like applicative functors no
monad-mad 2017-02-11 02:20:01
wait a minute, purescript is haskell for js. Ohh
monad-mad 2017-02-11 02:20:18
I felt it was like typescript or something
monad-mad 2017-02-11 02:20:22
this is weird
thoradam 2017-02-11 02:20:31
Yup :D
monad-mad 2017-02-11 02:21:29
The people behind it must have nerves of steel
thoradam 2017-02-11 02:23:44
Well it's strict like JS, I only mention it because it's fairly new so the compiler doesn't have a lot of baggage if you're interested in getting into that
warrshrike 2017-02-11 02:25:55
More Dumb Questions: does anyone use haskell competitively? i was just wondering why...the top 200 are always using c++/c
warrshrike 2017-02-11 02:28:44
also is stack good for using haskell on windows?
warrshrike 2017-02-11 02:29:35
https://docs.haskellstack.org/en/stable/install_and_upgrade/#windows
mangobot 2017-02-11 02:29:47
mm can someone give me a tip maybe, im a little clueless here.. http://lpaste.net/352363 how would one go in order to find the position of each figure on the board which is represented by that fen string? so if its b its black, but how can i find out the coordinates just with the string?