00:02:00 | * | bjz quit (Max SendQ exceeded) |
00:02:53 | * | bjz joined #nim |
00:15:38 | * | irrequietus quit () |
00:26:48 | * | Matthias247 quit (Read error: Connection reset by peer) |
01:07:05 | * | fastrom quit (Quit: Leaving.) |
01:28:39 | * | chemist69 quit (Ping timeout: 260 seconds) |
01:42:01 | * | chemist69 joined #nim |
01:48:05 | * | brson quit (Quit: leaving) |
01:53:42 | * | krux02 quit (Remote host closed the connection) |
02:10:33 | * | cheatfate quit (Ping timeout: 240 seconds) |
02:21:35 | * | rtr_ joined #nim |
02:30:02 | * | pie_ quit (Ping timeout: 258 seconds) |
02:57:31 | * | dddddd quit (Ping timeout: 250 seconds) |
03:06:33 | * | Demon_Fox quit (Quit: Leaving) |
03:30:28 | * | chemist69 quit (Ping timeout: 264 seconds) |
03:32:35 | * | chemist69 joined #nim |
03:42:04 | * | kssreeram joined #nim |
03:42:38 | * | kssreeram quit (Client Quit) |
03:43:43 | * | kssreeram joined #nim |
03:48:45 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
04:27:05 | * | kssreeram joined #nim |
04:38:28 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
04:43:27 | * | kssreeram joined #nim |
04:47:30 | * | kssreeram quit (Client Quit) |
04:49:09 | * | kssreeram joined #nim |
04:51:39 | * | fredrik92 quit (Read error: Connection reset by peer) |
04:59:41 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
05:23:31 | * | yglukhov joined #nim |
05:30:34 | * | yglukhov quit (Ping timeout: 244 seconds) |
05:32:40 | * | pafmaf joined #nim |
06:02:26 | * | GangstaCat joined #nim |
06:10:35 | * | Satyajit joined #nim |
06:19:56 | * | GustavoLapasta joined #nim |
06:23:32 | * | Gonzih quit (Ping timeout: 240 seconds) |
06:25:33 | * | dddddd joined #nim |
06:25:54 | * | dddddd quit (Remote host closed the connection) |
06:26:17 | * | dddddd joined #nim |
06:29:10 | * | kssreeram joined #nim |
06:31:58 | * | dddddd quit (Read error: Connection reset by peer) |
06:33:45 | * | dddddd joined #nim |
06:40:28 | * | Trustable joined #nim |
06:40:31 | * | kssreeram quit (Read error: Connection reset by peer) |
06:43:07 | * | kssreeram joined #nim |
06:53:37 | * | retropikzel joined #nim |
06:57:02 | * | kssreeram quit (Read error: Connection reset by peer) |
07:02:43 | * | kssreeram joined #nim |
07:06:12 | * | kssreeram quit (Read error: Connection reset by peer) |
07:11:51 | * | fastrom joined #nim |
07:13:03 | * | kssreeram joined #nim |
07:14:44 | * | fastrom quit (Client Quit) |
07:18:31 | * | fastrom joined #nim |
07:42:59 | * | dddddd quit (Quit: Hasta otra..) |
07:56:52 | * | kssreeram quit (Ping timeout: 252 seconds) |
08:09:36 | * | bjz quit (Quit: Textual IRC Client: www.textualapp.com) |
08:11:15 | FromGitter | <Araq> @endragor I consider upcoming/asyncdispatch the future and once our forum runs with it, dom will hopefully agree it's stable enough :-) |
08:14:24 | * | bjz joined #nim |
08:17:57 | * | kssreeram joined #nim |
08:26:49 | * | Ven_ joined #nim |
08:29:30 | * | yglukhov joined #nim |
08:33:09 | * | cheatfate joined #nim |
08:34:02 | cheatfate | Araq, i want to adopt async tests to run with `upcoming/asyncdispatch.nim` too, is it possible to do it in easy way? |
08:34:04 | * | yglukhov quit (Ping timeout: 264 seconds) |
08:35:01 | Araq | that's why we have test categories |
08:35:10 | Araq | you need to update the tester |
08:35:28 | Araq | and specialize category 'async' or whatever the directory name is |
08:37:29 | * | shodan45 quit (Ping timeout: 250 seconds) |
08:40:06 | cheatfate | Main idea is to use same `tests/async` for both drivers (because they are compatible), but for `upcoming` version i need to `patchFile` |
08:40:50 | * | rtr_ quit (Remote host closed the connection) |
08:48:10 | cheatfate | i want to place 1 nimscript to `tests/async` directory with patchFile inside |
08:48:32 | cheatfate | But for current version i need to disable nims file for directory `tests/async` |
08:49:30 | cheatfate | Araq, the question is how nims file must be named so it will be used for all tests inside of `tests/async` and what options for nim must be used (skipCfg, skipUserCfg, skipParentCfg, skipProjCfg)? |
08:49:58 | Araq | config.nims |
08:51:16 | Araq | I don't think the skip stuff works for nimscript, have a 'when not defined(oldasync)' in the config.nims that you pass to the compiler via -d:oldasync |
08:51:28 | Araq | to get back the old tests |
08:52:39 | * | planhths joined #nim |
08:54:28 | * | rtr_ joined #nim |
08:55:04 | cheatfate | ok thanks |
09:22:16 | cheatfate | Araq, config.nim must be place inside of `tests/async` directory? |
09:22:21 | cheatfate | config.nims |
09:30:40 | * | Matthias247 joined #nim |
09:38:32 | cheatfate | Araq, is it normal config.nims file? https://gist.github.com/cheatfate/c4ca7a85c6ce54982ed79e6ce8fb774b |
09:40:03 | cheatfate | because i'm getting Error: internal error: (filename: sempass2.nim, line: 546) |
09:41:14 | * | nsf joined #nim |
09:43:50 | cheatfate | maybe something wrong with upcoming/asyncdispatch.nim (https://gist.github.com/cheatfate/f2a85e49d361b528fd723d6cae61dadf) |
09:45:41 | * | kssreeram quit (Read error: Connection reset by peer) |
09:48:30 | * | Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
09:52:06 | * | GustavoLapasta quit (Ping timeout: 250 seconds) |
09:58:07 | cheatfate | looks like my latest changes made this |
10:22:06 | * | foocraft joined #nim |
10:31:39 | * | yglukhov joined #nim |
10:36:04 | * | yglukhov quit (Ping timeout: 244 seconds) |
10:37:47 | * | nsf quit (Quit: WeeChat 1.5) |
10:40:50 | * | planhths quit (Quit: Konversation terminated!) |
10:43:46 | * | pie_ joined #nim |
10:53:37 | * | fredrik92 joined #nim |
10:57:56 | cheatfate | dom96, is it possible to move async macro code away from asyncdispatch.nim, so current version and upcoming version can `include asyncmacro.nim`? |
10:59:43 | Araq | cheatfate: yeah, do that |
11:00:17 | Araq | the internal error is weird |
11:01:39 | * | xet7 joined #nim |
11:02:24 | dom96 | cheatfate: go for it |
11:03:14 | cheatfate | Araq, dom96 could i make async directory and put there asyncdispatch.nim and asyncmacro.nim? |
11:03:42 | dom96 | cheatfate: for now keep it as-is, eventually I think we should do that though |
11:05:31 | Araq | does that internal error block you? |
11:05:47 | Araq | if so how to reproduce? just add config.nims with this content? |
11:10:30 | * | krux02 joined #nim |
11:14:46 | * | themagician joined #nim |
11:22:30 | * | Gonzih joined #nim |
11:37:40 | * | ngc joined #nim |
11:46:22 | * | endragor joined #nim |
11:50:58 | * | GustavoLapasta joined #nim |
11:58:59 | * | ngc quit (Quit: Page closed) |
12:08:07 | * | nsf joined #nim |
12:12:46 | retropikzel | How can I check if variable is string? |
12:17:42 | retropikzel | Nevermind, found it |
12:26:55 | * | endragor quit (Remote host closed the connection) |
12:33:46 | * | yglukhov joined #nim |
12:38:35 | * | yglukhov quit (Ping timeout: 265 seconds) |
12:40:51 | FromGitter | <vegansk> @dom96, @Araq . Why if it's |
12:41:28 | dom96 | vegansk: hrm? |
12:42:10 | FromGitter | <vegansk> Oops. If it' s possible, please make a decision about async operations with buffers until monday |
12:42:52 | FromGitter | <vegansk> It' s very important for my work |
12:47:15 | FromGitter | <vegansk> Sorry, writing from the phone |
12:48:18 | * | kssreeram joined #nim |
12:52:55 | * | kssreeram quit (Ping timeout: 250 seconds) |
12:54:04 | * | Kaini quit (Remote host closed the connection) |
12:55:43 | * | Trustable quit (Remote host closed the connection) |
12:56:28 | * | Matthias247 quit (Read error: Connection reset by peer) |
13:08:39 | * | planhths joined #nim |
13:28:53 | * | rtr_ quit (Remote host closed the connection) |
13:30:40 | * | rtr_ joined #nim |
13:31:14 | * | dddddd joined #nim |
13:40:09 | * | foocraft quit (Ping timeout: 260 seconds) |
13:41:29 | hohlerde | just saw the screenshot of that unreal 4 game in production using nim instead of c++ on youtube. araq showed it at the poly conf 16. is that screenshot available for download? |
13:42:57 | Araq | hohlerde: my slides are here https://github.com/araq/polyconf2016 including the screenshot |
13:46:32 | hohlerde | oh, I could have guessed :-) thx araq |
13:58:29 | * | PMunch joined #nim |
14:01:21 | FromGitter | <Araq> @vegansk, @dom96 'pointer' is the natural Nim solution and slightly better than 'cstring' since indeed cstring kinda implies "zero terminated" |
14:01:58 | FromGitter | <Araq> that said, we should have an heapAddr template and a distinct pointer for async |
14:02:19 | FromGitter | <Araq> this can check at runtime the address is not from the stack |
14:02:28 | dom96 | Araq: okay, would it make sense to abstract this into a DataPair tuple (which is a pointer + length)? |
14:03:01 | FromGitter | <Araq> seems harder to work with |
14:03:25 | dom96 | yeah, I guess it's not worth it. Might confuse people. |
14:03:31 | FromGitter | <Araq> if you slice and dice through something, wrapping the updated pointers , lengths in a tuple all over |
14:03:48 | FromGitter | <Araq> than I think the tuple will bite rather than help |
14:03:52 | FromGitter | <Araq> *then |
14:04:13 | dom96 | It would be nice for pointer artithmetic though maybe? |
14:04:31 | dom96 | I'm not really sure what you mean by "slice and dice" |
14:04:34 | Araq | hmm that's worth considering |
14:04:51 | Araq | so when I add 4 to the pointer, the length gets decremented by 4 as well? |
14:04:52 | dom96 | You could also do stuff like dataPair[2 .. 4] |
14:05:12 | Araq | ok, but then it's an ArrayView I guess |
14:05:14 | dom96 | but then the dataPair needs to also know the size of the thing |
14:05:25 | dom96 | or rather the size of each element |
14:05:40 | Araq | true |
14:05:59 | dom96 | I think that would be nice |
14:06:24 | dom96 | For the FFI at least |
14:06:30 | Araq | actually no. |
14:06:38 | dom96 | for normal usage we shouldn't need 'pointer' at all IMO |
14:06:41 | Araq | the size should be 1 since it's about bytes |
14:06:52 | dom96 | so if vendask is using it for efficiency we need to come up with a way to achieve the same in pure NIm |
14:07:22 | dom96 | *vendansk |
14:07:23 | Araq | I planned to make openArray a first class thing eventually |
14:07:42 | Araq | giving us O(1) slicing and stuff |
14:07:51 | * | retropikzel quit (Remote host closed the connection) |
14:08:05 | dom96 | hrm, okay. Not entirely sure how that would work |
14:08:17 | dom96 | Seems like a different topic |
14:08:37 | Araq | no, openArray is internally a ptr, len pair |
14:08:53 | Araq | it's exactly what we're talking about |
14:10:04 | dom96 | Cool. You should rename it though |
14:10:44 | Araq | ArrayView ? |
14:11:59 | * | Snircle joined #nim |
14:12:31 | dom96 | sure |
14:22:41 | * | space-wizard joined #nim |
14:27:30 | * | yglukhov joined #nim |
14:28:22 | * | fastrom1 joined #nim |
14:30:19 | * | fastrom quit (Ping timeout: 265 seconds) |
14:31:57 | * | yglukhov quit (Ping timeout: 250 seconds) |
14:32:31 | * | endragor joined #nim |
14:33:08 | * | mcc joined #nim |
14:34:37 | * | Ven_ joined #nim |
14:38:49 | mcc | Is there an existing way to control what "echo" does? |
14:39:16 | * | Demon_Fox joined #nim |
14:39:35 | reactormonk | What do you want to have it do? |
14:39:42 | * | endragor quit (Remote host closed the connection) |
14:40:41 | mcc | well, i'm using javascript |
14:40:59 | mcc | and right now, "echo" on javascript uses document.write or something |
14:41:12 | mcc | however, document.write does not exist in node, and i want it to use console.log instead (which matches the documentation in system) |
14:41:54 | reactormonk | Pretty sure there's a compiler flag for that specific bit. |
14:42:04 | * | endragor joined #nim |
14:42:05 | reactormonk | try -d:node or -d:nodejs, can't remember which one |
14:43:27 | * | endragor quit (Remote host closed the connection) |
14:43:50 | mcc | ooo |
14:44:28 | mcc | ok, yeah, found that in the docs |
14:44:57 | mcc | do you know if that changes anything other than just "echo"? because actually i tend to want echo to use console.log in browsers, also |
14:45:32 | mcc | the problem is when writing things in nim that work across multiple platforms |
14:45:51 | mcc | it's not super obvious to me how to write a wrapper for echo |
14:48:15 | * | rtr_ quit (Quit: Leaving...) |
14:51:46 | * | endragor joined #nim |
14:51:55 | * | endragor quit (Remote host closed the connection) |
14:54:55 | mcc | ok cool it seems to work in browser also |
14:57:41 | * | endragor joined #nim |
15:00:14 | * | endragor quit (Remote host closed the connection) |
15:08:55 | * | rtr_ joined #nim |
15:13:30 | * | Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
15:15:18 | * | Ven_ joined #nim |
15:17:50 | * | fastrom1 quit (Quit: Leaving.) |
15:22:31 | * | endragor joined #nim |
15:23:12 | * | endragor quit (Remote host closed the connection) |
15:27:03 | * | stisa joined #nim |
15:27:14 | * | retropikzel joined #nim |
15:30:33 | * | Demon_Fox quit (Ping timeout: 240 seconds) |
15:32:29 | * | Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
15:34:32 | * | Demon_Fox joined #nim |
15:39:38 | * | shodan45 joined #nim |
15:39:51 | * | shodan45 quit (Client Quit) |
15:52:11 | * | stisa quit (Quit: quitting...) |
15:56:48 | * | Demon_Fox quit (Quit: Leaving) |
15:57:08 | krux02 | dom96, Araq: Yes I totally support the ArrayView type |
15:57:15 | * | Demon_Fox joined #nim |
15:58:29 | krux02 | I also have my own version of it in my codebase, and I would be very happy If I could kick it out and have a standard implementation of it |
16:01:04 | krux02 | it's here if you care: https://github.com/krux02/opengl-sandbox/blob/1ca4182a5a1e13675aff36c5f9171f1bd3c611a9/glwrapper.nim#L257 |
16:06:47 | * | xet7 quit (Quit: Leaving) |
16:08:31 | * | BratwurstMitSenf joined #nim |
16:09:10 | * | BratwurstMitSenf left #nim (#nim) |
16:14:55 | * | rtr_ quit (Remote host closed the connection) |
16:24:42 | * | retropikzel quit (Quit: Leaving) |
16:28:30 | * | planhths quit (Quit: Konversation terminated!) |
16:31:00 | * | yglukhov joined #nim |
16:35:54 | * | yglukhov quit (Ping timeout: 265 seconds) |
16:39:19 | PMunch | Is there a limit to how much a table can hold? |
16:41:39 | PMunch | I'm trying to add something to one and after quite a few entries I get an index out of bounds error from system.nim |
16:41:55 | PMunch | Seems like it isn't able to enlarge the underlying data structure |
16:42:13 | * | kulelu88 joined #nim |
16:42:20 | PMunch | Weird part is that I don't even have that many entries in it |
16:44:31 | PMunch | Just added a printout of the size, it's only 43 entries in the table.. |
16:47:46 | dom96 | are you sure it's the table that's failing? |
16:48:25 | PMunch | pastebin.com/uansNXdp |
16:48:35 | PMunch | That's the error message |
16:48:52 | PMunch | The line 59 in the code is a simple add statement |
16:49:09 | PMunch | atlas.regions.add(curName, newTextureRegion(texture,curRegion,curSize,curOffset,curRotation)) |
16:49:29 | dom96 | please add http:// before your links so that my IRC client makes it clickable :) |
16:50:36 | dom96 | hrm, 'add'? Have you tried just ...regions[curName] = newTex...? |
16:51:18 | * | GustavoLapasta quit (Quit: Leaving) |
16:53:39 | * | nairobi joined #nim |
16:55:07 | PMunch | Oh, sorry about that. Vivaldi removes it so when I go to copy-paste it doesn't come with.. |
16:55:45 | PMunch | Hmm, that seemed to work |
16:55:51 | PMunch | Using []= |
16:58:08 | * | arnetheduck quit (Ping timeout: 265 seconds) |
16:58:13 | * | libman joined #nim |
16:59:35 | * | nsf quit (Quit: WeeChat 1.5) |
16:59:45 | dom96 | so now the question is wtf is 'add' |
17:00:23 | * | yglukhov joined #nim |
17:04:55 | * | fredrik92 quit (Quit: Shutting down...) |
17:05:46 | * | dddddd quit (Ping timeout: 252 seconds) |
17:07:46 | PMunch | I though []= was just an alias for add |
17:08:21 | PMunch | http://nim-lang.org/docs/tables.html#[]=,Table[A,B],A,B |
17:10:58 | * | irrequietus joined #nim |
17:13:38 | * | Jesin joined #nim |
17:13:59 | krux02 | I would like to have `+=` `*=` etc defined to work with the `[]=` operator generally when `*` `+` etc is defined. But I haven't put a lot of investigation itno weather a definition like that could breake anything |
17:17:23 | * | nairobi quit (Remote host closed the connection) |
17:18:30 | Araq | dom96: 'add' adds a fresh key,val pair independent of whether t[key] already exists |
17:19:06 | Araq | since hashing always needs to have some way to resolve hash collisions anyway, it seems smart to support this op out of the box |
17:19:32 | Araq | (plus it's just natural for a guy implementing a compiler which supports overloading) |
17:21:04 | krux02 | does that mean, that add can create the same key several times? |
17:21:28 | PMunch | So what crashes my program then? |
17:23:46 | Araq | dunno, posted some example code somewhere? |
17:23:55 | Araq | krux02: sure |
17:24:06 | PMunch | Not really |
17:24:32 | PMunch | I posted the error message and all I do is run a .add on a key I'm sure doesn't already exist |
17:26:08 | * | libman quit (Read error: Connection reset by peer) |
17:30:01 | PMunch | I can give you the code if you want Araq |
17:31:00 | PMunch | Hmm, does Nim have something like foreach? |
17:31:57 | Araq | sure I want the code |
17:31:59 | PMunch | Ah, for x in |
17:33:20 | cheatfate | Araq, about name for you openArray, let call it `buffer`. |
17:33:22 | PMunch | pastebin.com/5YjhC8yw |
17:33:41 | PMunch | That's the code, it's currently modified to use []= and not add |
17:34:37 | cheatfate | or at least `openBuffer` |
17:34:48 | cheatfate | i dont like `arrayView` |
17:35:02 | PMunch | It's the lines 58-66 |
17:35:23 | mcc | arrayview means something in js... |
17:36:12 | mcc | so this is kind of random, but has there ever been consideration of adding something like class statics to nim? |
17:36:40 | mcc | i'm wondering about this cuz i'm working on binding javascript to nim, and js has statics |
17:37:02 | mcc | and i was thinking, it would make sense, there's this syntax where obj.func(arg) translates to func(obj, arg) |
17:37:20 | mcc | i was wondering if it would make equal sense, if you did that to a type, for the left of the . to become a generic/type argument |
17:37:29 | mcc | like, Type.func(arg) could become func[Type](arg) |
17:38:24 | Araq | Type.func(arg) is already func(Type, arg) |
17:38:37 | Araq | and with typedesc you can use that to your advantage |
17:39:07 | mcc | ooh, ok |
17:39:19 | mcc | i'll look into that |
17:40:17 | dom96 | cheatfate: why do you dislike ArrayView? |
17:41:21 | cheatfate | dom96, because it `Java` style name, and `java world` is a world of haters which can kill you because you are using their name :) |
17:41:50 | dom96 | what makes it Java style? |
17:42:37 | * | endragor joined #nim |
17:42:44 | cheatfate | ArrayList<View> |
17:42:51 | mcc | what is the proposed new use of ArrayView? |
17:43:36 | dom96 | IMO ArrayView describes what is very well |
17:44:10 | dom96 | actually ListView might be better because it's more generic |
17:44:48 | * | libman joined #nim |
17:45:11 | mcc | with the javascript stuff i am struggling to figure out how nim arrays and seqs ought to correspond to js types |
17:45:39 | * | pie_ quit (Changing host) |
17:45:39 | * | pie_ joined #nim |
17:46:41 | mcc | and js has this horrible melange of Array, ArrayLike, ArrayBufferView, TypedArray, and DataView |
17:47:29 | mcc | also some of these are not actual types in the spec but are types that appear in the MDN documentation for convenience purposes, but some of the virtual types are defined in the TypeScript standard library anyway |
17:48:05 | mcc | and none of them seem to correspond *exactly* to anything in nim |
17:48:06 | mcc | also, no ArrayView in js, I was confused, only ArrayBufferView |
17:48:51 | cheatfate | i dont like word `Array` because people can be confused, we already have `array` type. |
17:49:35 | cheatfate | MemoryView? |
17:50:45 | krux02 | ArrayView is just fine |
17:50:58 | krux02 | as long as it really is for continuous memory |
17:51:11 | * | Trustable joined #nim |
17:51:41 | mcc | i'm curious if whatever nim ArrayView is could correspond to js dataview |
17:51:43 | * | fastrom joined #nim |
17:52:02 | krux02 | but SeqView is also equally good, because it works for seq type, too |
17:52:39 | krux02 | I don't know about js dataview, but ArrayView is supposed to be a pointer and a length |
17:53:06 | krux02 | a non owning reference to data |
17:53:55 | dom96 | mcc: not sure, it would be like a slice of a list or array. I don't think JS supports those. |
17:54:12 | mcc | are arrayview contents mutable? |
17:54:31 | dom96 | mcc: I believe so. |
17:54:59 | mcc | cuz that sounds a lot like a dataview, except i think a dataview can only be used on a TypedArray. |
17:55:08 | * | libman quit (Read error: Connection reset by peer) |
17:55:38 | dom96 | mcc: isn't that a TypeScript thing? |
17:58:33 | mcc | TypedArray is not a symbol in either js or typescript. It is used in the es6 specification to refer to any of the packed array types (Uint8array, Float32array) |
17:58:42 | * | Jesin quit (Quit: Leaving) |
18:00:15 | dom96 | ahh |
18:01:44 | * | Jesin joined #nim |
18:02:21 | * | nairobi joined #nim |
18:03:13 | cheatfate | dom96, yeah `DataView` is a nice name |
18:05:46 | mcc | i guess i don't see why "array" in "arrayView" is worse than "array" in "openArray" |
18:08:46 | * | nairobi quit (Remote host closed the connection) |
18:09:06 | * | fastrom quit (Quit: Leaving.) |
18:09:58 | * | fastrom joined #nim |
18:11:42 | * | nairobi joined #nim |
18:13:31 | * | libman joined #nim |
18:14:06 | * | chemist69 quit (Ping timeout: 265 seconds) |
18:15:46 | * | rtr_ joined #nim |
18:16:36 | * | yglukhov quit (Remote host closed the connection) |
18:16:58 | * | nairobi quit (Remote host closed the connection) |
18:17:20 | * | Satyajit quit (Quit: https://fnordserver.eu) |
18:18:03 | * | chemist69 joined #nim |
18:18:51 | * | nairobi joined #nim |
18:20:01 | * | rtr_ quit (Remote host closed the connection) |
18:20:15 | * | rtr_ joined #nim |
18:26:08 | * | fastrom quit (Quit: Leaving.) |
18:27:14 | * | libman quit (Read error: Connection reset by peer) |
18:34:45 | * | nairobi quit (Remote host closed the connection) |
18:35:37 | * | nairobi joined #nim |
18:41:21 | * | endragor quit (Remote host closed the connection) |
18:42:13 | * | libman joined #nim |
18:43:25 | * | endragor joined #nim |
18:45:26 | * | endragor quit (Remote host closed the connection) |
18:50:33 | cheatfate | dom96, please take a look on https://github.com/nim-lang/Nim/pull/4704 |
18:52:14 | * | nairobi quit (Remote host closed the connection) |
18:52:32 | * | endragor joined #nim |
18:52:52 | dom96 | merged |
18:53:37 | * | rtr_ quit (Remote host closed the connection) |
18:54:15 | * | yglukhov joined #nim |
18:56:52 | * | endragor quit (Remote host closed the connection) |
18:56:55 | * | xet7 joined #nim |
18:59:40 | * | desophos joined #nim |
19:02:34 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
19:04:02 | * | endragor joined #nim |
19:08:50 | mcc | nim macros have access to the filesystem, right? |
19:09:11 | mcc | like you could plausibly load a file and embed its contents in ast the at runtime? |
19:11:46 | Araq | not at runtime |
19:11:54 | Araq | at compiletime |
19:12:15 | mcc | i mistyped that. understood, thanks |
19:18:47 | mcc | i'm looking at https://github.com/nim-lang/opengl , is this OpenGL 1, 2, 3, what? Is it possible to request a specific OpenGL version, or to query which version I got? |
19:19:38 | mcc | is there any example code of using the nim opengl module with extensions? |
19:19:46 | mcc | or example code of using the nim opengl module with sdl2? |
19:22:11 | * | foocraft joined #nim |
19:23:11 | PMunch | mcc sdl2 is pretty straight forward |
19:23:25 | PMunch | You can have a look at the Hookrace blog for some examples |
19:23:28 | * | Calinou_ joined #nim |
19:23:40 | mcc | i've got a working sdl2 application in nim, i just hadn't used it with opengl yet |
19:23:44 | mcc | thanks |
19:23:47 | * | foocraft quit (Client Quit) |
19:23:50 | * | Pisuke quit (Excess Flood) |
19:23:50 | * | Calinou quit (Quit: No Ping reply in 180 seconds.) |
19:23:51 | * | Sembei joined #nim |
19:24:05 | * | foocraft joined #nim |
19:24:21 | * | dddddd joined #nim |
19:24:24 | PMunch | Oh, I'm not sure if the examples includes any OpenGL stuff |
19:27:37 | dom96 | http://nim-lang.org/news/2016_09_03_nim_community_survey_results.html |
19:28:12 | dom96 | Please let me know what you guys think (i'll wait a bit before HN'ing/Reddit'ing) :) |
19:29:50 | PMunch | Oooh, finally :) |
19:32:13 | dom96 | Next time I definitely will take Araq's advice and not add as many questions |
19:37:14 | * | noord joined #nim |
19:37:38 | * | noord is now known as Guest43891 |
19:38:04 | * | Guest43891 quit (Client Quit) |
19:46:49 | * | rtr_ joined #nim |
19:48:41 | euantor | `Difficulty installing on Windows.` being a dislike? |
19:48:42 | euantor | How? |
19:48:49 | * | Calinou_ is now known as Calinou |
19:49:05 | euantor | If anything, Windows is the easiest platform to install on given that there's an actual installer for it... |
19:49:41 | dom96 | Indeed. I was wondering that myself. |
19:49:56 | dom96 | A couple of people wrote it |
19:50:03 | mcc | is it possible they meant "using on windows" rather than literally "installing"? |
19:50:04 | dom96 | well, like 2 or 3 |
19:50:06 | dom96 | but still |
19:50:07 | Araq | yeah, it's remarkable, but I think it's because of other GCCs in PATH |
19:50:14 | mcc | oh if they wrote it in n/m |
19:50:23 | euantor | Possibly, that would make sense Araq |
19:50:34 | Araq | maybe I should give the new windows installer higher priority |
19:50:49 | Araq | right now it's a "fun project, maybe never finished" |
19:52:00 | * | endragor_ joined #nim |
19:56:09 | * | endragor_ quit (Ping timeout: 244 seconds) |
19:57:02 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
19:59:02 | * | rtr_ quit (Remote host closed the connection) |
19:59:29 | * | rtr_ joined #nim |
20:00:10 | dom96 | So, what do you guys think? Anything I need to change? |
20:00:21 | euantor | Looks good to me |
20:02:53 | dom96 | Okay, HN/Reddit it is |
20:04:36 | dom96 | hrm |
20:04:55 | dom96 | Which is a better title, "Nim Community Survey 2016 Results" or "Results of the 2016 Nim Community Survey" |
20:04:58 | dom96 | ? |
20:05:08 | euantor | Results of the 2016 Nim Community Survey |
20:05:24 | * | nsf joined #nim |
20:05:43 | dddddd | the last grap in unordered because... |
20:05:47 | dddddd | *graph |
20:05:58 | dddddd | I mean, not like the others |
20:06:00 | * | GangstaCat quit (Quit: Leaving) |
20:06:07 | dom96 | dddddd: huh? |
20:06:18 | dddddd | This last one is alphabetic, instead of result |
20:07:04 | dddddd | just a minor detail, of course, but seems a bit different to the rest of the doc |
20:07:46 | dom96 | oh yeah, I did it because I thought it looked better/more interesting. The first one is unordered also. |
20:08:01 | dom96 | Anyway, submitted to HN/Reddi |
20:08:02 | dom96 | t |
20:08:28 | dddddd | fair enough |
20:14:24 | * | yglukhov quit () |
20:17:07 | * | yglukhov joined #nim |
20:21:32 | * | _stowa joined #nim |
20:21:56 | * | foocraft quit (Quit: Leaving) |
20:29:29 | * | _stowa quit (K-Lined) |
20:46:49 | * | StarBrilliant quit (Ping timeout: 255 seconds) |
20:48:21 | * | StarBrilliant joined #nim |
20:52:26 | * | libman left #nim (#nim) |
21:09:02 | * | planhths joined #nim |
21:10:54 | * | pafmaf quit (Ping timeout: 258 seconds) |
21:19:01 | * | filwit joined #nim |
21:28:16 | * | Jesin quit (Quit: Leaving) |
21:30:56 | filwit | congrats on the survey results writeup.. was a good read through |
21:41:06 | dom96 | filwit: glad you liked it :) |
21:52:57 | * | Trustable quit (Remote host closed the connection) |
21:53:05 | * | rtr_ quit (Remote host closed the connection) |
21:55:29 | PMunch | dom96, links to submissions? |
21:56:12 | PMunch | euantor, installing on Linux is super easy since we've got package managers |
21:56:32 | euantor | Yeah, and easy on Windows too |
21:56:35 | PMunch | I just went into my package manager and told it to install nim and nimble and off I went |
21:56:57 | euantor | The hardest one is probably OS X since the Homebrew formula has a bunch of problems last I heard |
21:57:53 | * | endragor quit (Ping timeout: 265 seconds) |
22:00:14 | mcc | i think when i tried to install it on mac it required a newer os x version than i had |
22:08:17 | dom96 | PMunch: https://news.ycombinator.com/item?id=12420906 https://www.reddit.com/r/programming/comments/510jgh/results_of_the_2016_nim_community_survey/ |
22:09:04 | PMunch | Hmm, less traction that I thought it would get |
22:09:13 | PMunch | I'll comment on it when I'm done reading :) |
22:10:11 | PMunch | Just got to the lines of code section (don't worry, I had to make dinner in the meantime, not a horribly slow reader). Has anyone compared how Nim compares to Rust in program size to accomplish the same thing? |
22:10:38 | PMunch | Comparing Nim to e.g. C or Java would definitely not be fair since they both use brackets which really rack up those line counts |
22:12:27 | PMunch | The project size for work users graph is a mess by the way :P Should've gone with two colours in different shades, e.g. light for part-time, dark for full time, blue for Nim, green for Rust. |
22:25:32 | mcc | Maybe you should post it in the nim forum also? |
22:28:47 | * | fredrik92 joined #nim |
22:31:43 | dom96 | PMunch: fixed |
22:32:38 | dom96 | hrm, wait I did it wrong |
22:33:09 | PMunch | Haha, now that's just even more confusing :P |
22:33:47 | * | endragor joined #nim |
22:33:55 | dom96 | check again |
22:34:28 | dom96 | I'm really disappointed |
22:34:34 | dom96 | Was expecting far more interest in this |
22:34:46 | dom96 | mcc: yeah, i'll do that now |
22:34:54 | PMunch | Well, it might just be bad timing |
22:35:07 | PMunch | Here it's Saturday night so most people are probably out |
22:35:10 | mcc | Hmmmmm |
22:35:21 | mcc | I installed the opengl package via nimble on Windows under MSYS2 and it installed the x11 package |
22:35:23 | mcc | is this surprising |
22:36:44 | dom96 | PMunch: Programmers? Out? On a Saturday? |
22:37:13 | dom96 | Am I the only social recluse? :P |
22:38:04 | * | endragor quit (Ping timeout: 240 seconds) |
22:38:41 | PMunch | Haha, I'd like to be, but the people I attend university with always invites me out.. |
22:39:16 | PMunch | Not that that's necessarily a bad thing, but sometimes I just want to be home alone programming. |
22:39:26 | dom96 | Too hard to say "No"? :P |
22:39:37 | PMunch | But I guess not all of us are out today fredrik92? |
22:40:20 | PMunch | Well, since I work from home I get shamed into socializing on the weekends :P |
22:41:03 | fredrik92 | Nah... Forgot to drag people into sth today... |
22:41:20 | PMunch | Didn't we get invited to a vorspiel? |
22:41:51 | fredrik92 | Did we? Was up programming to 5:30 last night... So I haven't been in a much useful state today :P |
22:43:09 | mcc | hmm also this is interesting, use of yaml in a file causes "jsonmaze.nim(5, 20) Warning: use 'else: discard'; non-ordinal case without 'else' is deprecated [Deprecated]" to be reported on a totally different line |
22:43:11 | PMunch | Haha :P Johs invited us |
22:43:40 | mcc | and the other line contains nothing but an innocuous type definition |
22:44:22 | fredrik92 | Hmm... well, I'm off to bed early today... See you... |
22:44:30 | PMunch | See you |
22:44:34 | * | fredrik92 quit (Quit: Shutting down...) |
22:49:13 | dom96 | I guess I'll try to resubmit to HN |
22:49:58 | dom96 | Upvotes appreciated |
22:50:21 | PMunch | I'd give you one if I had an account |
22:50:42 | PMunch | Upvoted your reddit post and commented though :) |
22:50:59 | * | Satyajit joined #nim |
22:52:25 | dom96 | thanks |
22:54:49 | PMunch | Also put the word out in some other IRC channels, asking if there were any Nim users there :) |
22:56:45 | dom96 | cool cool |
23:00:17 | * | nsf quit (Quit: WeeChat 1.5) |
23:08:13 | * | endragor joined #nim |
23:12:48 | * | endragor quit (Ping timeout: 250 seconds) |
23:14:50 | * | yglukhov quit (Remote host closed the connection) |
23:15:27 | * | yglukhov joined #nim |
23:19:42 | * | yglukhov quit (Ping timeout: 244 seconds) |
23:37:46 | * | themagician quit () |
23:39:48 | PMunch | Just bought your book by the way :) The coupon was nice |
23:43:52 | PMunch | www.reddit.com/r/programming/comments/511gfp/nim_in_action_book_is_50_off_with_the/ |
23:44:04 | PMunch | Nothing grabs attention like discounts and freebies :) |
23:44:40 | PMunch | If it's screwing with your marketing strategy for the book dom96, let me know and I'll take down the post |
23:50:43 | dom96 | No, but the discount has nothing to do with the survey results. It's because of labour day and it works on all manning books. |
23:51:59 | dom96 | Thanks for buying :) |
23:52:05 | dom96 | I should really head to bed now |
23:52:06 | dom96 | night |
23:52:25 | PMunch | Oh, I thought it was a bonus for the survey :P |
23:52:32 | PMunch | Well okay, good night |
23:56:23 | * | planhths quit (Quit: Konversation terminated!) |