Newest at the top
2024-12-29 19:22:18 +0100 | agent314 | (~quassel@static-198-54-130-107.cust.tzulo.com) agent314 |
2024-12-29 19:22:10 +0100 | Digit | (~user@198.144.208.46.dyn.plus.net) (Ping timeout: 248 seconds) |
2024-12-29 19:21:31 +0100 | <ash3en> | yeah, i just hoped for an easy to get applicative way to define this |
2024-12-29 19:21:02 +0100 | Digitteknohippie | (~user@198.144.208.46.dyn.plus.net) |
2024-12-29 19:16:59 +0100 | <statusbot> | Maintenance update: hackage redeploy complete -- http://status.haskell.org/pages/maintenance/537c07b0cf1fad5830000093/67718e964449ab5853e77361 |
2024-12-29 19:14:53 +0100 | <hololeap> | even if it is more lines |
2024-12-29 19:14:33 +0100 | <hololeap> | and I personally like writing out parsers with do-notation like that since it's easier to read in my opinion |
2024-12-29 19:14:01 +0100 | <hololeap> | making it more compact is just going to obfuscate things |
2024-12-29 19:12:08 +0100 | <hololeap> | is who I meant |
2024-12-29 19:12:03 +0100 | <hololeap> | sorry ash3en |
2024-12-29 19:11:51 +0100 | <hololeap> | kaol: it looks fine to me |
2024-12-29 19:09:57 +0100 | euleritian | (~euleritia@dynamic-176-003-015-198.176.3.pool.telefonica.de) (Ping timeout: 248 seconds) |
2024-12-29 19:09:48 +0100 | <ash3en> | c_wraith: too true |
2024-12-29 19:09:45 +0100 | machinedgod | (~machinedg@d108-173-18-100.abhsia.telus.net) machinedgod |
2024-12-29 19:09:45 +0100 | <glguy> | and the environment you write Factor in is pretty slick, too |
2024-12-29 19:09:30 +0100 | <c_wraith> | everything that reduces repetition of `st' in there also obfuscates the flow of what's going on. |
2024-12-29 19:08:57 +0100 | <glguy> | with a stack language you can take unreadable to a level that simple (r ->) isn't going to get close to |
2024-12-29 19:08:29 +0100 | <c_wraith> | Honestly, I'd leave the code as-is |
2024-12-29 19:08:22 +0100 | <glguy> | https://factorcode.org |
2024-12-29 19:08:18 +0100 | <glguy> | hmm, I didn't mean to paste that |
2024-12-29 19:08:09 +0100 | <glguy> | If you don't want to name your variables I recommend exploring Factor. https://www.google.com/search?client=safari&rls=en&q=factorlang&ie=UTF-8&oe=UTF-8 |
2024-12-29 19:07:23 +0100 | <kaol> | I don't even find that too bad, but I've spent an unhealthy amount of time playing around with (->). |
2024-12-29 19:07:21 +0100 | <ash3en> | it is understandable until (<$) |
2024-12-29 19:06:45 +0100 | <glguy> | unreadable code isn't going to write itself |
2024-12-29 19:06:41 +0100 | <c_wraith> | use a secret S combinator. |
2024-12-29 19:06:22 +0100 | <c_wraith> | maximize line noise. |
2024-12-29 19:06:10 +0100 | <c_wraith> | In fact, that whole thing could be written as takeWhile1 (/= nulByte) >>= (<$) <*> takeRemainingNulBytes |
2024-12-29 19:06:04 +0100 | <ash3en> | probably |
2024-12-29 19:05:55 +0100 | <kaol> | I may not be completely serious. |
2024-12-29 19:05:34 +0100 | <ash3en> | kaol: :'( |
2024-12-29 19:05:28 +0100 | euleritian | (~euleritia@dynamic-176-003-015-198.176.3.pool.telefonica.de) |
2024-12-29 19:04:58 +0100 | <kaol> | Every time you name a variable god kills a kitten. |
2024-12-29 19:04:40 +0100 | TheCoffeMaker | (~TheCoffeM@user/thecoffemaker) TheCoffeMaker |
2024-12-29 19:03:53 +0100 | <kaol> | Peachy. I'll start it on my personal code, haters gonna hate. |
2024-12-29 19:03:44 +0100 | <ash3en> | c_wraith: i will keep that version as a comment :D |
2024-12-29 19:03:24 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 272 seconds) |
2024-12-29 19:02:57 +0100 | <c_wraith> | look, I rediscovered it! |
2024-12-29 19:02:43 +0100 | TheCoffeMaker | (~TheCoffeM@user/thecoffemaker) (Remote host closed the connection) |
2024-12-29 19:02:27 +0100 | <lambdabot> | Functor f => (a -> f b) -> a -> f a |
2024-12-29 19:02:23 +0100 | <statusbot> | Maintenance update: Hackage will be offline for a redeploy -- http://status.haskell.org/pages/maintenance/537c07b0cf1fad5830000093/67718e964449ab5853e77361 |
2024-12-29 19:02:19 +0100 | <c_wraith> | :t ((<$) <*>) -- amusingly.... |
2024-12-29 19:02:11 +0100 | notzmv | (~umar@user/notzmv) (Ping timeout: 252 seconds) |
2024-12-29 19:01:57 +0100 | <kaol> | Now that you mention it this is a function I've been hoping for myself more than once. |
2024-12-29 19:01:32 +0100 | Square | (~Square@user/square) Square |
2024-12-29 19:00:35 +0100 | <ash3en> | haha nice kaol, but I'll pass on this lib probably |
2024-12-29 18:59:21 +0100 | <kaol> | There's https://hackage.haskell.org/package/IfElse-0.85/docs/Control-Monad-IfElse.html#v:returning but that's not any library I'd consider for my usual toolbox. |
2024-12-29 18:58:59 +0100 | <c_wraith> | sadly, I can read it now. :) |
2024-12-29 18:58:41 +0100 | <ash3en> | yeah, that seems not too readable : ) |
2024-12-29 18:58:15 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) merijn |
2024-12-29 18:57:32 +0100 | <c_wraith> | but... don't. For the sake of anyone looking at the code in the future. |