00:05:58 | * | asdf joined #nim |
00:07:37 | ldlework | >all strings are UTF-8 strings, but this is not enforced. For example, when reading strings from binary files, they are |
00:07:38 | ldlework | merely a sequence of bytes. |
00:07:39 | ldlework | what does this mean? |
00:14:03 | ephja | that no byte sequence validation is performed |
00:15:08 | asdf | how are they utf-8, then? |
00:15:21 | ephja | it is by convention |
00:15:30 | ldlework | yeah what does it even mean for some bytes to be utf-8 though |
00:15:41 | ldlework | where does the convention ... get manifest |
00:16:11 | ldlework | like literals and such? |
00:21:17 | ephja | well, they should be utf-8 if you use the interface provided by the unicode module |
00:23:27 | ephja | you 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:00 | ldlework | Varriount_: 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:02 | Varriount_ | ldlework: A more precise explanation would be that all string *literals* are utf-8 encoded. |
05:48:29 | Varriount_ | 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:13 | Varriount_ | 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:07 | yglukhov | dom96: 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:22 | dom96 | yes |
12:36:13 | yglukhov | cool. do i just list those like bin = @["tool1", "tool2"] ? |
12:37:44 | yglukhov | also is there any way to provide different compiler options for different bins? |
12:38:53 | yglukhov | or 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:58 | dom96 | yeah, just list them like that. You can use a .nim.cfg file for that |
12:39:16 | dom96 | Can't do that right now. |
12:39:35 | yglukhov | ok thanks |
12:41:01 | yglukhov | can i override binary name in nimble file without changing nim file name? |
12:41:37 | dom96 | nope |
12:41:53 | dom96 | why not just change the file name? |
12:41:56 | yglukhov | ok thanks again =) |
12:42:03 | yglukhov | yea, no problem at all |
12:43:32 | yglukhov | do you want me to merge your images as is? |
12:44:20 | dom96 | Up to you. I would like the images to be travis-button-sized as well, but they already look kind of squished. |
12:44:43 | dom96 | (And the current images aren't travis-sized either ;)) |
12:46:48 | yglukhov | i know the current images suck. never been a great artist =) |
12:48:55 | dom96 | heh. 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:14 | dom96 | This looks like an interesting benchmark, anyone up for writing a Nim version? https://github.com/atemerev/skynet |
15:22:21 | Araq | dom96: looks totally unrealistic |
15:23:39 | dom96 | That's too bad. |
15:30:20 | * | senevo joined #nim |
15:31:26 | senevo | Hi. I'm trying to use the yaml library, which is dependent on the values library. I get an error when importing values: |
15:31:40 | senevo | proc `.`*(v: ValueRef, key: expr): ValueRef = return v[string(key)] -- conversion from expr to string is invalid |
15:32:01 | senevo | does anyone know how to fix the problem? |
15:33:07 | Araq | senevo: PR it, needs to be key: auto these days |
15:37:42 | senevo | Araq: 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:10 | Araq | good news. I think I got gc:v2 to work :-) |
16:43:09 | yglukhov | (woot)! |
16:47:34 | def- | Araq: nice |
16:47:44 | yglukhov | dom96: ping |
16:47:59 | dom96 | sup |
16:48:47 | yglukhov | so im plyaing with installing bins with nimble, and heres the first bug(?). reinstalling a package leads to nimble exception |
16:48:57 | yglukhov | nimble.nim(418) installFromDir |
16:49:03 | yglukhov | os.nim(1012) createSymlink |
16:49:09 | yglukhov | Error: unhandled exception: File exists [OSError] |
16:49:19 | dom96 | interesting |
16:49:26 | dom96 | create a bug report please |
16:49:34 | yglukhov | kk |
16:52:45 | Araq | createSymlink needs to copy createDir |
16:52:56 | Araq | which doesn't fail if the dir already exists |
16:53:45 | dom96 | perhaps, but should it modify the symlink? |
16:54:23 | Araq | no, but if it already exists with the same target, it should be a nop |
16:54:48 | dom96 | but if it exists with a different target it should raise an exception |
16:54:51 | dom96 | ? |
16:55:21 | yglukhov | err, 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:19 | yglukhov | no strong opinion though |
16:57:04 | Araq | how could it ever cause problems? |
17:01:48 | * | aulaug quit (Ping timeout: 252 seconds) |
17:03:31 | yglukhov | well, 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:07 | Araq | *shrug*, it certainly mitigates the problem |
17:05:09 | yglukhov | its just speculation anyway. |
17:05:17 | Araq | and the stdlib should have resonable defaults |
17:05:45 | Araq | and should strive to eliminate as many details as possible that I have to remember when writing code |
17:07:35 | ephja | is it a shared GC? |
17:09:24 | yglukhov | i 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:59 | ga2arch | what's gc:v2 ? |
17:43:03 | Araq | yglukhov: thinking about it, we need a putSymlink proc that does it properly |
17:43:09 | Araq | like putEnv does. |
17:43:26 | Araq | ephja: it's an incremental GC which adheres to deadlines |
17:43:58 | Araq | it'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:48 | Araq | definitely 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:09 | ephja | ok |
18:07:24 | dom96 | Araq: So, when will it be ready for prime time? |
18:17:17 | Araq | dunno. 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:28 | filcuc | is it possible given a function identifier extracting its return type and its arguments? |
21:19:53 | filcuc | something 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:24 | dthrvr | please 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 |