Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2021-03-21 21:25:35 × zebrag quits (~inkbottle@aaubervilliers-654-1-109-157.w86-212.abo.wanadoo.fr) (Quit: Konversation terminated!)
2021-03-21 21:25:38 <monochrom> "getLine :: IO String" is said to give you a string under the context of IO.
2021-03-21 21:25:55 zebrag joins (~inkbottle@aaubervilliers-654-1-109-157.w86-212.abo.wanadoo.fr)
2021-03-21 21:26:03 <hpc> yuck
2021-03-21 21:26:14 <monochrom> You can immediately see it is just the flawed "extract a string" with newer, more treacherous dressing.
2021-03-21 21:26:48 × takuan quits (~takuan@178-116-218-225.access.telenet.be) (Remote host closed the connection)
2021-03-21 21:27:13 <timCF> ski: For now I'll explain just Functors, then other day Applicatives, and some other day Monads :) Surprisingly, it's really hard even to explain basic things, because just 2 functor laws requiring understanding of currying and composition. Good thing is that all this can be written in one list of source code in 10 minutes.
2021-03-21 21:29:47 <monochrom> Don't forget that the whole notion that "Maybe" in isolation, i.e., you don't wants have to say "Maybe what?", is entirely new, strange, or foreign to most programmers in the first place.
2021-03-21 21:30:42 × roconnor quits (~roconnor@host-45-58-230-226.dyn.295.ca) (Read error: Connection reset by peer)
2021-03-21 21:30:46 <timCF> monochrom: exactly! That's why I'm not using `Maybe` as example for them. I'm using `Either` and `List`.
2021-03-21 21:30:54 × Hexagenic quits (~mattias@81-224-107-147-no71.tbcn.telia.com) (Quit: WeeChat 1.9.1)
2021-03-21 21:31:07 <monochrom> People can understand "f :: a -> Maybe a" in terms of "<T> Maybe<T> f(T)". By extension they can also understand "instance Monoid (Maybe a)".
2021-03-21 21:31:15 roconnor joins (~roconnor@host-45-58-230-226.dyn.295.ca)
2021-03-21 21:32:01 × lampowner quits (~xblow@broadband-90-154-73-166.ip.moscow.rt.ru) (Quit: Leaving)
2021-03-21 21:32:21 lampowner joins (~xblow@broadband-90-154-73-166.ip.moscow.rt.ru)
2021-03-21 21:32:34 <monochrom> Suddenly you say your generalzation is not from Maybe Int to Maybe a, it is from Maybe Int to f Int. In terms of Java and C++, there is no such thing. And furthermore you're now saying you can also have "instance Functor Maybe", and it is not "instance Functor (Maybe a)". Well that just breaks a lot of minds.
2021-03-21 21:32:40 ixlun joins (~matthew@109.249.184.133)
2021-03-21 21:33:14 <monochrom> Um List enjoys the same problems.
2021-03-21 21:33:36 <monochrom> Either enjoys the same problems one level up.
2021-03-21 21:35:21 <monochrom> You don't have to write the functor laws with composition.
2021-03-21 21:35:54 <monochrom> "fmap (\x -> x) xs = xs" and "fmap g (fmap f xs) = fmap (\x -> g (f x)) xs" work fine.
2021-03-21 21:36:21 <monochrom> That still uses currying but supposedly one has have spent much time practicing currying before this.
2021-03-21 21:37:15 <monochrom> Also since highschool math already teaches function composition, it should not be a hurdle either.
2021-03-21 21:38:04 <monochrom> Unless you are saying you have data that corroborates with my theory that programming attracts people who failed math.
2021-03-21 21:40:28 × cabpa quits (~cabpa@180.190.165.139) (Ping timeout: 260 seconds)
2021-03-21 21:40:53 slack1256 joins (~slack1256@dvc-186-186-101-190.movil.vtr.net)
2021-03-21 21:40:55 × wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 256 seconds)
2021-03-21 21:43:12 <timCF> monochrom: Good theory actually. I did learned chemistry in university, and math was hard to understand)
2021-03-21 21:43:23 machinedgod joins (~machinedg@135-23-192-217.cpe.pppoe.ca)
2021-03-21 21:44:56 × roconnor quits (~roconnor@host-45-58-230-226.dyn.295.ca) (Quit: Konversation terminated!)
2021-03-21 21:45:03 <timCF> I remember that moment, when for me was easier to write a program to emulate task in statistics, and get approx solution from RNG results, then to solve it mathematically
2021-03-21 21:45:40 × stree quits (~stree@68.36.8.116) (Ping timeout: 276 seconds)
2021-03-21 21:45:51 <monochrom> Then you may be interested to hear my full theory.
2021-03-21 21:45:57 <monochrom> I mean, >:)
2021-03-21 21:46:54 <monochrom> Those who do well in math, they are attracted to either the more creative pure math or the more profitable quant.
2021-03-21 21:46:56 × Vadrigar quits (~Vadrigar@ip5b417208.dynamic.kabel-deutschland.de) (Ping timeout: 240 seconds)
2021-03-21 21:48:24 <monochrom> Those who are scientifically minded (i.e., they want to and know how to refute hypotheses by testing), they are attracted to various more interesting scientific research or more profitable chemical engineering or biochem.
2021-03-21 21:49:03 <monochrom> Those who are good with words, they are attracted to the more creative creative writing or the more profitable law career.
2021-03-21 21:49:47 <monochrom> So what are the remaining career options? Programming and religious careers. And it shows.
2021-03-21 21:50:23 <monochrom> We have programmers who can't use math, are illogical, can't test, and can't write or even read TFM.
2021-03-21 21:50:32 <monochrom> Just like most priests.
2021-03-21 21:50:43 <monochrom> Just look at Larry Wall.
2021-03-21 21:51:35 coot joins (~coot@37.30.58.223.nat.umts.dynamic.t-mobile.pl)
2021-03-21 21:52:31 wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net)
2021-03-21 21:52:41 <timCF> monochrom: :) And software revelopers are very religious! Functional programming camp, OOP camp, JS camp, GO camp
2021-03-21 21:53:10 <pjb> monochrom: the alternative is https://en.wikipedia.org/wiki/Edsger_W._Dijkstra
2021-03-21 21:53:26 <pjb> monochrom: prove your algorithms!
2021-03-21 21:53:54 <monochrom> Dijkstra was very capable with both math and physics.
2021-03-21 21:54:01 <pjb> or https://en.wikipedia.org/wiki/Tony_Hoare
2021-03-21 21:54:05 <pjb> Indeed, exactly.
2021-03-21 21:54:28 LogicUpgrade joins (57e3c46d@87.227.196.109)
2021-03-21 21:54:44 <joel135> What is TFM? GO the language or something else?
2021-03-21 21:54:56 <monochrom> the ??????? manual
2021-03-21 21:55:22 <pjb> joel135: The Fine Manual.
2021-03-21 21:55:28 <MarcelineVQ> r(tfm)
2021-03-21 21:55:37 <MarcelineVQ> * (r)tfm :>
2021-03-21 21:55:40 <timCF> Yeah, I mean Go language. In my experience, it's very hard to prove them that generics are good for programming :)
2021-03-21 21:56:00 <monochrom> Oh, that one, I think we have been unfair to PIke.
2021-03-21 21:56:19 <joel135> Oh lol
2021-03-21 21:56:32 <yushyin> timCF: generics are confirmed for go2, though.
2021-03-21 21:56:38 <monochrom> Pike wanted to take time working out a simpler story for generics, so Go v1 doesn't have it, he will add it when it's ready.
2021-03-21 21:57:25 <monochrom> So that one I respect him for not rushing it.
2021-03-21 21:57:56 <monochrom> https://twitter.com/mosheroperandi/status/856946180810354688 is still worth a laugh though, while it lasts.
2021-03-21 21:58:10 stree joins (~stree@68.36.8.116)
2021-03-21 21:58:39 <yushyin> and philip wadler helped them
2021-03-21 21:59:56 <hpc> yushyin: finally we can use the unicode aboriginal block for its original intended purpose: GADTs :D
2021-03-21 22:00:17 <hpc> (or whichever block was used for the original hack)
2021-03-21 22:03:04 × pfurla_ quits (~pfurla@216.151.180.171) (Ping timeout: 256 seconds)
2021-03-21 22:03:38 × olligobber quits (olligobber@gateway/vpn/privateinternetaccess/olligobber) (Ping timeout: 256 seconds)
2021-03-21 22:04:05 × Varis quits (~Tadas@unaffiliated/varis) (Remote host closed the connection)
2021-03-21 22:04:16 pfurla joins (~pfurla@ool-182ed2e2.dyn.optonline.net)
2021-03-21 22:05:07 molehillish joins (~molehilli@2600:8800:8d06:1800:c1f2:e355:53f0:4ab8)
2021-03-21 22:07:22 raehik joins (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net)
2021-03-21 22:07:29 × LKoen quits (~LKoen@194.250.88.92.rev.sfr.net) (Remote host closed the connection)
2021-03-21 22:09:38 × molehillish quits (~molehilli@2600:8800:8d06:1800:c1f2:e355:53f0:4ab8) (Ping timeout: 264 seconds)
2021-03-21 22:09:53 hackage ory-kratos 0.0.5.10 - API bindings for Ory Kratos https://hackage.haskell.org/package/ory-kratos-0.0.5.10 (njaremko)
2021-03-21 22:10:48 × darjeeling_ quits (~darjeelin@122.245.208.187) (Ping timeout: 260 seconds)
2021-03-21 22:11:44 × raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 240 seconds)
2021-03-21 22:12:18 × average quits (uid473595@gateway/web/irccloud.com/x-sgdxyzaxzpfhfdbl) (Quit: Connection closed for inactivity)
2021-03-21 22:12:22 <ski> monochrom : seems possibly they're finally getting some form of them, <https://github.com/golang/go/issues/43651> ?
2021-03-21 22:12:27 <slack1256> I really like that wadler is well respected outside the haskell community.
2021-03-21 22:13:27 <ski> Wadler often has quite readable papers, commonly with witty titles. and seems to be a good speaker
2021-03-21 22:13:51 Benzi-Junior joins (~BenziJuni@dsl-149-67-143.hive.is)
2021-03-21 22:14:33 <slack1256> I wonder why aren't other academics trying to use funny titles in their papers, it seems they get more noticed.
2021-03-21 22:14:36 darjeeling_ joins (~darjeelin@122.245.208.187)
2021-03-21 22:16:17 olligobber joins (olligobber@gateway/vpn/privateinternetaccess/olligobber)
2021-03-21 22:17:09 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-03-21 22:17:15 <pjb> slack1256: most of academics don't publish to get noticed, but only to fulfill their quota of publication to get the next round of budget.
2021-03-21 22:17:53 × lampowner quits (~xblow@broadband-90-154-73-166.ip.moscow.rt.ru) (Remote host closed the connection)
2021-03-21 22:20:46 × dhil quits (~dhil@80.208.56.181) (Ping timeout: 276 seconds)
2021-03-21 22:20:47 × hiroaki quits (~hiroaki@2a02:908:4b18:8c40:43d:bb62:2e5b:b1f6) (Ping timeout: 244 seconds)
2021-03-21 22:21:06 molehillish joins (~molehilli@2600:8800:8d06:1800:c1f2:e355:53f0:4ab8)
2021-03-21 22:24:24 × molehillish quits (~molehilli@2600:8800:8d06:1800:c1f2:e355:53f0:4ab8) (Remote host closed the connection)
2021-03-21 22:25:22 × danvet quits (~Daniel@2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa) (Ping timeout: 260 seconds)
2021-03-21 22:26:57 × fendor quits (~fendor@178.115.129.38.wireless.dyn.drei.com) (Remote host closed the connection)
2021-03-21 22:27:30 molehillish joins (~molehilli@ip98-167-226-26.ph.ph.cox.net)
2021-03-21 22:28:55 knupfer joins (~Thunderbi@200116b82c854200c01b3ec09b839738.dip.versatel-1u1.de)
2021-03-21 22:28:59 <ski> • Joke
2021-03-21 22:29:08 <ski> Scientific standards are terrible, one should never joke : to be taken seriously, put people to sleep ! In a paper, no funny drawings, it would be a waste of paper. However, full pages of repetitive definitions, of Prussian formalism, are not considered as a waste.
2021-03-21 22:29:20 <ski> A good joke makes you understand a complex methodological point. For instance, when I say that a consistency proof is like an insurance against the explosion of Earth, you get it directly. However, some jokes are dishonest, since they don't respect the very spirit of what they are alluding to, typically the allegory of the prisoners.

All times are in UTC.