Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2021-03-16 16:00:14 wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net)
2021-03-16 16:00:27 × rj_ quits (~x@gateway/tor-sasl/rj) (Ping timeout: 268 seconds)
2021-03-16 16:00:33 × zar quits (~zar@fw1.ciirc.cvut.cz) (Quit: Leaving)
2021-03-16 16:01:17 Rudd0 joins (~Rudd0@185.189.115.108)
2021-03-16 16:02:55 × conal quits (~conal@64.71.133.70) (Quit: Computer has gone to sleep.)
2021-03-16 16:03:07 heatsink joins (~heatsink@2600:1700:bef1:5e10:7c0e:3b57:dfb:2cb4)
2021-03-16 16:03:43 usr25 joins (~usr25@unaffiliated/usr25)
2021-03-16 16:03:50 rj_ joins (~x@gateway/tor-sasl/rj)
2021-03-16 16:05:26 × thc202 quits (~thc202@unaffiliated/thc202) (Ping timeout: 240 seconds)
2021-03-16 16:05:52 thc202 joins (~thc202@unaffiliated/thc202)
2021-03-16 16:07:18 × barnowl_ quits (~barnowl@gateway/tor-sasl/barnowl) (Remote host closed the connection)
2021-03-16 16:07:39 barnowl_ joins (~barnowl@gateway/tor-sasl/barnowl)
2021-03-16 16:07:50 × heatsink quits (~heatsink@2600:1700:bef1:5e10:7c0e:3b57:dfb:2cb4) (Ping timeout: 264 seconds)
2021-03-16 16:08:04 jonathanx joins (~jonathan@h-176-109.A357.priv.bahnhof.se)
2021-03-16 16:09:23 bitmapper joins (uid464869@gateway/web/irccloud.com/x-luczsnoowjqghapa)
2021-03-16 16:09:30 gitgoood is now known as gitgood
2021-03-16 16:09:45 crobbins joins (~crobbins@2600:1700:48eb:8490:b577:6e36:e383:a1d9)
2021-03-16 16:09:52 <curiousgay> yushyin: well then default to amount of CPU cores is good enough
2021-03-16 16:13:37 geekosaur joins (82650c7a@130.101.12.122)
2021-03-16 16:13:47 <codygman`> Isn't resource finalization in effect systems still an unsolved issue as well? I recall at least a tricky issue on that subject with Eff.
2021-03-16 16:14:53 hackage api-tools 0.9.0.0 - DSL for generating API boilerplate and docs https://hackage.haskell.org/package/api-tools-0.9.0.0 (AdamGundry)
2021-03-16 16:15:15 × molehillish quits (~molehilli@2600:8800:8d06:1800:6cd8:b958:caec:b1dc) (Remote host closed the connection)
2021-03-16 16:15:36 zopsi_ parts (zopsi@2600:3c00::f03c:91ff:fe14:551f) ("Leaving")
2021-03-16 16:15:50 elfets joins (~elfets@ip-37-201-23-96.hsi13.unitymediagroup.de)
2021-03-16 16:16:15 <yushyin> curiousgay: and the go runtime does a similar thing 'The GOMAXPROCS variable limits the number of operating system threads that can execute user-level Go code simultaneously.' where the default value is the number of logical CPUs reported by the OS.
2021-03-16 16:16:32 <yushyin> curiousgay: this is very similar to capabilities, if you ask me.
2021-03-16 16:17:48 Feuermagier joins (~Feuermagi@2a02:2488:4211:3400:246e:bf09:8453:9d6)
2021-03-16 16:17:55 <curiousgay> yushyin: huh, I've seen discussion between Go developers in 2012 where GOMAXPROCS is the limit to OS threads, defaulted to 10000, because blocking code in CGo caused spawning thousands of OS threads
2021-03-16 16:19:18 Benzi-Junior joins (~BenziJuni@88-149-67-143.du.xdsl.is)
2021-03-16 16:19:25 <curiousgay> never mind
2021-03-16 16:19:38 × idhugo_ quits (~idhugo@87-49-147-45-mobile.dk.customer.tdc.net) (Ping timeout: 245 seconds)
2021-03-16 16:19:43 zopsi joins (zopsi@2600:3c00::f03c:91ff:fe14:551f)
2021-03-16 16:20:37 idhugo joins (~idhugo@87-49-147-45-mobile.dk.customer.tdc.net)
2021-03-16 16:21:00 × martin02 quits (silas@hund.fs.lmu.de) (Ping timeout: 265 seconds)
2021-03-16 16:21:12 toorevitimirp joins (~tooreviti@117.182.180.1)
2021-03-16 16:21:15 <curiousgay> yushyin: well, the difference is that GOMAXPROCS is an environment variable and doesn't require user to manually pass something like "-rtsopts=-N" to compiler
2021-03-16 16:21:16 <yushyin> you can still have many many blocking OS threads, GOMAXPROCS is more similar to the virtual CPUs/capabilities
2021-03-16 16:21:52 <loyon> TIL, you can run the editor in the web browser, pretty awesome: https://godotengine.org/editor/latest/godot.tools.html
2021-03-16 16:22:06 <yushyin> curiousgay: yes, GOMAXPROCS has a different default, but as I linked you earlier you can set a different default at compile time
2021-03-16 16:22:30 × codygman` quits (~user@47.186.207.161) (Ping timeout: 260 seconds)
2021-03-16 16:22:37 <yushyin> so no harm done?
2021-03-16 16:22:39 hiredman_ is now known as hiredman
2021-03-16 16:23:12 <curiousgay> yeah, I'll need a separate file to not repeat typing the same option again
2021-03-16 16:24:37 × hyperisco quits (~hyperisco@d192-186-117-226.static.comm.cgocable.net) (Remote host closed the connection)
2021-03-16 16:24:38 <curiousgay> because there is no way GHC devs will change their default from "-N1" to "-N"
2021-03-16 16:25:04 hyperisco joins (~hyperisco@d192-186-117-226.static.comm.cgocable.net)
2021-03-16 16:25:31 × toorevitimirp quits (~tooreviti@117.182.180.1) (Remote host closed the connection)
2021-03-16 16:25:37 Stanley00 joins (~stanley00@unaffiliated/stanley00)
2021-03-16 16:26:28 × CoconutCrab quits (~Cua@unaffiliated/coconutcrab) (Ping timeout: 276 seconds)
2021-03-16 16:27:55 conal joins (~conal@64.71.133.70)
2021-03-16 16:28:56 × ADG1089__ quits (~aditya@106.214.253.186) (Remote host closed the connection)
2021-03-16 16:28:58 <dolio> The program can be set to use -N when compiling it.
2021-03-16 16:29:09 tanner_ joins (~tanner@216.106.138.184)
2021-03-16 16:29:51 <merijn> curiousgay: But GHC doesn't need to spawn 1 OS thread per blocking IO thing, so there's no reason to have a limit that high
2021-03-16 16:30:03 × Stanley00 quits (~stanley00@unaffiliated/stanley00) (Ping timeout: 260 seconds)
2021-03-16 16:30:31 dbmikus joins (~dbmikus@cpe-76-167-86-219.natsow.res.rr.com)
2021-03-16 16:30:50 <merijn> curiousgay: GHC's RTS uses an epoll/kqueue/whatever the windows variant is based event loop that blocks/unblocks Haskell threads as needed
2021-03-16 16:32:24 × hyperisco quits (~hyperisco@d192-186-117-226.static.comm.cgocable.net) (Ping timeout: 265 seconds)
2021-03-16 16:33:02 <curiousgay> merijn: Go does the same thing, the problem with CGo is that it's basically an FFI problem
2021-03-16 16:33:16 × conal quits (~conal@64.71.133.70) (Quit: Computer has gone to sleep.)
2021-03-16 16:33:45 conal joins (~conal@64.71.133.70)
2021-03-16 16:34:08 molehillish joins (~molehilli@2600:8800:8d06:1800:6cd8:b958:caec:b1dc)
2021-03-16 16:35:09 <dolio> Was there an actual observed problem at some point, or is this whole conversation about how GHC doesn't do whatever Go does?
2021-03-16 16:36:04 <curiousgay> dolio: never mind, it's just me being puzzled about GHC binaries not using more than 1 capability if I don't pass them "-N" flag
2021-03-16 16:36:17 hyperisco joins (~hyperisco@d192-186-117-226.static.comm.cgocable.net)
2021-03-16 16:37:10 heatsink joins (~heatsink@2600:1700:bef1:5e10:7c0e:3b57:dfb:2cb4)
2021-03-16 16:38:18 × conal quits (~conal@64.71.133.70) (Ping timeout: 256 seconds)
2021-03-16 16:41:52 × vnz quits (~vnz@unaffiliated/vnz) (Quit: ZNC - http://znc.in)
2021-03-16 16:42:02 vnz joins (~vnz@51.15.143.225)
2021-03-16 16:42:02 × vnz quits (~vnz@51.15.143.225) (Changing host)
2021-03-16 16:42:02 vnz joins (~vnz@unaffiliated/vnz)
2021-03-16 16:42:25 Tristan joins (~tristan@luna.whatbox.ca)
2021-03-16 16:42:48 × bonz060_ quits (~quassel@2001:bc8:47a4:a23::1) (Remote host closed the connection)
2021-03-16 16:42:49 Tristan is now known as Guest29917
2021-03-16 16:43:11 bonz060 joins (~quassel@2001:bc8:47a4:a23::1)
2021-03-16 16:44:03 × Guest41116 quits (~tristan@luna.whatbox.ca) (Read error: Connection reset by peer)
2021-03-16 16:44:37 × Guest41046 quits (~melkor@2a02:2b88:2:1::5b34:1) (Ping timeout: 260 seconds)
2021-03-16 16:44:51 × rj_ quits (~x@gateway/tor-sasl/rj) (Ping timeout: 268 seconds)
2021-03-16 16:44:54 Guest41046 joins (~melkor@31.31.76.126)
2021-03-16 16:46:26 <yushyin> curiousgay: is it really that of a problem to pass an additional flag at compile time? Maybe the defaults will change in the feature but until then just add the compile-time flag?
2021-03-16 16:48:44 rj_ joins (~x@gateway/tor-sasl/rj)
2021-03-16 16:50:28 nfd joins (~nfd9001@2601:602:77f:1820:ad30:5ebc:6324:c6c5)
2021-03-16 16:52:06 <curiousgay> yushyin: already done in shell script: stack ghc -- -threaded -rtsopts -with-rtsopts=-N $@
2021-03-16 16:52:32 <xsperry> you can also add it in cabal file
2021-03-16 16:52:55 kam1 joins (~kam1@83.123.167.219)
2021-03-16 16:54:31 × kam1 quits (~kam1@83.123.167.219) (Read error: Connection reset by peer)
2021-03-16 16:56:36 kam1 joins (~kam1@83.123.167.219)
2021-03-16 16:57:38 × Major_Biscuit quits (~Major_Bis@wlan-145-94-219-47.wlan.tudelft.nl) (Ping timeout: 264 seconds)
2021-03-16 16:59:04 × stree quits (~stree@68.36.8.116) (Quit: Caught exception)
2021-03-16 16:59:31 stree joins (~stree@68.36.8.116)
2021-03-16 16:59:42 conal joins (~conal@64.71.133.70)
2021-03-16 17:00:26 <merijn> -N without disabling parallel GC is a great way to make your code super slow, btw
2021-03-16 17:00:58 × conal quits (~conal@64.71.133.70) (Client Quit)
2021-03-16 17:01:25 × heatsink quits (~heatsink@2600:1700:bef1:5e10:7c0e:3b57:dfb:2cb4) (Remote host closed the connection)
2021-03-16 17:01:59 heatsink joins (~heatsink@2600:1700:bef1:5e10:f837:3533:97b:1f44)
2021-03-16 17:03:19 <yushyin> if you really want to you can set -with-rtsopts=-N in a global stack/cabal config file
2021-03-16 17:04:05 polxy joins (~polxy@2001:b07:a15:ec0c:14d1:ef73:1822:ceed)
2021-03-16 17:05:19 jw4 joins (~jw4@unaffiliated/jw4)
2021-03-16 17:05:52 michalz joins (~user@185.246.204.47)
2021-03-16 17:06:14 × polxy quits (~polxy@2001:b07:a15:ec0c:14d1:ef73:1822:ceed) (Excess Flood)

All times are in UTC.