<< 27-08-2016 >>

00:16:21*dddddd quit (Ping timeout: 265 seconds)
00:22:54*yglukhov joined #nim
00:27:03*yglukhov quit (Ping timeout: 240 seconds)
00:27:34*endragor joined #nim
00:32:16*endragor quit (Ping timeout: 255 seconds)
00:41:44*irrequietus quit (Ping timeout: 244 seconds)
00:59:17*endragor joined #nim
01:04:09*endragor quit (Ping timeout: 260 seconds)
01:12:39*endragor joined #nim
01:14:47*arnetheduck joined #nim
01:16:50*endragor quit (Ping timeout: 250 seconds)
01:18:48*NhanH joined #nim
01:22:20*zielmicha joined #nim
01:24:03*CARAM__ joined #nim
01:34:02*chemist69 quit (Disconnected by services)
01:34:07*chemist69_ joined #nim
01:39:09*r4vi joined #nim
01:44:14*endragor joined #nim
01:45:01*yglukhov joined #nim
01:48:33*endragor quit (Ping timeout: 240 seconds)
01:49:40*yglukhov quit (Ping timeout: 255 seconds)
02:01:14*desophos joined #nim
02:30:38*bogen joined #nim
02:47:40*brson quit (Quit: leaving)
02:47:48*brson joined #nim
02:48:23*yglukhov joined #nim
02:52:57*yglukhov quit (Ping timeout: 265 seconds)
03:19:39*Demon_Fox joined #nim
03:22:09*brson quit (Quit: leaving)
03:38:32*chemist69_ quit (Ping timeout: 250 seconds)
03:43:30*chemist69 joined #nim
04:06:44*bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
04:07:02*space-wi_ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
04:08:37*bjz joined #nim
04:10:18*mcc joined #nim
04:20:31*space-wizard joined #nim
04:23:26*castlelore quit (Quit: WeeChat 1.5)
04:34:01*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
04:50:24*yglukhov joined #nim
04:54:55*yglukhov quit (Ping timeout: 244 seconds)
05:03:32*Senketsu quit (Quit: Leaving)
05:13:41*yglukhov joined #nim
05:18:04*yglukhov quit (Ping timeout: 252 seconds)
05:43:36*kunev quit (Ping timeout: 276 seconds)
05:46:03*space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…)
05:49:45*kunev joined #nim
06:02:05*fastrom joined #nim
06:15:11*kunev quit (Quit: е те!)
06:21:53*fastrom quit (Quit: Leaving.)
06:24:13*kunev joined #nim
06:35:24*yglukhov joined #nim
06:39:50*yglukhov quit (Ping timeout: 258 seconds)
06:53:09*mcc quit (Quit: Connection closed for inactivity)
06:54:58*rtr_ joined #nim
06:56:14*xet7 quit (Quit: Leaving)
07:07:29*fastrom joined #nim
07:11:00*irrequietus joined #nim
07:12:02*delian66_ joined #nim
07:14:18*liori_ joined #nim
07:14:59*sarlalian_ joined #nim
07:16:52*delian66 quit (Ping timeout: 240 seconds)
07:16:52*kunev quit (Ping timeout: 240 seconds)
07:16:53*michael_campbell quit (Ping timeout: 240 seconds)
07:16:53*sarlalian quit (Ping timeout: 240 seconds)
07:16:53*liori quit (Remote host closed the connection)
07:17:49*kunev joined #nim
07:18:32*ofelas quit (Ping timeout: 240 seconds)
07:19:41*GustavoLapasta joined #nim
07:19:43*ofelas joined #nim
07:22:00*irrequietus quit (Ping timeout: 244 seconds)
07:23:20*stisa joined #nim
07:49:03*rtr_ quit (Remote host closed the connection)
07:54:46*rtr_ joined #nim
08:05:19*vendethiel quit (Ping timeout: 260 seconds)
08:07:54*nsf joined #nim
08:29:55*nsf quit (Quit: WeeChat 1.5)
08:35:29*xet7_ joined #nim
08:36:25*fastrom quit (Quit: Leaving.)
08:47:34*fastrom joined #nim
08:57:44*yglukhov joined #nim
09:11:19*castlelore joined #nim
09:13:48*Learath2 quit (Read error: Connection reset by peer)
09:45:52*Demon_Fox quit (Quit: Leaving)
09:49:10*hendi joined #nim
10:00:35*emery is now known as ehmry
10:00:39*Ven joined #nim
10:01:28*fastrom1 joined #nim
10:03:31*fastrom quit (Ping timeout: 265 seconds)
10:04:03*chemist69 quit (Ping timeout: 264 seconds)
10:08:08*chemist69 joined #nim
10:10:07*hendi quit (Ping timeout: 252 seconds)
10:55:07*dddddd joined #nim
11:03:35*liori_ is now known as liori
11:29:34NimBotnim-lang/Nim devel ff3cf00 Andreas Rumpf [+0 ±1 -0]: fixes #4656; ropes.nim checks properly for file equality
11:29:34NimBotnim-lang/Nim devel 7e643d7 Andreas Rumpf [+0 ±1 -0]: koch nsis: don't hardcode the path to NSIS
11:30:34*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
11:32:41federico3is any of you guys in Seattle?
11:40:28*cheatfate joined #nim
11:53:31*cheatfate quit (Ping timeout: 252 seconds)
11:58:45*rtr_ quit (Remote host closed the connection)
12:03:50*Ven joined #nim
12:04:36*rtr_ joined #nim
12:07:54*stisa quit (Quit: quitting...)
12:10:27*GustavoLapasta quit (Read error: Connection reset by peer)
12:10:54*GustavoLapasta joined #nim
12:11:15*GustavoLapasta quit (Read error: Connection reset by peer)
12:11:37*GustavoLapasta joined #nim
12:12:12*brechtm joined #nim
12:12:19*Gustavo joined #nim
12:12:42*Gustavo is now known as Guest99664
12:16:31*GustavoLapasta quit (Ping timeout: 265 seconds)
12:19:57*desophos quit (Read error: Connection reset by peer)
12:28:28*pafmaf joined #nim
12:30:13*irrequietus joined #nim
12:43:18euantorNope, why?
12:49:37*rtr_ quit (Remote host closed the connection)
12:49:58*rtr_ joined #nim
12:56:52*rtr_ quit (Remote host closed the connection)
12:58:26*rtr_ joined #nim
13:01:36*Guest99664 quit (Read error: Connection reset by peer)
13:02:01*Guest99664 joined #nim
13:02:21*Guest99664 quit (Read error: Connection reset by peer)
13:02:46*Guest99664 joined #nim
13:03:06*Guest99664 quit (Read error: Connection reset by peer)
13:03:31*Guest99664 joined #nim
13:03:50*Guest99664 quit (Read error: Connection reset by peer)
13:04:16*Guest99664 joined #nim
13:04:36*Guest99664 quit (Read error: Connection reset by peer)
13:05:01*Guest99664 joined #nim
13:05:20*Guest99664 quit (Read error: Connection reset by peer)
13:05:46*Guest99664 joined #nim
13:06:05*Guest99664 quit (Read error: Connection reset by peer)
13:06:31*Guest99664 joined #nim
13:06:50*Guest99664 quit (Read error: Connection reset by peer)
13:07:13*Guest99664 joined #nim
13:07:27*PMunch joined #nim
13:07:39*Guest99664 quit (Read error: Connection reset by peer)
13:08:03*Guest99664 joined #nim
13:10:28*cheatfate joined #nim
13:13:15*brechtm_ joined #nim
13:13:24*brechtm quit (Read error: Connection reset by peer)
13:16:32*fredrik92 joined #nim
13:32:06*cheatfate quit (Ping timeout: 244 seconds)
13:32:28*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
13:39:07*Guest99664 quit (Ping timeout: 250 seconds)
13:47:25*brechtm_ quit (Remote host closed the connection)
13:58:37*nsf joined #nim
14:01:16*brechtm joined #nim
14:18:03*fredrik92 quit (Quit: Windows Update: Rebooting...)
14:18:18*Senketsu joined #nim
14:22:26*brechtm quit ()
14:26:34*fredrik92 joined #nim
14:34:09*GustavoLapasta joined #nim
15:19:12*dddddd quit (Ping timeout: 240 seconds)
15:35:15*cheatfate joined #nim
15:35:15*GustavoLapasta quit (Ping timeout: 250 seconds)
15:35:35*hendi joined #nim
15:42:27*hendi quit (Ping timeout: 264 seconds)
15:45:14*Demon_Fox joined #nim
15:56:46*cheatfate quit (Ping timeout: 244 seconds)
16:05:00*nairobi joined #nim
16:15:03*pafmaf quit (Ping timeout: 240 seconds)
16:42:12*nairobi quit (Remote host closed the connection)
16:46:59*Ven joined #nim
16:57:09*rtr_ quit (Remote host closed the connection)
17:03:36*rtr_ joined #nim
17:25:55*nsf quit (Quit: WeeChat 1.5)
17:34:08*dddddd joined #nim
17:39:03*yglukhov quit (Ping timeout: 244 seconds)
17:48:37*fredrik92 quit (Quit: Shutting down...)
18:01:24*mfc joined #nim
18:02:13*mfc left #nim ("Wololo...")
18:08:22*newb254354 joined #nim
18:10:08*rtr_ quit (Remote host closed the connection)
18:12:24newb254354Hey guys. I'm playing with some exmaples from the documentation, more specifically from http://nim-lang.org/docs/backends.html and the section "Nim invocation example from C". I'm stuck when trying to compile my resulting c files with gcc (using the example syntax). More specifically, the error message is as follows:
18:12:40newb254354nimcache\stdlib_system.c: In function 'sysfatal_91221_1689653243': nimcache\stdlib_system.c:11333:1: warning: 'noreturn' function does return
18:15:57newb254354Now, i'm thinking this guide might be out of date. Or my setup is to blame. Running the latest nim (0.14.2 (2016-06-09) [Windows: amd64]) and using TDM-GCC (gcc version 5.1.0 (tdm64-1)). Any hints on what I might be doing wrong?
18:23:59*yglukhov joined #nim
18:24:03*castlelore quit (Ping timeout: 240 seconds)
18:25:32yglukhovAraq: mind having a look at my prs please?
18:27:05newb254354Never mind guys. It was only a compiler warning, so i guess it doesn't matter... :P
18:27:40dom96newb254354: ahh cool, was about to investigate :)
18:28:57yglukhovvegansk: ping
18:29:17yglukhovdom96: please, merge my pr with jsons
18:29:23NimBotnim-lang/Nim devel dddae2d Yuriy Glukhov [+0 ±1 -0]: Fixed frame corruption
18:29:23NimBotnim-lang/Nim devel 06ab03b Dominik Picheta [+0 ±1 -0]: Merge pull request #4662 from yglukhov/json-frame-corruption... 2 more lines
18:29:25dom96yglukhov: just did
18:29:35yglukhovcool. thanks!
18:29:40*rtr_ joined #nim
18:30:12newb254354dom96: thanks anyway! :) i'm so used to ANY output other than success meaning something is broken so it was a knee jerk reaction to assume the compilation didn't succeed.
18:30:52dom96newb254354: I think warnings like that are worth investigating anyway, maybe you could open an issue on github for it?
18:32:11newb254354dom96: Yeah, you're probably right about that. I'll go ahead and do so.
18:34:23dom96thanks!
18:40:55*PMunch quit (Quit: leaving)
18:41:41*krux02 joined #nim
18:42:24krux02is there an operator that works like dynamic_cast in c++?
18:42:41krux02cast is more like a reinterpret_cast
18:44:12*castlelore joined #nim
18:49:00*castlelore quit (Client Quit)
18:49:04def-krux02: type()
18:49:32krux02isn't type supposed to give me the type of an experssion?
18:51:58*dddddd quit (Ping timeout: 250 seconds)
18:53:14krux02def-: do you mean this `type(value) is MyType: ... else: 0`
18:53:57krux02I could not find anything saying it would check for the dynamic type
18:55:14def-krux02: nono, just int(10.2)
18:55:29def-where type = int
18:56:10krux02I need this for inheritage
18:56:17*Trustable joined #nim
18:56:47krux02I have a base class and subtypes and I need to check weather weather I have a subtype or not
18:59:56yglukhovkrux02: if myVarThatIsSuperType of MySubType: let mySubtypedVar = MySubType(myVarThatIsSuperType)
19:00:08yglukhovor just convert and catch a conversion error
19:00:09yglukhov=)
19:00:35krux02yglukhov: thanks, that sounds promising
19:01:08krux02this is one thing where I prefer the c++ syntax
19:02:06AraqC++ also supports T(x) syntax :P
19:02:22yglukhovkrux02: template dynamic_cast(T: typedesc, v: typed): T = if v of T: T(v) else: nil
19:02:26krux02if(auto mySubtypeVar = dynamic_cast<MySubType*>(myVarThatIsSuperType)) { ... }
19:02:37yglukhovone liner
19:03:00krux02but can I use it in an if expression like in c++?
19:03:13krux02I don't think so
19:03:31Araqsure you can
19:03:49Araqif (let x = ...; x != nil):
19:04:08krux02thanks a lot
19:04:53yglukhovAraq: tbh, i think it could be a nice sugar. if let myVar = foo():
19:05:03yglukhovand could easily be implemented i guess
19:05:26*dddddd joined #nim
19:05:29yglukhovswift does it
19:05:30yglukhov=)
19:05:48krux02rust has it in the documentation, too.
19:06:05yglukhovwell yeah, its handy
19:06:36krux02but in c++ it's pretty unknown
19:07:07Araqdunno how these languages keep the type safety of 'bool'
19:07:33Araqavoiding the () is one thing, auto conversion to a bool context another
19:07:44yglukhovAraq: indeed. maybe we should reconsider this after default not nil is implemented to see how it goes
19:07:48krux02in c++ there is an automatic conversion from any pointer type to bool type, and in rust it is an excption for the if statement
19:08:29yglukhovkrux02: that is a feature from only one perspective. a bug from another.
19:08:29AraqI know what C++ does. I asked about Swift and Rust
19:08:43euantorWhat is it we're discussing?
19:08:49euantorType conversion/casting?
19:09:08krux02I never programmed in rust, but I saw that they documented it
19:09:15yglukhovAraq: can you review my pr please?
19:09:17krux02but they need an optional type for it
19:09:18euantorIIRC, Rust will return an Option<T>, so the actual boolean condition is checking if i is Some (true) or Nonw (false)
19:09:23Araqconverter toBool[T](x: ref T): bool = x != nil
19:09:37euantor*None
19:10:09krux02Araq: will the convertey appy to a let statement?
19:10:40Araqdoes a let statement yield x's type?
19:10:49Araqno, it yields void :P
19:11:14yglukhovkrux02: you could easily write a template that allows the following: if llet myObj = foo(): ...
19:11:20yglukhovllet would do the magic =)
19:11:43AraqI don't think this will work
19:11:54Araqbecause of the colon
19:12:08Araqbut somebody needs to try it :-)
19:13:04Araqwhat's there to review? dom96 merged it?
19:14:27krux02I just tried the converter, but let expressions in nim do not have a type (and I think this is good)
19:14:49dom96Araq: he's got multiple PRs
19:16:24*V_S_C joined #nim
19:18:30Araqkrux02: converter plus yglukhov's template should get you somewhere
19:18:55*kang00 joined #nim
19:19:24kang00Have you used any Web api on Web based ide or compiler?
19:19:59krux02I am currently writing a macro ``myif``, but I fail to pass a let expression to it
19:20:16krux02myif(let p = maybe()):
19:20:20krux02won't parse
19:21:48*kulelu88 joined #nim
19:24:05yglukhovAraq, krux02: interesting. it looks like `=` can not be used inside an ast tree passed to a macro...
19:25:23krux02yglukhov, it can, but not the way you tried it or want it
19:25:49dom96hello kang00, not entirely sure what you mean
19:25:53krux02the last argement to a macro can be an arbitrary block and there you can have as many let's as you want
19:26:43*irrequietus quit ()
19:26:51NimBotnim-lang/Nim devel 8fca040 Araq [+0 ±5 -0]: some attempts to make symbolfiles work again
19:26:51NimBotnim-lang/Nim devel a13cb26 Araq [+0 ±11 -0]: next steps in getting symbol files to work again
19:26:51NimBotnim-lang/Nim devel 7630cd0 Araq [+0 ±1 -0]: updated test case
19:26:51NimBotnim-lang/Nim devel 68e30d7 Araq [+0 ±6 -0]: tester cleanup; enable some rod tests
19:26:51NimBot2 more commits.
19:26:59*irrequietus joined #nim
19:27:14AraqNimBot is in da house :-)
19:27:47dom96yeah, until nimbuild crashes again :P
19:27:57newb254354dom96: FYI i filed an issue about it here: https://github.com/nim-lang/Nim/issues/4664
19:28:18dom96newb254354: thanks
19:28:36newb254354dom96: np
19:28:46krux02this works now:
19:28:49krux02myif((let pi = maybe();)):
19:28:49krux02 echo pi[]
19:29:33Araqnewb254354: will close it soon :P we don't care about C warnings
19:30:04kang00dom96 I want to know how to use Web Api?
19:30:36dom96Araq: why not?
19:31:07dom96kang00: what do you want to write? A web app?
19:31:18Araqthey never told me anything important
19:32:16Araqnewb254354: did you touch the config? cause we just disable warnings
19:32:26kang00Nope; I am not coder; I just want to see web Api in action. I don't have machine.
19:32:30kang00http://www.programmableweb.com
19:32:37kang00dom96
19:32:50kang00I am referring this site for Web api
19:32:55kang00How to read or interpret such api
19:33:03kang00Can you help me?
19:33:16kang00I understand each Api has many libraries
19:33:26kang00Each library many modules
19:33:32kang00Is it correct?
19:34:05newb254354Araq: Allright. I wasn't sure about your stance with compiler warnings so i figured it might be an issue. No i didn't touch any config. I'm not completely sure exactly what config you're reffering to though
19:34:12kang00How to download api from that url?
19:34:28dom96kang00: is this at all related to the Nim programming language?
19:34:35Araqnewb254354: the nim.cfg that ships with your Nim compiler
19:34:48kang00Nope can you help me in pm? dom96
19:35:04newb254354Araq: If so, no i haven't touched it.
19:35:07dom96kang00: ask in ##programming
19:35:08*space-wizard joined #nim
19:35:20Araqnewb254354: I guess this means it's valid bug report then ;-)
19:35:23kang00I tried yesterday
19:35:46dom96kang00: I can't help, sorry.
19:35:56kang00Ok
19:36:54newb254354Araq: Allright, i'll clarify that in the bug report. Thanks.
19:42:01*chemist69 quit (Ping timeout: 255 seconds)
19:43:21*newb254354 quit (Quit: Page closed)
19:50:54*kang00 left #nim ("AndroIRC")
19:51:09*Ven quit (Ping timeout: 260 seconds)
19:51:39Araqyglukhov: are you sure your jssys.nim changes don't affect PHP?
19:52:29yglukhovAraq: i tried to not break PHP, but not 100% sure.
19:54:53*Ven joined #nim
20:00:54*V_S_C quit (Quit: Page closed)
20:04:53*rtr_ quit (Remote host closed the connection)
20:09:06*chemist69 joined #nim
20:11:28*rtr_ joined #nim
20:26:41*libman joined #nim
20:34:32*Ven quit (Ping timeout: 240 seconds)
20:39:05*Ven joined #nim
20:49:35*Ven quit (Read error: Connection reset by peer)
20:50:02*Ven joined #nim
21:00:30*rtr_ quit (Remote host closed the connection)
21:21:56krux02yay I wrote a macro that did what I wanted :D
21:22:06krux02macro ifof(sym: typed, t : typedesc, blk: untyped): stmt =
21:22:06krux02 let ident = newIdentNode($sym.symbol)
21:22:06krux02 result = quote do:
21:22:06krux02 if (let `ident` = cast[`t`](`sym`); `sym` of `t`):
21:22:06krux02 `blk`
21:22:30krux02the usage:
21:22:31krux02ifof(x, ptr MyObject):
21:22:31krux02 echo x.banone
21:33:11*GustavoLapasta joined #nim
21:37:15krux02ok not that great because it doesn't work with else or elif, but I made an update
21:38:30*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
21:41:03*libman quit (Remote host closed the connection)
21:47:49*chemist69 quit (Ping timeout: 260 seconds)
21:50:38*vendethiel joined #nim
21:51:47*chemist69 joined #nim
22:07:48*GustavoLapasta quit (Quit: Leaving)
22:09:58*cheatfate joined #nim
22:16:10*nsf joined #nim
22:24:49*AnonymousCoward joined #nim
22:30:25*cheatfate quit (Ping timeout: 252 seconds)
22:40:40*bjz joined #nim
22:41:07*krux02 quit (Quit: Verlassend)
22:58:31*Trustable quit (Remote host closed the connection)
23:03:15*Ven joined #nim
23:04:29*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
23:27:38*irrequietus quit ()
23:45:27NimBotnim-lang/Nim devel 7aa6494 Araq [+0 ±1 -0]: disable rodfile tests depending on gtk