00:13:18 | * | pafmaf quit (Ping timeout: 250 seconds) |
00:14:13 | * | nsf quit (Quit: WeeChat 1.5) |
00:22:25 | * | nimmerstill joined #nim |
00:32:20 | * | saml_ joined #nim |
00:47:27 | * | HakanD joined #nim |
00:50:13 | * | yglukhov joined #nim |
00:51:01 | * | libman quit (Remote host closed the connection) |
00:52:12 | * | HakanD quit (Ping timeout: 252 seconds) |
00:52:43 | * | pafmaf joined #nim |
00:54:41 | * | yglukhov quit (Ping timeout: 258 seconds) |
01:07:50 | * | pafmaf quit (Read error: Connection reset by peer) |
01:10:41 | * | kulelu88 quit (Quit: Leaving) |
01:12:58 | * | mitai quit (Quit: Konversation terminated!) |
01:13:20 | * | mitai joined #nim |
01:19:16 | * | hcorion joined #nim |
01:21:15 | hcorion | Hi all, would the developers object if I added mingw detectable os in the csources build.sh, currently msys2 uses a patch file, but I don't see why it couldn't be official |
01:21:45 | Xe | why does msys2 use a patch? |
01:22:23 | hcorion | Because build.sh doesn't detect mingw as a proper os |
01:22:35 | hcorion | The code is very basic just, |
01:22:36 | hcorion | *mingw* ) + myos="windows" + ;; |
01:22:51 | hcorion | After line 94 |
01:22:55 | Xe | oh, should be pretty easy to patch |
01:23:12 | Xe | lemme see where that script is generated |
01:23:36 | Xe | https://github.com/nim-lang/Nim/blob/devel/tools/niminst/buildsh.tmpl |
01:23:42 | Xe | patch this file |
01:24:19 | hcorion | Cool, ok |
01:25:13 | hcorion | So, what about a pull request for that change? |
01:25:34 | Xe | we'd take it yeah |
01:25:42 | hcorion | Ok, cool. I'll do that |
01:26:16 | * | chemist69 quit (Disconnected by services) |
01:26:21 | * | chemist69_ joined #nim |
01:27:05 | hcorion | csources would then have to be regenerated then, would it not? |
01:28:02 | Xe | yeah, bug Araq about it once you have the PR up |
01:28:23 | hcorion | Ok, got it. |
01:28:26 | hcorion | Thanks! |
01:28:45 | Xe | np |
01:48:11 | * | HakanD joined #nim |
01:52:39 | * | HakanD quit (Ping timeout: 258 seconds) |
01:54:14 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
02:03:41 | * | nimmerst1ll joined #nim |
02:04:32 | * | nimmerstill quit (Ping timeout: 258 seconds) |
02:15:47 | * | rusua quit (Quit: Connection closed for inactivity) |
02:44:36 | * | dddddd quit (Quit: Hasta otra..) |
02:46:34 | * | saml_ quit (Remote host closed the connection) |
02:48:56 | * | HakanD joined #nim |
02:52:13 | * | yglukhov joined #nim |
02:54:04 | * | HakanD quit (Ping timeout: 250 seconds) |
02:55:20 | * | nimmerst1ll quit (Quit: leaving) |
02:57:00 | * | yglukhov quit (Ping timeout: 260 seconds) |
03:00:20 | * | PMunch quit (Quit: leaving) |
03:40:19 | * | Demon_Fox quit (Quit: Leaving) |
03:50:58 | * | HakanD joined #nim |
03:55:44 | * | HakanD quit (Ping timeout: 268 seconds) |
04:09:37 | * | krux02 quit (Remote host closed the connection) |
04:51:44 | * | HakanD joined #nim |
04:53:44 | * | yglukhov joined #nim |
04:56:28 | * | HakanD quit (Ping timeout: 260 seconds) |
04:58:24 | * | yglukhov quit (Ping timeout: 260 seconds) |
05:03:42 | * | desophos quit (Read error: Connection reset by peer) |
05:20:48 | * | chemist69_ quit (Ping timeout: 258 seconds) |
05:23:32 | * | chemist69 joined #nim |
05:48:44 | * | mitai quit (Ping timeout: 260 seconds) |
05:51:26 | * | hcorion quit (Remote host closed the connection) |
05:52:22 | * | HakanD joined #nim |
05:56:54 | * | HakanD quit (Ping timeout: 252 seconds) |
06:00:56 | * | ARCADIVS quit (Ping timeout: 260 seconds) |
06:02:33 | * | ARCADIVS joined #nim |
06:08:00 | * | bjz joined #nim |
06:09:00 | * | fredrik92 joined #nim |
06:09:19 | * | bjz quit (Read error: Connection reset by peer) |
06:09:59 | * | bjz joined #nim |
06:13:34 | * | FuntDobra quit (Quit: leaving) |
06:13:51 | * | FuntDobra joined #nim |
06:23:56 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
06:37:02 | * | bjz joined #nim |
06:41:44 | * | FuntDobra quit (Quit: leaving) |
06:45:46 | * | claw-cat joined #nim |
06:46:57 | * | claw-cat quit (Client Quit) |
06:47:46 | * | claw-cat joined #nim |
06:48:44 | * | claw-cat quit (Client Quit) |
06:49:51 | * | claw-cat joined #nim |
06:51:01 | * | claw-cat quit (Client Quit) |
06:53:18 | * | HakanD joined #nim |
06:53:34 | * | Andris_zbx joined #nim |
06:55:32 | * | yglukhov joined #nim |
06:59:49 | * | yglukhov quit (Ping timeout: 248 seconds) |
07:10:40 | * | gokr joined #nim |
07:11:29 | * | yglukhov joined #nim |
07:11:57 | * | brechtm joined #nim |
07:18:36 | * | Trustable joined #nim |
07:19:57 | * | gangstacat joined #nim |
07:23:49 | * | nsf joined #nim |
07:44:07 | * | HakanD quit (Quit: Be back later ...) |
07:44:40 | * | HakanD joined #nim |
07:49:06 | * | HakanD quit (Ping timeout: 252 seconds) |
07:59:55 | * | yglukhov quit (Read error: Connection reset by peer) |
08:00:19 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
08:00:27 | * | yglukhov joined #nim |
08:00:42 | * | yglukhov quit (Remote host closed the connection) |
08:11:20 | * | Guest84069 joined #nim |
08:22:24 | euantor | WHat's the best way to pass an optional HWND type variable to a C function in Nim? HWND is just an int in winlean, so I can't simply pass `nil`. I'm trying to wrap this: https://msdn.microsoft.com/en-us/library/windows/hardware/ff551069(v=vs.85).aspx |
08:23:07 | euantor | This is my current proc definition and invocation https://www.irccloud.com/pastebin/AqEHgN3Z/ |
08:26:45 | FromGitter | <endragor> Isn’t HANDLE defined as `void *` in winapi? Not sure why it was wrapped as `int` in winlean |
08:27:01 | euantor | I believe it is, yes |
08:27:33 | FromGitter | <endragor> passing `0` in place of `nil` should work though |
08:27:58 | euantor | I'll give it a go and see what happens |
08:29:00 | euantor | Well, now I get `could not import: SetupDiGetClassDevs` so off to do some more investigating I go |
08:29:04 | * | chrisheller quit (Remote host closed the connection) |
08:31:22 | * | yglukhov joined #nim |
08:42:48 | * | HakanD joined #nim |
08:52:12 | euantor | Ok, got it working. For anybody else, my solution in the end is as follows: |
08:52:18 | euantor | https://www.irccloud.com/pastebin/AQZmk8NV/ |
08:53:34 | * | yglukhov quit (Remote host closed the connection) |
08:57:57 | * | yglukhov joined #nim |
09:07:09 | * | elrood joined #nim |
09:08:22 | * | bjz joined #nim |
09:15:30 | cheatfate | what the reason to make HWND - pointer? |
09:15:52 | cheatfate | does it point to something useful? |
09:15:56 | cheatfate | euantor? |
09:16:32 | euantor | So that it can be null. It's my workaround for now, I'll probably try and clean it up once the rest of the procworks |
09:16:44 | cheatfate | or its just system identifier (index) of system structure |
09:16:48 | euantor | This is my first time trying to interface with C (and I've never written any C or C++) |
09:16:50 | cheatfate | without access |
09:17:40 | cheatfate | In C we are using pointers because they can change size automatically (on 32bit systems sizeof(char*) == 4, on 64 bit systems - 8) |
09:18:10 | cheatfate | Nim has same semantic on `int/uint` type |
09:18:35 | euantor | I'm basically following the `CEnumerateSerial::QueryUsingSetupAPI` method from CEnumerateSerial: http://www.naughter.com/enumser.html |
09:19:04 | euantor | cheatfate: in that case, what's the NULL value if I used uint - would 0 have the same meaning or a different one? |
09:19:15 | cheatfate | if you so need NULL make `const NULL = 0` |
09:19:18 | * | yglukhov quit (Remote host closed the connection) |
09:19:30 | euantor | Ok, I'll give it a go and see, thanks! |
09:28:27 | euantor | cheatfate: That worked, thanks! Now the proc works (on devel, as I need `registry.nim` too) |
09:29:54 | * | vegai left #nim (#nim) |
09:34:17 | * | ARCADIVS quit (Quit: ARCADIVS) |
09:49:40 | * | Arrrr joined #nim |
09:55:29 | lg_ | hello guys, I'm very new to nim. Would it survive well calling my C routine that will fork() ? |
09:57:10 | * | Sentreen quit (Quit: WeeChat 1.4) |
09:57:21 | * | krux02 joined #nim |
09:57:29 | Araq | lg_: sure, but you're making 2 mistakes here: |
09:57:34 | Araq | 1. you use C. |
09:57:38 | Araq | 2. you use fork. |
09:59:38 | FromGitter | <endragor> is {.borrow.} expected to work with `var` argument? |
09:59:40 | lg_ | Araq i have planty of C code to interface with, so I'm kind in forced position.. |
10:00:19 | cheatfate | lg_, then c2nim'it :) |
10:00:53 | Araq | nah, we're just messing you, sorry. I can see no reason why 'fork' wouldn't work. |
10:02:00 | FromGitter | <Araq> @endragor I don't think 'var' is to blame when .borrow fails |
10:03:48 | FromGitter | <endragor> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5800ad848eaaaea36695778b] |
10:04:37 | FromGitter | <Araq> ouch :-) |
10:06:36 | FromGitter | <cheatfate> sometime ago somebody said me `borrow` is experimental... |
10:07:42 | cheatfate | and i think the only thing you can borrow is `==` :) |
10:08:53 | FromGitter | <endragor> no, borrow works fine unless `var` is involved. |
10:12:05 | cheatfate | endragor: but `var` happens in more then 80% of reloaded operators :) |
10:12:26 | Araq | pretty sure it's a regression, looking into it |
10:16:06 | krux02 | Araq: Is there any reason why I can't find a capacity method for the seq type in system? |
10:16:37 | FromGitter | <endragor> @cheatfate dunno, I usually borrow stuff like `$`, `hash`, boolean operators. none of those involve `var` |
10:16:40 | Araq | you don't mess with cap |
10:17:25 | * | yglukhov joined #nim |
10:17:26 | Araq | fixed. |
10:17:33 | krux02 | you mean it is intentionally left out? |
10:17:49 | Araq | I never ever needed it, why do you? |
10:18:17 | * | yglukhov quit (Remote host closed the connection) |
10:18:18 | Araq | (yes, we like to leave out unnecessary stuff) |
10:18:37 | FromGitter | <endragor> @Araq you might want to close this https://github.com/nim-lang/Nim/issues/4897 :-P |
10:18:57 | flyx | well if we have neqSeqOfCap for optimization, we should also be able to `if s.cap < something: s.setCap(something)` |
10:18:58 | flyx | *newSeqOfCap |
10:19:18 | krux02 | I used it to write my test programs that helped me understand how seq behaves and when it calls a resize. |
10:19:55 | krux02 | flyx, res I agree |
10:20:04 | krux02 | flyx, yes I agree |
10:21:08 | Araq | you can achieve the same with 2 setLen calls |
10:21:20 | Araq | not ideal, but not really expensive either |
10:21:23 | * | irrequietus joined #nim |
10:21:31 | krux02 | from my c++ programming background I already have a habit of calling reserve occasionally. I don't see it as a bad habit and I don't see any good reason to forbid it. |
10:22:31 | * | brechtm_ joined #nim |
10:23:08 | Arrrr | newSeq is created with 0 length by default. Does it actually allocate anything? |
10:23:45 | krux02 | Araq: actually I have a function defined locally that does that |
10:24:17 | krux02 | Arrrr: yes it does allocate |
10:24:43 | krux02 | it does allocate an object that has the length and the capacity set to 0 |
10:25:09 | * | gokr quit (Ping timeout: 248 seconds) |
10:25:22 | krux02 | basically it allocates this tuple[length, capacity: Natural; data: array[0, T]] |
10:25:45 | Arrrr | I would give it a default len of 8-16, but i don't know if there are any downsides |
10:25:56 | Arrrr | Btw, very interesting proc krux02 |
10:26:17 | * | brechtm quit (Ping timeout: 260 seconds) |
10:27:13 | * | brechtm_ quit (Ping timeout: 260 seconds) |
10:27:23 | krux02 | Arrrr: thanks, but I guess I got the idea from the chat here |
10:28:57 | Araq | it's also wrong iirc, some bits capacity are used for something else |
10:30:33 | krux02 | Araq: Then why shouldn't there be a capacity proc in the system module, so that I am not forced to write my own wrong implementation of it? |
10:32:00 | Araq | how else would you learn that Nim is not C++? |
10:32:04 | Araq | :P |
10:32:10 | krux02 | It's not that I make anything dependent of the capacity, but sometimes I really like to detect resizes of my collections, or I would like to know the real underlying capacity of my structures |
10:33:18 | krux02 | That's something I really like about Nim, that I can apply a lot of my c++ knowledge |
10:33:52 | krux02 | It's c++ without headers |
10:34:22 | Arrrr | Araq, why is the resize check done after add and not before? i think it should be the opposite. That's at least what i get from my test |
10:34:27 | krux02 | and a syntax that make my statements almost {feel(naked)} |
10:35:02 | FromGitter | <endragor> Nim is C++ without headers - best definition ever |
10:35:56 | HakanD | not really, that mindset leads to lots of headaches |
10:36:12 | FromGitter | <endragor> that was sarcasm |
10:36:36 | HakanD | flied over my head than (: |
10:37:51 | krux02 | Ok Nim is not only c++ and not all of c++ is in Nim, but surely a c++ and Nim share a lot in common |
10:38:03 | Araq | krux02: I will accept a PR that adds cap and setCap to system I guess, but then it needs to produce something sane at compiletime |
10:38:07 | Araq | and for the JS backend |
10:38:23 | Araq | and you can argue Tables need the same for "consistency" |
10:39:00 | Araq | the consistency argument is my favourite, it never stops creating work ... |
10:40:19 | FromGitter | <endragor> I don’t really see similarities between Nim and C++, except very few that can be seen between any languages with strong static typing. Unless you used C++ as “C with generic containers”. |
10:40:53 | * | dmi0 quit (Ping timeout: 258 seconds) |
10:41:24 | krux02 | Araq: I have no idea about Javascript. I just never cared about that language at all, and your argument is actually a quite good argument, but still think capacity is something that should be there. |
10:41:37 | cheatfate | i think `Nim comparable to C++` as `Coffee comparable to Tea` |
10:41:52 | krux02 | It both has caffeine |
10:42:00 | krux02 | keeps you awake |
10:42:21 | krux02 | the awake thing is also true for c++ and Nim ;) |
10:42:26 | Araq | "C with generic containers" is how C++ should be used :-) |
10:43:41 | krux02 | I agree on that. That's how I use c++, too. |
10:43:41 | baabelfish | C++ should be used like C++ without coupling data and logic |
10:44:26 | krux02 | I reject object oriented programming, because it does exactly that |
10:45:30 | krux02 | I like functional programming, but I don't mind state changes local to the function body, but I do count allocation as unwanted side effect. |
10:47:07 | * | bjz_ joined #nim |
10:48:04 | krux02 | c++ is not a bad language, it's just desigend badly. So bad it even tricks you to use something you better never started using, and when you realize you should have never used it, it's already all over your code base. And new people to the project keep adding more usage of it. |
10:48:34 | * | bjz quit (Ping timeout: 250 seconds) |
10:49:47 | krux02 | I should stop now, I could bash about c++ all day long |
11:02:18 | * | Snircle joined #nim |
11:04:28 | * | HakanD quit (Quit: Be back later ...) |
11:04:55 | * | HakanD joined #nim |
11:09:18 | * | HakanD quit (Ping timeout: 252 seconds) |
11:12:29 | * | HakanD joined #nim |
11:16:17 | baabelfish | With C++ you at least have options |
11:16:26 | baabelfish | I do java at work |
11:20:43 | * | stisa joined #nim |
11:21:10 | FromGitter | <endragor> @baabelfish: what kind of options do you mean? |
11:21:47 | * | mitai joined #nim |
11:23:13 | baabelfish | I can choose best paradigm for the task at hand |
11:23:17 | flyx | SIGSEGV |
11:23:29 | Arrrr | haha |
11:24:16 | baabelfish | It's too bad they dropped unified call syntax from 17 :( |
11:32:06 | baabelfish | https://github.com/baabelfish/cpp-metalib/blob/master/src/tuple.hpp I'm also really glad that I found Nim in time... |
11:34:56 | flyx | that look suspiciously like the average boost header |
11:40:56 | baabelfish | flyx: I like templates :P |
11:41:35 | * | krux02 quit (Ping timeout: 260 seconds) |
11:47:34 | FromGitter | <dom96> speaking of consistency, repr for NimNode's shouldn't return the Nim code that represents the NimNode. |
11:48:40 | * | brechtm joined #nim |
11:54:28 | * | yglukhov joined #nim |
11:59:56 | * | yglukhov quit (Remote host closed the connection) |
12:12:30 | * | Arrrr quit (Ping timeout: 258 seconds) |
12:15:43 | * | Arrrr joined #nim |
12:17:11 | * | yglukhov joined #nim |
12:22:26 | cheatfate | dom96, is this a problem to fix this `asyncfutures.nim(202, 13) Hint: conversion from Future[system.int] to itself is pointless [ConvFromXtoItselfNotNeeded]`? |
12:34:10 | * | Arrrr quit (Quit: WeeChat 1.5) |
12:41:24 | * | GustavoLapasta joined #nim |
12:48:41 | * | fredrik92 quit (Quit: Client disconnecting) |
12:48:54 | * | HakanD quit (Quit: Be back later ...) |
12:49:17 | * | fredrik92 joined #nim |
12:49:20 | * | HakanD joined #nim |
12:51:20 | FromGitter | <BontaVlad> noob question: i'm reading from a binary file stream: fs.readInt8().int returns -1 instead of 255. I tried also converting to uint8 but gives me a huge number. I presume is a interpretation problem but I don't know the solution. |
12:53:12 | Araq | read a byte instead? |
12:53:34 | Araq | actually, don't read bytes |
12:53:44 | Araq | use something like readBuffer() |
12:53:45 | * | HakanD quit (Ping timeout: 260 seconds) |
12:54:13 | * | HakanD joined #nim |
12:54:23 | FromGitter | <BontaVlad> I tried with readData(buff, sizeof(uint8)) |
12:54:35 | FromGitter | <BontaVlad> But I don't know pointer magic stuff yet |
12:55:21 | FromGitter | <endragor> `cast[uint8](fs.readInt8())` should work for you |
12:56:09 | FromGitter | <endragor> var u: uint8 ⏎ `fs.readData(addr u, 1)` should work, too. |
12:58:00 | FromGitter | <endragor> btw, @dom96 do you plan to do something about https://github.com/nim-lang/Nim/issues/4322 ? |
13:00:02 | FromGitter | <BontaVlad> @endragor works like a charm. Ty * 3 |
13:00:24 | lg_ | Is there nim's analogue to Python's "pass" for "try: ... except IOError: pass" idiom ? |
13:00:34 | FromGitter | <BontaVlad> discard |
13:01:01 | lg_ | excellent! thanks |
13:02:43 | * | irrequietus quit (Ping timeout: 268 seconds) |
13:11:12 | * | ZMatt2 quit (Max SendQ exceeded) |
13:12:38 | cheatfate | maybe in future `unsigned Nim people` will win `signed Nim dictators` :) |
13:16:23 | * | brechtm quit (Remote host closed the connection) |
13:16:59 | * | brechtm joined #nim |
13:17:13 | * | irrequietus joined #nim |
13:21:06 | * | brechtm quit (Ping timeout: 250 seconds) |
13:23:54 | FromGitter | <dom96> @endragor first time I've seen it |
13:25:12 | FromGitter | <dom96> I plan to encourage everyone to help me fix the stdlib, so keep this in mind and remind me when the time comes for "The Great Stdlib Review" |
13:28:58 | * | brechtm joined #nim |
13:31:03 | Araq | plan to encourage for "The great stldib review"? there are so many things wrong with this sentence :P |
13:31:42 | Araq | don't "Plan to encourage", do encourage. |
13:32:00 | * | yglukhov quit (Remote host closed the connection) |
13:32:11 | Araq | and I would prefer a little stdlib review |
13:32:49 | Araq | renaming toUpper to UpperAscii is tiresome and pointless. |
13:33:12 | Araq | I feel like being punished for the people who cannot read any kind of documentation. |
13:34:27 | Xe | other languages like Go and Haskell call it `toUpper` |
13:35:28 | Araq | Xe: the one in unicode.nim is still called toUpper |
13:35:48 | * | Demon_Fox joined #nim |
13:36:17 | Xe | ah |
13:36:32 | FromGitter | <BontaVlad> python "hello".upper() |
13:36:47 | Xe | i do know that the time library needs redoing in the stdlib, but dealing with time is such a trainwreck that i'd almost rather not |
13:38:18 | cheatfate | Yeah we need to fix `unsigned` types first :) |
13:39:03 | Araq | cheatfate: the bugs wrt unsigned are all not unsigned specific, but rather about generic type constraints |
13:39:28 | Araq | it just so happens only unsigned triggers them |
13:40:05 | cheatfate | Araq, i think its a problem when you can't make `shr` of uint32 by uint8 without casting uint8 to uint32 |
13:40:22 | cheatfate | so we are talking about same thing? |
13:40:32 | Araq | pretty sure we are, yes |
13:45:34 | * | krux02 joined #nim |
13:45:53 | * | yglukhov joined #nim |
13:47:17 | krux02 | Araq: I was looking into setLengthSeq, what do +% and *% operators do? |
13:54:51 | Araq | treat signed integers as unsigned for the operation, they predate unsigned numbers |
13:56:44 | krux02 | ok |
13:57:17 | krux02 | in typeinfo.nim:73 I see that TGenericSeq really starts with just len and space |
13:58:44 | krux02 | I don't see that there is any byte used for something else that is not either the length or the capacity |
14:01:22 | krux02 | is +% and *% actually different for singed and unsigned numbers? I always thought they are identical, meaning they use the exact same cpu instructions. |
14:02:44 | Araq | + for signed produces overflow checks |
14:03:00 | Araq | * is quite different for the CPU |
14:06:12 | krux02 | ok for the overflow checks that's true, but i can't find an example, where it matters for the result bits weather the input has to be interpreted signed or unsigend, even for *. |
14:10:35 | Araq | https://en.wikipedia.org/wiki/Binary_multiplier |
14:10:49 | Araq | „If b had been a signed integer instead of an unsigned integer, then the partial products would need to have been sign-extended up to the width of the product before summing. If a had been a signed integer, then partial product p7 would need to be subtracted from the final sum, rather than added to it.“ |
14:14:15 | FromGitter | <BontaVlad> @binary related stuff, how can I write binary stuff to a file? similar to what pack in python does. I am working on a tga image library in nim and now I am at the stage where I save the data. |
14:16:23 | FromGitter | <Araq> writeBuffer? |
14:17:01 | FromGitter | <BontaVlad> do I have to encode the data before writing? |
14:18:46 | cheatfate | BontaVlad: no if you handle properly little/big endian integers |
14:20:25 | FromGitter | <BontaVlad> ok, I will look into it thx: @Araq, @cheatfate |
14:20:36 | * | stisa quit (Quit: Leaving) |
14:20:40 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
14:27:02 | * | pregressive joined #nim |
14:27:08 | * | pregressive quit (Remote host closed the connection) |
14:27:20 | * | pregressive joined #nim |
14:48:05 | * | Guest84069 quit (Ping timeout: 260 seconds) |
14:48:45 | * | nsf quit (Quit: WeeChat 1.5) |
14:49:01 | * | reactormonk quit (Ping timeout: 260 seconds) |
14:50:27 | * | HakanD quit (Quit: Be back later ...) |
14:50:54 | * | HakanD joined #nim |
14:53:13 | * | HakanD quit (Read error: Connection reset by peer) |
14:58:33 | * | Andris_zbx quit (Remote host closed the connection) |
14:59:08 | * | HakanD joined #nim |
15:14:41 | * | Guest84069 joined #nim |
15:21:45 | * | GustavoLapasta quit (Quit: Leaving) |
15:28:13 | * | chemist69 quit (Ping timeout: 260 seconds) |
15:30:42 | * | chemist69 joined #nim |
15:39:19 | * | libman joined #nim |
15:45:41 | * | yglukhov quit (Remote host closed the connection) |
15:46:09 | * | lg_ quit (Remote host closed the connection) |
15:47:21 | * | arnetheduck quit (Ping timeout: 260 seconds) |
15:59:24 | * | HakanD quit (Quit: Be back later ...) |
15:59:37 | * | Trustable quit (Remote host closed the connection) |
15:59:58 | * | HakanD joined #nim |
16:03:46 | * | HakanD_ joined #nim |
16:04:20 | * | HakanD quit (Read error: Connection reset by peer) |
16:06:47 | * | HakanD_ quit (Client Quit) |
16:07:20 | * | HakanD_ joined #nim |
16:11:49 | * | HakanD_ quit (Ping timeout: 248 seconds) |
16:13:55 | * | yglukhov joined #nim |
16:18:24 | * | yglukhov quit (Ping timeout: 252 seconds) |
16:20:38 | * | chrisheller joined #nim |
16:20:42 | * | chrisheller quit (Remote host closed the connection) |
16:20:53 | * | chrisheller joined #nim |
16:25:41 | * | ARCADIVS joined #nim |
16:29:20 | * | jivank[m] joined #nim |
16:30:16 | * | desophos joined #nim |
16:33:56 | krux02 | BontaVlad: you can also take a look into memory mapped files,there is a nim module for operating system independend usage |
16:36:13 | * | reactormonk joined #nim |
16:40:10 | * | confundus joined #nim |
16:41:58 | * | HakanD_ joined #nim |
16:44:46 | * | confundus quit (Client Quit) |
16:46:54 | * | HakanD_ quit (Quit: Be back later ...) |
16:47:08 | * | Matthias247 joined #nim |
16:47:28 | * | HakanD_ joined #nim |
16:51:42 | * | HakanD_ quit (Ping timeout: 250 seconds) |
16:56:26 | * | Guest84069 quit (Ping timeout: 268 seconds) |
16:59:52 | * | yglukhov joined #nim |
17:08:06 | * | jjido joined #nim |
17:09:14 | * | pregressive quit (Remote host closed the connection) |
17:09:29 | * | pregressive joined #nim |
17:17:15 | * | jjido quit (Ping timeout: 258 seconds) |
17:19:19 | * | jjido joined #nim |
17:19:29 | * | confundus joined #nim |
17:22:37 | * | yglukhov quit (Remote host closed the connection) |
17:28:55 | * | jjido quit (Remote host closed the connection) |
17:47:39 | * | brechtm quit (Remote host closed the connection) |
17:55:10 | * | jjido joined #nim |
17:57:02 | * | user__ joined #nim |
17:57:05 | * | user__ left #nim (#nim) |
17:57:29 | * | Jesin quit (Quit: Leaving) |
17:57:44 | * | flaviut joined #nim |
17:59:01 | * | confundus quit (Ping timeout: 248 seconds) |
17:59:52 | * | jjido quit (Read error: Connection reset by peer) |
18:00:05 | * | Jesin joined #nim |
18:00:45 | * | dddddd joined #nim |
18:00:46 | * | confundus joined #nim |
18:00:53 | * | jjido joined #nim |
18:01:02 | flaviut | dom96: can I/you merge #4814? |
18:02:03 | * | jjido quit (Read error: Connection reset by peer) |
18:02:50 | dom96 | flaviut: I would have done it already but it seemed risky given 0.15.2 was meant to be released soon |
18:02:54 | dom96 | Araq: Can we merge it? |
18:04:19 | jivank[m] | Any recommendations for a websocket client? |
18:05:02 | Araq | dom96: 0.15.2 is mostly blocked by our CI infrastructure |
18:06:33 | dom96 | how so? |
18:06:51 | dom96 | niminst is broken not the CI infrastructure AFAIK |
18:07:05 | euantor | If there's nothing needing done on the Windows side for CI just let me know |
18:08:05 | Araq | niminst produces working .zip files on my machine |
18:08:09 | Araq | how is it broken? |
18:08:55 | Araq | jivank[m]: there is at least one nimble package implementing websockets |
18:09:06 | dom96 | I don't know, the logs are here: https://gitlab.com/nim-lang/nim/builds/5130219 |
18:11:52 | flaviut | dom96: Ok, I thought there'd be some reason like that. I'd like to let @scriptum know what's holding up getting it merged |
18:12:00 | * | nsf joined #nim |
18:12:42 | euantor | Not sure what would cause that dom96 - looks like a missing file or wrong path |
18:12:56 | dom96 | I think it's better if we wait. The downside is slower performance, but the potential issues could be huge. I don't want 0.15.2 to be released with a broken 're' module. |
18:13:35 | dom96 | euantor: I'm pretty sure it's trying to perform the following action "Copying build\build.bat to build\nim-0.15.1\build.bat" |
18:13:48 | dom96 | so in all likelihood build\nim-0.15.1 doesn't exist |
18:13:51 | flaviut | dom96: Thanks, I understand! I'll comment on the PR |
18:15:01 | dom96 | Araq: All the CI runner is executing is `koch.exe winrelease`, is that what you ran locally? |
18:15:08 | euantor | Yeah, that's what it looks like to me too |
18:15:12 | Araq | dom96: I agree with you about the re.nim PR |
18:15:21 | dom96 | Araq: great :) |
18:17:50 | Araq | dom96: I patched ci/build.bat |
18:18:25 | Araq | and I cannot run it locally since the paths differ |
18:18:36 | dom96 | did you? it hasn't changed since end of august |
18:18:54 | Araq | hmm let's see |
18:19:30 | dom96 | yeah, the fact that the paths are hardcoded isn't great :\ |
18:19:37 | Araq | https://github.com/nim-lang/Nim/commit/00b749c41810efe8169e5eeaea932ee63024738d |
18:20:01 | dom96 | you patched ci/nsis_build.bat then |
18:20:12 | dom96 | two different files |
18:21:03 | * | pie_ joined #nim |
18:21:43 | Araq | proc winRelease() = |
18:21:43 | Araq | exec(r"call ci\nsis_build.bat " & VersionAsString) |
18:21:56 | Araq | I patched the correct file. |
18:22:05 | dom96 | yes |
18:22:10 | dom96 | I'm not saying you didn't |
18:22:20 | dom96 | But there must be a problem with `koch zip` |
18:24:25 | Araq | `koch zip` is exactly what I tested though |
18:25:05 | * | astocko quit (Ping timeout: 260 seconds) |
18:26:06 | * | astocko joined #nim |
18:46:09 | * | regtools_ joined #nim |
18:49:21 | * | michael_campbel- joined #nim |
18:49:50 | * | yaiyan_ joined #nim |
18:50:01 | * | r4vi quit (Ping timeout: 258 seconds) |
18:51:43 | * | chemist69 quit (*.net *.split) |
18:51:44 | * | elrood quit (*.net *.split) |
18:51:44 | * | gangstacat quit (*.net *.split) |
18:51:44 | * | hohlerde quit (*.net *.split) |
18:51:45 | * | jivank[m] quit (*.net *.split) |
18:51:45 | * | Yaiyan quit (*.net *.split) |
18:51:45 | * | regtools quit (*.net *.split) |
18:51:46 | * | EastByte_ quit (*.net *.split) |
18:51:46 | * | boop quit (*.net *.split) |
18:51:46 | * | jivank quit (*.net *.split) |
18:51:46 | * | joebo quit (*.net *.split) |
18:51:46 | * | michael_campbell quit (*.net *.split) |
18:51:59 | * | yaiyan_ is now known as Yaiyan |
18:52:52 | * | boop joined #nim |
18:53:28 | * | flaviut quit (Ping timeout: 250 seconds) |
18:54:09 | * | zidane_g_ quit (Ping timeout: 258 seconds) |
18:56:24 | * | jivank[m] joined #nim |
18:56:38 | * | r4vi joined #nim |
18:57:01 | * | elrood joined #nim |
18:57:07 | * | EastByte_ joined #nim |
18:57:39 | * | hohlerde joined #nim |
18:58:01 | * | jivank joined #nim |
18:58:05 | * | joebo joined #nim |
18:58:59 | * | chemist69 joined #nim |
18:59:49 | * | confundus quit (Ping timeout: 248 seconds) |
19:01:29 | * | confundus joined #nim |
19:02:13 | * | zidane_g_ joined #nim |
19:33:07 | * | UNIcodeX quit (Read error: Connection reset by peer) |
19:33:12 | * | Guest84069 joined #nim |
19:35:42 | * | krux02 quit (Remote host closed the connection) |
19:37:44 | * | PMunch joined #nim |
19:43:05 | * | HakanD_ joined #nim |
19:54:06 | * | fredrik92 quit (Read error: Connection reset by peer) |
19:56:59 | * | vendethiel joined #nim |
20:02:13 | * | confundus quit (Quit: leaving) |
20:09:13 | * | nsf quit (Quit: WeeChat 1.5) |
20:12:07 | * | krux02 joined #nim |
20:15:06 | * | fredrik92 joined #nim |
20:15:19 | * | pregressive quit (Read error: Connection reset by peer) |
20:15:28 | * | pregressive joined #nim |
20:20:58 | * | pregressive quit (Read error: Connection reset by peer) |
20:21:28 | * | pregressive joined #nim |
20:25:41 | PMunch | Hmm, I've created a function that loops through a list and matches them to various things. I want to create a macro for this, but I'm wondering about best practice. Currently it's written like you would if you created regular code, it creates some arrays loops over them and does some logic with that. But I was wondering if the macro should rather output a repetitious unrolled version of the loop. |
20:26:25 | reactormonk | PMunch, the C compiler does unrolling for you as needed |
20:28:01 | PMunch | Yes I know, but it would still need to actually create the arrays and such. The output assembly code would likely be less complex if I did unrolling myself as I could benefit from logical differences in the execution. |
20:40:21 | * | stisa joined #nim |
20:41:51 | * | gangstacat joined #nim |
20:42:40 | * | pie_ quit (Ping timeout: 250 seconds) |
20:47:05 | * | pie_ joined #nim |
20:52:19 | * | confundus joined #nim |
20:53:07 | * | confundus quit (Client Quit) |
20:54:11 | * | libman quit (Remote host closed the connection) |
20:54:42 | * | bjz joined #nim |
21:02:43 | * | elrood quit (Remote host closed the connection) |
21:11:05 | * | pie_ quit (Read error: Connection reset by peer) |
21:11:16 | * | HakanD_ quit (Quit: Be back later ...) |
21:11:49 | * | HakanD_ joined #nim |
21:12:58 | Araq | PMunch: take a look at strscans.nim to see what "unrolling" can imply |
21:13:19 | Araq | it's usually the more flexible thing and also much harder |
21:16:22 | * | HakanD_ quit (Ping timeout: 258 seconds) |
21:22:29 | * | yglukhov joined #nim |
21:24:14 | * | yglukhov quit (Remote host closed the connection) |
21:26:46 | * | arnetheduck joined #nim |
21:27:00 | stisa | Is either of https://gist.github.com/stisa/1e318f33686c7e46ef522e8982ffbc7f a bug? It's taken from https://nim-by-example.github.io/oop/ , just using `objects` instead of `ref objects` |
21:31:40 | * | krux02 quit (Remote host closed the connection) |
21:40:14 | * | yglukhov joined #nim |
21:44:06 | * | bjz_ joined #nim |
21:45:06 | * | pie_ joined #nim |
21:45:07 | * | bjz quit (Ping timeout: 258 seconds) |
21:45:29 | * | pie_ quit (Changing host) |
21:45:29 | * | pie_ joined #nim |
21:56:21 | Araq | no. |
22:09:09 | * | yglukhov quit (Remote host closed the connection) |
22:12:34 | * | yglukhov joined #nim |
22:34:52 | * | Matthias247 quit (Read error: Connection reset by peer) |
22:36:51 | * | yglukhov quit (Remote host closed the connection) |
22:36:51 | * | pregressive quit (Remote host closed the connection) |
22:37:25 | * | pregressive joined #nim |
22:37:30 | * | yglukhov joined #nim |
22:41:45 | * | yglukhov quit (Ping timeout: 252 seconds) |
22:41:45 | * | pregressive quit (Ping timeout: 252 seconds) |
22:47:37 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
22:55:04 | * | Trioxin joined #nim |
23:26:11 | * | nsf joined #nim |
23:33:01 | * | literal quit (Read error: Connection reset by peer) |
23:34:35 | * | literal joined #nim |
23:48:52 | * | nsf quit (Quit: WeeChat 1.5) |
23:53:12 | * | irrequietus quit () |
23:55:46 | * | bjz joined #nim |