00:03:37 | * | yglukhov joined #nim |
00:05:11 | * | Flox42 quit (Remote host closed the connection) |
00:05:11 | * | M-max quit (Remote host closed the connection) |
00:05:11 | * | M-Quora quit (Remote host closed the connection) |
00:08:27 | * | yglukhov quit (Ping timeout: 276 seconds) |
00:09:05 | * | Flox42 joined #nim |
00:24:55 | * | Varriount quit (Read error: Connection reset by peer) |
00:25:47 | * | Varriount joined #nim |
00:43:29 | * | brechtm quit (Read error: Connection reset by peer) |
00:43:35 | * | brechtm_ joined #nim |
01:16:52 | * | ftsf_ joined #nim |
01:18:27 | * | chemist69 quit (Ping timeout: 264 seconds) |
01:28:54 | * | yglukhov joined #nim |
01:31:44 | * | chemist69 joined #nim |
01:33:27 | * | yglukhov quit (Ping timeout: 260 seconds) |
01:49:18 | * | M-Quora joined #nim |
01:52:55 | * | yglukhov joined #nim |
01:57:39 | * | yglukhov quit (Ping timeout: 276 seconds) |
02:18:02 | * | brechtm_ quit (Read error: Connection reset by peer) |
02:18:52 | * | brechtm joined #nim |
02:21:12 | * | M-max joined #nim |
02:29:00 | * | yglukhov joined #nim |
02:34:03 | * | yglukhov quit (Ping timeout: 276 seconds) |
02:41:25 | * | kssreeram joined #nim |
02:53:28 | * | yglukhov joined #nim |
02:58:06 | * | yglukhov quit (Ping timeout: 276 seconds) |
03:00:07 | * | trusion joined #nim |
03:19:12 | * | brechtm_ joined #nim |
03:19:44 | * | brechtm quit (Read error: Connection reset by peer) |
03:30:34 | * | yglukhov joined #nim |
03:35:22 | * | yglukhov quit (Ping timeout: 260 seconds) |
04:06:15 | * | yglukhov joined #nim |
04:10:57 | * | yglukhov quit (Ping timeout: 260 seconds) |
04:16:10 | * | GangstaCat joined #nim |
04:21:25 | * | vegansk joined #nim |
04:30:41 | * | yglukhov joined #nim |
04:35:36 | * | yglukhov quit (Ping timeout: 276 seconds) |
04:52:46 | * | ephja quit (Read error: Connection reset by peer) |
04:57:09 | * | Demon_Fox quit (Quit: Leaving) |
05:06:50 | * | yglukhov joined #nim |
05:11:37 | * | yglukhov quit (Ping timeout: 260 seconds) |
05:14:14 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
05:27:29 | * | GangstaCat quit (Quit: Leaving) |
05:36:47 | * | fastrom quit (Quit: Leaving.) |
05:39:45 | * | yglukhov joined #nim |
05:44:30 | * | yglukhov quit (Ping timeout: 276 seconds) |
06:26:13 | * | hendi__ joined #nim |
06:28:08 | * | brechtm joined #nim |
06:28:46 | * | brechtm_ quit (Read error: Connection reset by peer) |
06:52:07 | * | yglukhov joined #nim |
06:57:27 | * | Demon_Fox joined #nim |
07:13:55 | * | hendi__ quit (Ping timeout: 250 seconds) |
07:17:49 | * | afrigginelf joined #nim |
07:31:03 | * | brechtm quit (Ping timeout: 264 seconds) |
07:31:14 | * | brechtm joined #nim |
07:39:12 | * | brechtm quit (Remote host closed the connection) |
07:39:49 | * | brechtm joined #nim |
07:45:05 | * | afrigginelf quit (Read error: Connection reset by peer) |
07:53:35 | * | irrequietus joined #nim |
08:14:20 | * | pafmaf joined #nim |
08:15:53 | * | ftsf_ quit (Quit: :q!) |
08:17:09 | * | aaaa_ joined #nim |
08:20:57 | * | irrequietus quit () |
08:21:01 | * | irrequietus_ joined #nim |
08:22:40 | * | aaaa_ quit (Quit: Page closed) |
08:33:13 | * | Demon_Fox quit (Quit: Leaving) |
08:35:02 | * | kssreeram joined #nim |
08:44:26 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
08:46:58 | * | mcc quit (Quit: Connection closed for inactivity) |
08:50:54 | * | irrequietus_ quit () |
08:51:15 | * | irrequietus_ joined #nim |
08:51:15 | * | irrequietus_ quit (Client Quit) |
08:52:25 | * | irrequietus joined #nim |
08:56:12 | * | kssreeram joined #nim |
09:00:15 | * | kssreeram quit (Client Quit) |
09:00:28 | * | kssreeram joined #nim |
09:05:55 | * | kssreeram quit (Ping timeout: 252 seconds) |
09:18:09 | * | kssreeram joined #nim |
09:25:56 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
09:26:22 | * | kssreeram joined #nim |
09:45:26 | * | kssreeram quit (Read error: Connection reset by peer) |
09:52:19 | * | desophos quit (Read error: Connection reset by peer) |
09:56:55 | * | kssreeram joined #nim |
09:57:11 | * | endragor_ joined #nim |
10:00:31 | * | hendi__ joined #nim |
10:04:31 | * | fredrik92 joined #nim |
10:15:46 | * | fastrom joined #nim |
10:18:18 | * | kssreeram quit (Read error: Connection reset by peer) |
10:30:51 | * | filcuc joined #nim |
10:36:30 | * | fastrom quit (Quit: Leaving.) |
10:39:20 | * | fastrom joined #nim |
10:44:58 | * | fastrom quit (Quit: Leaving.) |
10:50:23 | Araq | yglukhov: how come lstat fails even though the fileExists()? |
10:51:02 | yglukhov | Araq: is there an official way to tell nim that this .nim file should be transleted to .m file (objc). Currently if i use some {.importobjc.} functions from another nim file, my current file still remains .c. And C compiler complains. |
10:51:32 | yglukhov | symlinks are relative |
10:51:59 | yglukhov | and relative path is provided to lstat |
10:52:04 | yglukhov | as far as i understood |
10:52:33 | * | Salewski joined #nim |
10:54:55 | Salewski | Araq, do you have an idea about the todays issues in http://forum.nim-lang.org/t/1978/14 ? I really wonder about what header pragma makes in this case, and why %d works with Nim's int type which may be larger than cint. |
10:55:27 | Araq | yglukhov: nim objc foo.nim # compile everything as Objective C |
10:55:52 | yglukhov | Araq: thats not an option. i only need a couple of files as objc =) |
10:56:24 | yglukhov | if i declare {.objcimport.} stuff right inside the file, then its perfectly fine. |
10:56:32 | * | nsf quit (Quit: WeeChat 1.5) |
10:56:54 | yglukhov | i can do a hacky workaround, of course. |
10:57:07 | yglukhov | just wanted to make sure i havent missed anything |
10:58:11 | Araq | yglukhov: well I dunno. maybe the codegen needs to be aware of Objc deps |
10:58:25 | yglukhov | ok |
10:58:29 | Araq | Salewski: the example is all wrong anyway |
10:58:48 | Araq | you shouldn't tell Nim to generate its own version of the printf() prototype |
10:59:05 | Araq | use .header instead. |
10:59:30 | Salewski | Example is from the perfect book. |
10:59:33 | Araq | %d works because of stack alignment magic, I think |
10:59:57 | Araq | I think I told dom96 to do it properly... not sure why that ended up in the book anyway |
11:00:14 | Salewski | Thanks. |
11:09:48 | * | chemist69 quit (Ping timeout: 272 seconds) |
11:11:33 | Flox42 | I am trying to use an asynchttpserver in a thread and get the following compile error for the callback: 'cb' is not GC-safe as it accesses 'nameIterVar' which is a global using GC'ed memory. Is there any way around this? |
11:18:27 | Araq | Flox42: use cheatfate's wanted server instead |
11:18:47 | Araq | it's multi-threading ready and compatible with asynchttpserver |
11:18:51 | Araq | as far as I know |
11:19:04 | Araq | brew install ffmeg |
11:19:04 | Araq | Error: No available formula with the name "ffmeg" |
11:19:04 | Araq | ==> Searching for similarly named formulae... |
11:19:06 | Araq | Error: No similarly named formulae found. |
11:19:08 | Araq | ==> Searching taps... |
11:19:10 | Araq | Error: No formulae found in taps. |
11:19:12 | Araq | yglukhov: ^ |
11:19:41 | yglukhov | * ffmpeg |
11:19:50 | yglukhov | Araq: ^ |
11:20:51 | Flox42 | Araq: thx, will try |
11:21:09 | cheatfate | Araq, it still in Proof of concept stage |
11:21:37 | cheatfate | and still not compatible |
11:22:08 | dom96 | Araq: It's the first wrapping example and I decided to make it as simple as possible. |
11:22:33 | * | elrood joined #nim |
11:25:21 | Flox42 | I am using jester already in a thread, which works fine. now I want to start a asynchttp for websockets in the same thread, which gives me the above error. |
11:26:41 | * | chemist69 joined #nim |
11:27:11 | * | jjido joined #nim |
11:28:51 | Araq | dom96: yeah but printf is tricky |
11:28:59 | Araq | maybe show something else instead. |
11:31:48 | dom96 | Araq: okay, any suggestions? |
11:33:20 | Araq | char * setlocale (int category, const char *locale) |
11:33:35 | Araq | a) seems easy enough |
11:33:39 | Araq | b) seems useful |
11:33:44 | Araq | c) not part of the stdlib |
11:35:19 | * | kssreeram joined #nim |
11:35:47 | jjido | "Useful" is relative. A large portion of programmers don't care about localization at all. |
11:39:23 | dom96 | yeah, `printf` is much easier to demonstrate and more programmers are familiar with it. |
11:40:54 | * | euantor joined #nim |
11:43:31 | Araq | so add a .header and explain why it's necessary |
11:43:34 | Salewski | dom96, printf is fine, but explanation is more useful if correct and complete. |
11:43:39 | Araq | or use .nodecl |
11:43:47 | Araq | you need to explain the difference anyway |
11:44:01 | Araq | Nim generating a C prototype vs not generating a prototype |
11:44:08 | Araq | it's important. |
11:44:22 | Araq | ../Cellar/ffmpeg/2.8.3/bin/ffmpeg |
11:44:28 | Araq | yglukhov: so what am I supposed to do with this path? |
11:44:56 | Araq | realpath() doesn't understand it either. |
11:45:36 | * | fredrik92 quit (Ping timeout: 250 seconds) |
11:45:48 | Araq | symlinks to relative paths, wtf, did I mention that I love Unix? |
11:46:33 | Araq | it's like C++, all sort of features that interact with each other and when your software ignores them, it's buggy |
11:49:07 | Salewski | Bye. |
11:49:10 | * | Salewski quit () |
11:49:28 | Araq | though C++ at least tries to be typesafe and doesn't embrace stringly typed interfaces everywhere. |
11:57:53 | yglukhov | Araq: have you managed to reproduce the issue with findExe? |
11:58:12 | yglukhov | symlink path may be relative to the symlink |
11:58:47 | yglukhov | and thats cool. you can have a dir with symlinks within that dir. copying this dir will not break the links. |
12:09:01 | Flox42 | so, I can't really use asynchttpserver or libraries that use asynchttpserver and async calls when using --threads:on? |
12:14:04 | dom96 | Araq: ok, will add nodecl |
12:14:50 | * | kssreeram quit (Read error: Connection reset by peer) |
12:18:19 | dom96 | Flox42: right now it's not officially supported I'm afraid. |
12:20:55 | * | jjido quit (Read error: Connection reset by peer) |
12:24:38 | * | kssreeram joined #nim |
12:37:20 | * | jjido joined #nim |
13:06:12 | * | jjido quit (Ping timeout: 244 seconds) |
13:07:24 | * | ephja joined #nim |
13:10:41 | * | kssreeram quit (Read error: Connection reset by peer) |
13:15:23 | Araq | yglukhov: ok, but expandFilename(x / r) fails too |
13:15:53 | Araq | expandFilename("/usr/local/bin/ffmpeg/../Cellar/ffmpeg/2.8.3/bin/ffmpeg") |
13:16:16 | Araq | so *shrug*, still a piece of crap. |
13:16:37 | Araq | I guess I have to write my own "relative path resolver" then, fun. |
13:24:21 | * | jjido joined #nim |
13:37:37 | * | jjido quit (Ping timeout: 252 seconds) |
13:48:51 | * | hendi__ quit (Ping timeout: 240 seconds) |
14:09:04 | * | endragor_ quit (Remote host closed the connection) |
14:20:07 | * | kssreeram joined #nim |
14:25:03 | * | kssreeram quit (Ping timeout: 240 seconds) |
15:30:05 | ephja | yglukhov: so, how would you actually adapt the nimx examples so that they can be run standalone rather than from the test directory? |
15:30:50 | ephja | if you have tried it yourself yet |
15:35:01 | * | nsf joined #nim |
15:35:25 | yglukhov | ephja: create a nakefile.nim next to your main.nim. in makefile.nim import nimx.naketools. run nake for current platform. run nake -d:target for target platform: android, js, ios, ios-sim, emscripten, windows... |
15:36:09 | ephja | thanks |
15:39:20 | * | euantor quit (Quit: Leaving) |
15:44:32 | * | nsf quit (Quit: WeeChat 1.5) |
15:47:06 | * | nsf joined #nim |
15:49:33 | * | pafmaf quit (Ping timeout: 240 seconds) |
16:01:08 | * | NhanH quit (Ping timeout: 272 seconds) |
16:03:16 | * | NhanH joined #nim |
16:14:04 | * | yglukhov quit (Ping timeout: 258 seconds) |
16:18:14 | * | filcuc quit (Read error: Connection reset by peer) |
16:21:28 | * | xet7b quit (Remote host closed the connection) |
16:28:38 | * | Gonzih quit (Quit: WeeChat 1.5) |
16:30:03 | * | Gonzih joined #nim |
16:45:39 | * | Jesin joined #nim |
16:48:56 | * | euantor joined #nim |
16:50:59 | * | euantor quit (Remote host closed the connection) |
16:57:30 | * | yglukhov joined #nim |
16:58:10 | * | euantor joined #nim |
17:00:12 | * | irrequietus quit (Ping timeout: 250 seconds) |
17:02:27 | * | yglukhov quit (Ping timeout: 276 seconds) |
17:04:28 | * | mnemonikk quit (Ping timeout: 272 seconds) |
17:04:28 | * | zielmicha quit (Ping timeout: 272 seconds) |
17:05:44 | * | huonw quit (Ping timeout: 272 seconds) |
17:05:44 | * | OnO quit (Ping timeout: 272 seconds) |
17:06:23 | * | flyx quit (Ping timeout: 272 seconds) |
17:09:42 | * | Flox42 quit (Ping timeout: 260 seconds) |
17:10:25 | * | zielmicha joined #nim |
17:11:14 | * | huonw joined #nim |
17:11:37 | * | OnO joined #nim |
17:13:11 | * | flyx joined #nim |
17:13:38 | * | subsetpark quit (Ping timeout: 250 seconds) |
17:14:16 | * | Trustable joined #nim |
17:14:42 | * | Trustable quit (Remote host closed the connection) |
17:14:52 | * | subsetpark joined #nim |
17:15:02 | * | euantor quit (Remote host closed the connection) |
17:15:09 | * | mnemonikk joined #nim |
17:15:09 | * | mnemonikk quit (Changing host) |
17:15:09 | * | mnemonikk joined #nim |
17:15:55 | * | Flox42 joined #nim |
17:22:11 | * | kssreeram joined #nim |
17:26:38 | * | kssreeram quit (Ping timeout: 250 seconds) |
17:28:21 | * | pafmaf joined #nim |
17:39:51 | * | brechtm quit (Read error: Connection reset by peer) |
17:39:57 | * | brechtm_ joined #nim |
17:40:01 | * | brson joined #nim |
17:47:51 | * | pafmaf quit (Ping timeout: 264 seconds) |
17:49:22 | * | yglukhov joined #nim |
17:53:53 | * | euantor joined #nim |
18:17:35 | * | irrequietus joined #nim |
18:26:59 | * | euantor quit () |
18:37:30 | ephja | yglukhov: "view_event_handling.nim(14, 8) Error: method is not a base" |
18:37:45 | ephja | latest nimx and nim |
18:37:59 | yglukhov | hrm. gist please? |
18:38:14 | ephja | wait |
18:42:18 | ephja | yglukhov: it's probably because I commented out sample_registry. "hello world" works |
18:43:57 | yglukhov | ephja: i've got a dozen on nimx apps, and they don't have sample_registry in them =) |
18:44:35 | ephja | I started off by copying one of the tests which was a dumb idea |
18:45:12 | ephja | :-P |
18:54:06 | * | brechtm joined #nim |
18:57:22 | * | brechtm_ quit (Ping timeout: 258 seconds) |
18:59:53 | ephja | yglukhov: 4fps. is it just updating conservatively? :p |
19:01:00 | def- | ephja: did you compile with -d:release? |
19:03:06 | ephja | nah |
19:04:02 | ephja | so the http libs in the standard library don't work with js yet? |
19:04:32 | ephja | def-: how do I show the overlay in release mode? |
19:06:14 | yglukhov | ephja: if no animations are scheduled, the window is only redrawn when "needed" |
19:07:09 | ephja | conservative indeed |
19:12:51 | * | Matthias247 joined #nim |
19:19:14 | kier | is there an idiomatic way to run an external program as part of the nimble build process? |
19:19:38 | kier | i.e. I was to compile all the nim files in this package, but before I do that I want to run program X |
19:23:14 | ephja | kier: have you read this? https://github.com/nim-lang/nimble#the-new-nimscript-format |
19:23:36 | ephja | what will the program do? |
19:24:24 | ephja | http://nim-lang.org/docs/system.html#staticExec |
19:24:44 | kier | ephja: it's yacc |
19:25:07 | kier | ty for reminding me about nimscript, I'd forgetten nimble uses that now |
19:29:02 | ephja | http://nim-lang.org/docs/osproc.html |
19:29:14 | * | fredrik92 joined #nim |
19:29:20 | ephja | will that work though? do the tasks run on the VM? |
19:29:29 | * | irrequietus quit (Read error: Connection reset by peer) |
19:29:36 | * | irrequietus joined #nim |
19:30:18 | ephja | I need to get with the times |
19:36:24 | * | fastrom joined #nim |
19:45:31 | * | gokr joined #nim |
19:48:40 | gokr | Evening |
19:51:45 | ephja | kier: staticExec seems to work |
19:51:54 | ephja | it just gives a warning about potential crashes |
19:52:37 | * | desophos joined #nim |
19:58:21 | * | vktec quit (Changing host) |
19:58:21 | * | vktec joined #nim |
20:09:20 | * | fastrom1 joined #nim |
20:12:54 | * | fastrom quit (Ping timeout: 276 seconds) |
20:19:18 | * | brechtm quit (Remote host closed the connection) |
20:19:54 | * | brechtm joined #nim |
20:22:41 | * | pafmaf joined #nim |
20:29:04 | * | Ven joined #nim |
20:30:38 | * | xet7_ joined #nim |
20:35:16 | * | pafmaf quit (Read error: Connection reset by peer) |
20:46:27 | * | fastrom1 quit (Quit: Leaving.) |
20:47:09 | * | pol joined #nim |
20:47:45 | * | pol quit (Client Quit) |
20:50:20 | * | krux02 joined #nim |
20:59:48 | * | Trustable joined #nim |
21:35:30 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
21:38:26 | * | Trustable quit (Remote host closed the connection) |
21:43:45 | * | freezerburnv joined #nim |
21:48:13 | * | Matthias247 quit (Read error: Connection reset by peer) |
22:06:37 | * | yglukhov quit () |
22:13:03 | * | NhanH quit (Ping timeout: 264 seconds) |
22:14:26 | * | NhanH joined #nim |
22:14:44 | * | yglukhov joined #nim |
22:17:03 | * | elrood quit (Quit: Leaving) |
22:33:03 | * | freezerburnv quit (Ping timeout: 240 seconds) |
22:34:18 | ephja | Araq: Did you say that there were drawbacks related to generating Nim code by traversing the AST of C code? |
22:35:49 | Araq | no. |
22:36:31 | ephja | I've recalled incorrectly once again :p |
22:43:16 | * | yglukhov quit (Remote host closed the connection) |
22:44:54 | Araq | I said, C is impossible to parse without a symbol table and that's what c2nim does |
22:45:07 | Araq | explaining most of its glitches |
22:50:51 | * | mcc joined #nim |
23:01:42 | * | freezerburnv joined #nim |
23:05:49 | * | yglukhov joined #nim |
23:10:11 | * | yglukhov quit (Ping timeout: 244 seconds) |
23:42:02 | * | fredrik92 quit (Quit: Shutting down . . .) |
23:46:44 | * | yglukhov joined #nim |
23:53:04 | * | yglukhov quit (Ping timeout: 252 seconds) |