Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2020-11-05 04:21:30 × jud quits (~jud@unaffiliated/jud) (Ping timeout: 258 seconds)
2020-11-05 04:21:44 jcowan parts (sid325434@gateway/web/irccloud.com/x-evadozowlzlhtjmy) ()
2020-11-05 04:21:49 <sshine> pjb, good idea :) except I don't know if "isUnpublished=true" is the same as "isPublished=false" :-D
2020-11-05 04:22:03 <Axman6> I worked at a place which had a script that could update itself, and its check to see if it had downloaded a complete file was to check if it had a specific string, which was placed at the end of the file
2020-11-05 04:22:28 <Axman6> the way it checked that was to just grep for... that string... inside the file that was doing the update
2020-11-05 04:22:45 <sshine> koz_, yeah, I'd definitely stick to assuming that things aren't published by default, and I have to put "isPublished=true"... it seems that publishedness is a property, whereas unpublishedness is more like the absence of a property.
2020-11-05 04:22:57 <Axman6> so you had ... grep COMPLETEFILE thefile... #COMPLETEFILE <EOF>
2020-11-05 04:23:12 <Axman6> so, if it downloaded enought o pass the grep line, it would pass the test
2020-11-05 04:23:24 <koz_> texasmynsted: notFitForHumanConsumption=true
2020-11-05 04:23:42 <Axman6> literally any other regex given to grep that matched would have made it ok
2020-11-05 04:25:43 <sshine> texasmynsted, if you ever start wondering "Hey, why do I put all my files into linked lists of single characters?", you can reload the page.
2020-11-05 04:25:44 <pjb> Axman6: its a classic; you can do it by not using the target string in the regexp, but a regexp that matches it, such as: grep -e '[C]OMPLETEFILE' "$0"
2020-11-05 04:25:49 <justsomeguy> Hmm... It's interesting how that is. I had to debug a script that had a ton of checks that something is not true (if ! [ condition ]; then .. ; fi), and even though I was expecting it the negation, I found it hard to read because I instinctively assumed the condition was checking for True -- had to do a double take every time.
2020-11-05 04:26:01 × GUEST48896 quits (~GUEST4889@124.123.104.52) (Remote host closed the connection)
2020-11-05 04:26:03 <Axman6> pjb: yep, exactly
2020-11-05 04:26:23 <sshine> texasmynsted, (the only difference is "BS." and some import/overloading machinery)
2020-11-05 04:27:09 <sshine> pjb, [h][e][h][e].
2020-11-05 04:27:33 <pjb> or even '\h\e\h\e'
2020-11-05 04:27:34 <texasmynsted> lol
2020-11-05 04:27:55 <sshine> TCL has a pretty decent regex implementation.
2020-11-05 04:28:37 <sshine> it's powerful yet not unreasonable. and the library functions around it are actually useful. unfortunately, in TCL, everything is a string.
2020-11-05 04:28:40 <Axman6> is Haskell89's type system turing complete?
2020-11-05 04:28:49 <texasmynsted> :-)
2020-11-05 04:28:51 <c_wraith> No
2020-11-05 04:29:32 star0558 joins (~star0558@124.123.104.52)
2020-11-05 04:31:10 <dsal> I'm super happy to ~never use regex.
2020-11-05 04:31:51 <Axman6> nah they're great in text editors
2020-11-05 04:32:01 <Axman6> but should never be in code
2020-11-05 04:32:17 <dibblego> and text editors are not great
2020-11-05 04:32:38 <texasmynsted> I do not like regexp. I only use them when I must.
2020-11-05 04:32:42 <sshine> dsal, $you =~ m/never/ use regex?
2020-11-05 04:33:02 <texasmynsted> Thanks again sshine
2020-11-05 04:36:16 <dsal> Axman6: Oh, yeah, that's a good point. I do occasionally use them to find stuff with my editor or grep or whatever. Just not in programs.
2020-11-05 04:36:44 <Axman6> I've always wanted lenses over haskell courde to use in a text editor
2020-11-05 04:37:47 <sshine> dsal, I went to buy a drill hammer at the hardware store since my percussion drill wasn't cutting through. the salesman wanted to sell me one that shared a battery type with a very good electric screwdriver, because, you know, screwing in things using a percussion drill is... reckless. yet, that is what I do because I'd rather hold two oversized powertools when I am dancing on a ladder two oversized
2020-11-05 04:37:50 <dibblego> aka, an editor without the strings!
2020-11-05 04:37:53 <sshine> powertools plus an appropriately sized one.
2020-11-05 04:38:47 <dsal> A regex isn't an oversized powertool. It's the sawzall you use for everything because it's all you have.
2020-11-05 04:38:49 <sshine> s/(?<=ladder )/rather than /
2020-11-05 04:39:01 <dsal> My neighbor was trying to cut up a tree with his sawzall. Awful time he had.
2020-11-05 04:39:09 × jakob_ quits (~textual@p200300f49f1622009d826d3ed3c60d57.dip0.t-ipconnect.de) (Quit: My Laptop has gone to sleep. ZZZzzz…)
2020-11-05 04:39:09 Axman6 wants to know what a drill hammer is
2020-11-05 04:39:28 jakob_ joins (~textual@p200300f49f1622009d826d3ed3c60d57.dip0.t-ipconnect.de)
2020-11-05 04:39:30 <sshine> Axman6, it's a small jackhammer for concrete walls and ceilings.
2020-11-05 04:39:44 <MarcelineVQ> hammer drill :>
2020-11-05 04:39:50 <sshine> Axman6, it punches and doesn't drill.
2020-11-05 04:40:16 <sshine> Axman6, a percussion drill does both, but it doesn't punch as hard.
2020-11-05 04:40:43 <sshine> so if you ever move into a solid concrete building and want to put up anything on your wall, you may need a drill hammer.
2020-11-05 04:41:59 <dsal> I like having the right tool for the job. I have a tiny chopsaw specifically for cutting brass casings into smaller brass casings. https://usercontent.irccloud-cdn.com/file/WU4zyLxR/minichop.jpg
2020-11-05 04:42:05 <dsal> When I need to parse stuff in Haskell, I pretty much just use megaparsec. Sometimes attoparsec. Rarely read. I used regexes once and ended up regretting it (but learning proper parsers).
2020-11-05 04:42:15 <sshine> percussion drills often let you choose "punch, punch and drill, drill only" and the "drill only" works perfectly as an overweight, trigger-happy electric screwdriver.
2020-11-05 04:42:16 notnatebtw joins (~nate@125.161.131.218)
2020-11-05 04:42:35 <sshine> in this scenario, Megaparsec is the percussion drill.
2020-11-05 04:43:17 <sshine> dsal, I'd use a percussion drill for that. haha, j/k.
2020-11-05 04:43:58 <dsal> Heh, I used a dremel to do that once, free hand. It technically worked. But that was really dumb.
2020-11-05 04:44:26 × jakob_ quits (~textual@p200300f49f1622009d826d3ed3c60d57.dip0.t-ipconnect.de) (Ping timeout: 264 seconds)
2020-11-05 04:46:53 × star0558 quits (~star0558@124.123.104.52) (Remote host closed the connection)
2020-11-05 04:47:12 star1616 joins (~star1616@124.123.104.52)
2020-11-05 04:47:49 <sshine> dsal, I used regex-applicative once to see how a very regex-like task would look like. and then I re-did it with Megaparsec, and it seemed nothing significant was gained. https://dev.to/piq9117/haskell-enforcing-naming-convention-with-parsec-1f2h#comments -- but regex-applicative is a nice library nonetheless.
2020-11-05 04:48:08 <MarcelineVQ> sshine: around here you'd call a percussion drill a hammer drill, you're describing a rotary hammer though yeah? humans aren't so hot at creating discerning names :O
2020-11-05 04:48:11 <sshine> s/gained/gained from using regex-applicative in the first place/
2020-11-05 04:48:14 × star1616 quits (~star1616@124.123.104.52) (Remote host closed the connection)
2020-11-05 04:48:32 Codaraxis joins (~Codaraxis@ip68-5-90-227.oc.oc.cox.net)
2020-11-05 04:49:11 × coot quits (~coot@37.30.49.253.nat.umts.dynamic.t-mobile.pl) (Quit: coot)
2020-11-05 04:49:12 watt739 joins (~watt739@124.123.104.52)
2020-11-05 04:49:36 <sshine> MarcelineVQ, I'm using google translate. in my language "borehammer" = drill hammer = its main feature is that it punches, in spiute of "drill" being a part of its name. I guess "drill" refers to the long, thin shape of the thing that punches, rather than the action.
2020-11-05 04:49:45 coot joins (~coot@37.30.49.253.nat.umts.dynamic.t-mobile.pl)
2020-11-05 04:50:16 stonebrige joins (~stonebrig@4e69b241.skybroadband.com)
2020-11-05 04:50:22 <dsal> sshine: That's kind of weird. It doesn't look like a regex language.
2020-11-05 04:50:55 aarvar joins (~foewfoiew@c.24.56.239.179.static.broadstripe.net)
2020-11-05 04:51:19 <sshine> MarcelineVQ, whereas "slagboremaskine" = percussion drill = its drilling function is strong, and its punching function is weak, and combined you get through a lot of materials without wrecking them (e.g. bricks, but it's too crude for bathroom tiles and too weak for concrete).
2020-11-05 04:51:45 × puffnfresh quits (~puffnfres@180-150-38-83.b49626.bne.nbn.aussiebb.net) (Read error: Network is unreachable)
2020-11-05 04:52:47 <MarcelineVQ> so literal :> slag bore mchine
2020-11-05 04:52:51 <sshine> dsal, the meat of the task is pretty much exactly the same in regex-applicative and megaparsec.
2020-11-05 04:53:07 <sshine> MarcelineVQ, haha yes, this is a good name. punch drill machine.
2020-11-05 04:53:09 <dsal> Yeah, both seem like fine ways to do parsing.
2020-11-05 04:53:39 <sshine> dsal, yeah. and sometimes you realize, "shit, what I'm doing is not regular." and it'd be neat if all you had to do was break out of applicative style, but not switch library. :-P
2020-11-05 04:55:28 puffnfresh joins (~puffnfres@180-150-38-83.b49626.bne.nbn.aussiebb.net)
2020-11-05 04:57:54 alp joins (~alp@2a01:e0a:58b:4920:c9f2:c45e:5046:e2e6)
2020-11-05 05:00:33 × christo quits (~chris@81.96.113.213) (Remote host closed the connection)
2020-11-05 05:00:52 × texasmynsted quits (~texasmyns@185.247.70.76) (Remote host closed the connection)
2020-11-05 05:01:40 texasmynsted joins (~texasmyns@185.247.70.76)
2020-11-05 05:05:14 christo joins (~chris@81.96.113.213)
2020-11-05 05:05:32 <sshine> dsal, I think that regex gets a bad rep for the classical syntax. regex-applicative unscrews that a bit (in spite of not really being that useful in a lot of cases). another example where I think something built on top of just regex (leveraging the limit) is Kleenex: https://github.com/diku-kmc/kleenexlang#use
2020-11-05 05:05:48 × texasmynsted quits (~texasmyns@185.247.70.76) (Ping timeout: 244 seconds)
2020-11-05 05:06:01 <sshine> that last sentence missed a superlative.
2020-11-05 05:10:15 × christo quits (~chris@81.96.113.213) (Ping timeout: 265 seconds)
2020-11-05 05:12:25 notnatebtw is now known as hidedagger
2020-11-05 05:12:25 × solonarv quits (~solonarv@astrasbourg-653-1-263-62.w92-161.abo.wanadoo.fr) (Ping timeout: 260 seconds)
2020-11-05 05:13:12 × hidedagger quits (~nate@125.161.131.218) (Quit: WeeChat 2.9)
2020-11-05 05:15:00 × hyiltiz quits (~quassel@unaffiliated/hyiltiz) (Remote host closed the connection)
2020-11-05 05:15:20 hidedagger joins (~nate@125.161.131.218)
2020-11-05 05:16:03 × hidedagger quits (~nate@125.161.131.218) (Client Quit)
2020-11-05 05:16:48 × star_watt quits (7c7b6834@124.123.104.52) (Remote host closed the connection)
2020-11-05 05:18:25 × zoran119 quits (~zoran119@124-169-22-52.dyn.iinet.net.au) (Quit: leaving)
2020-11-05 05:25:57 × xff0x quits (~fox@2001:1a81:522f:7b00:29b2:8682:67ea:c01f) (Ping timeout: 244 seconds)
2020-11-05 05:26:40 × irc_user quits (uid423822@gateway/web/irccloud.com/x-nqqmqoyedjtdxopn) (Quit: Connection closed for inactivity)
2020-11-05 05:26:52 xff0x joins (~fox@2001:1a81:522f:7b00:d95:27ea:7e18:f05f)
2020-11-05 05:34:41 DTZUZU joins (~DTZUZU@207.81.171.116)
2020-11-05 05:36:17 × acidjnk_new2 quits (~acidjnk@p200300d0c718f665213d210801ac68e4.dip0.t-ipconnect.de) (Ping timeout: 244 seconds)

All times are in UTC.