2026/02/19

Newest at the top

2026-02-19 21:10:17 +0100 <tomsmeding> the print function is this one https://git.tomsmeding.com/yahb2/tree/bwrap-files/workdir/Yahb2Defs.hs ; you also get this for some reason https://git.tomsmeding.com/yahb2/tree/bwrap-files/workdir/initdefs.hs
2026-02-19 21:09:24 +0100target_i(~target_i@user/target-i/x-6023099) target_i
2026-02-19 21:09:07 +0100target_i(~target_i@user/target-i/x-6023099) (Ping timeout: 268 seconds)
2026-02-19 21:08:32 +0100 <tomsmeding> but it works well enough
2026-02-19 21:08:29 +0100 <tomsmeding> there's an infelicity here in that it could detect it earlier perhaps
2026-02-19 21:08:23 +0100newmind(~newmind@91-133-90-252.dyn.cablelink.at)
2026-02-19 21:08:15 +0100 <tomsmeding> the 'print [1..]' was truncated and posted, but the command continued running and no new prompt was found, but it realised that only on the next input (yours), which restarted ghci
2026-02-19 21:07:51 +0100 <gentauro> :o
2026-02-19 21:07:43 +0100 <yahb2> <interactive>:5:1: error: [GHC-39999] ; • No instance for ‘Enum [Integer]’ arising from a use of ‘it’ ; • In the first argument of ‘Yahb2Defs.limitedPrint’, namely ‘it’ ; In a stmt of...
2026-02-19 21:07:43 +0100 <tomsmeding> % [[1..]..]
2026-02-19 21:07:32 +0100newmind(~newmind@91-133-90-252.dyn.cablelink.at) (Quit: Client closed)
2026-02-19 21:07:27 +0100 <tomsmeding> try again
2026-02-19 21:07:22 +0100 <tomsmeding> ah
2026-02-19 21:07:20 +0100 <tomsmeding> oh?
2026-02-19 21:07:20 +0100 <yahb2> Oops, something went wrong
2026-02-19 21:07:20 +0100 <gentauro> % [[1..]..]
2026-02-19 21:07:13 +0100 <yahb2> [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,6...
2026-02-19 21:07:13 +0100 <tomsmeding> % print [1..]
2026-02-19 21:07:12 +0100Googulator(~Googulato@2a01-036d-0106-499d-1c5a-0e4b-5795-d7e3.pool6.digikabel.hu)
2026-02-19 21:07:08 +0100 <yahb2> [[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,...
2026-02-19 21:07:08 +0100 <gentauro> % [[1..]]
2026-02-19 21:07:08 +0100 <tomsmeding> you can trivially break it by doing
2026-02-19 21:06:56 +0100 <tomsmeding> it works by setting the -interactive-print option in ghci so that values are printed with a custom function rather than Prelude.print
2026-02-19 21:06:51 +0100califax_califax
2026-02-19 21:06:31 +0100Googulator(~Googulato@2a01-036d-0106-499d-1c5a-0e4b-5795-d7e3.pool6.digikabel.hu) (Quit: Client closed)
2026-02-19 21:06:25 +0100 <tomsmeding> it's just a character limit, yes
2026-02-19 21:06:08 +0100 <newmind> is that just a character limit or does that go deeper?
2026-02-19 21:05:59 +0100califax(~califax@user/califx) (Remote host closed the connection)
2026-02-19 21:05:40 +0100califax_(~califax@user/califx) califx
2026-02-19 21:05:06 +0100 <yahb2> [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,6...
2026-02-19 21:05:06 +0100 <tomsmeding> % [1..]
2026-02-19 21:05:04 +0100 <tomsmeding> also, side note, the whole reason why that Yahb2Defs.limitedPrint is a thing is so that the following is not one of those commands thta take long:
2026-02-19 21:04:05 +0100target_i(~target_i@user/target-i/x-6023099) target_i
2026-02-19 21:03:54 +0100 <tomsmeding> (sometimes people ask for features on the haskell playground that would break that property; I don't implement those features)
2026-02-19 21:03:07 +0100 <tomsmeding> it's not expensive to run :)
2026-02-19 21:02:15 +0100califax_califax
2026-02-19 21:02:14 +0100califax(~califax@user/califx) (Ping timeout: 252 seconds)
2026-02-19 21:02:11 +0100 <newmind> joking aside: great that some people still provide services without charging for it... or filling it with ads
2026-02-19 20:59:34 +0100 <tomsmeding> yeah, it's more than 10^10 cycles spent waiting!
2026-02-19 20:59:01 +0100 <monochrom> Star Trek TNG's Data would be like, "believe me, 5 seconds felt like eternity" :)
2026-02-19 20:59:00 +0100 <tomsmeding> you can rent servers ;)
2026-02-19 20:58:47 +0100 <newmind> but everything is cloud nowadays... we own nothing
2026-02-19 20:58:28 +0100califax_(~califax@user/califx) califx
2026-02-19 20:58:25 +0100 <tomsmeding> the answer to that is "use your own machine" :p
2026-02-19 20:58:13 +0100 <newmind> so the new challenge is: find legitimate commands that take longer than 5 seconds and then complain why they are not working :)
2026-02-19 20:58:12 +0100Tuplanolla(~Tuplanoll@88-114-89-88.elisa-laajakaista.fi) Tuplanolla
2026-02-19 20:58:11 +0100 <tomsmeding> here we go, it's on the ignore list now
2026-02-19 20:58:05 +0100 <yahb2> 2
2026-02-19 20:58:05 +0100 <tomsmeding> % 2
2026-02-19 20:58:03 +0100 <tomsmeding> % :unset prompt