| 00:08:46 | * | yglukhov joined #nim |
| 00:13:07 | * | yglukhov quit (Ping timeout: 240 seconds) |
| 00:23:47 | * | def-pri-pub joined #nim |
| 00:26:58 | * | zachcarter joined #nim |
| 00:27:30 | zachcarter | anyone know why my double hyphens in a html document are turning into a single hyphen? |
| 00:28:38 | def-pri-pub | Are you editing your .html file in MS Word? |
| 00:28:45 | zachcarter | vs code |
| 00:28:55 | def-pri-pub | hmmm.... dunno, I don't use it. |
| 00:29:13 | zachcarter | o/ btw def-pri-pub, long time no see |
| 00:29:20 | def-pri-pub | Word processors like MS Work, Google Docs, LibreOffice are the only things I know of that do that |
| 00:29:35 | zachcarter | yeah it’s strange |
| 00:29:43 | def-pri-pub | Yeah, been busy moving & with work. I'm not working on any Nim projects right now, just taking a break. |
| 00:29:57 | zachcarter | gotcha |
| 00:33:51 | zachcarter | def-pri-pub: I made a new website for frag |
| 00:33:52 | zachcarter | well it’s wip |
| 00:33:55 | zachcarter | http://fragworks.io |
| 00:33:58 | zachcarter | I also made |
| 00:34:00 | def-pri-pub | I think I saw it before |
| 00:34:02 | zachcarter | https://play.nim-lang.org |
| 00:34:18 | def-pri-pub | I saw that play one posted in /r/nim. It's pretty cool |
| 00:34:32 | zachcarter | thanks |
| 00:36:53 | * | Trioxin joined #nim |
| 00:38:04 | Trioxin | is there a page that describes how to read the standard library docs? A few things throw me off a bit |
| 00:40:33 | zachcarter | https://nim-lang.org/docs/manual.html |
| 00:40:57 | zachcarter | not sure if that’s what you’re looking for or not |
| 00:41:21 | zachcarter | https://nim-lang.org/docs/lib.html |
| 00:46:49 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
| 00:47:25 | def-pri-pub | I will say that Nim doesn't really have the easiest docs to read. The formatting, layout, and structure of the pages could use some work. |
| 00:48:34 | def-pri-pub | Trioxin: If you're looking to simply learn what's in the standard library, the best thing to do would to be to that `lib.html` page, pick out a library, and read it. |
| 00:48:44 | def-pri-pub | There are some sparse example of how each function is used. |
| 00:48:55 | def-pri-pub | If there is something missing docs, please report it to the issue tracker. |
| 00:50:11 | def-pri-pub | `system`, Things in the "Collections and Algorithms" section, and `strutils` are what is the most important IMO. |
| 00:50:32 | def-pri-pub | If you're doing anything math heavy (e.g. writing a ray tracer), go through some of the math libraries |
| 01:05:34 | * | vlad1777d quit (Quit: Leaving) |
| 01:05:45 | * | chemist69 quit (Ping timeout: 240 seconds) |
| 01:09:02 | * | Kingsquee quit (Ping timeout: 240 seconds) |
| 01:19:41 | * | chemist69 joined #nim |
| 01:24:08 | * | Kingsquee joined #nim |
| 01:29:25 | * | Kingsquee quit (Ping timeout: 240 seconds) |
| 01:30:53 | * | Kingsquee joined #nim |
| 02:03:54 | * | bjz joined #nim |
| 02:11:00 | * | yglukhov joined #nim |
| 02:15:05 | * | yglukhov quit (Ping timeout: 240 seconds) |
| 02:26:25 | * | jsgrant_om quit (Read error: Connection reset by peer) |
| 02:40:53 | * | def-pri-pub quit (Quit: leaving) |
| 02:40:57 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
| 03:23:49 | * | arnetheduck joined #nim |
| 03:28:45 | * | brson quit (Ping timeout: 240 seconds) |
| 03:45:41 | * | bjz joined #nim |
| 04:13:07 | * | zachcarter quit (Quit: zachcarter) |
| 04:13:13 | * | yglukhov joined #nim |
| 04:17:37 | * | yglukhov quit (Ping timeout: 240 seconds) |
| 04:24:01 | * | BennyElg quit (Remote host closed the connection) |
| 04:44:33 | FromGitter | <geohuz> I would say all the data structure manipulation related api should have more examples in the document. I just finished a tiny project to download gz file then uncompress the csv file, then read certain columns and deduplicate rows data, finally return a json response. Nim is a great language and I enjoyed using it. But I still feel lacking of documentation (especially example codes in API) thus took me hours read source cod |
| 04:44:33 | FromGitter | ... to trying figure out how to do things |
| 04:44:48 | ftsf | o/ |
| 04:50:08 | FromGitter | <geohuz> the pegs lib, for example, maybe more example of usage would be great. BTW, is there any lazy evaluation feature in the Nim? For my specific task, downloading a large file (100m) and doing data processing should be a good example of applying lazy iterator |
| 04:53:36 | FromGitter | <geohuz> maybe a good nim recipe site will help a lot |
| 05:08:42 | * | kunev quit (Ping timeout: 264 seconds) |
| 05:09:01 | * | kunev joined #nim |
| 05:10:25 | * | Trioxin quit (Read error: Connection reset by peer) |
| 05:24:50 | * | rauss quit (Quit: WeeChat 1.7.1) |
| 05:36:02 | * | kunev quit (Ping timeout: 240 seconds) |
| 05:37:35 | * | kunev joined #nim |
| 06:07:32 | * | Sembei quit (Ping timeout: 240 seconds) |
| 06:08:16 | * | kunev quit (Ping timeout: 260 seconds) |
| 06:09:09 | * | kunev joined #nim |
| 06:13:52 | * | kunev quit (Ping timeout: 260 seconds) |
| 06:15:32 | * | yglukhov joined #nim |
| 06:16:11 | * | kunev joined #nim |
| 06:19:37 | * | yglukhov quit (Ping timeout: 240 seconds) |
| 06:23:07 | * | kunev quit (Ping timeout: 255 seconds) |
| 06:24:11 | * | kunev joined #nim |
| 06:25:02 | FromGitter | <maiermic> Hi, I'm new to nim and currently discovering the language. I wonder if calculating compile time constants is supported, but this fails due to `I1 + I2`: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=590ebdc1c4d73f445a802801] |
| 06:27:06 | FromGitter | <maiermic> Is support of calculated compile time constants planned in Nim? |
| 06:27:25 | ftsf | maiermic, i believe you can calculate constants at compile time |
| 06:29:01 | FromGitter | <maiermic> I get this compile time error: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=590ebeb00dcaa48e6736cac3] |
| 06:29:16 | ftsf | yep i see, i'm not sure how to get around that... |
| 06:30:05 | Araq | use static T and beware of its bugs |
| 06:37:00 | FromGitter | <maiermic> @Araq I tried ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=590ec08f5c89dc5361832cf6] |
| 06:40:23 | * | Trustable joined #nim |
| 06:44:43 | * | kunev quit (Ping timeout: 255 seconds) |
| 06:45:15 | * | kunev joined #nim |
| 06:52:17 | * | kunev quit (Ping timeout: 255 seconds) |
| 06:53:14 | * | kunev joined #nim |
| 06:59:15 | * | BennyElg joined #nim |
| 07:02:51 | * | nsf joined #nim |
| 07:08:53 | * | Trustable quit (Remote host closed the connection) |
| 07:17:32 | * | yglukhov joined #nim |
| 07:22:26 | * | yglukhov quit (Ping timeout: 260 seconds) |
| 07:40:02 | * | BennyElg quit (Remote host closed the connection) |
| 07:40:47 | * | nsf quit (Quit: WeeChat 1.7.1) |
| 07:43:05 | * | kdst joined #nim |
| 08:09:22 | * | BennyElg joined #nim |
| 08:10:08 | * | BennyElg_ joined #nim |
| 08:10:08 | * | BennyElg quit (Read error: Connection reset by peer) |
| 08:24:30 | * | yglukhov joined #nim |
| 08:25:16 | * | kdst quit (Quit: Leaving) |
| 08:31:21 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
| 08:55:40 | * | bjz joined #nim |
| 08:58:22 | * | bjz quit (Remote host closed the connection) |
| 08:59:19 | * | bjz joined #nim |
| 09:00:35 | * | Tiberium joined #nim |
| 09:03:30 | FromGitter | <timeyyy> @araq I am going to be starting a group for people to sprint/pair/mob programming on different projects. Language independant, focused on learning about design/architecture etc and maybe drinking beer :/. Would you want to participate with nim? |
| 09:09:56 | * | sz0 joined #nim |
| 09:16:14 | * | couven92 joined #nim |
| 09:29:07 | * | vlad1777d joined #nim |
| 09:59:33 | * | DebugDude12 joined #nim |
| 10:00:21 | DebugDude12 | Is information hiding supposed to work this way? http://dpaste.com/3F6DDNG |
| 10:04:06 | * | Tiberium quit (Remote host closed the connection) |
| 10:05:23 | * | Tiberium joined #nim |
| 10:06:34 | * | zachcarter joined #nim |
| 10:11:38 | FromGitter | <zacharycarter> @geohuz if you find missing docs please add them or at the very least file an issue - but better to just update them and issue a PR |
| 10:12:24 | FromGitter | <zacharycarter> there is rosettacode which has a lot of nim examples on it |
| 10:12:43 | FromGitter | <zacharycarter> but I'm not aware of any nim recipe site atm |
| 10:15:52 | FromGitter | <zacharycarter> ooo is choosenim released now @dom96 ? |
| 10:16:00 | FromGitter | <zacharycarter> I just saw a link to it on reddit |
| 10:18:26 | FromGitter | <zacharycarter> Does anyone know why linking secondary dependencies is different on ubuntu vs other distros? |
| 10:18:58 | DebugDude12 | in which regard? |
| 10:20:41 | FromGitter | <zacharycarter> I'm linking to this library bgfx, which references this one opengl function |
| 10:20:54 | FromGitter | <zacharycarter> https://github.com/bkaradzic/bgfx/blob/master/src/glcontext_glx.cpp#L113 |
| 10:22:19 | FromGitter | <zacharycarter> give me one second I'm just verifying something |
| 10:23:25 | FromGitter | <zacharycarter> okay yeah |
| 10:23:34 | FromGitter | <zacharycarter> so in like debian for instance - I don't even have to specifically link OpenGL |
| 10:24:08 | FromGitter | <zacharycarter> actually nevermind I do |
| 10:24:10 | FromGitter | <zacharycarter> BUT |
| 10:24:53 | FromGitter | <zacharycarter> I can link it with after bgfx, I guess Ubuntu is strict in regards to linking order |
| 10:25:23 | DebugDude12 | they may just use different versions of some linker |
| 10:25:48 | FromGitter | <zacharycarter> either way it's super annoying |
| 10:25:57 | DebugDude12 | the same way tar expects the --exclude args BEFORE the dir to pack, on older versions its the other way around <.< |
| 10:26:20 | FromGitter | <zacharycarter> well I don't know a good way to solve this besides overlinking bgfx |
| 10:26:37 | FromGitter | <zacharycarter> and then to do that I have to somehow detect when bgfx is being compiled on ubuntu vs other distros |
| 10:27:00 | FromGitter | <zacharycarter> unless I can somehow tell nim compiler to link OpenGL first |
| 10:27:06 | * | yglukhov quit (Remote host closed the connection) |
| 10:27:09 | FromGitter | <zacharycarter> tell the nim compiler to tell the linker |
| 10:27:10 | FromGitter | <zacharycarter> gah |
| 10:30:18 | FromGitter | <zacharycarter> I think it might all have to do with |
| 10:30:23 | FromGitter | <zacharycarter> https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransition |
| 10:33:20 | DebugDude12 | I guess i shouldn't use withFoo(body) style templates in modules that define objects :S |
| 10:34:49 | DebugDude12 | Can i unbind symbols in a better way than shadowing them with some incompatible value? |
| 10:36:47 | FromGitter | <zacharycarter> not sure |
| 10:36:50 | * | yglukhov joined #nim |
| 10:51:39 | * | yglukhov quit (Remote host closed the connection) |
| 11:06:41 | ldlework | https://gfycat.com/YearlyGivingBonobo |
| 11:28:14 | * | Matthias247 joined #nim |
| 11:34:33 | * | nsf joined #nim |
| 11:38:46 | * | Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif) |
| 11:50:04 | zachcarter | any opinions on this section of the docs page: http://fragworks.io/documentation/examples/ ? |
| 11:50:06 | zachcarter | too many tabs? |
| 11:56:38 | FromGitter | <stisa> zachcarter : yeah, I feel 3 levels of tabs is too much |
| 11:56:40 | DebugDude12 | If a template returns a typed block, does it mean it gets resolved there? |
| 11:57:16 | zachcarter | stisa: I’m thinking the same thing, just can’t think of a better way to organize it |
| 11:58:37 | FromGitter | <stisa> not sure either, maybe a top level tab "Examples" with screenshots and run instructions? |
| 11:59:06 | zachcarter | maybe |
| 11:59:55 | zachcarter | yeah that’s probably the right way |
| 12:05:54 | * | Vladar joined #nim |
| 12:10:54 | * | yglukhov joined #nim |
| 12:13:36 | * | yglukhov quit (Remote host closed the connection) |
| 12:17:39 | * | yglukhov joined #nim |
| 12:21:25 | * | yglukhov quit (Remote host closed the connection) |
| 12:29:11 | * | yglukhov joined #nim |
| 12:34:18 | * | bjz quit (Remote host closed the connection) |
| 12:43:09 | * | dddddd joined #nim |
| 13:06:35 | DebugDude12 | Should i wrap templates that declare dummy variables in a block statement, or is the name-wrangling reliable enough? |
| 13:07:37 | * | Arrrr joined #nim |
| 13:07:37 | * | Arrrr quit (Changing host) |
| 13:07:37 | * | Arrrr joined #nim |
| 13:10:37 | FromGitter | <stisa> DebugDude12 : If you aren't using dirty or inject, variables declared in templates aren't accessible out of them, see https://nim-lang.org/docs/manual.html#templates-hygiene-in-templates |
| 13:10:50 | FromGitter | <stisa> or are you talking about something else? |
| 13:12:43 | DebugDude12 | Im asking if they are still declared under a wrangled name, in which case a block: could keep them local |
| 13:23:24 | * | DebugDude12 quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
| 13:25:06 | BennyElg_ | :)) |
| 13:30:53 | * | pie_ joined #nim |
| 13:38:41 | * | pie_ quit (Quit: Leaving) |
| 13:39:05 | * | pie_ joined #nim |
| 13:41:26 | * | arnetheduck quit (Remote host closed the connection) |
| 13:49:04 | * | PMunch joined #nim |
| 14:15:45 | * | Sembei joined #nim |
| 14:37:53 | * | Tiberium quit (Remote host closed the connection) |
| 14:38:22 | * | Tiberium joined #nim |
| 14:50:41 | * | PMunch quit (Quit: leaving) |
| 15:00:10 | * | nsf quit (Quit: WeeChat 1.7.1) |
| 15:28:21 | * | couven92 quit (Quit: Client Disconnecting) |
| 15:30:03 | * | BennyElg_ quit (Remote host closed the connection) |
| 15:30:29 | * | BennyElg joined #nim |
| 15:34:45 | * | BennyElg quit (Ping timeout: 240 seconds) |
| 15:48:32 | Tiberium | hmm, just curious - can I create an array with range from 0 to 1000000? not seq, but an array |
| 15:53:16 | FromGitter | <ftsf> are return value and setting result supposed to be equivalent? i'm seeing different behaviour if i make a function that sets result compared with one that returns a new variable but is otherwise the same. |
| 15:54:29 | euantor | Yes, result and return should be the same |
| 15:54:56 | euantor | Tiberium: Sure you can, just make an array sized 1000001 and fill it with values |
| 15:55:44 | FromGitter | <ftsf> euantor, that's what i thought. https://gist.github.com/ftsf/62107e4a1d5a00462ead75dc4dd96cf8 this code gives different results depending on which function is used =\ |
| 15:57:02 | FromGitter | <ftsf> i can't figure out why the copyPolyBroken one returns a sequence with every second element being 0,0 |
| 15:57:38 | euantor | Interesting, I'm not sure why that would be either |
| 15:58:19 | euantor | What does the seq look like before the return? |
| 15:58:28 | FromGitter | <ftsf> before return it looks correct |
| 15:58:45 | FromGitter | <ftsf> only checking it afterwards from outside the function does it have the missing data |
| 15:58:58 | Tiberium | euantor, ehm, C compiler gives me four errors, first one: "error: size of array ‘TY_y3BV9aZfMrPOlx74qU9cj8xg’ is too large" |
| 15:59:26 | Tiberium | lol, but it compiles with cpp |
| 15:59:28 | euantor | Probably because array is on the stack and is too long I'd guess |
| 15:59:37 | euantor | I could be entirely wrong though |
| 15:59:47 | Tiberium | or no, it doesn |
| 15:59:48 | Tiberium | t |
| 16:00:15 | euantor | http://stackoverflow.com/a/18372236/951577 |
| 16:04:37 | euantor | ftsf: This minimal test case seems to work: https://glot.io/snippets/epn1mmkive |
| 16:04:47 | euantor | What type is Vec2f? |
| 16:06:49 | * | Trustable joined #nim |
| 16:09:28 | FromGitter | <ftsf> glm Vec2f which is Vec[2, float32] where Vec[N: static[int]], T] = object: arr: array[N,T] |
| 16:13:00 | euantor | No idea then I'm afraid |
| 16:16:13 | FromGitter | <ftsf> interesting, seems like it might be a problem with the glm module... |
| 16:16:29 | FromGitter | <ftsf> i copied the bits i'm using out into that file and it worked fine |
| 16:16:37 | FromGitter | <ftsf> but if i import it it breaks |
| 16:23:06 | * | yglukhov quit (Remote host closed the connection) |
| 16:29:25 | * | nsf joined #nim |
| 16:48:21 | Tiberium | Can someone try to reproduce https://github.com/nim-lang/nimsuggest/issues/61 ? |
| 16:49:42 | * | rauss joined #nim |
| 17:05:24 | subsetpark | Tiberium: same here |
| 17:20:31 | * | vlad1777d quit (Quit: Leaving) |
| 17:23:36 | * | yglukhov joined #nim |
| 17:27:44 | * | yglukhov quit (Ping timeout: 245 seconds) |
| 17:28:42 | Tiberium | subsetpark, ok, thanks, at least it's not caused by my environment :) |
| 17:29:28 | Tiberium | but I can't use nimsuggest in my project because of this :( |
| 17:35:14 | FromGitter | <maiermic> FYI, I've added my question on SO: http://stackoverflow.com/questions/43834584/how-to-concat-two-arrays-in-nim |
| 17:44:56 | * | scriptkiddy joined #nim |
| 17:45:22 | scriptkiddy | anyone available to help with an asynchttpserver question? |
| 17:59:49 | * | couven92 joined #nim |
| 18:09:23 | * | yglukhov joined #nim |
| 18:14:24 | scriptkiddy | hello |
| 18:15:24 | Arrrr | lol |
| 18:15:38 | Arrrr | I have no experience with async, maybe dom96 is around here? |
| 18:16:08 | scriptkiddy | that would be cool. I asked on the forums as well. |
| 18:17:16 | Arrrr | The "template/generic instantiation from here" is not an error, don't worry |
| 18:17:23 | Arrrr | Is there for informative purposes |
| 18:17:47 | Arrrr | I don't know why nimsuggest complains though. |
| 18:18:44 | scriptkiddy | OK, that's good. |
| 18:18:52 | scriptkiddy | Might be my editor tbh. |
| 18:18:58 | scriptkiddy | I'm using micro |
| 18:20:36 | Tiberium | if I have seq[string], how can I get "string" type? |
| 18:20:42 | Tiberium | inside generic proc |
| 18:21:16 | scriptkiddy | Tiberium, can you post a link to your code on pastebin/ |
| 18:21:53 | Tiberium | scriptkiddy, ah, nevermind, I solved it: I don't need to do it this way :) |
| 18:22:26 | scriptkiddy | good to hear |
| 18:22:35 | * | yglukhov quit (Remote host closed the connection) |
| 18:24:18 | demi- | scriptkiddy: i implemented the support for the nim linter in micro, that is a warning, not an error |
| 18:26:49 | scriptkiddy | demi-, cool. |
| 18:26:54 | scriptkiddy | thanks for your work btw |
| 18:27:12 | def- | Tiberium: type(x[0]) maybe |
| 18:33:37 | demi- | scriptkiddy: i'm planning on getting nim-suggested implemented as well, but that is blocked on some support micro needs to provide |
| 18:34:19 | scriptkiddy | demi-, I wish I could help, but I'm not familiar with Go. |
| 18:35:20 | * | gokr joined #nim |
| 18:41:00 | * | vlad1777d joined #nim |
| 18:44:21 | * | yglukhov joined #nim |
| 19:00:36 | * | Arrrr quit (Ping timeout: 260 seconds) |
| 19:00:40 | * | yglukhov quit (Remote host closed the connection) |
| 19:08:47 | * | Arrrr joined #nim |
| 19:10:20 | * | BennyElg joined #nim |
| 19:22:53 | * | PMunch joined #nim |
| 19:30:19 | * | Arrrr quit (Ping timeout: 264 seconds) |
| 19:51:57 | fvs | Can js dom be used for touch-enabled mobile apps? I see it has a Touch object but no events: touchstart, touchmove, etc. Haven't seen any examples. |
| 19:58:05 | * | Vladar quit (Quit: Leaving) |
| 20:09:31 | * | yglukhov joined #nim |
| 20:09:48 | scriptkiddy | fvs, That probably has more to do with a browser/runtime's implementation of js events. |
| 20:24:37 | * | Sentreen quit (Ping timeout: 240 seconds) |
| 20:35:19 | dom96 | fvs: yes, it can. My snake game supports touch |
| 20:36:03 | dom96 | https://github.com/dom96/snake/blob/master/snake/touch.nim and https://github.com/dom96/snake/blob/master/snake.nim#L35 |
| 20:38:18 | * | Sentreen joined #nim |
| 20:44:37 | * | nsf quit (Quit: WeeChat 1.7.1) |
| 20:49:17 | * | hust921 left #nim ("Leaving") |
| 20:49:18 | scriptkiddy | Anyone familiar with using procvars? |
| 20:50:56 | scriptkiddy | I have an object that has 4 attributes that are of `proc` type. |
| 20:51:27 | scriptkiddy | I want to initialize the object with a default proc in it's constructor proc |
| 20:52:05 | scriptkiddy | however, when I try to pass the function as the default argument, i get an error saying that I can pass the proc as a procvar |
| 20:52:14 | scriptkiddy | *can't pass |
| 20:53:02 | scriptkiddy | If i alias the proc with a variable, there is no issue |
| 20:54:20 | * | Trustable quit (Remote host closed the connection) |
| 20:55:09 | scriptkiddy | is this the accepted solution? |
| 20:57:01 | * | byte512 quit (Ping timeout: 255 seconds) |
| 21:07:10 | dom96 | scriptkiddy: you can mark your proc with the {.procvar.} pragma https://nim-lang.org/docs/manual.html#pragmas-procvar-pragma |
| 21:08:35 | ldlework | did anyone see my AI? |
| 21:08:57 | dom96 | Did it become sentient and run away? |
| 21:09:08 | scriptkiddy | dom96, I did try that. Still gave an error. |
| 21:09:17 | scriptkiddy | the function signature looks like this: |
| 21:09:36 | dom96 | Anybody with emscripten + Nim experience can answer this? http://stackoverflow.com/questions/43830559/using-strings-in-nim-with-emscripten-causes-javascript-error |
| 21:09:41 | ldlework | dom96, hehe they don't need sentience for that |
| 21:09:43 | scriptkiddy | proc notFoundHandler(req: Request) {.async, procvar.} |
| 21:10:18 | dom96 | scriptkiddy: try: proc notFoundHandler(req: Request): Future[void] {.procvar.} instead |
| 21:10:33 | scriptkiddy | I'll giv it a shot. |
| 21:12:40 | scriptkiddy | dom96, That's strange. now im getting another error where `await` in the function body is an undeclared identifier. asyncdispatch is imported. |
| 21:13:23 | dom96 | yes, well, use the {.async.} pragma on the proc but not on the proc type definition |
| 21:13:25 | Tiberium | ldlework, can you give a link? |
| 21:13:44 | scriptkiddy | I see. |
| 21:14:06 | ldlework | https://gfycat.com/YearlyGivingBonobo |
| 21:16:22 | Tiberium | ldlework, ah I saw it |
| 21:16:25 | scriptkiddy | Idl |
| 21:16:32 | Tiberium | ldlework, now do it in Nim :) |
| 21:16:36 | scriptkiddy | ldlework, That's pretty cool. |
| 21:16:37 | ldlework | Nah |
| 21:16:54 | ldlework | C# is a great language. |
| 21:17:07 | scriptkiddy | Have you tried it with obstacles the monster things have to navigate arround? |
| 21:17:18 | ldlework | Sure, they are navmesh agents so they do that automatically |
| 21:17:30 | ldlework | I will eventually hook up AStar |
| 21:17:51 | ldlework | (For dynamic obstacles) |
| 21:18:11 | ldlework | Though, I'm not sure what I'll actually need that for. |
| 21:18:22 | scriptkiddy | Are you using it for a game or something? |
| 21:18:32 | ldlework | Yeah I'm making a VR title I hope to release on Steam |
| 21:19:19 | scriptkiddy | Nice. Game programming is something I've never gotten into, but it seems like it could be an interesting challenge. |
| 21:22:50 | ldlework | I like it because generally it involves everything software engineering has to offer. |
| 21:23:17 | scriptkiddy | It seems like one of the few places where you actually get to use fancy algorithms. |
| 21:23:54 | ldlework | Well I would say that gamedev is definitely one of the less ... rigorous fields overall. |
| 21:23:58 | ldlework | On the curve at least. |
| 21:27:52 | scriptkiddy | I tried using godot once. I manged to make pong... |
| 21:35:35 | * | yglukhov quit (Remote host closed the connection) |
| 21:51:24 | * | zachcarter quit (Quit: zachcarter) |
| 22:04:53 | * | fvs left #nim ("leaving") |
| 22:05:14 | FromGitter | <Varriount> ldlework: What about all that opengl and matrices stuff |
| 22:05:31 | ldlework | Varriount? |
| 22:06:14 | FromGitter | <Varriount> Yes? |
| 22:08:56 | FromGitter | <Varriount> ldlework: Yes? |
| 22:09:25 | ldlework | I don't understand your question |
| 22:09:36 | ldlework | What about it? |
| 22:10:23 | FromGitter | <Varriount> I mean, aren't those fairly rigorous parts of game development? |
| 22:11:44 | * | xet7 quit (Quit: Leaving) |
| 22:12:50 | * | xet7 joined #nim |
| 22:12:56 | * | Rush_ joined #nim |
| 22:13:46 | * | Tiberium quit (Quit: Leaving) |
| 22:15:57 | ldlework | Sure but compared to the number of people doing game development the number of people writing low-level graphics code is low |
| 22:16:17 | ldlework | The number of produced implementations along the lines of UE4 or down to libgdx is even far smaller |
| 22:17:27 | ldlework | Basically, if you combine the two things I've said so far, Game Development is both rich with software-engineering opportunity and filled with so little of it. |
| 22:17:43 | FromGitter | <Varriount> It's a paradox! |
| 22:20:56 | * | pigmej_ joined #nim |
| 22:21:00 | * | hlt joined #nim |
| 22:22:26 | * | scriptkiddy quit (*.net *.split) |
| 22:22:26 | * | EastByte quit (*.net *.split) |
| 22:22:26 | * | m712 quit (*.net *.split) |
| 22:22:26 | * | pigmej quit (*.net *.split) |
| 22:22:26 | * | RushPL quit (*.net *.split) |
| 22:22:26 | * | jtremback_____ quit (*.net *.split) |
| 22:22:27 | * | pigmej_ is now known as pigmej |
| 22:22:31 | * | hlt is now known as m712 |
| 22:27:42 | * | Jesin joined #nim |
| 22:37:17 | * | scriptkiddy joined #nim |
| 22:42:01 | * | vlad1777d quit (Quit: Leaving) |
| 22:42:38 | * | EastByte joined #nim |
| 22:42:38 | * | jtremback_____ joined #nim |
| 22:46:12 | * | zachcarter joined #nim |
| 22:46:22 | FromGitter | <zacharycarter> No more nim Idlework? |
| 22:48:00 | FromGitter | <zacharycarter> Also there's a new siggraph AI that's pretty mindblowing : https://youtu.be/5YvIHREdVX4?t=149 |
| 22:57:37 | PMunch | Hmm, the json module documentation should really mention that parseJson can throw a JsonParsingError |
| 22:57:56 | PMunch | I had to write a dumb example to figure out what it would raise.. |
| 22:58:54 | FromGitter | <zacharycarter> I don't want to speak for @dom96 or @Araq but I think their answer is usually: please add it PMunch |
| 22:59:06 | PMunch | Haha, I guess you're right :P |
| 22:59:24 | FromGitter | <zacharycarter> :P |
| 22:59:38 | PMunch | I'll have to do that some other time though. Now I just need to get this done.. |
| 23:01:56 | FromGitter | <stisa> PMunch: I'm pretty sure parseJson is already annotated with ` raises: [Exception, Exception, ValueError, JsonParsingError]`, isn't it? |
| 23:02:33 | PMunch | https://github.com/nim-lang/Nim/blob/master/lib/pure/json.nim#L1175 |
| 23:02:34 | PMunch | Nope |
| 23:02:40 | PMunch | Unfortunately.. |
| 23:03:02 | PMunch | Wait, ValueError as well? |
| 23:03:18 | dom96 | PMunch: https://nim-lang.org/docs/json.html#parseJson,Stream,string |
| 23:03:22 | dom96 | Click the {..} |
| 23:03:34 | * | Matthias247 quit (Read error: Connection reset by peer) |
| 23:03:53 | PMunch | What!? That's a feature?? |
| 23:04:16 | PMunch | That should be made way more visible.. |
| 23:09:07 | dom96 | Yeah... I argee. |
| 23:09:09 | dom96 | *agree |
| 23:13:11 | demi- | i'd suggest it be made visible by default, i thought that was just some syntactic design |
| 23:16:15 | * | rauss quit (Quit: WeeChat 1.7.1) |
| 23:16:27 | * | rauss joined #nim |
| 23:23:32 | * | gokr quit (Ping timeout: 240 seconds) |
| 23:23:49 | PMunch | demi-, well that might look really messy for some procedures.. |
| 23:24:33 | * | Tiberium joined #nim |
| 23:25:04 | PMunch | If I'm just seeing what procedures are available I don't care what all the procedures can raise. |
| 23:52:32 | PMunch | How can I get rid of ProveField warnings when using the json module? |
| 23:52:55 | PMunch | I've got all my access wrapped in a try except and even use data.hasKey.. |
| 23:56:47 | Tiberium | PMunch, just disable them? :D |
| 23:56:57 | PMunch | Haha, I guess :P |
| 23:57:51 | PMunch | Hmm, does jester terminate a route after a resp? |
| 23:58:05 | PMunch | ie is that a return of sorts? |