<< 02-06-2018 >>

00:00:01*Electrux quit (Ping timeout: 248 seconds)
00:04:18FromGitter<kinkinkijkin> ah, I forgot, is a string literal triple or double quotes?
00:09:36FromGitter<kinkinkijkin> nvm I checked the manual
00:26:32*Electrux joined #nim
00:30:57*Electrux quit (Ping timeout: 248 seconds)
00:31:00*yglukhov[i] quit (Ping timeout: 260 seconds)
00:58:32*Electrux joined #nim
01:02:57*Electrux quit (Ping timeout: 240 seconds)
01:04:20*find0x90 joined #nim
01:06:32*Electrux joined #nim
01:08:17*find0x90 quit (Client Quit)
01:11:15*Electrux quit (Ping timeout: 260 seconds)
01:15:24*find0x90 joined #nim
01:15:35*Electrux joined #nim
01:20:16*Electrux quit (Ping timeout: 265 seconds)
01:21:01FromGitter<kinkinkijkin> hmmm, how can I just run a command and return all of its stdout?
01:21:36*yglukhov[i] joined #nim
01:23:19FromGitter<data-man> @kinkinkijkin: E.g. ```execCmdEx```
01:23:41FromGitter<kinkinkijkin> all I can find is execProcess but execProcess works
01:24:11*find0x90 quit (Ping timeout: 276 seconds)
01:26:31*Electrux joined #nim
01:28:21FromGitter<data-man> With execCmdEx you got exitCode, can be useful.
01:29:21FromGitter<kinkinkijkin> hmm, for what exactly I'm doing (just getting infos from system infos tools, execprocess will do
01:29:31FromGitter<kinkinkijkin> and may be faster if it doesn't return more
01:31:23*Electrux quit (Ping timeout: 265 seconds)
01:35:30*Electrux joined #nim
01:39:57*Electrux quit (Ping timeout: 240 seconds)
01:40:13*find0x90 joined #nim
01:42:58*find0x90 quit (Client Quit)
01:46:33*Electrux joined #nim
01:51:08*Electrux quit (Ping timeout: 268 seconds)
01:55:32*Electrux joined #nim
01:59:18*elmagopy joined #nim
02:00:12*Electrux quit (Ping timeout: 256 seconds)
02:06:27*Electrux joined #nim
02:11:19*elmagopy quit (Quit: Page closed)
02:11:20*Electrux quit (Ping timeout: 260 seconds)
02:23:43FromGitter<kinkinkijkin> how do I remove all newlines?
02:23:47FromGitter<kinkinkijkin> from a string
02:26:30*Electrux joined #nim
02:26:57FromGitter<kinkinkijkin> will .replace(NewLines, by='') work?
02:29:15FromGitter<Varriount> Yep.
02:31:19*Electrux quit (Ping timeout: 265 seconds)
02:41:45*Electrux joined #nim
02:46:18*Electrux quit (Ping timeout: 265 seconds)
02:48:30*Electrux joined #nim
02:53:04*Electrux quit (Ping timeout: 265 seconds)
02:56:30*Electrux joined #nim
03:01:05*Electrux quit (Ping timeout: 256 seconds)
03:02:25*Electrux joined #nim
03:10:57*Electrux quit (Ping timeout: 265 seconds)
03:16:35*Electrux joined #nim
03:21:05*Electrux quit (Ping timeout: 248 seconds)
03:33:35*Electrux joined #nim
03:34:08*dddddd quit (Remote host closed the connection)
03:43:38FromGitter<kinkinkijkin> it's not working
03:45:05FromGitter<kinkinkijkin> it's expecting a char but it's getting a set[char], as I expected it might
03:55:27FromGitter<kinkinkijkin> okay, I think this program works now
04:13:18Electruxexit
04:13:22Electruxnevermind sorry
04:13:24*Electrux quit (Quit: WeeChat 2.1)
06:07:52*miran joined #nim
06:41:10*Vladar joined #nim
06:48:33*nsf joined #nim
06:58:39*yglukhov[i] quit (Remote host closed the connection)
06:59:13*yglukhov[i] joined #nim
07:03:55*yglukhov[i] quit (Ping timeout: 265 seconds)
07:09:57*Trustable joined #nim
07:14:46*xet7 joined #nim
07:31:31*Torro joined #nim
07:47:07*yglukhov[i] joined #nim
07:56:18*jjido joined #nim
08:04:13*gmpreussner quit (Ping timeout: 268 seconds)
08:05:31*gmpreussner joined #nim
08:44:25*skrylar joined #nim
08:56:19FromGitter<data-man> https://github.com/nim-lang/Nim/pull/7944 - MemMapFileStream. Test and review please, especially on Windows (I can't check). ⏎ @Araq: I think it can be useful for incremental compilation.
08:56:27*pwntus quit (Ping timeout: 245 seconds)
08:58:54skrylarshould probably test mmap some day. it sounds useful
09:00:56*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:01:00*thomasross quit (Remote host closed the connection)
09:01:25*thomasross joined #nim
09:07:24*xkapastel quit (Quit: Connection closed for inactivity)
09:47:26*zszf6cefj5iz quit (Ping timeout: 260 seconds)
09:48:22*zszf6cefj5iz joined #nim
09:51:51*yglukhov[i] quit (Remote host closed the connection)
09:52:24*yglukhov[i] joined #nim
09:53:08*zszf6cefj5iz quit (Ping timeout: 276 seconds)
09:53:39*zszf6cefj5iz joined #nim
09:56:50*yglukhov[i] quit (Ping timeout: 260 seconds)
10:26:30*skrylar quit (Remote host closed the connection)
10:50:54*Torro quit (Quit: -bye)
11:20:25*gb00s joined #nim
11:22:14*skrylar joined #nim
12:04:14FromGitter<Paalon> How to write like this? ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5b1287be93dc78791ca614ce]
12:09:18skrylari have no idea what that when statement is doing
12:09:28dom96pull that when statement out
12:09:48dom96oh wait, I see, it depends on the params
12:09:50Yardanicohe probably wants to overload return type based on argument types (at compile times)
12:09:57skrylarif you replace the "X, Y: Complex" part with "T: Complex" then it will ensure they are both the same type of complex?
12:10:21dom96You might be able to write 'auto' there for the return type
12:10:29miranhey dom96! your HN nimforum post has made it to hackernewsletter, don't know if you were aware....
12:10:36dom96oh? :O
12:11:23*dom96 subscribes
12:11:29miran:)
12:11:34dom96https://us1.campaign-archive.com/?u=faa8eb4ef3a111cef92c4f3d4&id=95288e6840
12:11:36dom96Awesome :)
12:14:00*dddddd joined #nim
12:17:09dom96Forum has been running rock stable for the past 5 days :D
12:17:46skrylari had wondered about porting parts of seaside to nim, although i'm not sure enough people use nim for web :ponder:
12:18:13skrylarmost of what seaside actually DOES is just let you map coroutines to URLs within a session
12:22:12dom96interesting, never heard of it before
12:22:14dom96You should do it
12:22:17dom96we need more web frameworks
12:23:06skrylari played with it some a while back. it's very neat but somewhat dated
12:23:50skrylarback when everything was page-by-page it was great, because they have a canvas API like haml and such from ruby. but then you can just "on link do: some code" and the canvas API replaces that with an a/href to some magic link, which internally is stored
12:24:08skrylaralong with some number of copies of a context object, so you can hit the back button up to N times and it will roll back
12:24:59skrylarthe downside is because it's a very state reliant framework, you have to take special care (ex. haproxy and friends) when scaling it to ensure the user gets stuck to the same node each time
12:27:18skrylarseems to be a love it or hate it thing; for instance you tend to generate the templates in Smalltalk itself, not using an external ex. mustache or nim's stdtemplate
12:28:43*yglukhov[i] joined #nim
12:33:05*yglukhov[i] quit (Ping timeout: 248 seconds)
12:44:54*Shivelight joined #nim
13:24:42*Camparis is now known as camparis
13:55:57*xet7 quit (Remote host closed the connection)
13:56:15*yglukhov[i] joined #nim
14:01:02*yglukhov[i] quit (Ping timeout: 265 seconds)
14:23:20*xkapastel joined #nim
14:45:36*xet7 joined #nim
14:54:34*Shivelight quit (Quit: Connection closed for inactivity)
14:54:56*Vladar quit (Read error: Connection reset by peer)
15:33:35gmpreussneris there nimsuggest support for symbols created via macros? i'm writing DSLs for importing foreign functions from various libraryes, and while that can dramatically reduce boilerplate, i'm wondering if that affects productivity as well
15:33:53gmpreussner*libraries gah... still waking up
15:40:57*miran quit (Ping timeout: 240 seconds)
15:46:33*nsf quit (Quit: WeeChat 2.1)
16:09:07FromGitter<Varriount> gmpreussner: I would suggest performing a test to find out.
16:27:57*skrylar quit (Remote host closed the connection)
16:32:48*xkapastel quit (Quit: Connection closed for inactivity)
16:44:23FromGitter<Varriount> @data-man Are you there?
16:47:09FromGitter<data-man> Sure :)
16:51:34*endragor joined #nim
16:53:32FromGitter<Varriount> @data-man What OS do you use?
16:56:27FromGitter<data-man> ArchLinux
16:59:42FromGitter<Varriount> @data-man If you want to test whether something will compile on Windows, you can use the `--os:` and `--compile-only` flags
17:01:54*xet7 quit (Ping timeout: 256 seconds)
17:02:09*Vladar joined #nim
17:02:30FromGitter<data-man> I define -d:windows :)
17:03:28*thomasross_ joined #nim
17:04:14*thomasross_ quit (Max SendQ exceeded)
17:04:45*thomasross_ joined #nim
17:06:38*thomasross quit (Ping timeout: 265 seconds)
17:11:20*xet7 joined #nim
17:22:10*kicking_tires joined #nim
17:34:06FromGitter<kayabaNerve> wat
17:34:06FromGitter<kayabaNerve> !eval echo sizeof({true}) ⏎ <NimBot> 1 ⏎ ⏎ !eval echo sizeof({true, false}) ⏎ <NimBot> 1 ... [https://gitter.im/nim-lang/Nim?at=5b12d50e52e35117cd00b44f]
17:34:08NimBotCompile failed: in.nim(1, 21) Error: undeclared identifier: '⏎'
17:34:15FromGitter<kayabaNerve> Bad NimBot
17:34:23FromGitter<kayabaNerve> Why the hell did that happen
17:35:24FromGitter<kayabaNerve> Storing 1 value is 1 byte. Storing 2 is the same size. Storing one of a different type is 8192 bytes. Is sizeof broken on... what literal data type Nim maps that to?
17:35:28FromGitter<kayabaNerve> I think set?
17:36:20FromGitter<kayabaNerve> Yep. Confusing sets and seqs (@[]). That's a set. I may be a bit of an idiot. Still waking up. No caffeine...
17:47:44*miran joined #nim
18:02:57Yardanico@kayabaNerve no, NimBot is not bad
18:03:16Yardanicoyour message started with !
18:03:44*thomasross joined #nim
18:05:48*thomasross_ quit (Ping timeout: 256 seconds)
18:06:23*thomasross quit (Remote host closed the connection)
18:06:45*thomasross joined #nim
18:07:29*thomasross quit (Max SendQ exceeded)
18:07:55*thomasross joined #nim
18:12:44*thomasross quit (Ping timeout: 255 seconds)
18:15:44*thomasross joined #nim
18:16:50*thomasross quit (Remote host closed the connection)
18:23:10*xet7 quit (Ping timeout: 260 seconds)
18:27:25*xet7 joined #nim
18:49:07*Vladar quit (Read error: Connection reset by peer)
18:50:23*find0x90 joined #nim
18:53:24FromGitter<kinkinkijkin> how to use multireplace? I want to remove two different things that are at unknown points in a string from the string
18:58:51FromGitter<kinkinkijkin> okay actually I've figured that out
19:00:20Yardanico!eval import strutils; echo "my heh string with lol words".multiReplace({"heh": "", "lol": ""})
19:00:23NimBotmy string with words
19:02:02*xet7 quit (Remote host closed the connection)
19:02:20FromGitter<kinkinkijkin> I'm trying to figure out how to fastest fill out the varrargs given a seq of values to fill the first field and a modification of each value to fill the second field
19:03:22*Vladar joined #nim
19:04:24FromGitter<kinkinkijkin> simply splaying the seq across a seq of tuples with a for loop seems horribly inefficienty
19:04:29FromGitter<kinkinkijkin> there has to be a faster way
19:05:00*rockcavera quit (Remote host closed the connection)
19:09:57*find0x90 quit (Quit: find0x90)
19:12:32FromGitter<kayabaNerve> Yardanico: It isn't hyperintelligent. I know why it responded why it did. Why is sizeof on sets so messed up according to NimBot?
19:12:58Yardanicois it the same on your machine?
19:13:01Yardanicoand yeah, nimbot uses play.nim-lang.org for code evaluation
19:19:54*yglukhov[i] joined #nim
19:24:05*yglukhov[i] quit (Ping timeout: 240 seconds)
19:30:57*yglukhov[i] joined #nim
19:31:36FromGitter<kinkinkijkin> how do I fetch the amount of items in a seq?
19:33:22*nsf joined #nim
19:33:26Yardanico!eval len(@[1, 2, 3])
19:33:27NimBotCompile failed: in.nim(1, 4) Error: expression '3' is of type 'int literal(3)' and has to be discarded
19:33:35*yglukhov[i] quit (Remote host closed the connection)
19:33:38FromGitter<kinkinkijkin> thanks
19:33:40Yardanico!eval echo len(@[1, 2, 3])
19:33:42NimBot3
19:34:07*yglukhov[i] joined #nim
19:36:52dom96kayabaNerve: PRs for NimBot welcome :)
19:38:35*yglukhov[i] quit (Ping timeout: 240 seconds)
19:40:16*jjido joined #nim
19:43:09*riidom quit (Remote host closed the connection)
19:46:10FromGitter<Varriount> @kayabaNerve That size is correct.
19:47:50FromGitter<Varriount> To represent all possible values of a 16-bit integer in an array of bits requires 8192 bytes, or 65536 bits
19:49:58*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
19:50:44*jjido joined #nim
19:52:33*jjido quit (Client Quit)
19:52:37FromGitter<Varriount> We usually don't use sets of int16 though. Even the largest enumerations tend to have less than 256 values, and so can fit into 8 bits
19:53:51*yglukhov[i] joined #nim
19:55:53FromGitter<kinkinkijkin> why is zip(repeat("num", len(aseq)), aseq) returning a seq of tuples with the first field being a char?
19:56:05FromGitter<kinkinkijkin> the first field should be a string, no?
19:57:14FromGitter<Varriount> !eval zip(repeat("num", 3)), @[1,2,3])
19:57:15NimBotCompile failed: in.nim(1, 1) Error: undeclared identifier: 'zip'
19:57:32FromGitter<kinkinkijkin> requires sequtils
19:57:46FromGitter<Varriount> !eval import sequtils; zip(repeat("num", 3)), @[1,2,3])
19:57:47NimBotCompile failed: in.nim(1, 21) Error: type mismatch: got <seq[string]>
19:58:18FromGitter<Varriount> !eval import sequtils; echo zip(repeat("num", 3)), @[1,2,3])
19:58:19NimBotCompile failed: in.nim(1, 26) Error: type mismatch: got <seq[string]>
19:58:59FromGitter<kinkinkijkin> weird
20:01:55FromGitter<kinkinkijkin> !eval import sequtils; echo zip(repeat("num", 3)), @["1","2","3"])
20:01:57NimBotCompile failed: in.nim(1, 26) Error: type mismatch: got <seq[string]>
20:04:05*thomasross joined #nim
20:04:37*yglukhov[i] quit (Remote host closed the connection)
20:09:52FromGitter<kinkinkijkin> !eval import sequtils; echo repeat("num", 3)
20:09:55NimBot@["num", "num", "num"]
20:10:56*riidom joined #nim
20:11:44*endragor quit (Remote host closed the connection)
20:12:19*endragor joined #nim
20:13:24*yglukhov[i] joined #nim
20:17:04*endragor quit (Ping timeout: 265 seconds)
20:19:07Yardanicothat's sequtils
20:19:15Yardanico!eval import strutils, echo repeat("num", 3)
20:19:16NimBotCompile failed: in.nim(1, 23) Error: invalid module name: 'echo repeat("num", 3)'
20:19:19Yardanico!eval import strutils; echo repeat("num", 3)
20:19:21NimBotnumnumnum
20:19:28Yardanico@kinkinkijkin ^
20:19:49FromGitter<kinkinkijkin> oooooh
20:20:07Yardanicosequtils is for dealing with container types (seqs and openarrays)
20:20:18Yardanico!eval import sequtils; echo repeat([1, 2, 3], 3)
20:20:20NimBot@[[1, 2, 3], [1, 2, 3], [1, 2, 3]]
20:20:23FromGitter<kinkinkijkin> yeah I'm looking for sequtils
20:20:31FromGitter<kinkinkijkin> I wasn't seeing the collision with strutils
20:20:32Yardanicoand strutils is for... strings
20:20:38FromGitter<kinkinkijkin> I have to use both
20:20:58Yardanicouse something like strutils.repeat(string, num)
20:26:51*find0x90 joined #nim
20:32:56FromGitter<Varriount> Hm, shouldn't the compiler have raised an ambiguity error?
20:39:21*find0x90 quit (Quit: find0x90)
20:39:25*jjido joined #nim
20:40:14Yardanicoyeah, strange
20:40:25Yardanico!eval import sequtils; import strutils; echo repeat("num", 3)
20:40:28NimBotnumnumnum
20:40:36Yardanicohm
20:41:13*find0x90 joined #nim
20:41:57*Trustable quit (Remote host closed the connection)
20:42:30*find0x90 quit (Client Quit)
21:09:58*Jesin joined #nim
21:18:22*miran quit (Quit: Konversation terminated!)
21:26:47*yglukhov[i] quit (Remote host closed the connection)
21:45:46*CodeVance joined #nim
21:46:46*CodeVance left #nim (#nim)
21:58:13*jjido quit (Quit: Textual IRC Client: www.textualapp.com)
22:00:41*yglukhov[i] joined #nim
22:05:11*yglukhov[i] quit (Ping timeout: 256 seconds)
22:06:23*flaviu joined #nim
22:09:15flaviuI'm a little late, but I'd like to say congratulations on your new release! I like the '$' improvements, and TLSF seems like JFM
22:10:02dom96A little late is a bit of an understatement :)
22:11:03flaviuhaha :)
22:11:04flaviuI've been busy with work/school, so I haven't had much time for hobby programming
22:17:42*Jesin quit (Quit: Leaving)
22:18:27flaviuOh, and nim is now in the default package repos for arch linux! Awesome!
22:26:12*xkapastel joined #nim
23:12:25FromGitter<mratsim> last time I try nim as packaged in Arch, I couldn’t get nimble to work
23:13:40*CodeVance joined #nim
23:14:13*CodeVance quit (Read error: Connection reset by peer)
23:15:24*Vladar quit (Quit: Leaving)
23:15:32*CodeVance joined #nim
23:16:12*nsf quit (Quit: WeeChat 2.1)
23:16:48*CodeVance quit (Read error: Connection reset by peer)
23:19:10*lainon joined #nim
23:21:42dom96Varriount: What happened here? https://github.com/nim-lang/Nim/pull/7788
23:22:03dom96Araq asked for "" and didn't get it
23:26:29*CodeVance joined #nim
23:46:47*yglukhov[i] joined #nim
23:47:34flaviumratsim: same. Something about not being able to find some module.
23:51:33*CodeVance left #nim (#nim)
23:51:40*yglukhov[i] quit (Ping timeout: 265 seconds)