Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→
Page 1 .. 17888 17889 17890 17891 17892 17893 17894
1,789,380 events total
2026-04-06 19:53:57 AlexNoo_ joins (~AlexNoo@85.174.183.185)
2026-04-06 19:54:58 × AlexNoo__ quits (~AlexNoo@85.174.183.185) (Ping timeout: 248 seconds)
2026-04-06 19:55:39 × Lord_of_Life quits (~Lord@user/lord-of-life/x-2819915) (Ping timeout: 255 seconds)
2026-04-06 19:55:54 AlexNoo__ joins (~AlexNoo@85.174.183.185)
2026-04-06 19:57:06 comerijn joins (~merijn@77.242.116.146)
2026-04-06 19:57:10 Lord_of_Life joins (~Lord@user/lord-of-life/x-2819915)
2026-04-06 19:57:19 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2026-04-06 19:57:38 × AlexNoo quits (~AlexNoo@85.174.183.185) (Ping timeout: 248 seconds)
2026-04-06 19:58:10 × AlexNoo_ quits (~AlexNoo@85.174.183.185) (Ping timeout: 248 seconds)
2026-04-06 20:00:18 × AlexNoo__ quits (~AlexNoo@85.174.183.185) (Ping timeout: 248 seconds)
2026-04-06 20:02:13 × comerijn quits (~merijn@77.242.116.146) (Ping timeout: 265 seconds)
2026-04-06 20:04:25 × peterbecich quits (~Thunderbi@71.84.33.135) (Ping timeout: 248 seconds)
2026-04-06 20:12:24 puke joins (~puke@user/puke)
2026-04-06 20:31:47 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-06 20:36:19 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2026-04-06 20:37:54 emmanuelux_ joins (~em@2a02-8440-2502-667f-6732-4cb1-658e-9089.rev.sfr.net)
2026-04-06 20:39:09 × emmanuelux quits (~em@user/emmanuelux) (Ping timeout: 272 seconds)
2026-04-06 20:41:13 × comonad quits (~comonad@p200300d02717df00adc247ef70bd7367.dip0.t-ipconnect.de) (Ping timeout: 248 seconds)
2026-04-06 20:43:59 emmanuelux joins (~em@user/emmanuelux)
2026-04-06 20:44:45 × emmanuelux_ quits (~em@2a02-8440-2502-667f-6732-4cb1-658e-9089.rev.sfr.net) (Ping timeout: 268 seconds)
2026-04-06 20:50:29 <jreicher> TMA: you know in imperative/OO languages any function that does IO needs to "eventually" make a system call to really do it? I.e. the IO is actually done by the OS?
2026-04-06 20:56:00 × takuan quits (~takuan@d8D86B9E9.access.telenet.be) (Ping timeout: 246 seconds)
2026-04-06 20:59:14 × Guest62 quits (~Guest62@p200300ca8f13d0000071be933609493f.dip0.t-ipconnect.de) (Quit: Client closed)
2026-04-06 21:00:30 × poscat quits (~poscat@user/poscat) (Remote host closed the connection)
2026-04-06 21:01:33 × raelie quits (~raelie@user/raelie) (Read error: Connection reset by peer)
2026-04-06 21:03:42 poscat joins (~poscat@user/poscat)
2026-04-06 21:09:52 pavonia joins (~user@user/siracusa)
2026-04-06 21:29:22 gues34132 joins (~username@78.211.138.170)
2026-04-06 21:29:49 jmcantrell_ joins (~weechat@user/jmcantrell)
2026-04-06 21:30:51 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-06 21:32:07 <gues34132> Hi how do I get the ASCII code for CHAR? look at https://pastebin.com/5XQd7A0h
2026-04-06 21:33:11 <gues34132> if in string there is '\xxxx' where xxxx is a number I dont get the ASCII code of \ and of every single digit
2026-04-06 21:33:32 <gues34132> but i got the number after \
2026-04-06 21:33:47 gues34132 is now known as _JusSx_
2026-04-06 21:34:16 divlamir_ joins (~divlamir@user/divlamir)
2026-04-06 21:35:37 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 248 seconds)
2026-04-06 21:35:46 <_JusSx_> https://paste.tomsmeding.com/iCzVXqjD
2026-04-06 21:36:19 × divlamir quits (~divlamir@user/divlamir) (Ping timeout: 264 seconds)
2026-04-06 21:36:19 divlamir_ is now known as divlamir
2026-04-06 21:37:12 <c_wraith> Char isn't limited to ascii
2026-04-06 21:37:27 <c_wraith> so... yeah, there are strings that aren't lists of ascii codes
2026-04-06 21:38:21 <_JusSx_> ok. i agree
2026-04-06 21:38:34 <c_wraith> are you asking how to convert them to a sequence of bytes?
2026-04-06 21:39:15 <_JusSx_> i need to conver every single char in the string in ASCII
2026-04-06 21:39:21 <_JusSx_> \ is \
2026-04-06 21:39:33 <_JusSx_> \ should be \
2026-04-06 21:39:51 <c_wraith> Ah. The issue you're running into, then, is that string literals are not raw
2026-04-06 21:40:06 × jmcantrell_ quits (~weechat@user/jmcantrell) (Ping timeout: 246 seconds)
2026-04-06 21:40:22 <c_wraith> string literals have escape sequences. But that's a property of string literals in source, not strings themselves.
2026-04-06 21:43:01 <c_wraith> You could do something with a fancy quasiquoter to get closer to raw strings, but they still need some sort of delimiter. Probably the easiest answer is to move those strings outside of source. Put them in a separate text file, so they're never treated as Haskell source.
2026-04-06 21:46:10 divlamir_ joins (~divlamir@user/divlamir)
2026-04-06 21:46:13 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-06 21:47:38 × divlamir quits (~divlamir@user/divlamir) (Ping timeout: 252 seconds)
2026-04-06 21:47:38 divlamir_ is now known as divlamir
2026-04-06 21:47:43 <TMA> jreicher: I know. I did even write an OS as an assignment in a course.
2026-04-06 21:48:47 <mauke> _JusSx_: you need to write \\ to get a single \ character in a string
2026-04-06 21:50:08 <TMA> jreicher: that being said, those languages might not need an OS or rather they ARE the OS like Lisp Machine Lisp or Sinclair BASIC
2026-04-06 21:50:24 <_JusSx_> so i need to code a func that put a `\' when it find \
2026-04-06 21:50:27 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 244 seconds)
2026-04-06 21:50:30 <mauke> no
2026-04-06 21:50:40 <mauke> you don't have a \
2026-04-06 21:50:57 <mauke> > length "\n"
2026-04-06 21:50:59 <lambdabot> 1
2026-04-06 21:51:07 <_JusSx_> so the func will never find a \
2026-04-06 21:51:12 <mauke> that's a single character, not a two-character sequence
2026-04-06 21:51:14 <c_wraith> String literals are source code. A String value exist when the program is running.
2026-04-06 21:51:33 <c_wraith> Because literals are embedded in a larger document, they can't be totally freeform.
2026-04-06 21:51:48 <mauke> > '\n' == chr 10
2026-04-06 21:51:49 <lambdabot> True
2026-04-06 21:52:02 × target_i quits (~target_i@user/target-i/x-6023099) (Quit: leaving)
2026-04-06 21:52:18 <_JusSx_> the input is given. i can't change it
2026-04-06 21:52:34 <mauke> we're talking about Haskell source code. that's not input
2026-04-06 21:52:38 <c_wraith> Haskell chose a common convention, going back at least as far as C, to use \ as the escape character indicating that something special is going on.
2026-04-06 21:54:11 <c_wraith> Here's the question you need to answer: Do you have a String that you want to represent at run time, or a String literal that you want to embed in the source code?
2026-04-06 21:55:25 <mauke> https://tio.run/##y0gszk7Nyfn/PzO3IL@oRMElsSRRzzkjsUhBI78oRZOLKzcxM0/BykrB019BQxPCs1VIyedSAIJiBRtdhfTUEp/MvFSwQEFRZl6JgkZuYoECULdCseb//@bGMYZGBqaWRjFqRjYxhsbGRuamAA
2026-04-06 21:58:38 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-06 21:59:28 arandombit joins (~arandombi@2a02:2455:8656:7100:71fa:b47d:cf44:d9a9)
2026-04-06 21:59:28 × arandombit quits (~arandombi@2a02:2455:8656:7100:71fa:b47d:cf44:d9a9) (Changing host)
2026-04-06 21:59:28 arandombit joins (~arandombi@user/arandombit)
2026-04-06 22:00:19 × karenw quits (~karenw@user/karenw) (Ping timeout: 264 seconds)
2026-04-06 22:02:54 <_JusSx_> c_wraith: it's a problem in CodeWars. www.codewars.com. I think the tester is passing a malformed string
2026-04-06 22:03:05 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 245 seconds)
2026-04-06 22:03:10 divlamir_ joins (~divlamir@user/divlamir)
2026-04-06 22:04:24 <_JusSx_> https://paste.tomsmeding.com/A4OhO4GM
2026-04-06 22:05:42 × divlamir quits (~divlamir@user/divlamir) (Ping timeout: 255 seconds)
2026-04-06 22:05:42 divlamir_ is now known as divlamir
2026-04-06 22:07:03 <mauke> > isLower 'é'
2026-04-06 22:07:04 <lambdabot> True
2026-04-06 22:08:51 <_JusSx_> i need to remove test isLower and isUpper with another test
2026-04-06 22:09:38 <mauke> > inRange ('a', 'z') 'é'
2026-04-06 22:09:39 <lambdabot> False
2026-04-06 22:10:02 <_JusSx_> :t inRange
2026-04-06 22:10:03 <lambdabot> Ix a => (a, a) -> a -> Bool
2026-04-06 22:10:41 <_JusSx_> yeah inRange is better
2026-04-06 22:14:00 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)
2026-04-06 22:15:02 <_JusSx_> mauke: thank you very much
2026-04-06 22:19:00 × merijn quits (~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 265 seconds)
2026-04-06 22:21:06 × infinity0 quits (~infinity0@pwned.gg) (Remote host closed the connection)
2026-04-06 22:21:59 infinity0 joins (~infinity0@pwned.gg)
2026-04-06 22:29:23 merijn joins (~merijn@host-cl.cgnat-g.v4.dfn.nl)

All times are in UTC.