2024/05/06

Newest at the top

2024-05-06 18:26:37 +0200 <erty> davean: I just want to delay the execution by some time period
2024-05-06 18:26:33 +0200 <gastus> davean: I am not up to date about how many IO implementations exist today. In the past I heard about a rewrite with different locking features.
2024-05-06 18:26:15 +0200euleritian(~euleritia@77.22.252.56)
2024-05-06 18:25:54 +0200 <davean> But nothing he's talkign about is that
2024-05-06 18:25:49 +0200 <gastus> You eventually cannot easily translate JS into Haskell. Haskess has unique copy on write properties making real multithreading possible.
2024-05-06 18:25:48 +0200 <davean> gastus: I mean async/await structures also directly make sense for IO
2024-05-06 18:25:43 +0200euleritian(~euleritia@77.22.252.56) (Read error: Connection reset by peer)
2024-05-06 18:25:21 +0200 <gastus> erty: Haskell has its own multi thread engine builtin. Its cheap in Haskell. So its ok to spawn 20K threads each doing its own thing and waitingc for it. Why not lookup fork and STM and IO and the stuff ? That's the haskell way to sync and wait for threads. Mvar was the the way to synchronize threads.
2024-05-06 18:25:20 +0200 <erty> https://stackoverflow.com/questions/47816174/how-to-sleep-or-delay-the-thread-in-haskell
2024-05-06 18:24:54 +0200 <erty> threadDelay is something I got after searching online
2024-05-06 18:24:23 +0200tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
2024-05-06 18:24:11 +0200 <davean> The sense in which async/await delays a function is not at all the sense threadDelay delays it
2024-05-06 18:24:01 +0200 <erty> I can set a timer and wait for the promise to resolve
2024-05-06 18:23:21 +0200 <davean> this is nothing like async/await
2024-05-06 18:23:12 +0200 <erty> I am just curious, like async/await in javascript
2024-05-06 18:22:43 +0200 <davean> yes technically, but no, that would be bad in several ways
2024-05-06 18:22:34 +0200 <nullie> why do you want to do that?
2024-05-06 18:21:52 +0200 <erty> Now Haskell provide us with a function "threadDelay :: Int -> IO ()" in the module "Control.Concurrent", can I use that, to delay the above function.
2024-05-06 18:21:44 +0200 <erty> I have a ques, Is it possible to add delay to a function (eg. add :: Int -> Int)? https://paste.tomsmeding.com/qx8saWEW
2024-05-06 18:20:55 +0200tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
2024-05-06 18:16:03 +0200Guest58(~Guest58@2402:3a80:a19:7f89:8f72:7bde:6107:e78c) (Quit: Client closed)
2024-05-06 18:15:06 +0200euleritian(~euleritia@77.22.252.56)
2024-05-06 18:14:43 +0200machinedgod(~machinedg@d173-183-246-216.abhsia.telus.net) (Ping timeout: 255 seconds)
2024-05-06 18:14:05 +0200Angelz(Angelz@Angelz.oddprotocol.org)
2024-05-06 18:13:46 +0200euleritian(~euleritia@dynamic-176-005-138-072.176.5.pool.telefonica.de) (Read error: Connection reset by peer)
2024-05-06 18:02:19 +0200tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
2024-05-06 17:58:12 +0200Angelz(Angelz@user/angelz) (Ping timeout: 260 seconds)
2024-05-06 17:54:14 +0200rosco(~rosco@yp-146-6.tm.net.my) (Quit: Lost terminal)
2024-05-06 17:52:44 +0200 <lambdabot> True
2024-05-06 17:52:43 +0200 <Guest58> > 10 > 5
2024-05-06 17:50:40 +0200 <lambdabot> 55
2024-05-06 17:50:38 +0200 <kaol> > sum [1..10] -- we have a Haskell IRC bot too
2024-05-06 17:49:22 +0200 <Guest58> Okay thank you
2024-05-06 17:47:36 +0200ocra8(ocra8@user/ocra8)
2024-05-06 17:46:08 +0200 https://www.reddit.com/r/haskell | Admin: #haskell-ops | Offtopic: #haskell-offtopic | https://downloads.haskell.org | https://play.haskell.org/ | Paste code/errors: https://paste.tomsmeding.com | Logs: https://ircbrowse.tomsmeding.com/browse/lchaskell
2024-05-06 17:45:50 +0200 <glguy> Guest58: if you run into questions while you're reading the book you could ask her. If you want to share some code along the way you can put it on https://paste.tomsmeding.com
2024-05-06 17:45:23 +0200tremon(~tremon@83.80.159.219)
2024-05-06 17:43:59 +0200target_i(~target_i@user/target-i/x-6023099) (Quit: leaving)
2024-05-06 17:42:01 +0200 <kaol> They range from beginner topics to way deep into the language.
2024-05-06 17:42:00 +0200 <Guest58> I just started reading the book Haskell From First Principles
2024-05-06 17:41:35 +0200 <kaol> Yes. Not all the time but people do use this.
2024-05-06 17:41:10 +0200 <Guest58> Do discussions happen here?
2024-05-06 17:40:56 +0200 <Guest58> I have never used IRC before. Do people gather in these channels to talk about haskell?
2024-05-06 17:40:22 +0200 <kaol> Welcome.
2024-05-06 17:40:13 +0200 <Guest58> Hello. This is my first time using IRC
2024-05-06 17:39:29 +0200Guest58(~Guest58@2402:3a80:a19:7f89:8f72:7bde:6107:e78c)
2024-05-06 17:38:17 +0200MajorBiscuit(~MajorBisc@c-001-008-019.client.tudelft.eduvpn.nl) (Quit: WeeChat 4.2.2)
2024-05-06 17:38:15 +0200sawilagar(~sawilagar@user/sawilagar) (Ping timeout: 268 seconds)
2024-05-06 17:37:14 +0200 <kaol> Having cabal mask like I was thinking would cause no end of grief.
2024-05-06 17:36:19 +0200 <kaol> Right, different hs-source-dirs definitions. It's obvious now that you said it, thanks. It works as expected.