00:19:50 | * | space-wizard joined #nim |
00:36:56 | * | Aruseus joined #nim |
00:45:29 | * | Aruseus quit (Quit: leaving) |
00:47:40 | * | pie__ quit (Changing host) |
00:47:40 | * | pie__ joined #nim |
00:54:05 | * | nairobi joined #nim |
00:59:36 | * | nairobi quit (Ping timeout: 258 seconds) |
01:20:33 | verax_ | `type Animal* = ref object of RootObj not nil` gives me an "invalid type" compiler error. Is there a way to make a base class not nil-able so all derived classes are also not nil-able |
01:21:39 | verax_ | well, Nim doesn't actually have "classes", but you know what I mean. |
01:39:41 | * | zahary quit (Quit: Leaving.) |
01:43:53 | * | aFriginElf joined #nim |
01:47:14 | * | aFrigginElf quit (Ping timeout: 250 seconds) |
01:50:56 | * | chemist69 quit (Disconnected by services) |
01:50:56 | * | chemist69_ joined #nim |
01:55:12 | * | aFrigginElf joined #nim |
01:58:30 | * | aFriginElf quit (Ping timeout: 250 seconds) |
01:58:51 | * | aFriginElf joined #nim |
02:01:58 | * | aFrigginElf quit (Ping timeout: 250 seconds) |
02:07:06 | cheatfate | verax_, can you make c structure not nil-able? |
02:11:47 | * | pregressive quit (Remote host closed the connection) |
02:12:19 | * | pregressive joined #nim |
02:16:52 | * | pregressive quit (Ping timeout: 265 seconds) |
02:18:17 | verax_ | cheatfate, no but I'm not using C, I'm using Nim, and I'm declaring a type as `ref object` which I'm assuming makes it a reference type, not a struct. |
02:32:45 | * | pie__ quit (Ping timeout: 258 seconds) |
02:44:54 | * | brson quit (Quit: leaving) |
03:57:40 | * | aFriginElf quit (Ping timeout: 250 seconds) |
04:07:52 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
04:15:12 | * | mtj_ quit (Ping timeout: 240 seconds) |
04:17:32 | * | mtj_ joined #nim |
04:35:12 | * | Demos joined #nim |
04:47:03 | * | verax_ quit (Quit: Page closed) |
05:20:37 | * | chrisheller joined #nim |
05:26:15 | * | GustavoLapasta joined #nim |
05:32:53 | * | Jesin quit (Quit: Leaving) |
05:38:20 | * | Jesin joined #nim |
05:54:10 | * | rusua quit (Quit: Connection closed for inactivity) |
05:57:06 | * | Demos_ joined #nim |
05:58:07 | * | chemist69_ quit (Ping timeout: 250 seconds) |
06:00:44 | * | Demos quit (Ping timeout: 250 seconds) |
06:03:10 | * | chemist69_ joined #nim |
07:29:26 | * | Demos__ joined #nim |
07:32:35 | * | Demos_ quit (Ping timeout: 250 seconds) |
08:00:37 | * | nairobi joined #nim |
08:09:40 | * | fastrom joined #nim |
08:09:44 | * | fastrom left #nim (#nim) |
08:29:55 | * | nairobi quit (Remote host closed the connection) |
08:35:24 | * | nairobi joined #nim |
08:51:11 | * | Trustable joined #nim |
08:54:17 | federico3 | is there a way to use htmlgen like emerald e.g. html: \n body: \n p: ... |
08:54:33 | * | nairobi quit (Remote host closed the connection) |
08:57:55 | * | nairobi joined #nim |
09:03:49 | * | yglukhov joined #nim |
09:04:12 | * | nairobi_ joined #nim |
09:04:21 | flyx | federico3: no. the macros do not seem to handle stmtlists properly. |
09:04:28 | * | nairobi quit (Ping timeout: 258 seconds) |
09:05:19 | flyx | I guess that could be patched without a lot of work, but I'm not sure |
09:07:07 | federico3 | what a pity, emerald syntax is much better |
09:07:26 | flyx | that's why I wrote it. |
09:08:02 | * | gokr joined #nim |
09:08:59 | federico3 | flyx: thanks for writing it. Maybe a simple subset of emerald could make it into the standard library as an alternative to htmlgen |
09:09:37 | flyx | well I patch to allow htmlgen to accept `html: \n head: ...` would probably suffice |
09:09:39 | federico3 | IMO it would be useful and also a good example of Nim's templates power |
09:09:42 | flyx | s/I/a/ |
09:11:33 | federico3 | not surprisingly, it looks like almost nobody is using htmlgen on GH |
09:13:19 | flyx | ah, I see it uses some callsite magic, that's not so easy to patch then |
09:14:55 | flyx | emerald also was a techdemo of what Nim's macro system can do. |
09:16:45 | * | elrood joined #nim |
09:18:18 | flyx | I am not aware of anyone using emerald on GH either ^^ |
09:18:29 | federico3 | :( |
09:19:37 | * | Demos__ quit (Ping timeout: 250 seconds) |
09:20:06 | * | nairobi_ quit (Read error: Connection timed out) |
09:20:46 | * | nairobi joined #nim |
09:36:20 | * | nairobi quit (Remote host closed the connection) |
09:38:23 | * | nairobi joined #nim |
09:45:27 | * | yglukhov quit (Remote host closed the connection) |
09:51:40 | * | nairobi quit (Remote host closed the connection) |
09:54:47 | * | jjido joined #nim |
09:55:26 | * | nairobi joined #nim |
10:09:36 | * | nairobi quit (Remote host closed the connection) |
10:13:54 | * | nairobi joined #nim |
10:27:27 | * | nairobi quit (Remote host closed the connection) |
10:27:44 | * | nairobi joined #nim |
10:38:45 | Mitame | Can anyone help with this: https://gist.github.com/Mitame/13f6bc0d6a7338664d2fe2f2b67b26c3 ? Basically, how can I create bindings to a C++ object that takes arguments to it's contructor? |
10:39:46 | * | Matthias247 joined #nim |
10:52:09 | * | Demon_Fox quit (Quit: Leaving) |
10:52:41 | ehmry | Mitame: I've only played with Nim and C++ a little bit, but I found that it works to use a C++ template that holds the raw storage for an object, and has a member to construct the final object in that storage using new |
10:53:29 | ehmry | like struct Bar { char buf[sizeof(Foo)]; } |
10:53:50 | ehmry | new (bar.buf) Foo(...) |
10:53:51 | * | nairobi quit (Remote host closed the connection) |
10:56:05 | * | yglukhov joined #nim |
10:56:22 | ehmry | then you can overide the * or -> operator to cast the storage as the object |
10:57:58 | ehmry | you know, the typical C++ crap |
11:00:43 | * | yglukhov quit (Ping timeout: 265 seconds) |
11:02:35 | * | nairobi joined #nim |
11:08:27 | * | pafmaf joined #nim |
11:10:17 | * | jjido quit (Read error: No route to host) |
11:12:54 | Mitame | Ehmry: Hmmm... I'd prefer not to create new c++ code because it's a library with headers (and because i don't particularly like c++), but IDK if that's at all possible |
11:17:02 | ehmry | if its c++ you'll have to do some ugly stuff either way, I've been creating wrappers in c++ with methods that have the same names as my nim functions, so I can use {.importcpp.} on the wrappers without having to write out the calls |
11:18:33 | ehmry | I'm still playing around with it though |
11:21:36 | * | Matthias247 quit (Read error: Connection reset by peer) |
11:28:50 | dom96 | Mitame: Why are you creating bindings to urho3d when they already exist? |
11:29:09 | dom96 | https://github.com/3dicc/Urhonimo |
11:29:57 | Mitame | -_- never came up on google... I found https://github.com/sheosi/urhonim which is completely unfinished and promptly gave up |
11:39:21 | Mitame | Gah, means i need to rebuild urho3d... whatever though, seems like it's actually had work put into it and works |
11:46:47 | dom96 | really? What did you search? It's the first result when I search "urho3d nim" |
11:50:40 | Mitame | It's cause i went to this first i guess: http://forum.nim-lang.org/t/584 |
11:51:25 | * | Salewski joined #nim |
11:51:30 | Mitame | Oh well, experience for next time when the binding truly doesn't exist and i'm not just blind |
11:53:23 | Salewski | Dom, whenever I install nimsuggest with nimble, I get this message: compiler-0.14.3 already exists. Overwrite? [y/N] # have to type y, and it works fine then. But it is irritating. |
11:59:59 | dom96 | Salewski: Yes, I know. There is an issue relating to this. |
12:00:23 | Araq | hey, I'm on holidays |
12:00:49 | Araq | have half a bit per seconds or something |
12:00:59 | Araq | so ... don't count on me |
12:02:02 | Salewski | bye... |
12:02:04 | * | Salewski left #nim (#nim) |
12:04:05 | dom96 | You guys know of any good websites that provide a list of free proxies as well as sites for paid proxies? |
12:08:35 | * | nairobi quit (Remote host closed the connection) |
12:14:00 | * | GangstaCat joined #nim |
12:27:48 | * | GangstaCat quit (Quit: Leaving) |
12:33:27 | * | kunev quit (Ping timeout: 264 seconds) |
12:33:44 | * | kunev joined #nim |
12:34:46 | * | yglukhov joined #nim |
12:40:36 | * | kunev quit (Ping timeout: 250 seconds) |
12:42:46 | * | kunev joined #nim |
12:47:03 | * | kunev quit (Ping timeout: 240 seconds) |
12:47:22 | * | pie_ joined #nim |
12:48:13 | * | pie_ quit (Changing host) |
12:48:13 | * | pie_ joined #nim |
12:48:45 | * | kunev joined #nim |
12:55:15 | * | nairobi joined #nim |
12:59:01 | * | fredrik92 joined #nim |
13:06:23 | * | nsf quit (Quit: WeeChat 1.5) |
13:25:21 | * | PMunch joined #nim |
13:27:59 | * | zahary joined #nim |
13:32:34 | * | zahary quit (Ping timeout: 265 seconds) |
13:35:21 | * | zahary joined #nim |
13:39:32 | * | zahary quit (Ping timeout: 240 seconds) |
13:44:40 | * | zahary joined #nim |
14:32:22 | * | Sentreen quit (Quit: WeeChat 1.4) |
14:36:11 | * | zahary1 joined #nim |
14:36:16 | * | zahary quit (Read error: Connection reset by peer) |
14:37:00 | * | Sentreen joined #nim |
14:45:47 | * | Vladar joined #nim |
14:45:48 | * | zahary1 quit (Read error: Connection reset by peer) |
15:07:47 | * | michael_campbell quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
15:12:34 | * | michael_campbell joined #nim |
15:17:22 | * | michael_campbell quit (Ping timeout: 265 seconds) |
15:18:31 | * | fredrik92 left #nim ("Leaving channel") |
15:34:05 | * | libman joined #nim |
15:35:41 | * | nairobi quit (Remote host closed the connection) |
15:48:48 | * | nairobi joined #nim |
15:53:44 | * | nairobi quit (Ping timeout: 260 seconds) |
16:03:02 | * | nairobi joined #nim |
16:07:48 | * | yglukhov quit (Remote host closed the connection) |
16:32:05 | * | GustavoLapasta quit (Quit: Leaving) |
16:46:30 | * | yglukhov joined #nim |
16:51:24 | * | yglukhov quit (Ping timeout: 276 seconds) |
16:52:20 | * | Matthias247 joined #nim |
16:55:58 | * | chemist69_ quit (Ping timeout: 258 seconds) |
16:55:59 | * | PMunch quit (Quit: leaving) |
17:03:44 | * | nairobi quit (Remote host closed the connection) |
17:08:00 | * | nairobi joined #nim |
17:08:10 | * | nairobi quit (Remote host closed the connection) |
17:13:22 | * | chemist69_ joined #nim |
17:31:58 | * | namnguyen_ joined #nim |
17:33:49 | * | brson joined #nim |
17:34:55 | * | namnguyen quit (Ping timeout: 250 seconds) |
17:43:56 | * | namnguyen_ quit (Ping timeout: 258 seconds) |
17:44:22 | * | namnguyen_ joined #nim |
17:46:26 | * | mcc joined #nim |
17:48:53 | * | yglukhov joined #nim |
17:51:24 | mcc | What does Nim do when it sees a .field after a type name, formally? |
17:51:56 | mcc | like, if I say type X = ref object of RootObj; X.x it says "undeclared field: x" |
17:52:02 | mcc | which seems to imply it would be possible for x to be a declared field |
17:53:03 | * | yglukhov quit (Ping timeout: 240 seconds) |
17:53:44 | mcc | For context, i'm trying to figure out how on earth to represent static fields of classes when importc-ing C++ or JS code |
17:58:34 | mcc | currently leaning toward using var SometypeField* {.importc:"Sometype.field", nodecl.}: float |
18:58:57 | * | _stowa joined #nim |
19:04:34 | * | yglukhov joined #nim |
19:04:38 | * | Demos__ joined #nim |
19:05:49 | * | JeffCanJam4a20 joined #nim |
19:08:11 | * | _stowa quit (K-Lined) |
19:09:00 | * | Demon_Fox joined #nim |
19:09:40 | * | JeffCanJam4a20 quit (Remote host closed the connection) |
19:10:56 | * | PMunch joined #nim |
19:29:23 | * | zahary joined #nim |
19:31:58 | * | zahary quit (Read error: Connection reset by peer) |
19:51:51 | * | elrood quit (Ping timeout: 250 seconds) |
19:54:56 | * | zahary joined #nim |
19:55:45 | * | xet7__ joined #nim |
19:58:12 | * | Mitame quit (Quit: Mitame) |
19:58:55 | * | xet7 quit (Ping timeout: 252 seconds) |
20:09:39 | * | nairobi joined #nim |
20:09:49 | * | libman quit (Quit: Leaving.) |
20:15:15 | * | nairobi quit (Ping timeout: 250 seconds) |
20:23:42 | * | libman joined #nim |
20:40:13 | * | Demos__ quit (Read error: Connection reset by peer) |
20:41:42 | * | Demos__ joined #nim |
20:41:59 | * | gokr quit (Ping timeout: 244 seconds) |
20:48:30 | * | Demos_ joined #nim |
20:52:11 | * | libman quit (Remote host closed the connection) |
20:52:32 | * | Demos__ quit (Ping timeout: 258 seconds) |
20:55:04 | * | chemist69_ quit (Quit: WeeChat 1.5) |
21:04:33 | * | chemist69 joined #nim |
21:04:48 | * | Matthias247 quit (Read error: Connection reset by peer) |
21:19:30 | * | mniip left #nim ("Leaving") |
21:40:14 | * | nsf joined #nim |
21:49:50 | * | nairobi joined #nim |
21:51:32 | * | nairobi quit (Remote host closed the connection) |
21:54:37 | * | nairobi joined #nim |
21:57:15 | * | gokr joined #nim |
22:04:07 | * | nairobi quit (Remote host closed the connection) |
22:04:44 | * | nairobi joined #nim |
22:09:54 | * | nairobi quit (Ping timeout: 276 seconds) |
22:22:15 | * | der-landgraf quit (Ping timeout: 276 seconds) |
22:23:30 | * | Vladar quit (Quit: Leaving) |
22:26:31 | * | JeffCanJam4a20 joined #nim |
22:30:45 | * | pafmaf quit (Quit: Leaving) |
22:48:29 | * | Gonzih quit (Ping timeout: 260 seconds) |
22:49:47 | * | der-landgraf joined #nim |
22:50:59 | * | Trustable quit (Remote host closed the connection) |
22:54:33 | * | Gonzih joined #nim |
23:22:02 | * | JeffCanJam4a20 quit (Read error: Connection reset by peer) |
23:26:46 | * | Demos_ quit (Ping timeout: 250 seconds) |
23:30:33 | * | yglukhov quit (Remote host closed the connection) |