Newest at the top
2024-11-01 13:14:58 +0100 | xff0x | (~xff0x@2405:6580:b080:900:26bf:a0f9:b4d:93d8) |
2024-11-01 13:12:25 +0100 | tromp | (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) |
2024-11-01 13:12:04 +0100 | lortabac | (~lortabac@2a01:e0a:541:b8f0:55ab:e185:7f81:54a4) lortabac |
2024-11-01 13:09:50 +0100 | <Square> | I see cabal has means to configure more repositories. But what software does it use? |
2024-11-01 13:07:13 +0100 | morb | (~morb@pool-108-41-100-120.nycmny.fios.verizon.net) (Ping timeout: 248 seconds) |
2024-11-01 13:06:18 +0100 | <Square> | local as organization wide. |
2024-11-01 13:06:03 +0100 | <Square> | If you want to extend your build environemnt with a local package repository, what's your choices? |
2024-11-01 13:05:52 +0100 | turlando | (~turlando@user/turlando) () |
2024-11-01 13:02:37 +0100 | morb | (~morb@pool-108-41-100-120.nycmny.fios.verizon.net) |
2024-11-01 13:02:29 +0100 | CiaoSen | (~Jura@2a05:5800:487:0:ca4b:d6ff:fec1:99da) (Ping timeout: 244 seconds) |
2024-11-01 13:02:04 +0100 | morb | (~morb@pool-108-41-100-120.nycmny.fios.verizon.net) (Ping timeout: 252 seconds) |
2024-11-01 12:58:53 +0100 | weary-traveler | (~user@user/user363627) (Remote host closed the connection) |
2024-11-01 12:57:37 +0100 | morb | (~morb@pool-108-41-100-120.nycmny.fios.verizon.net) |
2024-11-01 12:56:49 +0100 | tromp | (~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Read error: Connection reset by peer) |
2024-11-01 12:55:18 +0100 | Square2 | (~Square4@user/square) (Ping timeout: 276 seconds) |
2024-11-01 12:52:14 +0100 | sprotte24 | (~sprotte24@p200300d16f13bb00e9ebafc1049584f7.dip0.t-ipconnect.de) (Quit: Leaving) |
2024-11-01 12:52:08 +0100 | <sprotte24> | bye |
2024-11-01 12:51:58 +0100 | CatGPT | catties |
2024-11-01 12:51:03 +0100 | Square | (~Square@user/square) Square |
2024-11-01 12:49:17 +0100 | <sprotte24> | my problem was the nearest power of 2 |
2024-11-01 12:48:25 +0100 | <mauke> | did you have a question? |
2024-11-01 12:48:16 +0100 | rvalue- | rvalue |
2024-11-01 12:47:32 +0100 | <sprotte24> | I have to leave home in 5 minutes and could contine in the later afternoon with my problem. |
2024-11-01 12:43:24 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) merijn |
2024-11-01 12:40:47 +0100 | rvalue | (~rvalue@user/rvalue) (Ping timeout: 244 seconds) |
2024-11-01 12:40:22 +0100 | rvalue- | (~rvalue@user/rvalue) rvalue |
2024-11-01 12:40:17 +0100 | <sprotte24> | Two ways: double the base 2 (1 2 4 8 ...) or increment the exponent of 2 |
2024-11-01 12:37:47 +0100 | <sprotte24> | or I use a function double |
2024-11-01 12:37:07 +0100 | merijn | (~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 252 seconds) |
2024-11-01 12:36:43 +0100 | <sprotte24> | We should not use the power function directly |
2024-11-01 12:34:55 +0100 | <mauke> | nthPowerTwo k could be replaced by 2 ^ k |
2024-11-01 12:34:23 +0100 | <mauke> | anyway, that looks like it would work |
2024-11-01 12:33:05 +0100 | <mauke> | (and give us the link) |
2024-11-01 12:32:24 +0100 | <sprotte24> | ok |
2024-11-01 12:31:58 +0100 | <mauke> | use a paste site like https://paste.tomsmeding.com to show code |
2024-11-01 12:31:50 +0100 | <mauke> | plase don't paste into IRC |
2024-11-01 12:31:43 +0100 | <sprotte24> | nthPowerTwo n = if n==0 then 1 else 2*nthPowerTwo(n-1) |
2024-11-01 12:31:43 +0100 | <sprotte24> | nthPowerTwo :: Int -> Int |
2024-11-01 12:31:43 +0100 | <sprotte24> | -- 3.1 nthPowerTwo |
2024-11-01 12:31:10 +0100 | <sprotte24> | roundUpToPowerTwo n = roundUpToPower2 n 1 |
2024-11-01 12:31:08 +0100 | <sprotte24> | roundUpToPowerTwo :: Int -> Int |
2024-11-01 12:31:08 +0100 | <sprotte24> | else roundUpToPower2 n (k + 1) |
2024-11-01 12:31:08 +0100 | <sprotte24> | else if (nthPowerTwo k) >= n then (nthPowerTwo k) |
2024-11-01 12:31:08 +0100 | <sprotte24> | roundUpToPower2 n k = if n == 1 then 1 |
2024-11-01 12:31:08 +0100 | <sprotte24> | roundUpToPower2 :: Int -> Int -> Int |
2024-11-01 12:31:08 +0100 | <sprotte24> | -- 3.3 next power2 |
2024-11-01 12:30:05 +0100 | <Hecate> | sprotte24: don't hesitate to use play.haskell.org ! |
2024-11-01 12:29:05 +0100 | <sprotte24> | I show it, one moment please |
2024-11-01 12:28:49 +0100 | <sprotte24> | I had a solution, but that solution used 2 parameters n and k. |
2024-11-01 12:28:06 +0100 | <sprotte24> | In my recursive loop I have to Test an to increment the Power index. |