<< 31-08-2016 >>

00:02:57*nairobi joined #nim
00:03:03*nairobi quit (Read error: Connection reset by peer)
00:10:15*libman joined #nim
00:10:55*endragor joined #nim
00:15:34*endragor quit (Ping timeout: 260 seconds)
00:16:04*brson quit (Ping timeout: 240 seconds)
00:20:07*libman quit (Read error: Connection reset by peer)
00:22:02*MyMind quit (Read error: Connection reset by peer)
00:33:37*ftsf_ joined #nim
00:38:25*libman joined #nim
00:44:37*yglukhov joined #nim
00:47:16*libman left #nim (#nim)
00:48:52*yglukhov quit (Ping timeout: 240 seconds)
00:50:15*M-Quora quit (Remote host closed the connection)
00:50:15*hohlerde quit (Read error: Connection reset by peer)
00:50:16*M-max quit (Remote host closed the connection)
00:57:03*hohlerde joined #nim
01:08:58*MyMind joined #nim
01:11:25*krux02 quit (Quit: Verlassend)
01:13:19*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
01:24:28*hohlerde quit (Remote host closed the connection)
01:29:21*chemist69 quit (Disconnected by services)
01:29:25*chemist69_ joined #nim
01:30:09*hohlerde joined #nim
01:35:44*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
02:00:46*pdv joined #nim
02:07:59*yglukhov joined #nim
02:12:39*yglukhov quit (Ping timeout: 276 seconds)
02:14:50*mcc joined #nim
02:20:59*veganskaway is now known as vegansk
03:09:56*yglukhov joined #nim
03:14:52*yglukhov quit (Ping timeout: 264 seconds)
03:49:05*bjz joined #nim
03:50:55*endragor joined #nim
04:04:20mccif I have an array[3, float], what is the most sensible way to make a copy of it?
04:04:45*M-Quora joined #nim
04:04:52mcci'm trying to make a copy in a situation where my understanding of the semantics is that a copy should be made, but it's not
04:04:58*M-max joined #nim
04:04:58*M-max quit (Changing host)
04:04:58*M-max joined #nim
04:05:01mccand i don't know if i misunderstand the semantics or if this is a bug with js
04:16:35*space-wizard joined #nim
04:17:03*boop quit (Ping timeout: 240 seconds)
04:23:00veganskmcc, is it your issue? https://github.com/nim-lang/Nim/issues/4631.
04:23:56mcci was the one who filed that issue but this is a different issue
04:24:03mccthat's about deep copies. right now i'm just trying to make a shallow copy.
04:24:56veganskmaybe you can try workaround with JSON.parse(JSON.stringify)?
04:30:23mcci mean, right now i'm just trying to copy an array.
04:30:38mccand i'm confused about when assigning an array assigns a reference to the array and when it assigns a copy of the array.
04:31:47*yglukhov joined #nim
04:36:57*yglukhov quit (Ping timeout: 276 seconds)
04:40:47*GangstaCat joined #nim
04:43:51*boop joined #nim
04:49:39*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
04:53:32*Demon_Fox joined #nim
04:53:34veganskcheatfate, hi. The test "tests\async\tioselectors.nim" fails with latest devel on windows 8. Failure: reExitcodesDiffer
05:00:46*space-wizard joined #nim
05:01:21*space-wizard quit (Max SendQ exceeded)
05:02:00*space-wizard joined #nim
05:04:04*rtr__ joined #nim
05:06:04*rtr_ quit (Ping timeout: 260 seconds)
05:16:43*castlelore quit (Quit: WeeChat 1.5)
05:16:45*GustavoLapasta joined #nim
05:20:11*GangstaCat quit (Read error: Connection reset by peer)
05:29:42*GangstaCat joined #nim
05:58:29*pafmaf joined #nim
06:04:50*rtr__ quit (Remote host closed the connection)
06:21:54flyxmcc: well, I'd say arrays have value semantics, so they should be copied whenever they are assigned to another variable.
06:27:09*GangstaCat quit (Read error: Connection reset by peer)
06:29:11ftsf_mcc, everything is copied by value, unless it's a reference type. (is that correct?)
06:32:21*GangstaCat joined #nim
06:38:14*nairobi joined #nim
06:40:07*Arrrr joined #nim
06:40:43*hendi joined #nim
06:41:23*nairobi_ joined #nim
06:42:49*nairobi quit (Ping timeout: 265 seconds)
06:48:04*rtr_ joined #nim
06:55:16*nsf joined #nim
06:59:06*Senketsu quit (Read error: Connection reset by peer)
06:59:52*Senketsu joined #nim
07:00:36cheatfatevegansk, could you please give me more information? because its not a critical bug but needs to be resolved
07:00:50cheatfatewhat line asserts?
07:09:10veganskcheatfate, https://gist.github.com/vegansk/2020ef504365f813819eadf2b15e890d
07:13:42*mcc quit (Quit: Connection closed for inactivity)
07:15:08*brechtm joined #nim
07:15:42cheatfatevegansk, what platform arch you are using? 32bit?
07:17:12veganskcheatfate, yes
07:17:34*brechtm_ joined #nim
07:18:29*brechtm__ joined #nim
07:19:05cheatfatevegansk, then i have found a problem, thank you
07:19:07*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
07:19:40*brechtm quit (Ping timeout: 264 seconds)
07:21:56veganskcheatfate, you're welcome :-)
07:22:04*brechtm_ quit (Ping timeout: 264 seconds)
07:22:16*Demon_Fox quit (Quit: Leaving)
07:22:27*Trustable joined #nim
07:29:47*GustavoLapasta quit (Ping timeout: 265 seconds)
07:46:58*yglukhov joined #nim
07:48:56*castlelore joined #nim
07:50:56*rtr_ quit (Remote host closed the connection)
07:51:02*Arrrr quit (Quit: WeeChat 1.5)
07:52:24*Arrrr joined #nim
07:52:24*Arrrr quit (Changing host)
07:52:24*Arrrr joined #nim
08:01:47*chemist69_ is now known as chemist69
08:02:03*ftsf_ quit (Quit: :q!)
08:15:39*chemist69 quit (Quit: WeeChat 1.5)
08:15:56*GangstaCat quit (Quit: Leaving)
08:19:32*Kaini quit (Remote host closed the connection)
08:22:17*chemist69 joined #nim
08:23:14*alexsystemf__ quit (Ping timeout: 260 seconds)
08:25:26*alexsystemf__ joined #nim
08:26:51flyxwhat's the state of making `not nil` the default? I am currently trying to use some `not nil` and it has quite big issues: https://github.com/nim-lang/Nim/issues/4686
08:32:35ArrrrI think this is the last thing said on the subject https://github.com/nim-lang/Nim/pull/2064#issuecomment-74165750
08:33:32flyxArrrr: not quite. it is mentioned as goal of the BountySource fundraiser.
08:34:30ArrrrAh, you are right then.
08:54:07*irrequietus joined #nim
09:00:34*irrequietus_ joined #nim
09:00:49*irrequietus quit (Ping timeout: 255 seconds)
09:01:07flyxwhat I wanted to say is that these errors look like parser errors that will also apply if `not nil` is made default and `or nil` is the new "nillable" attribute. then you suddenly have problems of declaring nillable types.
09:02:16*GustavoLapasta joined #nim
09:02:49*GustavoLapasta quit (Read error: Connection reset by peer)
09:08:41*Kaini joined #nim
09:13:04*irrequietus_ quit (Ping timeout: 252 seconds)
09:16:08*GustavoLapasta joined #nim
09:16:28*GustavoLapasta quit (Read error: Connection reset by peer)
09:16:32*irrequietus_ joined #nim
09:19:26*irrequietus_ quit (Client Quit)
09:19:48*irrequietus joined #nim
09:54:02*PMunch joined #nim
10:03:38*bjz_ joined #nim
10:03:54*bjz quit (Ping timeout: 276 seconds)
10:16:09*arnetheduck joined #nim
10:18:29*nairobi_ quit (Remote host closed the connection)
10:26:07*pafmaf quit (Ping timeout: 265 seconds)
10:34:04Araqflyx: the syntax is actually 'nil Foo', not 'Foo or nil'
10:34:11Araqbut I get your point
10:36:29*PMunch quit (Quit: leaving)
10:43:22*pie__ joined #nim
10:45:56*pie_ quit (Ping timeout: 265 seconds)
10:50:02*brechtm joined #nim
10:50:52*dddddd joined #nim
10:51:05*nairobi joined #nim
10:52:05*pie__ quit (Ping timeout: 244 seconds)
10:53:09*brechtm__ quit (Ping timeout: 260 seconds)
10:54:06*nairobi_ joined #nim
10:55:54*nairobi quit (Ping timeout: 276 seconds)
11:00:28*pdv quit (Quit: Ex-Chat)
11:05:06*pie_ joined #nim
11:09:57*nairobi_ quit (Read error: Connection timed out)
11:10:50*nairobi joined #nim
11:20:12*brechtm_ joined #nim
11:23:33*brechtm quit (Ping timeout: 240 seconds)
11:33:00*nairobi quit (Remote host closed the connection)
11:52:12*nairobi joined #nim
11:53:52*stisa joined #nim
11:59:25*alexsystemf__ quit (Ping timeout: 255 seconds)
12:00:06*alexsystemf___ joined #nim
12:08:38*nairobi quit (Read error: Connection timed out)
12:10:01*nairobi joined #nim
12:11:00*alexsystemf___ quit (Ping timeout: 258 seconds)
12:17:14*gokr joined #nim
12:19:21*alexsystemf___ joined #nim
12:23:22*irrequietus quit (Ping timeout: 252 seconds)
12:34:39*mcc joined #nim
12:43:59*irrequietus joined #nim
12:48:50*nairobi quit (Remote host closed the connection)
12:51:42*Sergio965 quit (Ping timeout: 265 seconds)
12:54:04cheatfateAraq, if argument becomes part of environment is it ref'd until environment will not be destroyed?
12:56:37*Sergio965 joined #nim
12:59:54*nairobi joined #nim
13:02:17*StarBrilliant joined #nim
13:02:42*pafmaf joined #nim
13:06:37*Arrrr quit (Quit: WeeChat 1.5)
13:06:51Araqcheatfate: yes
13:07:52*dddddd quit (Ping timeout: 240 seconds)
13:11:18*dddddd joined #nim
13:15:17*stisa quit (Remote host closed the connection)
13:15:40*dddddd quit (Client Quit)
13:15:57*dddddd joined #nim
13:16:48NimBotnim-lang/Nim devel b75ddf5 cheatfate [+0 ±3 -0]: Fix 32bit architecture problems with SelectEvent.
13:16:48NimBotnim-lang/Nim devel 0cb90f3 Andreas Rumpf [+0 ±3 -0]: Merge pull request #4685 from cheatfate/selevent32... 2 more lines
13:27:37*irrequietus quit (Ping timeout: 255 seconds)
13:38:38*dddddd quit (Ping timeout: 244 seconds)
13:39:28*dddddd joined #nim
13:45:29*nairobi quit (Remote host closed the connection)
13:56:11*gokr quit (Ping timeout: 244 seconds)
14:06:31*space-wizard joined #nim
14:11:08*irrequietus joined #nim
14:11:25*filcuc joined #nim
14:19:57*nairobi joined #nim
14:25:21*bjz joined #nim
14:27:18*bjz_ quit (Ping timeout: 265 seconds)
14:30:19*desophos joined #nim
14:34:22*nsf quit (Quit: WeeChat 1.5)
14:38:22*desophos quit (Read error: Connection reset by peer)
14:41:34*arnetheduck quit (Ping timeout: 240 seconds)
14:41:37*brson joined #nim
14:44:52*irrequietus quit (Ping timeout: 264 seconds)
14:45:35*irrequietus joined #nim
14:47:25*irrequietus quit (Client Quit)
14:47:29*irrequietus_ joined #nim
14:48:28*irrequietus_ quit (Read error: Connection reset by peer)
14:48:53*desophos joined #nim
14:49:41*satbyy joined #nim
14:51:32*libman joined #nim
14:52:33*endragor quit (Remote host closed the connection)
15:00:09*libman quit (Read error: Connection reset by peer)
15:00:29*brson quit (Ping timeout: 260 seconds)
15:17:26*libman joined #nim
15:20:56*GustavoLapasta joined #nim
15:25:38GustavoLapastaGiven a string and its length as an int32, how do I append the 4 bytes of the int32 at the start of the string?
15:26:18GustavoLapastaI use it for a trivial tcp "protocol", first I send 4 bytes for the payload length, then the payload.
15:26:48GustavoLapastaI know how to do it in c with some bytemasks, but how to do it in nim?
15:29:19*gokr joined #nim
15:32:29*Trustable quit (Remote host closed the connection)
15:36:19euantorGustavoLapasta: This seems to work: https://glot.io/snippets/ei0hmynus0
15:37:32euantorThough if you need to make sure the endianness is correct, you should use shifts as you would in C
15:38:59*brson joined #nim
15:39:27GustavoLapastaeuantor that's great, although I don't understand this line:
15:39:28GustavoLapastalet casted = cast[array[0..3, uint8]](someInt)
15:40:03euantorIt's casting the integer to an array of 4 elements of type 8 bit unsigned integer (byte)
15:40:12GustavoLapastaand it's legit?
15:40:22euantorYup. Run it in the link
15:40:25euantorNim is clever :)
15:40:39GustavoLapastafascinating. Thank you euantor
15:40:53euantorMight not be the recommended way, but it seems to work
15:53:42*mcc quit (Quit: Connection closed for inactivity)
15:57:49*GustavoLapasta quit (Quit: Leaving)
16:17:52*shodan45 quit (Ping timeout: 240 seconds)
16:25:35cheatfateAraq, but if your answer 'yes', then my PR (github.com/nim-lang/Nim/pull/4680) not needed, am i wrong?
16:27:04*filcuc quit (Read error: Connection reset by peer)
16:29:46*libman quit (Read error: Connection reset by peer)
16:30:49cheatfateAraq, because `data` becomes part of closure, so its protected by environment?
16:43:04*satbyy quit (Ping timeout: 240 seconds)
16:44:18*fredrik92 joined #nim
16:49:50*libman joined #nim
16:52:50*krux02 joined #nim
16:53:21veganskcheatfate, `data` is not the part of the environment. dataBuf.buf is just the `ptr char`.
16:54:33krux02what is the recommended way to install nimsuggest?
16:54:45krux02nimble install nimsuggest fails to build
16:55:07*castlelore quit (Quit: WeeChat 1.5)
16:55:21krux02/home/arne/.nimble/pkgs/compiler-0.14.3/compiler/options.nim(349, 17) Error: undeclared field: 'toLowerAscii'
17:00:20*nairobi quit (Remote host closed the connection)
17:13:19*vegansk is now known as veganskaway
17:14:16*dddddd quit (Ping timeout: 264 seconds)
17:17:05Araqkrux02: nim e compile_without_nimble.nims
17:26:57*dddddd joined #nim
17:28:13*Matthias247 joined #nim
17:28:20*shodan45 joined #nim
17:30:34*hendi quit (Ping timeout: 265 seconds)
17:30:34*libman quit (Read error: Connection reset by peer)
17:31:01krux02thanks
17:35:21*shodan45 quit (Quit: Konversation terminated!)
17:39:33*derlafff quit (Remote host closed the connection)
17:40:32*nairobi joined #nim
17:40:36*derlafff joined #nim
17:48:38*brechtm joined #nim
17:48:57*libman joined #nim
17:50:04*brechtm quit (Remote host closed the connection)
17:51:59*brechtm_ quit (Ping timeout: 260 seconds)
17:52:03*yglukhov quit (Ping timeout: 240 seconds)
18:00:22*krux02 quit (Quit: Verlassend)
18:02:49*Jesin quit (Quit: Leaving)
18:05:22*Jesin joined #nim
18:08:25*alexsystemf___ quit (Ping timeout: 255 seconds)
18:11:24*namnguyen quit (Ping timeout: 250 seconds)
18:12:17*alexsystemf___ joined #nim
18:15:24*Demon_Fox joined #nim
18:18:17*GangstaCat joined #nim
18:18:22*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
18:19:19*space-wizard joined #nim
18:23:49*namnguyen joined #nim
18:26:43*rtr_ joined #nim
18:56:13*nairobi quit (Remote host closed the connection)
19:00:57*Ven joined #nim
19:01:02*nairobi joined #nim
19:01:46*libman quit (Read error: Connection reset by peer)
19:03:23*nairobi quit (Remote host closed the connection)
19:04:06*vendethiel joined #nim
19:05:40*nairobi joined #nim
19:09:17*rusua joined #nim
19:10:03*nairobi quit (Ping timeout: 265 seconds)
19:10:38*nairobi joined #nim
19:12:49*andrewo91 joined #nim
19:16:43Calinouhi
19:16:57Calinoudom96: so university restarts tomorrow for me… I'll have this week-end to work on site a bit :)
19:19:50*libman joined #nim
19:22:16*Sentreen quit (Read error: Connection reset by peer)
19:28:58*brson quit (Ping timeout: 255 seconds)
19:29:21*Jesin quit (Quit: Leaving)
19:30:40dom96Calinou: no worries, take your time :)
19:34:09dom96Guess our streak of getting more and more moneys on BountySource has ended. Oh well, we are still getting a very generous amount, thanks again to everyone!
19:35:52*GangstaCat quit (Quit: Leaving)
19:36:39*Sentreen joined #nim
19:37:19*satbyy joined #nim
19:37:19*satbyy quit (Changing host)
19:37:19*satbyy joined #nim
19:59:22*irrequietus joined #nim
20:01:24*brson joined #nim
20:01:24*libman quit (Read error: Connection reset by peer)
20:08:20*yglukhov joined #nim
20:10:24*_stowa joined #nim
20:13:04*yglukhov quit (Ping timeout: 264 seconds)
20:18:10*_stowa quit (K-Lined)
20:19:45*libman joined #nim
20:33:12*yglukhov joined #nim
20:39:05*brechtm joined #nim
20:47:41federico3dom96: getting some serious funding from a company could be the next goal
20:49:21dom96sure, question is: how can a company benefit from funding a programming language like Nim?
20:49:50kierEmbedded?
20:50:35federico3indeed, embedded/microcontrollers, phones, but also microservices
20:50:43kierMaybe there's a market for Nim in programming microprocessors for IoT devices
20:50:50kierYea
20:52:47federico3the benefit of using the same language on micros, servers and even the JS UI is compelling
20:56:49gokrI made a first shot at that btw, Ardunimo :)
20:56:58gokrIt's on github
20:58:09gokrThe idea was simple - use c2nim to wrap the Arduino libs and drive the compilation via a Makefile since several parts of the tool chain needs to be controlled.
21:00:21*nairobi quit (Remote host closed the connection)
21:00:33*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
21:24:06*irrequietus quit ()
21:25:48*Trustable joined #nim
21:29:28*andrewo91 quit ()
21:35:11*libman quit (Ping timeout: 250 seconds)
21:36:01*dddddd quit (Ping timeout: 265 seconds)
21:37:13*libman joined #nim
21:38:26*yglukhov quit (Ping timeout: 244 seconds)
21:49:19*brechtm quit (Remote host closed the connection)
21:54:40*endragor joined #nim
21:57:21*PMunch joined #nim
21:58:52*endragor quit (Ping timeout: 240 seconds)
22:06:29*cheatfate quit (Read error: Connection reset by peer)
22:09:00*Trustable quit (Quit: Leaving)
22:09:04*libman quit (Ping timeout: 244 seconds)
22:14:35*libman joined #nim
22:27:46*cheatfate joined #nim
22:29:36*libman left #nim (#nim)
22:31:37dom96Nim in Action is the Deal of the Day on the 1st of september, you can already use code dotd090116au to get 50% off. https://manning.com/books/nim-in-action?a_aid=niminaction&a_bid=78a27e81
22:35:29*gokr quit (Ping timeout: 260 seconds)
22:38:06*fredrik92 quit (Quit: Good night...)
22:54:11*themagician quit ()
22:56:39*brson quit (Ping timeout: 250 seconds)
22:58:58*Matthias247 quit (Read error: Connection reset by peer)
23:02:52*brson joined #nim
23:04:29*PMunch quit (Quit: leaving)
23:04:44*PMunch joined #nim
23:04:53*PMunch quit (Remote host closed the connection)
23:20:29*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
23:36:34*brson quit (Ping timeout: 240 seconds)
23:36:52*Jesin joined #nim
23:50:14*rtr_ quit (Remote host closed the connection)