<< 04-03-2016 >>

00:05:04*Varriount quit (Disconnected by services)
00:05:05*Varriount_ joined #nim
00:05:30*zepolen_ quit (Remote host closed the connection)
00:06:20*Demos joined #nim
00:11:31*Matthias247_ quit (Read error: Connection reset by peer)
00:12:13*Demos quit (Ping timeout: 248 seconds)
00:24:31Sergio965Is there a way to set a default value on an object's propety?
00:25:26def-Sergio965: make an initMyObject/newMyObject proc with default values
00:25:39def-default values for the proc parameters
00:26:23Sergio965Are you saying to use just a regular function or is there some way to specify the initializer?
00:26:47def-regular function
00:27:06Sergio965Sigh, that's unfortunate.
00:27:10Sergio965Makes things look not as nice.
00:27:31def-quite the opposite, it's nice and the way to go in Nim
00:27:53def-and consistent with Nim's standard library of course
00:28:07Sergio965Well, calling a function looks like: newPoint(x = 10, y = 20) as opposed to Point(x: 10, y: 20)
00:28:20*zepolen joined #nim
00:29:14def-sure, but that's just syntax. what if one day you decide that your Point object needs a new field that's set dependent on some other fields. With the newPoint proc you can easily add that, by calling the Point constructor you can't and have to change all invocations
00:30:27Sergio965Sure sure, I understand the benefit. But it would be nice if I could just specify a proc named Point(x: float, y: float) that woudl be called when Point(x: 10, y: 10) is written.
00:30:38Sergio965An initializer
00:31:10def-well, if you don't want consistency with the rest of Nim you can call your proc Point and call it with Point(x=10, y=10)
00:31:33Sergio965Yeah, that's fair.
00:31:58def-there were quite a few discussions about constructors and naming if you're interested: http://forum.nim-lang.org/t/703
00:34:57Sergio965Indeed, a lengthy discussion.
00:34:57*zepolen quit (Remote host closed the connection)
00:45:08*InstanceOfMichae joined #nim
00:48:35*SpaceGazebo quit (Ping timeout: 248 seconds)
00:48:57*zepolen joined #nim
00:48:57*SpaceGazebo joined #nim
00:50:31*InstanceOfMichae quit (Ping timeout: 244 seconds)
00:51:31*desophos quit ()
01:01:39*zepolen quit (Remote host closed the connection)
01:04:07*[CBR]Unspoken quit (Ping timeout: 260 seconds)
01:11:31*francisl joined #nim
01:19:33*sora quit (Remote host closed the connection)
01:20:19*[CBR]Unspoken joined #nim
01:31:19*Trustable quit (Remote host closed the connection)
01:35:05*saml_ joined #nim
01:38:42*francisl quit (Quit: francisl)
01:41:21*kulelu88 joined #nim
01:45:56*zepolen joined #nim
02:14:01*zepolen quit (Remote host closed the connection)
02:42:15*desophos joined #nim
02:46:42*Demos joined #nim
02:49:12*brson quit (Quit: leaving)
02:51:24*Demos quit (Ping timeout: 244 seconds)
02:52:07*Demos joined #nim
03:01:44*saml_ quit (Quit: Leaving)
03:04:59*MyMind joined #nim
03:05:21*Sembei quit (Ping timeout: 250 seconds)
03:11:18*darkf joined #nim
03:17:47*francisl joined #nim
03:32:29*endragor joined #nim
03:38:53*endragor quit (Remote host closed the connection)
03:44:00*kulelu88 quit (Quit: Leaving)
03:47:32*vendethiel joined #nim
04:06:28*endragor joined #nim
04:09:33*vendethiel quit (Ping timeout: 240 seconds)
04:15:58*desophos quit (Read error: Connection reset by peer)
04:16:06*endragor quit (Remote host closed the connection)
04:25:27*Pisuke joined #nim
04:25:55*zepolen joined #nim
04:26:01*mahasamoot joined #nim
04:26:25*BlaXpirit quit (Ping timeout: 240 seconds)
04:26:47*francisl quit (Ping timeout: 268 seconds)
04:27:07*francisl joined #nim
04:28:07*MyMind quit (Ping timeout: 250 seconds)
04:29:09*BlaXpirit joined #nim
04:29:52*Demos quit (Ping timeout: 268 seconds)
04:30:07*zepolen quit (Ping timeout: 244 seconds)
04:30:13*Demos joined #nim
04:30:16*mahasamoot quit (Ping timeout: 250 seconds)
04:31:53*endragor joined #nim
04:43:15*mahasamoot joined #nim
04:44:59*boopsiesisaway is now known as boopsies
04:45:07*boopsies is now known as boopsiesisaway
05:04:24*mahasamoot_ joined #nim
05:04:44*mahasamoot quit (Ping timeout: 244 seconds)
05:05:17*Demos quit (Quit: Leaving)
05:08:05*francisl quit (Quit: francisl)
05:19:21*emery quit (Ping timeout: 276 seconds)
05:19:49*Senketsu joined #nim
05:20:48*Senketsu quit (Remote host closed the connection)
05:22:34*Senketsu joined #nim
05:23:30*emery joined #nim
05:36:40*Druage joined #nim
05:39:21*francisl joined #nim
05:58:28*mahasamoot_ quit (Ping timeout: 244 seconds)
06:03:13*SpaceGazebo quit (Ping timeout: 240 seconds)
06:04:22*fUD joined #nim
06:04:38fUDWhere are the best instructions for building from git.
06:04:50fUDSeems the instructions are missing a bit on how to actually install
06:05:56fUDShould I use kosh to install for example into my home dir?
06:07:06fUDkoch that is.
06:09:12*Druage quit (Quit: Page closed)
06:16:40*francisl quit (Quit: francisl)
06:18:03*endragor_ joined #nim
06:21:23*endragor quit (Ping timeout: 248 seconds)
06:28:09fUDok, I got a bit further installed it to ~/.nim and added ~/.nim/nim/bin to my path
06:28:26fUDI'm trying to install Nimble and get.
06:28:27fUDUsers/billsb/Code/Nim/nimble0/src/nimblepkg/nimscriptsupport.nim(8, 11) Error: cannot open 'compiler/ast'
06:31:27*bjz joined #nim
06:38:36*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
06:40:00*endragor_ quit (Remote host closed the connection)
06:40:29*endragor joined #nim
06:43:02*fUD quit (Ping timeout: 260 seconds)
06:54:56*endragor quit (Remote host closed the connection)
06:56:35*bjz joined #nim
06:57:52*fUD joined #nim
07:02:11*vendethiel joined #nim
07:02:22*fUD quit (Ping timeout: 250 seconds)
07:10:52*Kingsquee joined #nim
07:20:14*endragor joined #nim
07:23:59*bjz_ joined #nim
07:25:07*bjz quit (Ping timeout: 252 seconds)
07:28:42*fUD joined #nim
07:33:06*fUD quit (Ping timeout: 246 seconds)
07:42:26*toaoMgeorge joined #nim
07:48:00*vendethiel quit (Ping timeout: 244 seconds)
07:55:12*lokien_ joined #nim
07:59:11*fUD joined #nim
08:03:02*endragor quit (Remote host closed the connection)
08:03:33*fUD quit (Ping timeout: 246 seconds)
08:29:36*fUD joined #nim
08:34:00*fUD quit (Ping timeout: 246 seconds)
08:36:11*zepolen joined #nim
08:51:38*zepolen quit (Remote host closed the connection)
09:00:01*fUD joined #nim
09:03:48*endragor joined #nim
09:03:51*pandey joined #nim
09:04:20*pandey left #nim (#nim)
09:04:39*fUD quit (Ping timeout: 264 seconds)
09:08:05*endragor quit (Ping timeout: 244 seconds)
09:09:01veganskAraq, hi. I have a question about ``types.nim`` and firstOrd function. Is it a mistake that firstOrd returns -2147483648 for int32 or int on 32bit platform? Isn't it -2147483647?
09:10:41Araqvegansk: no, it has to be even. thanks to two's complement representation there is one negative number that has no positive counterpart (and boy does that suck)
09:11:35AraqIMHO the bit pattern should have been hardwired to NaN or zero
09:12:32*biscarch_ quit (Read error: Connection reset by peer)
09:12:41veganskWell, I got ``true`` for this expression on tcc (x86): ``1.BiggestInt < low(int)``
09:14:02*biscarch_ joined #nim
09:18:07*endragor joined #nim
09:19:42veganskOn gcc it's ``false``
09:28:48AraqI don't know why people bother with tcc. is that even maintained?
09:29:33veganskFound it. Preparing the PR
09:30:24*fUD joined #nim
09:31:34*yglukhov joined #nim
09:34:49*fUD quit (Ping timeout: 240 seconds)
09:36:21*zepolen joined #nim
09:37:36wuehlmausfor me that's very easy: nim secret is unstable so i use tnim for a repl and that's quite slow so i use tcc which makes it much more bearable
09:54:12*Varriount joined #nim
09:55:04*Varriount_ quit (Ping timeout: 244 seconds)
10:00:57*fUD joined #nim
10:05:21*fUD quit (Ping timeout: 246 seconds)
10:13:39*biscarch_ quit (Read error: Connection reset by peer)
10:14:24*biscarch_ joined #nim
10:31:40*fUD joined #nim
10:35:40*toaoMgeorge quit (Quit: Bye)
10:35:55*fUD quit (Ping timeout: 244 seconds)
10:36:45*Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif)
11:02:35*fUD joined #nim
11:07:03*fUD quit (Ping timeout: 240 seconds)
11:09:06*Demon_Fox quit (Quit: Leaving)
11:10:06*yglukhov_ joined #nim
11:12:01*yglukhov quit (Ping timeout: 240 seconds)
11:26:33*bjz_ quit (Ping timeout: 244 seconds)
11:32:54*fUD joined #nim
11:33:59*bjz joined #nim
11:37:39*fUD quit (Ping timeout: 264 seconds)
11:39:54*filwit joined #nim
11:41:50filwit2000+ forum threads. cool.
11:47:54*yglukhov_ quit (Remote host closed the connection)
11:48:27*yglukhov joined #nim
11:51:49*toaoMgeorge joined #nim
11:53:54Araqfilwit: tried the new 'using'?
11:54:22filwitAraq: nope. I've been using 0.13 release for the last month or so
11:55:07filwitAraq: but I thought you where depreciating that? Did you decide to keep it around and improve it instead?
11:56:00AraqI used the 'using' keyword for my 'sig' idea
11:56:06*endragor quit (Remote host closed the connection)
11:56:15Araqinstead of the old 'using' we have a .this pragma
12:03:45*fUD joined #nim
12:08:03*fUD quit (Ping timeout: 240 seconds)
12:13:14filwitoh right right. cool
12:13:49filwiti was going to suggest making the 'sig' (now using) a pragma (so you could push/pop it), but I don't think the syntax would work :\
12:25:38*endragor joined #nim
12:27:34*bjz quit (Ping timeout: 260 seconds)
12:28:02*bjz joined #nim
12:28:18*toaoMgeorge quit (Quit: Bye)
12:34:41*fUD joined #nim
12:38:53*fUD quit (Ping timeout: 244 seconds)
13:00:04*lokien_ quit (Quit: Connection closed for inactivity)
13:02:12*lokien left #nim ("Leaving")
13:10:03*PMunch joined #nim
13:20:00*GangstaCat quit (Quit: Leaving)
13:20:11*Sembei joined #nim
13:20:51*Pisuke quit (Ping timeout: 264 seconds)
13:24:00*yglukhov_ joined #nim
13:26:46*GangstaCat joined #nim
13:28:03*yglukhov quit (Ping timeout: 248 seconds)
13:45:34*endragor_ joined #nim
13:46:55*arnetheduck joined #nim
13:49:10*endragor quit (Ping timeout: 244 seconds)
13:49:40*endragor_ quit (Ping timeout: 244 seconds)
13:57:36*yglukhov_ quit (Remote host closed the connection)
13:58:10*yglukhov joined #nim
14:05:23*yglukhov quit (Remote host closed the connection)
14:05:57*yglukhov joined #nim
14:10:47*mahasamoot joined #nim
14:23:33*wuehlmaus quit (Ping timeout: 240 seconds)
14:44:18*mahasamoot quit (Ping timeout: 246 seconds)
15:04:38*sora joined #nim
15:12:31*mahasamoot joined #nim
15:13:20*Trustable joined #nim
15:45:47PMunchIs there a way to specify nulls in with the JSON module %* ?
15:47:19PMunchSay I want the JSON '{"test":null}', I tried with %*{"test":nil} but that results in '{"test":""}'
15:47:34*lokien_ joined #nim
15:53:06*jck quit (Read error: Connection reset by peer)
16:03:01*lokien_ left #nim (#nim)
16:15:20*polde quit (Ping timeout: 268 seconds)
16:16:09*arnetheduck quit (Remote host closed the connection)
16:42:54*filcuc quit (Read error: Connection reset by peer)
16:47:44*PMunch quit (Ping timeout: 260 seconds)
17:00:01*zepolen quit (Remote host closed the connection)
17:06:56*hcorion joined #nim
17:18:14dyce_is it possible to compile for arm linux from osx?
17:22:06*zepolen joined #nim
17:23:31*yglukhov_ joined #nim
17:26:22*yglukhov quit (Ping timeout: 250 seconds)
17:28:06*yglukhov_ quit (Ping timeout: 268 seconds)
17:45:22*Jesin quit (Quit: Leaving)
17:58:41*Jesin joined #nim
17:59:50def-dyce_: If you can do it for C code, it should work for Nim
18:01:04def-PMunch: about the JSON null, let me see if I can add that
18:07:47*darkf quit (Quit: Leaving)
18:10:41*yglukhov joined #nim
18:15:13*yglukhov quit (Ping timeout: 252 seconds)
18:15:28*brson joined #nim
18:40:12*pregressive joined #nim
18:49:53*vendethiel joined #nim
18:57:29federico3filwit: 2k forum threads but the commit activity on packages.json (and Nim itself) dropped very, very rapidly
19:04:49*Matthias247 joined #nim
19:09:47*gokr joined #nim
19:15:54*vendethiel quit (Ping timeout: 276 seconds)
19:24:40*yglukhov joined #nim
19:29:47*hcorion quit (Remote host closed the connection)
19:30:38*vendethiel joined #nim
19:41:05gmpreussner_i'm reading up on the constructor forum thread. that's quite a discussion...
19:43:21gmpreussner_i'm only on page 7, but i feel like the bottom line of the argument is that we do not want to allow programmers to create objects with invalid state, which is definitely a good goal
19:49:15*yglukhov quit (Remote host closed the connection)
19:51:31*gokr quit (Quit: Leaving.)
19:51:36*vendethiel quit (Ping timeout: 246 seconds)
19:54:06*yglukhov joined #nim
20:01:56ldleworkYeah I will often run into uninitialized string bugs for a few minuts anytime I create a new type with a string, or interact with one that has one.
20:02:30ldleworkI rarely remember that unlike the tuple full of ints, the string field will sigsev if I don't do something meaningful with it
20:12:02*desophos joined #nim
20:12:23*jaco60 joined #nim
20:34:39Araqldlework: which language do you usually use that doesn't have this problem?
20:34:51ldleworkpython
20:35:00ldleworkits not meaningful
20:37:05Araqpython uses None instead?
20:37:34*CarlSchou joined #nim
20:37:48AraqI tried to make not-nil the default btw, it requires rewriting the compiler ... but maybe we should do it as a mode instead
20:38:10Araqso that we can gradually move the compiler over to the new default
20:39:41CarlSchouJust installed Nim & Aporia and when compiling a basic echo program i'm getting this error http://pastebin.com/raw/sPextKLj Help would be appreciated
20:40:16ldleworkAraq: a = str() == ""
20:40:51AraqCarlSchou: open a terminal (cmd.exe) and type 'gcc -v'
20:41:07Araqldlework: cannot follow you.
20:41:09CarlSchouIm missing an environment variable i guess, command not found.
20:41:59ldleworkAraq: if I call the builtin string type, I get an empty string
20:42:26ldleworkThere are no "string typed fields" so there is no uninitialzied string situation to begin with
20:42:26AraqCarlSchou: the installer can add 'gcc' to the PATH for you
20:42:33ldleworkin params, yeah its none
20:42:48CarlSchouTicked everything on while installing, weird.
20:43:24AraqCarlSchou: the installer sets your local PATH which for some reasons might not exist at all and then it silently does nothing ... (I think)
20:45:09yglukhov dom96: can i use a git submodule inside nimble package?
20:45:53*vendethiel joined #nim
20:47:35CarlSchouReinstalled and still isn't working, do i just add compiler directory to my path variable?
20:48:53CarlSchouChecked my path, nothing nim related there.
20:50:39AraqCarlSchou: add $nim\bin and $nim\dist\mingw\bin to your PATH
20:52:55CarlSchouHint: operation successful (10909 lines compiled; 0.329 sec total; 16.163MB; Debug Build) [SuccessX] ^^
20:53:10CarlSchouis there a reason a simple echo exe is 240kbs?
20:53:18*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
20:55:05Araquse -d:release and check again
20:56:27CarlSchou67kb
20:56:46CarlSchougot it down to 24kb via some other ones but that's still alot for a one line
20:56:50CarlSchougot it down to 24kb via some other ones but that's still alot for a one line program
20:57:39dom96yglukhov: I don't think Nimble will pull the submodules for you
21:00:44CarlSchouanother error, this time --app:gui; http://pastebin.com/raw/7qaL6ixb
21:01:11dom96CarlSchou: http://hookrace.net/blog/nim-binary-size/
21:01:32dom96You can get it down to 150 bytes if you really want
21:03:21Araqor save the file as .bat and get it down even further
21:06:24*yglukhov quit (Read error: Connection reset by peer)
21:06:58*yglukhov joined #nim
21:07:49*yglukhov quit (Remote host closed the connection)
21:07:59*bjz joined #nim
21:08:37*Ivan__ joined #nim
21:09:50*PMunch joined #nim
21:11:08*Demon_Fox joined #nim
21:12:00*yglukhov joined #nim
21:13:38Ivan__Hey, dumb question time, where is the button to change my avatar on the nim forum? I've been looking a few times and can't find it!
21:15:45def-Ivan__: hi, here: https://en.gravatar.com/
21:15:58def-you can log in there with the same email address as on nim forum and change it
21:16:27*filwit_ joined #nim
21:17:10Ivan__ah okey, so gravatar is something the nim forum embeds
21:17:27*mat4 joined #nim
21:17:30mat4hello
21:19:56*filwit quit (Ping timeout: 250 seconds)
21:21:46*CarlSchou quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
21:26:24*CarlSchou joined #nim
21:29:42*vendethiel quit (Ping timeout: 260 seconds)
21:32:03AraqCarlSchou: our mingw is truely "minimal" (some say 'broken') for --app:gui you need to install an official mingw distribution
21:32:43CarlSchouSo just install mingw to Nim\dist\mingw ?
21:36:13CarlSchouWhich ones should i tick? http://i.imgur.com/4Jrgc5s.png
21:37:32CarlSchoufuck it, ticked everything.
21:45:14*vendethiel joined #nim
21:54:49Araqspoken like a true developer :-)
21:55:07CarlSchouIf only it worked tho <.<
21:55:18CarlSchoulemme paste the new erro
21:55:20CarlSchoulemme paste the new error
21:56:15CarlSchouhttp://pastebin.com/raw/fZ2Ch9iQ
21:56:24CarlSchouInstalled the mingw to dist/mingw
22:01:16def-CarlSchou: try removing the nimcache directory
22:01:37def-if that doesn't work you might be mixing 32 and 64bit somehow
22:01:52CarlSchouSame error
22:02:33CarlSchoumy nim is 64bit atleast
22:02:40CarlSchoulet me just check MingW
22:03:17CarlSchoui'll try using 32bit nim
22:04:49mat4I expect your issues to be somehow MingW related
22:06:41*mahasamoot_ joined #nim
22:08:29*jaco60 quit (Ping timeout: 248 seconds)
22:09:27*mahasamoot quit (Ping timeout: 264 seconds)
22:09:52CarlSchouReinstalled nim to 32 bit and now everything is working flawlessly
22:09:53CarlSchouweee
22:12:00*jaco60 joined #nim
22:12:31mat4probably you use a 32 bit Windows installation
22:15:34CarlSchouyea most likely
22:15:56CarlSchousorry, misread your message, im on a 64bit system but i guess the mingw i installed was 32bit
22:18:11*CarlSchou quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
22:20:45*jaco60 quit (Ping timeout: 248 seconds)
22:21:15mat4to my knowledge the official MingW installer is 32 bit only. Anyhow, there exist installers for seperate 64 bit builds
22:22:18mat4(this lead likely to problems of incompatible binary formats, specially for the Gnu C compiler)
22:22:51def-right, should probably use mingw-w64
22:24:26*jaco60 joined #nim
22:27:00*sora quit (Ping timeout: 276 seconds)
22:27:07*vendethiel quit (Ping timeout: 252 seconds)
22:27:30*sora joined #nim
22:28:41*Ivan__ quit (Quit: Page closed)
22:43:08*jaco60 quit (Ping timeout: 250 seconds)
22:43:51*jaco60 joined #nim
23:06:06*jaco60 quit (Ping timeout: 250 seconds)
23:07:35PMunchhttps://github.com/nim-lang/Nim/pull/3933 I see you fixed the null bug in JSON I asked about earlier
23:07:55*jaco60 joined #nim
23:08:01*pregressive quit (Remote host closed the connection)
23:09:09*saml quit (Quit: Leaving)
23:09:11*toaoMgeorge joined #nim
23:11:44*mahasamoot_ quit (Ping timeout: 250 seconds)
23:12:56*mat4 quit (Quit: Leaving)
23:24:56*toaoMgeorge quit (Quit: Bye)
23:30:23*MCM joined #nim
23:30:46*MCM is now known as Guest19225
23:49:13*jaco60 quit (Ping timeout: 240 seconds)
23:51:09*jaco60 joined #nim
23:53:24*beatmox quit (Remote host closed the connection)
23:53:39*beatmox joined #nim