<< 14-02-2016 >>

00:05:58*asdf joined #nim
00:07:37ldlework>all strings are UTF-8 strings, but this is not enforced. For example, when reading strings from binary files, they are
00:07:38ldleworkmerely a sequence of bytes.
00:07:39ldleworkwhat does this mean?
00:14:03ephjathat no byte sequence validation is performed
00:15:08asdfhow are they utf-8, then?
00:15:21ephjait is by convention
00:15:30ldleworkyeah what does it even mean for some bytes to be utf-8 though
00:15:41ldleworkwhere does the convention ... get manifest
00:16:11ldleworklike literals and such?
00:21:17ephjawell, they should be utf-8 if you use the interface provided by the unicode module
00:23:27ephjayou may perform validations by calling unicode.validateUtf8
00:34:24*zaquest quit (Ping timeout: 272 seconds)
00:45:11*Demon_Fox quit (Quit: Leaving)
01:13:14*filwit quit (Quit: Leaving)
01:18:00ldleworkVarriount_: http://i.imgur.com/gJUcEiu.png
01:19:36*Demon_Fox joined #nim
01:32:24*Trustable quit (Quit: Leaving)
01:33:16*arnetheduck joined #nim
01:34:50*toaoMgeorge quit (Ping timeout: 260 seconds)
01:35:15*jaco60 quit (Ping timeout: 240 seconds)
01:40:07*Matthias247 quit (Read error: Connection reset by peer)
01:52:08*zaquest joined #nim
03:02:34*yglukhov quit (Read error: Connection reset by peer)
03:03:29*yglukhov joined #nim
03:38:15*vikaton quit (Quit: Connection closed for inactivity)
03:57:34*ephja quit (Ping timeout: 256 seconds)
04:02:34*yglukhov quit (Read error: Connection reset by peer)
04:04:34*yglukhov joined #nim
04:30:47*lompik quit (Ping timeout: 264 seconds)
05:01:50*yglukhov quit (Read error: Connection reset by peer)
05:03:35*yglukhov joined #nim
05:46:02Varriount_ldlework: A more precise explanation would be that all string *literals* are utf-8 encoded.
05:48:29Varriount_ldlework: My frustration with most appications of noise for terrain building is that it never generates realistic oceans.
07:01:59*yglukhov quit (Read error: Connection reset by peer)
07:02:09*yglukhov joined #nim
07:09:13Varriount_Araq: Apparently "var TypeName not nil" is an invalid type.
07:18:11*yglukhov quit (Remote host closed the connection)
07:20:54*yglukhov joined #nim
07:25:23*yglukhov quit (Ping timeout: 264 seconds)
07:28:55*nande quit (Read error: Connection reset by peer)
07:40:15*yglukhov joined #nim
07:41:03*spt joined #nim
08:16:20*Arrrr joined #nim
08:38:00*yglukhov quit (Remote host closed the connection)
08:44:20*endragor joined #nim
08:55:31*endragor quit (Remote host closed the connection)
08:57:07*ephja joined #nim
09:00:15*Kingsquee joined #nim
09:03:36*Arrrr quit (Ping timeout: 252 seconds)
09:07:15*Arrrr joined #nim
09:15:37*Kingsquee quit (Read error: Connection reset by peer)
09:32:23*darkf quit (Quit: Leaving)
09:59:46*nsf quit (Quit: WeeChat 1.4)
10:16:06*toaoMgeorge joined #nim
10:17:49*Matthias247 joined #nim
10:29:11*gokr joined #nim
10:52:48*yglukhov joined #nim
10:53:34*yglukhov quit (Remote host closed the connection)
10:53:49*yglukhov joined #nim
10:54:54*yglukhov quit (Remote host closed the connection)
10:56:06*nsf joined #nim
11:00:20*jaco60 joined #nim
11:03:57*Demon_Fox quit (Quit: Leaving)
11:13:46*SShrike joined #nim
11:17:47*gokr quit (Quit: Leaving.)
11:24:14*gokr joined #nim
11:26:25*desophos quit (Read error: Connection reset by peer)
11:32:20*yglukhov joined #nim
12:10:10*yglukhov quit (Remote host closed the connection)
12:12:41*yglukhov joined #nim
12:35:07yglukhovdom96: can i provide multiple binaries in a nimble package? e.g. a game engine comes with a lot of tools like editors, resource packers, exporters, etc.
12:35:22dom96yes
12:36:13yglukhovcool. do i just list those like bin = @["tool1", "tool2"] ?
12:37:44yglukhovalso is there any way to provide different compiler options for different bins?
12:38:53yglukhovor maybe i could do a postinstall hook in nimble file and build my bins as i want and tell nimble to install those bins somehow?
12:38:58dom96yeah, just list them like that. You can use a .nim.cfg file for that
12:39:16dom96Can't do that right now.
12:39:35yglukhovok thanks
12:41:01yglukhovcan i override binary name in nimble file without changing nim file name?
12:41:37dom96nope
12:41:53dom96why not just change the file name?
12:41:56yglukhovok thanks again =)
12:42:03yglukhovyea, no problem at all
12:43:32yglukhovdo you want me to merge your images as is?
12:44:20dom96Up to you. I would like the images to be travis-button-sized as well, but they already look kind of squished.
12:44:43dom96(And the current images aren't travis-sized either ;))
12:46:48yglukhovi know the current images suck. never been a great artist =)
12:48:55dom96heh. My attempts would likely be far worse. Why I asked my girlfriend to do it.
13:13:24*yglukhov quit (Remote host closed the connection)
13:14:03*yglukhov joined #nim
13:17:27*vendethiel joined #nim
13:20:04*toaoMgeorge quit (Ping timeout: 248 seconds)
13:34:37*ThePythonicCow quit (Remote host closed the connection)
13:43:13*SShrike quit (Quit: SShrike)
13:44:14*yglukhov quit (Remote host closed the connection)
13:44:54*yglukhov joined #nim
13:44:56*yglukhov quit (Remote host closed the connection)
14:00:28*lompik joined #nim
15:18:14dom96This looks like an interesting benchmark, anyone up for writing a Nim version? https://github.com/atemerev/skynet
15:22:21Araqdom96: looks totally unrealistic
15:23:39dom96That's too bad.
15:30:20*senevo joined #nim
15:31:26senevoHi. I'm trying to use the yaml library, which is dependent on the values library. I get an error when importing values:
15:31:40senevoproc `.`*(v: ValueRef, key: expr): ValueRef = return v[string(key)] -- conversion from expr to string is invalid
15:32:01senevodoes anyone know how to fix the problem?
15:33:07Araqsenevo: PR it, needs to be key: auto these days
15:37:42senevoAraq: Yes, now it works. Thanks. Will make a PR.
15:38:20*arnetheduck quit (Ping timeout: 260 seconds)
15:47:04*desophos joined #nim
15:54:17*Trustable joined #nim
16:18:32*ga2arch joined #nim
16:22:45*spt quit (Quit: Page closed)
16:23:24*nsf quit (Quit: WeeChat 1.4)
16:30:40*yglukhov joined #nim
16:31:05*aulaug joined #nim
16:33:22*[CBR]Unspoken quit (Ping timeout: 240 seconds)
16:42:00*senevo quit (Quit: Page closed)
16:42:10Araqgood news. I think I got gc:v2 to work :-)
16:43:09yglukhov(woot)!
16:47:34def-Araq: nice
16:47:44yglukhovdom96: ping
16:47:59dom96sup
16:48:47yglukhovso im plyaing with installing bins with nimble, and heres the first bug(?). reinstalling a package leads to nimble exception
16:48:57yglukhovnimble.nim(418) installFromDir
16:49:03yglukhovos.nim(1012) createSymlink
16:49:09yglukhovError: unhandled exception: File exists [OSError]
16:49:19dom96interesting
16:49:26dom96create a bug report please
16:49:34yglukhovkk
16:52:45AraqcreateSymlink needs to copy createDir
16:52:56Araqwhich doesn't fail if the dir already exists
16:53:45dom96perhaps, but should it modify the symlink?
16:54:23Araqno, but if it already exists with the same target, it should be a nop
16:54:48dom96but if it exists with a different target it should raise an exception
16:54:51dom96?
16:55:21yglukhoverr, not sure if thats a good idea... createDir noop is a pretty common pattern. but symlink-same-target noop may lead to unexpected exceptions in production
16:56:19yglukhovno strong opinion though
16:57:04Araqhow could it ever cause problems?
17:01:48*aulaug quit (Ping timeout: 252 seconds)
17:03:31yglukhovwell, consider the following case. if you do symlink-same-target-nop behavior, would you say that nimble bug is fixed? it kinda won't reproduce until package version changes, then the target changes, then all of a sudden we get an exception when updating to different version.
17:05:07Araq*shrug*, it certainly mitigates the problem
17:05:09yglukhovits just speculation anyway.
17:05:17Araqand the stdlib should have resonable defaults
17:05:45Araqand should strive to eliminate as many details as possible that I have to remember when writing code
17:07:35ephjais it a shared GC?
17:09:24yglukhovi agree. but error handling still has to be done, right? besides, symlink-exists and symlink-same-target in most cases have to be handled the same way. so in this case reasonable defaults may relax the user to not add error handling.
17:15:42*Jesin quit (Remote host closed the connection)
17:19:22*Jesin joined #nim
17:21:26*yglukhov quit (Remote host closed the connection)
17:26:51*yglukhov joined #nim
17:33:01*yglukhov quit (Remote host closed the connection)
17:37:58*vikaton joined #nim
17:38:59ga2archwhat's gc:v2 ?
17:43:03Araqyglukhov: thinking about it, we need a putSymlink proc that does it properly
17:43:09Araqlike putEnv does.
17:43:26Araqephja: it's an incremental GC which adheres to deadlines
17:43:58Araqit's not a shared mem GC though since it seems that I actually have to deal with concurrency bugs for this "incremental" feature it might evolve into one
17:44:48Araqdefinitely something I will play with but right now it's for fixing the remaining leaks that .async seems to trigger
17:50:00*Arrrr quit (Ping timeout: 256 seconds)
17:53:09ephjaok
18:07:24dom96Araq: So, when will it be ready for prime time?
18:17:17Araqdunno. in one week? requires extensive testing
18:21:10*ga2arch quit (Quit: Page closed)
18:27:05*endragor joined #nim
18:30:30*darkf joined #nim
18:36:10*nsf joined #nim
18:44:04*yglukhov joined #nim
18:47:15*Ven joined #nim
18:53:45*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:54:02*Ven joined #nim
19:11:25*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
19:14:20*yglukhov quit (Remote host closed the connection)
19:18:08*Sembei quit (Ping timeout: 252 seconds)
19:27:50*endragor quit (Remote host closed the connection)
19:42:39*[CBR]Unspoken joined #nim
20:23:33*sora joined #nim
20:58:22*sora quit (Remote host closed the connection)
21:18:15*vikaton quit (Quit: Connection closed for inactivity)
21:18:28*filcuc joined #nim
21:19:28filcucis it possible given a function identifier extracting its return type and its arguments?
21:19:53filcucsomething like is done in other languages with type traits
21:21:54*toaoMgeorge joined #nim
21:32:29*nsf quit (Quit: WeeChat 1.4)
21:33:59*nsf joined #nim
21:57:24dthrvrplease nim, add curly-braces-for-code-scope support as an alternative to identing. { } :)
22:02:55*yglukhov joined #nim
22:13:08*yglukhov quit (Remote host closed the connection)
22:29:45*Demon_Fox joined #nim
22:46:34*filcuc quit (Quit: Konversation terminated!)
22:57:47*ephja quit (Ping timeout: 264 seconds)
22:59:43*Kingsquee joined #nim
23:14:58*toaoMgeorge quit (Ping timeout: 240 seconds)
23:15:45*toaoMgeorge joined #nim
23:16:58*ekarlso quit (Ping timeout: 256 seconds)
23:26:08*Trustable quit (Remote host closed the connection)
23:34:51*beatmox joined #nim
23:37:58*ekarlso joined #nim
23:50:04*ga2arch joined #nim