00:04:48 | * | vlad1777d quit (Ping timeout: 248 seconds) |
00:12:14 | * | stefanos82 quit (Quit: Quitting for now...) |
00:15:44 | * | vivus joined #nim |
00:16:55 | vivus | Hi all. How can I remove empty fields from a table? iterating over the table and removing it causes an error in the latest devel branches of nim (0.19.9 and up) |
00:19:31 | sealmove | empty fields? |
00:20:15 | FromGitter | <zetashift> What is the error? |
00:22:21 | vivus | example, like this: (f0: "你肯定吗?", f1: @[]) |
00:25:40 | sealmove | snippet? |
00:26:56 | * | smitop quit (Quit: Connection closed for inactivity) |
00:36:02 | vivus | sealmove: @zetashift : https://dpaste.de/aS1c |
00:36:27 | vivus | L` the length of the table changed while iterating over it [AssertionError] |
00:37:41 | sealmove | @zetashift: what would it take to make pattern matching work for tuples? |
00:37:47 | sealmove | i mean without a library |
00:38:26 | sealmove | oh virus you can't delete while iterating like that |
00:38:37 | sealmove | table size can't change while iterating |
00:38:41 | vivus | sealmove: yeah I figured :P |
00:40:13 | sealmove | ok so you have to find the index and then use del() outsize of loop |
00:40:34 | vivus | outsize? |
00:41:14 | FromGitter | <zetashift> @sealmove honestly don't know that, I use gara for my pattern matching needs |
00:42:13 | FromGitter | <zetashift> you can however do tuple unpacking in 0.20 |
00:42:27 | sealmove | being able to match against something like tuple[x, y: int] feels natural enough to be included in the core language... |
00:43:07 | sealmove | yeah but can you do something like `case someTuple`? |
00:43:27 | sealmove | sorry virus, outside* |
00:44:05 | vivus | virus :P |
00:44:38 | vivus | sealmove: I'm a bit confused by your suggestion. This is a table, not a tuple? |
00:44:54 | sealmove | sorry, tuple conversation is irrelevant |
00:47:04 | sealmove | here is a rough solution: https://termbin.com/2p60 |
00:50:13 | FromGitter | <zetashift> seems you can use case only on ordinal types |
00:50:16 | sealmove | and here is cleaned-up one which actually compiles: https://termbin.com/qp1i |
00:51:10 | sealmove | zetashift: yes.. I understand this could be aiding as major simplification within compiler internals |
00:51:54 | * | deech quit (Ping timeout: 272 seconds) |
00:52:11 | sealmove | but I think it's worth extending to tuple of ordinals |
00:53:07 | sealmove | then check if the cartesian product is covered |
00:54:11 | sealmove | virus: just think of the table as immutable while iterating over it |
01:04:30 | * | envoyt quit (Ping timeout: 258 seconds) |
01:13:53 | * | envoyt joined #nim |
01:30:32 | * | chamar quit (Ping timeout: 244 seconds) |
01:34:33 | * | deech_ joined #nim |
02:05:30 | * | sealmove quit (Quit: WeeChat 2.4) |
02:12:47 | * | Tongir joined #nim |
02:14:50 | * | mbarkhau_ joined #nim |
02:18:04 | * | mbarkhau quit (Ping timeout: 246 seconds) |
02:20:54 | * | gmpreussner_ joined #nim |
02:21:34 | * | gmpreussner quit (Ping timeout: 246 seconds) |
02:25:58 | * | gmpreussner joined #nim |
02:27:18 | * | gmpreussner_ quit (Ping timeout: 258 seconds) |
02:27:31 | * | deech_ quit (Ping timeout: 246 seconds) |
02:40:14 | * | laaron- joined #nim |
02:40:41 | * | laaron quit (Remote host closed the connection) |
02:44:19 | * | dddddd quit (Remote host closed the connection) |
02:48:37 | * | i7sDream_ joined #nim |
02:56:54 | * | i7sDream_ quit (Remote host closed the connection) |
02:57:26 | * | i7sDream_ joined #nim |
03:03:31 | * | sz0 joined #nim |
03:46:13 | FromGitter | <kayabaNerve> Zevv: So how many lines of code? |
03:51:31 | * | vivus quit (Remote host closed the connection) |
04:03:39 | * | laaron- quit (Quit: ZNC 1.7.1 - https://znc.in) |
04:03:59 | * | laaron joined #nim |
04:10:02 | * | i7sDream_ quit (Ping timeout: 258 seconds) |
04:11:39 | * | theelous3_ quit (Ping timeout: 248 seconds) |
04:15:01 | * | nsf joined #nim |
04:40:41 | * | vlad1777d joined #nim |
05:02:40 | Zevv | of what code? |
05:12:35 | * | leorize quit (Quit: WeeChat 2.3) |
05:24:04 | * | narimiran joined #nim |
05:27:55 | * | narimiran_ joined #nim |
05:29:31 | * | narimiran quit (Ping timeout: 248 seconds) |
05:45:37 | * | fjellfras joined #nim |
05:58:37 | * | AndChat|624225 joined #nim |
05:58:37 | * | envoyt quit (Read error: Connection reset by peer) |
05:59:42 | * | jjido joined #nim |
06:05:28 | * | leorize joined #nim |
06:09:21 | leorize | narimiran_: norm is failing CI |
06:13:19 | * | narimiran_ is now known as narimiran |
06:13:42 | narimiran | leorize: yeah, the package changed from dependency-free to having dependencies. i'm working on it |
06:14:39 | leorize | something is really wrong with keep-alive ssl connection in httpclient :/ |
06:15:28 | leorize | switching to create new connection per test case really take a toll on the test time on azure :/ |
06:23:03 | * | i7sDream_ joined #nim |
06:25:31 | Araq | we need our own SSL implementation |
06:25:42 | Araq | OpenSSL's API is unusable |
06:27:18 | leorize | is there any saner ssl library out there that's not a derivative of openssl? |
06:31:05 | Zevv | our own ssl implementation, wow. You sure about that? |
06:32:03 | Zevv | openSSL is hell and crap and just so bad over all, but there are a number of more modern libs with decent APIs and much less cruft. I'd go for picking a better lib, but rolling your own is probably not the best option, security wise |
06:32:58 | Zevv | Maybe we could do a literal translation of wolf from c to nim, or something like that. |
06:33:26 | jjido | "probably". In time it could become the best option security-wise for all we know... |
06:37:23 | leorize | wolfssl is gplv2 though |
06:40:17 | Zevv | true |
06:40:47 | * | PMunch joined #nim |
06:42:34 | Zevv | how do the others (rust, go, etc) do portable ssl then? |
06:42:58 | Araq | go has its own impl iirc |
06:43:55 | Araq | dunno about Rust, probably they are working on it too. I wonder how hard it really is these days, 80% of what is in OpenSSL is probably deprecated or obsolete already |
06:44:35 | Araq | mapping an infinite bit stream to a fixed number of bits is hard and most algorithms fail at it |
06:46:21 | leorize | I've "perfected" azure integration :p https://dev.azure.com/alaviss/Nim/_build/results?buildId=134&view=ms.vss-test-web.build-test-results-tab |
06:46:30 | leorize | narimiran: ^ |
06:47:43 | narimiran | yay, norm is failing for you too :P :D |
06:47:48 | * | krux02 joined #nim |
06:53:42 | narimiran | leorize: how long until PR? what's left to do? |
06:54:20 | leorize | Araq, Zevv: libressl got libtls, which seems to be super easy to use https://man.openbsd.org/tls_init.3 |
06:55:00 | leorize | narimiran: I've to figure out why some tests are flaky on azure, and a small benchmark for how impactful is the azure integration to testament |
07:00:00 | * | gmpreussner quit (Quit: kthxbye) |
07:03:38 | * | dwdv joined #nim |
07:03:50 | Zevv | leorize: but how would that integrate with Nim's socket abstractions, that's always the hard part |
07:04:39 | * | gmpreussner joined #nim |
07:06:12 | * | disruptek quit (Ping timeout: 272 seconds) |
07:08:23 | Araq | yup. |
07:08:43 | leorize | looks like the `net` module is rather monolithic |
07:08:56 | * | cyberjpn joined #nim |
07:09:46 | Araq | also: if implementing SSL is so hard that nobody can be trusted to reimplement it there is something really wrong with its "security" |
07:09:48 | leorize | can't just swap the ssl implementation with a third party module |
07:10:54 | Araq | of course you cannot "swap" it, what would the API look like? they all fail to provide open/read/write/close, can't fake what you don't have. |
07:16:42 | * | Senketsu quit (Ping timeout: 244 seconds) |
07:17:59 | leorize | I've looked at python's & go's API |
07:18:17 | leorize | they have separated behavior for a server socket vs a client socket :/ |
07:18:37 | leorize | go have two different constructor, python have a server_side bool |
07:21:46 | PMunch | Hmm, is there a way to print an exception without re-raising it? |
07:22:00 | PMunch | I know I can do getCurrentExceptionMsg() |
07:22:08 | PMunch | But that doesn't include the stack trace |
07:23:58 | leorize | writeStackTrace() |
07:24:24 | leorize | PMunch: ^ |
07:24:33 | PMunch | Aha |
07:24:40 | PMunch | Wait, can I use that anywhere? |
07:25:51 | PMunch | Huh, you can. Neat |
07:32:36 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
07:34:53 | * | neceve joined #nim |
07:35:18 | * | neceve quit (Client Quit) |
07:35:41 | * | neceve joined #nim |
07:40:43 | * | leorize quit (Remote host closed the connection) |
07:43:27 | * | leorize joined #nim |
07:51:30 | * | yellowbird joined #nim |
07:51:33 | * | Vladar joined #nim |
07:53:13 | * | leorize quit (Ping timeout: 256 seconds) |
07:58:38 | FromGitter | <mratsim> for SSL we are exploring BearSSL at Status, codebase is clean straight C, and due to constant-time arithmetics focus it (almost?) always never exposes vulnerabilities when other libraries have some |
07:59:58 | FromGitter | <mratsim> I've gathered several crypto breaches here (often TLS related): https://github.com/status-im/nim-constantine/wiki/Constant-time-arithmetics, AFAIK this one is the most recent: https://www.cryptologie.net/article/461/the-9-lives-of-bleichenbachers-cat-new-cache-attacks-on-tls-implementations/ |
08:02:21 | FromGitter | <mratsim> I have an ideal implementation in mind where the constant prime numbers are compile-time only but I have a showstopper static bug: https://github.com/nim-lang/Nim/issues/11142 |
08:04:07 | * | Araq marked it as showstopper |
08:04:37 | * | leorize joined #nim |
08:05:46 | FromGitter | <mratsim> I don't think that's Nim showstopper, I have a less elegant alternative which is to store the "constant prime number" as a global, but that means I can't use the type system at all to check that all modulo are on the same prime. |
08:10:10 | leorize | narimiran: have you fixed norm? |
08:10:22 | narimiran | it's not yet in devel |
08:12:45 | * | floppydh joined #nim |
08:15:21 | * | disruptek joined #nim |
08:22:05 | * | couven92 joined #nim |
08:33:05 | * | cyberjpn quit (Quit: WeeChat 2.4) |
08:40:07 | federico3 | Araq: yes, SSL itself is a mess |
08:40:37 | federico3 | leorize: https://github.com/FedericoCeratto/nim-gnutls |
08:41:57 | federico3 | I also have wrappers for libsodium and libgcrypt but they don't provide SSL |
08:45:25 | * | al_ joined #nim |
09:03:44 | narimiran | leorize: ...and the reason why is not yet in devel is because appveyor is too slow ;) |
09:09:16 | leorize | well, recent runs show that azure runs package test around 8mins slower |
09:09:29 | FromGitter | <mratsim> azure CI is slower than Appveyor? |
09:09:37 | FromGitter | <mratsim> azure Pipelines* |
09:11:10 | leorize | well, not mentioning that I've already completed 3 CI runs during the time it took for appveyor to complete one build job :p |
09:13:48 | * | stefanos82 joined #nim |
09:14:08 | * | dddddd joined #nim |
09:16:10 | narimiran | @mratsim from what leorize showed us, usually azure is noticeably faster. i'm guessing this slowdown is just for packages. (but even still, 10 parallel jobs for azure vs 1 for appveyor is a nobrainer) |
09:16:41 | FromGitter | <mratsim> @narimiran Numpy switched to Azure pipelines in the past 6 months iirc |
09:28:55 | * | AndChat|624225 quit (Ping timeout: 246 seconds) |
09:29:17 | * | envoyt joined #nim |
09:31:39 | * | yellowbird quit (Remote host closed the connection) |
09:34:38 | * | PMunch quit (Remote host closed the connection) |
09:38:50 | * | PMunch joined #nim |
09:44:11 | narimiran | leorize: merged. 'norm' is now disabled |
09:50:04 | narimiran | argh, is there a way to reset appveyor job other than close/open PR? |
09:50:25 | * | tribly quit (Remote host closed the connection) |
09:50:50 | * | tribly joined #nim |
09:51:27 | * | envoyt quit (Ping timeout: 268 seconds) |
09:51:49 | * | envoyt joined #nim |
09:51:56 | FromGitter | <mratsim> if you are part of the project team, you have a "restart build" button |
09:52:28 | FromGitter | <mratsim> but there should be a "nim-lang" team and not just a personal accoutn that owns the Nim prject |
09:52:49 | narimiran | yeah, i have that for travis, but not for appveyor :/ |
09:54:56 | narimiran | dom96: i see that appveyor is under your name: is there any way that you can somehow add me so i can restart the failed jobs? |
09:55:36 | * | tribly quit (Quit: WeeChat 2.4) |
09:56:42 | * | tribly joined #nim |
10:00:42 | * | Tongir quit (Ping timeout: 268 seconds) |
10:05:46 | leorize | narimiran: there'll be a PR if this passes: https://dev.azure.com/alaviss/Nim/_build/results?buildId=138 |
10:08:33 | FromGitter | <mratsim> a Nim-lang team should be created instead and the project should be moved under that team |
10:08:45 | FromGitter | <mratsim> and people should be added to that team |
10:13:27 | * | leorize quit (Remote host closed the connection) |
10:19:52 | * | tribly quit (Remote host closed the connection) |
10:20:10 | * | tribly joined #nim |
10:25:37 | * | lritter joined #nim |
10:26:49 | * | arecaceae quit (Remote host closed the connection) |
10:27:07 | narimiran | agreed |
10:27:08 | * | arecaceae joined #nim |
10:29:52 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
10:33:03 | * | laaron joined #nim |
10:34:03 | FromGitter | <kaushalmodi> I'd like to added a little interface for the user to pick one or more items from available options in a terminal.. kind of like what peco and fzf does, but in Nim. |
10:35:07 | FromGitter | <kaushalmodi> Its API could be something like `proc selectOneOrMore(allItems: seq[string]): seq[string]`. |
10:35:55 | FromGitter | <kaushalmodi> Had anyone come across a Nim library or snippet that does this? |
10:39:56 | dom96 | no idea how it ended up on my account tbh |
10:40:05 | leorize[m] | have you looked at nimble's own io facilities? |
10:45:07 | FromGitter | <kaushalmodi> Good point.. that was at the back of my mind .. but never actually tried to look there |
10:46:14 | FromGitter | <kaushalmodi> Looks like promptListInteractive is what I want; I need to tweak it to allow returning `seq[string]`. |
11:01:26 | * | AndChat|624225 joined #nim |
11:03:23 | * | envoyt quit (Ping timeout: 248 seconds) |
11:05:15 | * | PMunch quit (Remote host closed the connection) |
11:07:02 | * | Vladar quit (Remote host closed the connection) |
11:11:22 | * | PMunch joined #nim |
11:14:22 | FromGitter | <kaushalmodi> I'll need to add paging.. what if the number if initial options exceed the terminal height.. a different problem to tackle when I get to that point. |
11:16:00 | * | deech joined #nim |
11:29:56 | * | fjellfras quit (Quit: Leaving) |
11:42:53 | FromDiscord_ | <rupansh> Hey |
11:43:07 | FromDiscord_ | <rupansh> How can i download files as file buffer |
11:48:38 | * | sealmove joined #nim |
12:00:20 | * | i7sDream_ quit (Ping timeout: 268 seconds) |
12:00:57 | * | deech quit (Ping timeout: 268 seconds) |
12:15:56 | Araq | httpclient, asynchttpclient modules |
12:27:58 | * | AndChat|624225 quit (Read error: Connection reset by peer) |
12:29:04 | * | i7sDream_ joined #nim |
12:29:15 | * | i7sDream_ quit (Remote host closed the connection) |
12:29:17 | * | envoyt joined #nim |
12:29:36 | * | i7sDream_ joined #nim |
12:36:08 | * | nsf quit (Quit: WeeChat 2.4) |
12:46:45 | * | i7sDream_ quit (Remote host closed the connection) |
12:47:10 | * | i7sDream_ joined #nim |
12:47:17 | * | envoyt quit (Read error: Connection reset by peer) |
12:47:35 | * | envoyt joined #nim |
12:53:12 | * | deech joined #nim |
12:54:19 | PMunch | Hmm, this error messages looks a bit weird: http://ix.io/1LvP |
12:54:37 | * | NimBot joined #nim |
12:54:39 | PMunch | Why is in referencing Travis? |
12:58:39 | * | deech quit (Ping timeout: 258 seconds) |
12:58:41 | Araq | because absolute paths rule :-) |
12:59:04 | Araq | and we use travis to build the binaries |
13:05:09 | FromGitter | <kaushalmodi> is appveyor clogged? it's queued on my PR since 3 hrs |
13:06:43 | FromGitter | <kaushalmodi> ok, I see the queue here: https://ci.appveyor.com/project/Araq/nim/history |
13:07:12 | Araq | can we delete the 'master' branch? it's dead |
13:07:13 | FromGitter | <mratsim> so Appveyor CI is using both in Araq and dom96 accounts? |
13:07:38 | Araq | no. only mine. I think. |
13:08:16 | FromGitter | <mratsim> you can create a nim-lang team and add people to it so that they can restart the build without asking you and closing/reopening PR |
13:09:08 | FromGitter | <arnetheduck> or remove the devel branch and use master |
13:12:04 | narimiran | @kaushlmodi: yes it is clogged. patience. btw, that's one of the reasons why we're investigating using azure pipelines |
13:13:19 | Araq | arnetheduck: my coworkers cannot deal with a new name, 'devel' must stay |
13:13:54 | FromGitter | <arnetheduck> funny, what problems computer engineers are able and are not able to deal with |
13:14:47 | FromGitter | <arnetheduck> you should name it d_eV_eL or something, to celebrate compatible name diversity |
13:15:18 | * | xet7 joined #nim |
13:15:46 | Zevv | reimplement git in Nim, making it style-insensitive |
13:15:54 | narimiran | Araq: how about removing some of the other 40+ branches? :P |
13:19:28 | * | neceve quit (Ping timeout: 248 seconds) |
13:19:50 | * | neceve joined #nim |
13:21:47 | Araq | Zevv, first I must reimplement Linux :P |
13:22:02 | * | hoijui joined #nim |
13:22:05 | Zevv | no no, we start with openssl |
13:22:21 | sealmove | arnetheduck: lol |
13:23:15 | FromGitter | <Vindaar> @Araq you mean implement Andreax? |
13:24:18 | Zevv | ok, I'll start with TLS1.3 and work down from there, should be done in an afternoon or two |
13:25:20 | * | neceve quit (Ping timeout: 248 seconds) |
13:25:31 | * | neceve joined #nim |
13:31:48 | Araq | I'd call it "WOS" -- the working operating system. where stuff works. |
13:33:04 | * | sz0 quit (Quit: Connection closed for inactivity) |
13:37:02 | FromDiscord_ | <Marrakezh%brb> Hi |
13:37:43 | FromDiscord_ | <Marrakezh%brb> I new in nim programing language and Iam trying make a simple Hello World in nico game framework |
13:38:32 | FromDiscord_ | <Marrakezh%brb> So, this is the code |
13:38:32 | FromDiscord_ | <Marrakezh%brb> ```nim |
13:38:32 | FromDiscord_ | <Marrakezh%brb> import nico |
13:38:32 | FromDiscord_ | <Marrakezh%brb> |
13:38:33 | FromDiscord_ | <Marrakezh%brb> proc gameInit() = |
13:38:33 | FromDiscord_ | <Marrakezh%brb> echo "init" |
13:38:33 | FromDiscord_ | <Marrakezh%brb> |
13:38:35 | FromDiscord_ | <Marrakezh%brb> proc gameUpdate(dt: float) = |
13:38:36 | FromDiscord_ | <Marrakezh%brb> discard |
13:38:36 | FromDiscord_ | <Marrakezh%brb> |
13:38:38 | FromDiscord_ | <Marrakezh%brb> proc gameDraw() = |
13:38:39 | FromDiscord_ | <Marrakezh%brb> cls() |
13:38:41 | FromDiscord_ | <Marrakezh%brb> setColor(7) |
13:38:42 | FromDiscord_ | <Marrakezh%brb> print("Hello, World", 42, 60) |
13:38:44 | FromDiscord_ | <Marrakezh%brb> |
13:38:45 | FromDiscord_ | <Marrakezh%brb> nico.init("Marrakezh", "Tests") |
13:38:46 | FromDiscord_ | <Marrakezh%brb> |
13:38:48 | FromDiscord_ | <Marrakezh%brb> nico.loadPaletteCGA() |
13:38:49 | FromDiscord_ | <Marrakezh%brb> |
13:38:51 | FromDiscord_ | <Marrakezh%brb> nico.createWindow("Tests", 128, 128, 4) |
13:38:52 | FromDiscord_ | <Marrakezh%brb> |
13:38:54 | FromDiscord_ | <Marrakezh%brb> nico.run(gameInit(), gameUpdate(dt: float), gameDraw()) |
13:38:55 | FromDiscord_ | <Marrakezh%brb> ``` |
13:39:08 | FromDiscord_ | <Marrakezh%brb> and this error mensage appears |
13:39:08 | FromDiscord_ | <Marrakezh%brb> ``` |
13:39:09 | FromDiscord_ | <Marrakezh%brb> main.nim(20, 22) Error: type expected |
13:39:09 | FromDiscord_ | <Marrakezh%brb> ``` |
13:39:38 | FromDiscord_ | <Marrakezh%brb> To run I type this in console |
13:39:38 | FromDiscord_ | <Marrakezh%brb> ``` |
13:39:38 | FromDiscord_ | <Marrakezh%brb> nim c -o:Tests -r src/main.nim |
13:39:38 | FromDiscord_ | <Marrakezh%brb> ``` |
13:40:05 | FromDiscord_ | <Marrakezh%brb> So, this is the code |
13:40:05 | FromDiscord_ | <Marrakezh%brb> ```nim |
13:40:05 | FromDiscord_ | <Marrakezh%brb> import nico |
13:40:06 | FromDiscord_ | <Marrakezh%brb> |
13:40:06 | FromDiscord_ | <Marrakezh%brb> proc gameInit() = |
13:40:06 | FromDiscord_ | <Marrakezh%brb> echo "init" |
13:40:06 | FromDiscord_ | <Marrakezh%brb> |
13:40:08 | FromDiscord_ | <Marrakezh%brb> proc gameUpdate(dt: float) = |
13:40:09 | FromDiscord_ | <Marrakezh%brb> discard |
13:40:11 | FromDiscord_ | <Marrakezh%brb> |
13:40:12 | FromDiscord_ | <Marrakezh%brb> proc gameDraw() = |
13:40:14 | FromDiscord_ | <Marrakezh%brb> cls() |
13:40:15 | FromDiscord_ | <Marrakezh%brb> setColor(1) |
13:40:16 | federico3 | Zevv: first we need a quantum CPU to overcome the limitations of silicon |
13:40:17 | FromDiscord_ | <Marrakezh%brb> print("Hello, World", 42, 60) |
13:40:18 | FromDiscord_ | <Marrakezh%brb> |
13:40:20 | FromDiscord_ | <Marrakezh%brb> nico.init("Marrakezh", "Tests") |
13:40:21 | FromDiscord_ | <Marrakezh%brb> |
13:40:22 | FromDiscord_ | <Marrakezh%brb> nico.loadPaletteCGA() |
13:40:24 | FromDiscord_ | <Marrakezh%brb> |
13:40:25 | FromDiscord_ | <Marrakezh%brb> nico.createWindow("Tests", 128, 128, 4) |
13:40:27 | FromDiscord_ | <Marrakezh%brb> |
13:40:29 | FromDiscord_ | <Marrakezh%brb> nico.run(gameInit(), gameUpdate(dt: float), gameDraw()) |
13:40:30 | narimiran | this is fun.... :P |
13:40:30 | FromDiscord_ | <Marrakezh%brb> ``` |
13:40:43 | FromGitter | <kaushalmodi> Marrakezh%brb: welcome and hold on! |
13:40:44 | FromDiscord_ | <Marrakezh%brb> So, this is the code |
13:40:44 | FromDiscord_ | <Marrakezh%brb> ```nim |
13:40:44 | FromDiscord_ | <Marrakezh%brb> import nico |
13:40:44 | FromDiscord_ | <Marrakezh%brb> |
13:40:45 | FromDiscord_ | <Marrakezh%brb> proc gameInit() = |
13:40:45 | FromDiscord_ | <Marrakezh%brb> echo "init" |
13:40:45 | FromDiscord_ | <Marrakezh%brb> |
13:40:47 | FromDiscord_ | <Marrakezh%brb> proc gameUpdate(dt: float) = |
13:40:47 | FromGitter | <kaushalmodi> use ix.io |
13:40:48 | federico3 | I wonder why it's not being properly throttled/stopped |
13:40:48 | FromDiscord_ | <Marrakezh%brb> discard |
13:40:49 | FromDiscord_ | <Marrakezh%brb> |
13:40:51 | FromDiscord_ | <Marrakezh%brb> proc gameDraw() = |
13:40:52 | FromDiscord_ | <Marrakezh%brb> cls() |
13:40:54 | FromDiscord_ | <Marrakezh%brb> setColor(2) |
13:40:55 | Araq | stop it |
13:40:55 | FromDiscord_ | <Marrakezh%brb> print("Hello, World", 42, 60) |
13:40:57 | FromDiscord_ | <Marrakezh%brb> |
13:40:58 | FromDiscord_ | <Marrakezh%brb> nico.init("Marrakezh", "Tests") |
13:41:00 | FromDiscord_ | <Marrakezh%brb> |
13:41:01 | FromDiscord_ | <Marrakezh%brb> nico.loadPaletteCGA() |
13:41:03 | FromDiscord_ | <Marrakezh%brb> |
13:41:04 | FromDiscord_ | <Marrakezh%brb> nico.createWindow("Tests", 128, 128, 4) |
13:41:05 | FromDiscord_ | <Marrakezh%brb> |
13:41:07 | FromDiscord_ | <Marrakezh%brb> nico.run(gameInit(), gameUpdate(dt: float), gameDraw()) |
13:41:08 | federico3 | Araq: it's a code dump, no way to stop it now |
13:41:09 | FromDiscord_ | <Marrakezh%brb> ``` |
13:41:10 | FromDiscord_ | <Marrakezh%brb> sorry : P |
13:41:19 | FromGitter | <kaushalmodi> use ix.io |
13:41:19 | FromGitter | <Vindaar> half my screen is covered by messages :P |
13:41:23 | FromGitter | <kaushalmodi> or any pastebin you like |
13:41:33 | Araq | 1. use any pastebin. |
13:41:33 | narimiran | @Vindaar you have one veeeery long screen then :P |
13:41:47 | FromGitter | <Vindaar> nah, my dunst messages disappear quickly enough :P |
13:41:52 | FromDiscord_ | <Marrakezh%brb> oh sorry, what happened ? |
13:42:50 | FromGitter | <Vindaar> this happened: https://i.imgur.com/WtgVcYl.png |
13:43:07 | FromDiscord_ | <Marrakezh%brb> oh. sorry |
13:43:19 | FromGitter | <Vindaar> no worries :) |
13:44:10 | Araq | 2. what do you think this means? |
13:44:12 | Araq | nico.run(gameInit(), gameUpdate(dt: float), gameDraw()) |
13:44:42 | Araq | I have no idea, yes, gameUpdate takes a float, why do you think the compiler needs to be remembered? |
13:45:03 | Araq | er, 'reminded' |
13:45:15 | FromDiscord_ | <Marrakezh%brb> I think it is to take the functions to the compiler, or something like that |
13:48:00 | FromDiscord_ | <Marrakezh%brb> wait a sec |
13:57:55 | * | hoijui quit (Quit: Leaving) |
14:06:25 | * | laaron quit (Remote host closed the connection) |
14:07:32 | * | Trustable joined #nim |
14:08:17 | * | PMunch quit (Remote host closed the connection) |
14:09:19 | * | laaron joined #nim |
14:27:53 | FromDiscord_ | <rupansh> is there any way to convert webp images in a stream to png images |
14:28:00 | FromDiscord_ | <rupansh> without saving them to the disk that is |
14:29:33 | * | Jesin quit (Quit: Leaving) |
14:30:08 | FromGitter | <mratsim> Can you even stream png images? |
14:30:45 | FromGitter | <mratsim> in anycase, the images support in Nim is pretty much reliant on C libraries at the moment. |
14:35:50 | FromGitter | <kaushalmodi> What's the PackageFileParsed error on Appveyor? https://ci.appveyor.com/project/Araq/nim/builds/25192557/job/98rqyd7hu40pd3jf#L1620 |
14:36:57 | FromDiscord_ | <rupansh> Oof |
14:37:11 | FromDiscord_ | <rupansh> I need to do some resizing of the image and convert it to png after that |
14:37:16 | FromDiscord_ | <rupansh> would be nice if its possible |
14:39:48 | * | laaron quit (Remote host closed the connection) |
14:39:51 | * | neceve quit (Ping timeout: 258 seconds) |
14:44:24 | Araq | wrong view, try https://ci.appveyor.com/project/Araq/nim/builds/25192557/job/98rqyd7hu40pd3jf/tests |
14:44:42 | Araq | so nim-chronos failed |
14:44:52 | Araq | for some network related stuff |
14:46:11 | * | Jesin joined #nim |
14:47:27 | narimiran | @kaushalmodi that one fails whenever some package fails. |
14:48:15 | FromGitter | <kaushalmodi> Got it. |
14:48:23 | narimiran | please don't reset your PR |
14:48:31 | FromGitter | <kaushalmodi> Ok |
14:48:34 | narimiran | appveyor is already too busy, and this is basically green |
14:50:31 | * | laaron joined #nim |
14:54:58 | * | sacredfrog quit (Quit: ZNC 1.7.3 - https://znc.in) |
14:56:07 | * | sacredfrog joined #nim |
14:56:24 | * | sacredfrog quit (Remote host closed the connection) |
14:58:02 | * | theelous3_ joined #nim |
14:58:29 | * | sacredfrog joined #nim |
15:06:43 | * | PMunch joined #nim |
15:06:45 | * | Senketsu joined #nim |
15:27:34 | * | hoijui joined #nim |
15:28:48 | * | leorize joined #nim |
15:29:08 | * | Trustable quit (Remote host closed the connection) |
15:32:13 | * | Trustable joined #nim |
15:37:01 | leorize | the hcr test is among the flaky ones on azure |
15:38:40 | * | floppydh quit (Quit: WeeChat 2.4) |
15:38:56 | leorize | is there anyway to know the versions of windows and osx on appveyor and travis? |
15:43:35 | leorize | narimiran: nimly is failing on azure, is it expected? |
15:44:12 | narimiran | leorize: packages should be green, since 6 hours ago |
15:44:41 | leorize | great, more azure probs |
15:47:28 | * | nsf joined #nim |
15:53:18 | * | sealmove quit (Quit: WeeChat 2.4) |
16:01:25 | * | PMunch quit (Remote host closed the connection) |
16:05:49 | leorize | narimiran: have you tried nimsuggest on devel? |
16:05:58 | leorize | with my plugin |
16:06:10 | narimiran | yeah, i'm using it all the time, don't i? :) |
16:06:30 | leorize | getting an out of range error here :p |
16:06:53 | narimiran | since when? |
16:06:58 | leorize | since just now |
16:07:09 | leorize | just updated the compiler |
16:08:24 | leorize | narimiran: you'd need to build nimsuggest yourself with nim c -d:release nimsuggest/nimsuggest.nim |
16:08:35 | leorize | the default config in koch uses -d:danger |
16:09:50 | leorize | ah, looks like this is a known bug |
16:10:00 | leorize | gotta fix my build script to add -d:danger |
16:11:00 | leorize | narimiran: can you give #11473 a ci restart? |
16:12:54 | narimiran | the usual answer would be "appveyor is already too busy, and this is basically green", but this touches appveyor config, so: yes, i restarted it |
16:16:25 | shashlick | @dom96 - https://github.com/nim-lang/nimble/issues/665 |
16:19:20 | dom96 | nice |
16:19:33 | dom96 | The error message should be far better for this. |
16:19:37 | dom96 | Can you improve it as well? |
16:20:04 | dom96 | i.e. catch the ini parse error and add "Cannot read output from `nim e`" or something |
16:23:50 | leorize | shashlick: do you have windows running atm? |
16:23:52 | shashlick | well, I bypassed stdout altogether in my change |
16:23:56 | shashlick | yes leorize |
16:24:24 | shashlick | @dom96 - the code fix basically uses the outfile to get pkg info now instead of using stdout |
16:24:30 | shashlick | similar to json |
16:24:39 | shashlick | if you could review, i'll create a PR and push |
16:24:47 | leorize | can you try running the tests/float/tfloatrange.nim in Nim's source? |
16:25:05 | leorize | testament/testament run tests/float/tfloatrange.nim should do |
16:25:07 | dom96 | shashlick create a PR, PRs are for review purposes |
16:27:10 | * | deech_ joined #nim |
16:30:04 | shashlick | ok cool |
16:35:19 | leorize | shashlick: have you seen my msgs above? :p |
16:35:56 | shashlick | on a call, will check soon |
16:37:07 | shashlick | @dom96 - https://github.com/nim-lang/nimble/pull/667 |
16:38:43 | * | natrys joined #nim |
16:40:00 | * | c3v0axz quit (Ping timeout: 248 seconds) |
16:40:58 | * | c3v0axz joined #nim |
16:48:55 | shashlick | @leorize - updated to latest devel, ran koch test cat float and it passed |
16:49:02 | shashlick | including tfloatrange.nim |
16:49:44 | leorize | alright, so either I configure azure wrong, or microsoft servers have voodoo magic that crashes every build |
16:50:39 | shashlick | i tested 32-bit though |
16:50:42 | shashlick | is this 64-bit |
16:50:47 | leorize | yea |
17:17:22 | leorize | I think azure is haunted or smt like that... |
17:17:43 | leorize | everytime I force push, osx will build correctly and passes hcr tests |
17:18:22 | leorize | after a few more commits, hcr tests will fail on osx, unconditionally |
17:20:54 | narimiran | something gets cached? |
17:20:56 | shashlick | sorry leorize, i gotta run, will try 64-bit later in the evening |
17:21:53 | leorize | narimiran: possibly |
17:26:49 | Zevv | wow, the arm mbed TLS library feels like heaven if your standards are set by OpenSSL |
17:38:24 | * | jjido joined #nim |
18:00:12 | shashlick | We now have debug enabled on our main Nim repos on Travis so it will be possible to remote debug |
18:00:27 | shashlick | Also Nim and nightlies will have 75 minutes timeout |
18:29:14 | * | deech_ quit (Remote host closed the connection) |
18:29:42 | * | deech_ joined #nim |
18:36:11 | * | al_ quit (Quit: al_) |
18:49:04 | * | i7sDream_ quit (Remote host closed the connection) |
18:51:48 | * | smitop joined #nim |
18:53:12 | * | hoijui quit (Quit: Leaving) |
19:10:25 | * | couven92 quit (Quit: Client disconnecting) |
19:36:07 | * | I_Right_I joined #nim |
19:36:26 | * | Vladar joined #nim |
19:54:14 | * | rockcavera quit (Remote host closed the connection) |
19:56:27 | * | nsf quit (Quit: WeeChat 2.4) |
19:59:13 | * | rockcavera joined #nim |
20:04:58 | * | narimiran_ joined #nim |
20:05:47 | * | narimiran quit (Ping timeout: 248 seconds) |
20:13:48 | * | lritter quit (Ping timeout: 258 seconds) |
20:22:49 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
20:23:32 | leorize | narimiran_: yea it was cached |
20:23:38 | narimiran_ | :) |
20:23:51 | leorize | got some clean up param in and it's passing, except for tfloatrange |
20:24:10 | leorize | that one's a mystery |
20:24:25 | narimiran_ | remind me tomorrow to take a look at that one |
20:24:25 | leorize | shashlick: have you tested w windows 64 bit yet? |
20:26:48 | shashlick | Nope |
20:26:51 | shashlick | In an hour |
20:30:03 | * | narimiran_ quit (Ping timeout: 245 seconds) |
20:31:33 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
20:32:01 | * | laaron joined #nim |
20:34:16 | * | Trustable quit (Remote host closed the connection) |
20:36:25 | * | Vladar quit (Remote host closed the connection) |
20:36:38 | * | natrys quit (Quit: natrys) |
20:49:47 | * | mbarkhau_ quit (Quit: Leaving) |
20:52:21 | * | lf-araujo joined #nim |
21:19:55 | * | PMunch joined #nim |
21:59:33 | * | krux02 quit (Remote host closed the connection) |
22:04:29 | shashlick | @leorize - does your csources makefile support detecting 32/64-bit? |
22:08:41 | shashlick | 64-bit also passed @leorize |
22:11:42 | shashlick | doesn't look like your makefile detects gcc like build.bat does |
22:11:57 | shashlick | https://github.com/nim-lang/csources/blob/master/build.bat#L9 |
22:12:37 | * | lf-araujo quit (Remote host closed the connection) |
22:21:21 | FromDiscord_ | <exelotl> Hey, does anyone know how I can fix this template? https://gist.github.com/exelotl/dc95f8a1c6062174809caf828cac42a2 |
22:22:16 | FromDiscord_ | <exelotl> it doesn't compile because it tries to substitute src in 2 places, and dst in 2 places |
22:22:52 | FromDiscord_ | <exelotl> so it produces e.g. REG_DMA[ch].myPointer = cast[uint32](myPointer) |
22:23:04 | FromDiscord_ | <exelotl> but what I really want is REG_DMA[ch].src = cast[uint32](myPointer) |
22:23:21 | * | lf-araujo joined #nim |
22:23:23 | FromDiscord_ | <exelotl> so, leave the field name as-is |
22:23:50 | FromDiscord_ | <exelotl> but I'd prefer not to change the names of the src and dst parameters |
22:27:33 | FromDiscord_ | <exelotl> eh whatever I guess I'll just make it a proc |
22:28:10 | FromDiscord_ | <exelotl> I'm trying to strictly adhere to a C API but I guess I should know when to cut my losses |
22:32:59 | shashlick | why don't you just use a different param name |
22:34:52 | * | PMunch quit (Remote host closed the connection) |
22:37:53 | FromDiscord_ | <exelotl> cause I want to be able to do DMA_TRANSFER(dst = foo, src = bar, ...) while using names that are consistent with the rest of the codebase |
22:39:50 | shashlick | must be some trick, never know |
22:41:18 | FromDiscord_ | <exelotl> it's ok, I can just make it a proc |
23:11:04 | * | smitop quit (Quit: Connection closed for inactivity) |
23:22:19 | * | lf-araujo quit (Quit: lf-araujo) |
23:22:23 | * | lf-araujo joined #nim |
23:28:33 | * | Calinou quit (Ping timeout: 244 seconds) |
23:30:54 | * | Calinou joined #nim |
23:31:04 | * | I_Right_I quit (Remote host closed the connection) |
23:35:19 | * | stefanos82 quit (Quit: Quitting for now...) |
23:38:26 | * | dwdv quit (Ping timeout: 258 seconds) |
23:47:44 | * | deech_ quit (Ping timeout: 248 seconds) |
23:59:27 | * | lf-araujo quit (Remote host closed the connection) |