Newest at the top
2025-09-28 00:50:31 +0200 | Lord_of_Life | (~Lord@user/lord-of-life/x-2819915) Lord_of_Life |
2025-09-28 00:50:08 +0200 | Lord_of_Life | (~Lord@user/lord-of-life/x-2819915) (Remote host closed the connection) |
2025-09-28 00:47:50 +0200 | newsham | (~newsham@2603:800c:2c01:6825:a538:c286:d6c2:5fcd) (Quit: Client closed) |
2025-09-28 00:42:30 +0200 | <EvanR> | but specifically only dealing in scale factors between 0 and 1 sounds more like probability |
2025-09-28 00:40:56 +0200 | <newsham> | anyway.. i've got my instance i'm happy with.. going to goof off with other stuff. thanks for the tips. |
2025-09-28 00:40:56 +0200 | <EvanR> | scaling by a "real" is traditionally the purview of "vector space" |
2025-09-28 00:40:39 +0200 | <newsham> | and do color x color |
2025-09-28 00:40:31 +0200 | <newsham> | oh, i'm mistaken. it can just convert numeric constants to colors. |
2025-09-28 00:39:40 +0200 | <newsham> | oh, nice. `*` does do float x color. |
2025-09-28 00:38:12 +0200 | <newsham> | * doesnt do color * float. my 3 instances define 3 dedicated scale functions. |
2025-09-28 00:35:57 +0200 | <EvanR> | or delete your 3 instances and just use * or a dedicate scale function |
2025-09-28 00:35:31 +0200 | <newsham> | complex type gymnastics can let me use a large 3rd party vector package to replace my 3 instance declarations? :) |
2025-09-28 00:35:07 +0200 | <yahb2> | Const () |
2025-09-28 00:35:07 +0200 | <int-e> | % fmap (7*) (Data.Functor.Const.Const ()) |
2025-09-28 00:34:57 +0200 | <lambdabot> | No module named ‘Data.Functor.Const’ is imported. |
2025-09-28 00:34:57 +0200 | <lambdabot> | Not in scope: data constructor ‘Data.Functor.Const.Const’ |
2025-09-28 00:34:57 +0200 | <lambdabot> | error: |
2025-09-28 00:34:56 +0200 | <int-e> | > fmap (7*) (Data.Functor.Const.Const ()) |
2025-09-28 00:34:34 +0200 | <newsham> | evanr: thats besides the point. I need to be able to scale things by floats in [0..1]. i dont need to scale ints by ints. |
2025-09-28 00:33:47 +0200 | <newsham> | oh but for fun color from a 3rd party package is concretely only for floats. so not so much functor. |
2025-09-28 00:33:18 +0200 | <EvanR> | but just defining scaleRGBA :: Float -> RGBA -> RGBA ain't stupid either |
2025-09-28 00:31:53 +0200 | <lambdabot> | Identity 21 |
2025-09-28 00:31:52 +0200 | <EvanR> | > fmap (7*) (Identity 3) |
2025-09-28 00:31:33 +0200 | <EvanR> | it's possible to make anything into the dumbest possible Functor xD |
2025-09-28 00:28:59 +0200 | <newsham> | but maybe that was just silliness on my part. the types i care about right now are Float and RGBA as a triple of floats. |
2025-09-28 00:28:36 +0200 | <newsham> | i dont know that i need it, but i was thinking i wanted Int to be scalable too, which wouldnt work with that definition. Integer isnt a container of floats. |
2025-09-28 00:23:33 +0200 | Enrico63 | (~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) (Quit: Client closed) |
2025-09-28 00:20:42 +0200 | vanishingideal | (~vanishing@user/vanishingideal) (Remote host closed the connection) |
2025-09-28 00:19:58 +0200 | tromp | (~textual@2001:1c00:3487:1b00:b023:5780:967f:79f8) (Quit: My iMac has gone to sleep. ZZZzzz…) |
2025-09-28 00:19:19 +0200 | arandombit | (~arandombi@user/arandombit) arandombit |
2025-09-28 00:17:20 +0200 | arandombit | (~arandombi@user/arandombit) (Ping timeout: 256 seconds) |
2025-09-28 00:15:38 +0200 | merijn | (~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 256 seconds) |
2025-09-28 00:15:14 +0200 | <EvanR> | haskell really needs to push "functor tutorials" more |
2025-09-28 00:13:32 +0200 | <EvanR> | assuming it's already a functor |
2025-09-28 00:13:13 +0200 | <EvanR> | so basically, it doesn't need a new abstraction you just have to define it |
2025-09-28 00:12:55 +0200 | <EvanR> | newsham, the standardish library "linear" has a function (*^) with type (Functor f, Num a) => a -> f a -> f a |
2025-09-28 00:12:49 +0200 | arandombit | (~arandombi@user/arandombit) arandombit |
2025-09-28 00:10:32 +0200 | merijn | (~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn |
2025-09-28 00:06:31 +0200 | arandombit | (~arandombi@user/arandombit) (Ping timeout: 255 seconds) |
2025-09-28 00:03:16 +0200 | gabriel_sevecek | (~gabriel@188-167-229-200.dynamic.chello.sk) gabriel_sevecek |
2025-09-28 00:01:34 +0200 | gabriel_sevecek | (~gabriel@188-167-229-200.dynamic.chello.sk) (Quit: WeeChat 4.7.1) |
2025-09-28 00:01:02 +0200 | arandombit | (~arandombi@user/arandombit) arandombit |
2025-09-28 00:00:40 +0200 | arandombit | (~arandombi@user/arandombit) (Ping timeout: 255 seconds) |
2025-09-28 00:00:28 +0200 | target_i | (~target_i@user/target-i/x-6023099) (Quit: leaving) |
2025-09-27 23:59:19 +0200 | merijn | (~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 240 seconds) |
2025-09-27 23:57:41 +0200 | Enrico63 | (~Enrico63@2a0b:e541:10d0:0:9efc:e8ff:fe24:3213) Enrico63 |
2025-09-27 23:55:21 +0200 | arandombit | (~arandombi@user/arandombit) arandombit |
2025-09-27 23:55:06 +0200 | arandombit | (~arandombi@user/arandombit) (Ping timeout: 248 seconds) |
2025-09-27 23:54:44 +0200 | merijn | (~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn |
2025-09-27 23:53:03 +0200 | <newsham> | do std libraries have an abstraction for things that can be scaled by a real? |