<< 24-11-2015 >>

00:05:25*irrequietus quit ()
00:09:56*gokr quit (Ping timeout: 246 seconds)
00:12:36*Matthias247 quit (Read error: Connection reset by peer)
00:16:48*zepolen quit (Remote host closed the connection)
00:17:44*zepolen joined #nim
00:22:53*zepolen quit (Ping timeout: 272 seconds)
00:28:13*girvo joined #nim
00:29:43girvoHas anyone put together a game in Nim and released the source? I'm curious about some architecture choices I need to decide on
00:42:54*zepolen joined #nim
00:46:19*makoLine quit (Ping timeout: 272 seconds)
00:48:42*zepolen quit (Ping timeout: 265 seconds)
00:54:41*brson quit (Quit: leaving)
00:58:19*makoLine joined #nim
01:08:54*makoLine quit (Ping timeout: 250 seconds)
01:15:52*ehaliewicz joined #nim
01:17:53*girvo_ joined #nim
01:25:43*makoLine joined #nim
01:33:34*zepolen joined #nim
01:45:35*girvo_ quit (Ping timeout: 240 seconds)
02:27:39*barosl quit (Ping timeout: 272 seconds)
03:22:38*ephja quit (Ping timeout: 260 seconds)
03:56:02*silven quit (Ping timeout: 246 seconds)
03:56:22*silven joined #nim
04:16:38*zepolen quit (Remote host closed the connection)
04:43:39*Demon_Fox quit (Quit: Leaving)
04:50:39*Jesin quit (Quit: Leaving)
04:51:37*ehaliewicz quit (Remote host closed the connection)
04:57:38*vendethiel joined #nim
05:17:12*zepolen joined #nim
05:18:38*vendethiel quit (Ping timeout: 246 seconds)
05:22:23*zepolen quit (Ping timeout: 264 seconds)
05:29:07*darkf joined #nim
05:47:06*girvo quit (Ping timeout: 250 seconds)
06:12:51*desophos quit (Read error: Connection reset by peer)
06:22:13*gokr joined #nim
06:22:26*vqrs quit (Ping timeout: 240 seconds)
06:23:46*vqrs joined #nim
06:42:57*girvo joined #nim
06:47:27*girvo quit (Ping timeout: 250 seconds)
06:51:23*xtagon joined #nim
07:07:17*zepolen joined #nim
07:12:06*zepolen quit (Ping timeout: 255 seconds)
07:45:28*xtagon quit ()
07:54:38*gokr quit (Quit: Leaving.)
07:54:52*gokr joined #nim
07:55:32*silven quit (Ping timeout: 244 seconds)
07:55:59*silven joined #nim
08:04:33*yglukhov joined #nim
08:11:44*barosl joined #nim
08:13:30*lokulin quit (Changing host)
08:13:30*lokulin joined #nim
08:14:07yglukhovhey guys, i'm trying to fix nim tests on windows, but don't have windows :) can anyone help me please? specifically i need the output of gcc on './koch test r tests/manyloc/nake/nakefile.nim'
08:19:26reactormonkyglukhov, just grab an amazon ec2 image?
08:20:17yglukhovreactormonk err dont know what youre talking about %)
08:21:24reactormonkyglukhov, first year you have free ec2 instances (micro) https://aws.amazon.com/free/
08:22:11yglukhovahhh, ok, will try
08:28:42*gour joined #nim
08:44:04*girvo joined #nim
08:48:38*girvo quit (Ping timeout: 246 seconds)
09:16:30*rinukkusu quit (Ping timeout: 260 seconds)
09:18:31*barosl quit (Quit: Leaving)
09:20:21*coffeepot joined #nim
09:24:01*rinukkusu joined #nim
09:28:47*mindriot101 joined #nim
09:29:54*zepolen joined #nim
09:30:02*zepolen quit (Remote host closed the connection)
09:32:25*Sembei joined #nim
09:38:58*Ven joined #nim
09:45:13veganskIs there any chance to use {.varargs.} in js target? For example, with ``console.log``?
09:45:52veganskFor now, thge compiler fails in sigmatch.nim(1555) matchesAux with NPE
09:54:38veganskThis is working variant: ``log*: proc(s: cstring) {.nimcall varargs.}``, and this throws NPE: ``log*: proc() {.nimcall varargs.}``
10:03:39*yglukhov quit (Ping timeout: 244 seconds)
10:15:13*girvo joined #nim
10:20:18*girvo quit (Ping timeout: 272 seconds)
10:30:15*barosl joined #nim
10:30:36*zepolen joined #nim
10:35:54*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10:36:19*zepolen quit (Ping timeout: 276 seconds)
10:52:12*yglukhov joined #nim
11:10:20*mindriot101 quit (Ping timeout: 272 seconds)
11:10:49*mindriot101 joined #nim
11:16:09*gour_ joined #nim
11:17:46coffeepotheya, I'm a bit confused about 'object of' with respect to references: https://gist.github.com/coffeepots/f414b0887e6bef6c168e
11:17:50coffeepotobject of RootRef is not a ref?
11:18:30coffeepotis object of RootRef a stack object around a reference?
11:18:47*gour quit (Ping timeout: 264 seconds)
11:42:17*yglukhov quit (Remote host closed the connection)
11:42:52*yglukhov joined #nim
11:46:59*elrood joined #nim
11:54:27*jaco60 quit (Quit: Leaving)
11:59:20*strcmp1 quit (Quit: brb)
11:59:29*strcmp1 joined #nim
12:00:41*zepolen joined #nim
12:15:59*girvo joined #nim
12:19:34*zepolen quit (Remote host closed the connection)
12:20:48*girvo quit (Ping timeout: 255 seconds)
12:21:59*zepolen joined #nim
12:28:35*mindriot101 quit (Remote host closed the connection)
12:29:50*zepolen quit (Remote host closed the connection)
12:30:57*mindriot101 joined #nim
12:33:36*ibeex joined #nim
12:43:51*barosl quit (Quit: Leaving)
12:50:01*makoLine quit (Ping timeout: 244 seconds)
12:54:56*BitPuffin joined #nim
12:59:15*Jehan_ joined #nim
13:00:35Jehan_coffeepot: You need a `ref object of RootRef` or `ref object of RootObj`; what matters is the type declaration; the `ref` or `ptr` part of the type is not inherited.
13:01:55*Ven joined #nim
13:17:51*Guest48911isaway is now known as Guest48911
13:18:40coffeepotJehan_ Ah okay, so what actually is a 'object of RootRef'?
13:18:58Jehan_coffeepot: The same as an `object of RootObj`.
13:19:14coffeepotOh... that's ... not what I expected!
13:19:38coffeepotisn't RootRef defined as 'ref RootObj'?
13:19:55Jehan_coffeepot: Correct. But the `ref` part isn't inherited.
13:20:01*Guest48911 is now known as boopsies
13:23:17coffeepotjehan_ okay, that's an interesting detail to remember for inheritance
13:24:19Jehan_It's not really fundamentally different from other OO languages that have this distinction.
13:27:05coffeepoti guess it's probably confusing for me because I've only used inheritance on classes/refs/pointers
13:27:12coffeepotjehan_ by the way, speaking of inheritance do you know how I can get this code to display the 'correct' type names https://gist.github.com/coffeepots/be4d6a96ef3c7c832137
13:30:29Jehan_coffeepot: I'm not sure if that's possible, i.e. I think (or at least seem to remember) that `type` works on the declared type.
13:30:56coffeepotto be honest I feared that might be so :(
13:31:24Jehan_In any even, you'd need ref object types, since assignment coerces normal objects to become the supertype.
13:31:56coffeepotI did try it with refs and it gave the same result
13:32:11coffeepotis there any way at all I can store descendent objects at runtime and retrieve their types?
13:32:51coffeepotI can't store typedesc as the compiler says it's not concrete, else I would just wrap the type and object together
13:33:39Jehan_coffeepot: I mean that without refs all would be `A`s regardless of the display.
13:33:59Jehan_You can install a method typename that returns the proper type name.
13:34:19coffeepotthe problem I am trying to solve is storing arbitrary objects in a Table, but it's no use if they lose their type info
13:34:25coffeepotRight, great idea I will try that :D
13:34:33coffeepotthanks Jehan_ :)
13:35:36coffeepotalthough thinking about it, the typename isn't much use as I cant' use it to cast
13:38:06Jehan_coffeepot: What's the specific application that you need this for?
13:39:07*ephja joined #nim
13:39:44Jehan_Generally, if you need type-dependent stuff, then methods are what you need (that, or `x of T` tests).
13:40:07NimBotnim-lang/Nim devel d3b69e5 Dominik Picheta [+0 ±1 -0]: Fixes #3582.
13:40:56coffeepotentity framework for a game. I want to be able to create an entity and add a selection of objects to represent it's data. The objects will be stored in a hashtable against a data ID
13:42:13coffeepoteg; player.add(position); player.add(physicsData) etc
13:42:15Jehan_Yeah, I'm just not sure why you need the dynamic type.
13:43:57Jehan_Any action that you need to perform contingent upon the type, you can put in a method.
13:53:11coffeepotI think I'm using methods wrong here :/ https://gist.github.com/coffeepots/522613a8adc1b90cb15b
13:55:22*boopsies is now known as boopsiesisaway
14:01:43coffeepotright I think I'm just trying to do something that is impossible. I have another idea on how to do it so I'll try that :) Thanks for your help Jehan_ much appreciated!
14:02:39Jehan_coffeepot: Good luck!
14:02:44coffeepotthanks!
14:10:14*Jesin joined #nim
14:13:18*Jehan_ quit (Quit: Leaving)
14:16:40*girvo joined #nim
14:21:47*girvo quit (Ping timeout: 264 seconds)
14:29:57*BitPuffin quit (Ping timeout: 255 seconds)
14:37:50*aziz joined #nim
14:49:01*Ven is now known as Guest9025
14:59:24*zepolen joined #nim
15:04:03*zepolen quit (Ping timeout: 250 seconds)
15:08:06*Guest9025 quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
15:14:11*ozra joined #nim
15:16:10*Ven_ joined #nim
15:34:13*Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
15:42:44*Ven_ joined #nim
15:58:33*silven quit (Ping timeout: 252 seconds)
15:59:09*silven joined #nim
16:04:17*Varriount-Laptop joined #nim
16:06:06*thotypous quit (Ping timeout: 272 seconds)
16:09:42*barosl joined #nim
16:16:26*gokr quit (Quit: Leaving.)
16:17:28*girvo joined #nim
16:19:27*Jehan_ joined #nim
16:22:01*girvo quit (Ping timeout: 252 seconds)
16:22:20*Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:55:51*zepolen joined #nim
17:04:25*BitPuffin joined #nim
17:04:55*zepolen quit (Ping timeout: 240 seconds)
17:09:52*gokr joined #nim
17:13:21*Varriount-Laptop quit (Ping timeout: 252 seconds)
17:16:06*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
17:17:49*zepolen joined #nim
17:21:55*boopsiesisaway quit (Ping timeout: 272 seconds)
17:28:55*zepolen quit (Remote host closed the connection)
17:33:14*desophos joined #nim
17:33:32*ibeex quit (Quit: Textual IRC Client: www.textualapp.com)
17:33:54*thotypous joined #nim
17:34:38*boopsiesisaway joined #nim
17:35:26*yglukhov_ joined #nim
17:35:36*yglukhov_ quit (Remote host closed the connection)
17:35:48*yglukhov_ joined #nim
17:36:20*vendethiel joined #nim
17:39:23*yglukhov quit (Ping timeout: 252 seconds)
17:39:50*gokr quit (Quit: Leaving.)
17:40:28*yglukhov_ quit (Ping timeout: 272 seconds)
18:00:24*mindriot_ joined #nim
18:03:10*mindriot101 quit (Ping timeout: 240 seconds)
18:05:28*mindriot_ quit (Ping timeout: 276 seconds)
18:18:16*girvo joined #nim
18:18:37*brson joined #nim
18:22:30*girvo quit (Ping timeout: 240 seconds)
18:25:32*desophos quit (Remote host closed the connection)
18:31:21*yglukhov joined #nim
18:33:57*ozra quit (Ping timeout: 246 seconds)
18:35:31*yglukhov quit (Ping timeout: 250 seconds)
18:36:22*desophos joined #nim
18:36:38*Varriount-Laptop joined #nim
18:38:28*Matthias247 joined #nim
18:41:02*jaco60 joined #nim
18:42:32*zaquest quit (Ping timeout: 272 seconds)
18:43:04*zepolen joined #nim
18:51:21*yglukhov joined #nim
18:52:24*yglukhov quit (Remote host closed the connection)
18:52:55*Demon_Fox joined #nim
18:53:08*zepolen quit (Remote host closed the connection)
18:54:03*zepolen joined #nim
18:54:09*gour_ is now known as gour
18:55:58*zepolen quit (Remote host closed the connection)
18:59:14desophosgmpreussner|work: so what do you think about the sodium port?
19:01:47*desophos quit (Remote host closed the connection)
19:02:02*Varriount-Laptop quit (Ping timeout: 244 seconds)
19:07:16*desophos joined #nim
19:07:58gmpreussner|workhey desophos
19:08:02gmpreussner|worki finished the book
19:08:09gmpreussner|worki'm gonna have to read it again :)
19:08:26desophoscool, i haven't finished the book haha
19:08:40desophosidk if i can port this
19:08:53desophosseems very complex
19:08:56gmpreussner|workthere are some good ideas, but it doesn't quite fit together in my head yet.
19:09:13gmpreussner|workit's not that complex. porting should be easy. i haven't decided yet whether it's worth it.
19:09:33gmpreussner|worki also want to review some other FRP like frameworks to get the bigger picture
19:10:44*zepolen joined #nim
19:10:56gmpreussner|worki'm gonna try and build a mock UI framework with FRP this weekend to get a better for feeling what it can do and what's missing
19:11:06desophoscool
19:11:42gmpreussner|workmy main concern right now is the heavily imperative code. the framework suggests that it is functional, but the examples i've seen are very imperative
19:11:56gmpreussner|worki.e. building and wiring up the streams/cells
19:13:10gmpreussner|workit reminds me of how we built UIs in the 80s and 90s. i'm looking for a more declarative/fluent syntax
19:13:25desophoshmm
19:14:48*BitPuffin quit (Ping timeout: 255 seconds)
19:15:01desophosi know what you mean but i don't know it well enough to suggest a solution
19:16:08desophosseems like it's just the initial building that's imperative
19:16:37desophosshouldn't it be possible to just do it all at once?
19:16:42desophosin a declarative style
19:17:52desophosi haven't delved into it enough
19:19:48*yglukhov joined #nim
19:28:20*zepolen quit (Remote host closed the connection)
19:34:40*zepolen joined #nim
19:36:08desophosgmpreussner|work: have you looked at ReactiveX? the authors of the FRP book trash it but it might be decent
19:38:33gmpreussner|worki started looking at it, yes
19:39:03gmpreussner|worki don't think they trash it. they're just saying that it's not pure FRP, and that's causing some issues
19:39:52gmpreussner|workfrom what i understand, RX has grown out of practice, and FRP has a stronger theoretical foundation
19:40:55desophoshmm
19:41:03desophosRx also has a lot more support...
19:41:13desophos(probably due mostly to microsoft backing)
19:48:53*zepolen quit (Remote host closed the connection)
19:51:01*theduke quit (Ping timeout: 252 seconds)
19:53:05desophosi'm actually considering moving to a language with more support :/ nim is a great language but has such a small community and i'm not competent enough to really help expand its support
19:54:33*mat4 joined #nim
19:54:36*gokr joined #nim
19:54:42mat4hi all
19:56:28federico3desophos: :(
19:56:34desophosi know :(
19:56:58federico3a lot of people seem to leave because of that
20:01:14*desophos quit (Remote host closed the connection)
20:03:20*darkf quit (Quit: Leaving)
20:04:07*zepolen joined #nim
20:08:58*theduke joined #nim
20:10:21mat4the available documentation is sufficient albeit not very detailed in my opinion
20:16:52*kulelu88 joined #nim
20:16:54*zepolen quit (Remote host closed the connection)
20:18:55Araqwhat does 'more' support mean when you don't even pay for the available support anyway
20:18:58*girvo joined #nim
20:20:20*zepolen joined #nim
20:23:18*girvo quit (Ping timeout: 250 seconds)
20:25:38strcmp1functional programmers are such purists.
20:25:42strcmp1all or nothing.
20:26:22*mat4 thinks this apprach has some advantages
20:26:30mat4^approach
20:27:08strcmp1i agree but i dont think there is a "one and only" way, so i don't dig the purist argument.
20:31:54*Jehan_ quit (Read error: Connection reset by peer)
20:51:38thedukewhat's the bitwise complement operator?
20:53:24mat4NOT(x) := (-x) - 1
20:53:46*anyday joined #nim
20:55:22mat4alias 'not'
20:56:41mat4see http://nim-lang.org/docs/system.html#not,int
20:56:57mat4"proc `not`(x: int32): int32 {.magic: "BitnotI", noSideEffect.}
20:56:57mat4 computes the bitwise complement of the integer x"
20:57:28thedukemat4: makes sense, thanks
20:57:37*Jehan_ joined #nim
20:58:12thedukei was staring at the manual for 15 minutes, going crazy. Note to self: always check system.html before asking stupid questions. ^^
20:58:50mat4please note that that the first defination is only valid for a value in two-complement format
21:01:47mat4^no question is stupid as is
21:12:38*xet7 joined #nim
21:13:13*mindriot101 joined #nim
21:14:17*Matthias247 quit (Quit: Matthias247)
21:17:16*Matthias247 joined #nim
21:21:55Araqtheduke: the website has been updated and the allmighty index is now the first entry
21:22:01Araqmaybe that helps too
21:25:59mat4Araq: A gently introduction to Nim's 'special features' would probably also helpful. A documentation with explain most common programming tasks compared to another C oriented language
21:27:45*makoLine joined #nim
21:27:48*anyday quit (Quit: Leaving)
21:28:15*jakesyl joined #nim
21:31:37*Sornaensis quit (Excess Flood)
21:32:13*Sornaensis joined #nim
21:36:38*Sornaensis quit (Excess Flood)
21:37:13*Sornaensis joined #nim
21:38:16*zepolen quit (Remote host closed the connection)
21:42:36*gour quit (Quit: WeeChat 1.3)
21:53:32ldleworkIs there an assembler?
21:54:33*jakesyl quit (Ping timeout: 255 seconds)
21:56:40thedukeAraq: all hail the mighty index
21:58:34mat4ldlework: Which kind of assembler do you mean ?
21:59:17ldleworkmat4: a library offering an x86 assembler or similar
21:59:17thedukeA section in the manual listing the binary operators would be nice
22:00:41*zepolen joined #nim
22:00:41*zepolen quit (Remote host closed the connection)
22:00:57*zepolen joined #nim
22:03:15mat4ldlework: there exist an asm keyword for inclusion of assembler sources
22:12:44*aziz quit (Remote host closed the connection)
22:13:01*desophos joined #nim
22:16:05*zepolen quit (Remote host closed the connection)
22:16:52*shodan45 joined #nim
22:17:02*gokr quit (Quit: Leaving.)
22:17:16*gokr joined #nim
22:17:30*desophos quit (Ping timeout: 255 seconds)
22:19:11*mindriot101 quit (Remote host closed the connection)
22:19:47*girvo joined #nim
22:20:43*mindriot101 joined #nim
22:24:39*girvo quit (Ping timeout: 272 seconds)
22:25:47*zaquest joined #nim
22:26:04*desophos joined #nim
22:26:16desophosdid i miss anything?
22:29:10ldleworkmat4: ah but unless I'm doing crazy things with macros that sounds like I wont be able to assmble during runtime
22:29:16ldleworkright
22:33:27mat4you want to compile assembler sequences at runtime ?
22:34:44ephjaopcodes?
22:35:02ldleworkmat4: yes
22:35:21mat4I'm working on it
22:35:26ldleworkmat4: what
22:35:28ldleworklol
22:35:36mat4*g*
22:37:06mat4a JIT compiler
22:38:04mat4however compilation reuse my own instruction-set architecture
22:39:11ldleworkmat4: oh you mean, in general you've been working on a JIT compiler
22:39:13ldleworkjesus
22:39:32ldleworkI thought you were like "hold up, let me throw a JIT together, few more mins..."
22:40:35*kulelu88 quit (Ping timeout: 240 seconds)
22:42:12mat4there are various projects of these spirit available which only need a written wrapper to be accessible with Nim
22:43:45mat4it's only you can't expect good code quality from them
22:44:12mat4need some sleep, ciao
22:44:15ldleworko/
22:44:35*mat4 quit (Quit: Leaving)
22:45:28*makoLine quit (Read error: Connection reset by peer)
22:57:03*kulelu88 joined #nim
23:02:32*makoLine joined #nim
23:08:40thedukeaand another question, how do you increment a pointer? inc / +1 don't work. Casting to int, incrementing and casting works, but I would hope theres a better method. :D
23:12:24*Jesin quit (Quit: Leaving)
23:18:46*Matthias247 quit (Read error: Connection reset by peer)
23:20:59*desophos quit (Remote host closed the connection)
23:21:22*desophos joined #nim
23:24:08*vendethiel quit (Read error: Connection reset by peer)
23:24:20*vendethiel joined #nim
23:37:38*yglukhov quit (Remote host closed the connection)
23:42:32*shodan45 quit (Quit: Konversation terminated!)
23:47:17*BitPuffin|osx joined #nim
23:56:17*mindriot101 quit (Remote host closed the connection)