00:00:14 | FromGitter | <krux02> the class is calld "Mesh" btw |
00:04:09 | FromGitter | <Varriount> @zacharycarter I've redone some of the v4 signing code again, by the way. |
00:04:21 | FromGitter | <Varriount> I added query-type signing mainly |
00:14:39 | * | DarkArctic quit (Read error: Connection reset by peer) |
00:15:12 | * | DarkArctic joined #nim |
00:16:02 | * | jrbrt quit (Quit: jrbrt) |
00:18:25 | FromGitter | <krux02> well yea I go to bed, good night folks, it's late here |
00:24:24 | * | MJCaley joined #nim |
00:27:44 | * | DarkArctic quit (Ping timeout: 276 seconds) |
00:40:03 | * | smt quit (Read error: Connection reset by peer) |
00:40:34 | * | smt joined #nim |
00:43:08 | * | MJCaley quit (Quit: Bye) |
00:43:38 | * | NimBot joined #nim |
00:47:00 | * | DarkArctic quit (Client Quit) |
00:56:15 | * | DarkArctic joined #nim |
00:57:37 | * | DarkArctic_ quit (Ping timeout: 248 seconds) |
01:14:50 | FromGitter | <zacharycarter> @Varriount I don't know what that is - but I'm excited to hear it :) |
01:14:52 | FromGitter | <zacharycarter> what can I help with? |
01:15:44 | FromGitter | <zacharycarter> @krux02 good advice- thank you |
01:56:06 | * | noonien quit (Quit: Connection closed for inactivity) |
01:58:29 | * | qwertfisch quit (Ping timeout: 255 seconds) |
01:59:09 | * | beatmox quit (Ping timeout: 264 seconds) |
02:05:36 | * | beatmox joined #nim |
02:05:39 | * | qwertfisch joined #nim |
02:22:46 | * | krux02 quit (Remote host closed the connection) |
02:29:23 | * | BitPuffin quit (Remote host closed the connection) |
02:33:37 | * | SenasOzys quit (Ping timeout: 248 seconds) |
02:33:44 | petersjt014[m] | anyone have experience w/parsing xml? |
02:38:41 | petersjt014[m] | wait |
02:38:57 | petersjt014[m] | I was trying to parse a string where a file was expected |
02:39:21 | petersjt014[m] | nvm |
02:39:33 | petersjt014[m] | now if only I can find the right module.. |
02:43:06 | FromGitter | <zacharycarter> how do I free shared if I'm using runForever - basically how do I clean up in the case of using jester w/ runForever |
02:43:17 | FromGitter | <zacharycarter> since I can't use defer at top leve? |
02:43:51 | FromGitter | <zacharycarter> or can I just stick it at the bottom of the routes macro? |
02:44:33 | FromGitter | <zacharycarter> petersjt014[m]: https://nim-lang.org/docs/parsexml.html ? |
02:48:34 | petersjt014[m] | yeah that looks like it. thx! |
02:49:53 | * | endragor joined #nim |
02:51:27 | FromGitter | <zacharycarter> sure thing |
02:57:24 | * | DarkArctic quit (Ping timeout: 260 seconds) |
02:57:37 | * | arecaceae quit (Remote host closed the connection) |
02:58:00 | * | arecaceae joined #nim |
03:02:44 | * | DarkArctic joined #nim |
03:02:59 | FromGitter | <Varriount> @zacharycarter Would you be available for a meet-up tomorrow? |
03:08:31 | FromGitter | <zacharycarter> @Varriount yup - I need to meet the contractor I'm working w/ to sell my house at 10 am but I could do something in the afternoon |
03:08:40 | * | endragor quit (Remote host closed the connection) |
03:14:29 | * | DarkArctic_ joined #nim |
03:15:13 | * | DarkArctic quit (Ping timeout: 248 seconds) |
03:20:13 | * | DarkArctic joined #nim |
03:20:50 | * | gangstacat quit (Ping timeout: 255 seconds) |
03:20:51 | * | DarkArctic_ quit (Read error: Connection reset by peer) |
03:27:08 | * | DarkArctic quit (Ping timeout: 256 seconds) |
03:30:20 | * | DarkArctic joined #nim |
03:35:53 | * | gangstacat joined #nim |
03:47:33 | * | dddddd quit (Read error: Connection reset by peer) |
04:07:32 | * | rockcavera quit (Remote host closed the connection) |
04:08:26 | * | rockcavera joined #nim |
04:09:05 | * | DarkArctic quit (Ping timeout: 248 seconds) |
04:10:02 | * | DarkArctic joined #nim |
04:17:29 | * | cspar joined #nim |
04:24:23 | petersjt014[m] | are there any caveats with assigning to if statments? |
04:24:37 | petersjt014[m] | I have this, which causes an exception: |
04:25:16 | * | petersjt014[m] sent a long message: petersjt014[m]_2018-04-21_04:25:15.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/uOGdMcmIMzXMeMLCjnWoajEp> |
04:28:45 | petersjt014[m] | okay, now it works |
04:28:46 | petersjt014[m] | maybe |
04:29:07 | petersjt014[m] | this xml is hideous, so :shrug: |
04:38:04 | * | endragor joined #nim |
04:43:55 | * | miran joined #nim |
04:46:15 | * | Lord_Nightmare2 joined #nim |
04:48:59 | * | endragor quit (Remote host closed the connection) |
04:50:09 | * | Lord_Nightmare quit (Ping timeout: 264 seconds) |
04:50:45 | * | Lord_Nightmare2 quit (Ping timeout: 264 seconds) |
04:52:08 | * | Lord_Nightmare joined #nim |
04:52:38 | * | endragor joined #nim |
05:10:15 | * | endragor quit (Remote host closed the connection) |
05:20:23 | petersjt014[m] | sweet |
05:20:31 | petersjt014[m] | I have a made a web-parsey thing in nim |
05:20:47 | petersjt014[m] | 🎉 |
05:24:11 | * | endragor joined #nim |
05:31:29 | * | leorize quit (Quit: WeeChat 2.1) |
05:32:23 | FromGitter | <Varriount> petersjt014[m]: I swear, every time someone says "XML", thunder and lightning should strike in the background. |
05:35:20 | petersjt014[m] | normally I can just barely handle it |
05:36:06 | petersjt014[m] | but tonight I am really into the idea of finding whoever came up with CDATA and choking them |
05:36:14 | petersjt014[m] | just a lil bit |
05:46:39 | petersjt014[m] | but anyway... |
05:46:47 | petersjt014[m] | [voila](https://pastebin.com/QRJX85gW) |
05:49:31 | petersjt014[m] | It's prob gonna break in a lot of situations but it's a start |
05:50:28 | * | Lord_Nightmare quit (Quit: ZNC - http://znc.in) |
05:50:37 | petersjt014[m] | Can you believe that before before about five minutes ago there were no podcast analysis tools in existence? |
05:50:47 | * | Lord_Nightmare joined #nim |
05:50:58 | * | natrys joined #nim |
05:51:37 | petersjt014[m] | I there still aren't cus it don't do squat but still |
05:51:50 | petersjt014[m] | *I mean |
05:52:16 | * | endragor quit (Remote host closed the connection) |
06:40:20 | * | max3 quit (Quit: Connection closed for inactivity) |
06:44:05 | * | cspar quit (Ping timeout: 240 seconds) |
06:49:19 | * | xkapastel quit (Quit: Connection closed for inactivity) |
06:53:10 | * | r3d9u11 joined #nim |
06:55:05 | * | cspar joined #nim |
07:01:06 | * | yglukhov quit (Remote host closed the connection) |
07:02:40 | * | yglukhov joined #nim |
07:03:37 | * | yglukhov quit (Remote host closed the connection) |
07:05:13 | * | yglukhov joined #nim |
07:09:50 | * | yglukhov quit (Ping timeout: 256 seconds) |
07:11:06 | * | r3d9u11 quit (Remote host closed the connection) |
07:20:21 | * | nsf joined #nim |
07:22:07 | * | Trustable joined #nim |
07:27:14 | * | rokups joined #nim |
07:32:04 | * | miran quit (Ping timeout: 256 seconds) |
07:44:07 | * | r3d9u11 joined #nim |
07:58:02 | * | natrys quit (Quit: natrys) |
08:05:07 | Araq | hmm 4 bugs left... |
08:08:19 | petersjt014[m] | neat |
08:08:32 | FromGitter | <ephja> :o |
08:09:12 | FromGitter | <ephja> probably referring to some specific thing :p |
08:09:18 | petersjt014[m] | I don't know what you're doing, but still probably neat |
08:11:59 | petersjt014[m] | rn I'm having fun discovering that triple zips in a language I don't really know are not that easy |
08:15:52 | Araq | trying to get the issue count to 1300 |
08:16:47 | Araq | fix 5 issues every day and it only takes us 260 days to get it to 0. |
08:17:26 | FromGitter | <ephja> is "foo.bar(...)" generated for the js target with 'importcpp'? if emit is not used |
08:17:37 | Araq | yup. |
08:18:23 | FromGitter | <ephja> trying to extend it outside of the dom module. doesn't work so I guess I'll use emit. I should add getComputedStyle though. karax has it |
08:21:58 | * | r3d9u11 quit (Read error: Connection reset by peer) |
08:26:45 | * | Senketsu joined #nim |
08:31:44 | FromGitter | <ephja> was kdom patched or created independently? |
08:39:08 | * | jjido joined #nim |
08:58:03 | FromGitter | <alehander42> so @krux02 should I make a PR for some of the stuff in https://github.com/krux02/ast-pattern-matching/issues/2 this weekend ? |
09:04:39 | FromGitter | <alehander42> @Araq why can't one expand a macro in a type section ? |
09:05:12 | FromGitter | <alehander42> e.g. I am trying to make @andreaferretti 's `variant T` macro work as ⏎ ⏎ ```type ⏎ T = variant: ⏎ ..``` [https://gitter.im/nim-lang/Nim?at=5adafec82b9dfdbc3ab2da33] |
09:11:40 | * | simonsolnes joined #nim |
09:24:17 | * | arecaceae quit (Remote host closed the connection) |
09:24:41 | * | arecaceae joined #nim |
09:24:44 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
09:28:02 | * | hal1 joined #nim |
09:39:17 | FromGitter | <mratsim> try with parenthesis? |
09:39:50 | FromGitter | <mratsim> or behind a (block: yourmacro …) |
09:49:08 | * | SenasOzys joined #nim |
09:55:19 | FromGitter | <alehander42> interesting it seems one can |
09:55:58 | FromGitter | <alehander42> ```type ⏎ T = variant( ⏎ A(i: int), ⏎ B(b: string)) ⏎ ``` [https://gitter.im/nim-lang/Nim?at=5adb0aae5d7286b43a50b94d] |
09:56:19 | FromGitter | <alehander42> but not |
09:56:23 | FromGitter | <alehander42> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5adb0ac71130fe3d36fe66e8] |
09:59:53 | * | jjido joined #nim |
10:03:53 | * | tiychioh joined #nim |
10:09:44 | petersjt014[m] | `parser_v2.nim(119, 53) Error: complex statement requires indentation` |
10:09:56 | petersjt014[m] | ok, DAD |
10:09:58 | petersjt014[m] | sheesh |
10:10:41 | petersjt014[m] | Is a triple nested zip/map too much to ask for? |
10:17:01 | FromGitter | <alehander42> @petersjt014[m] usually not, do you have a snippet? |
10:26:30 | * | Senketsu quit (Quit: WeeChat 2.1) |
10:26:46 | * | Senketsu joined #nim |
10:29:19 | * | Senketsu is now known as Senny |
10:39:33 | * | Senny is now known as Senketsu |
10:43:29 | * | Widdershins quit (Ping timeout: 260 seconds) |
10:44:13 | * | Senketsu is now known as Senketsu_ |
10:44:32 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
10:44:36 | * | Senketsu_ is now known as Senketsu |
10:45:05 | * | Widdershins joined #nim |
10:57:21 | * | jjido joined #nim |
10:57:22 | hal1 | is there a replacement for < ? To avoid this Warning: < is deprecated |
11:00:36 | * | tiychioh quit (Ping timeout: 256 seconds) |
11:00:58 | * | jjido quit (Client Quit) |
11:03:54 | hal1 | found it, it's pred(x) |
11:11:35 | * | natrys joined #nim |
11:13:13 | dom96 | no, it's x..<y |
11:13:17 | dom96 | i.e. no space |
11:13:24 | * | endragor joined #nim |
11:13:29 | dom96 | `..<` is its own operator |
11:13:39 | dom96 | What was deprecated is the unary ``<`` |
11:13:52 | dom96 | This needs a better warning |
11:16:14 | * | cspar quit (Ping timeout: 265 seconds) |
11:17:35 | * | endragor quit (Ping timeout: 240 seconds) |
11:22:08 | * | xkapastel joined #nim |
11:23:45 | * | Senketsu_ joined #nim |
11:25:09 | * | r3d9u11 joined #nim |
11:26:15 | * | Senketsu_ quit (Client Quit) |
11:27:08 | hal1 | yes, I found the comment in os for it, in unary < |
11:27:31 | hal1 | pred is the replacement for the unary < |
11:30:36 | hal1 | I had to change both, the new range but there were also uses of unary <, just as <pos for example which I changed to pos.pred |
11:30:37 | * | tiychioh joined #nim |
11:32:25 | * | Senketsu_ joined #nim |
11:33:01 | * | Senketsu_ quit (Client Quit) |
11:33:17 | hal1 | it was in system, not os, sorry |
11:33:42 | * | Senketsu_ joined #nim |
11:48:13 | hal1 | dom96: I'm trying to change docopt to use regex instead of nre and I noticed the unary < warning and that nimble check gives some warnings. Does this look ok to you https://github.com/docopt/docopt.nim/compare/master...hendrikgit:nimblefile ? |
11:49:29 | dom96 | hal1: Yes, except that your `test` task won't work on Windows. |
11:50:27 | dom96 | you can use this https://nim-lang.org/docs/nimscript.html#listFiles,string |
11:51:29 | hal1 | ls |
11:52:08 | hal1 | doh that ls was meant for my console. Thanks dom96 I'll do that |
11:56:55 | hal1 | do I need to call setCommand "nop" after every exec in a task or just at the end of the task |
11:59:23 | dom96 | You don't have to do that at all in Nimble |
12:05:38 | hal1 | dom96: like this? https://github.com/docopt/docopt.nim/compare/master...hendrikgit:nimblefile |
12:07:24 | dom96 | sure, I think there might be a way to use the ospaths module's functions in nimscript too |
12:07:33 | dom96 | you can use them to check the file extension |
12:07:44 | dom96 | but what you're doing works too |
12:08:31 | FromGitter | <zacharycarter> I keep getting oom errors with this code, right around this line - https://gist.github.com/zacharycarter/ad871978fc697d6d5af28411f1458b50#file-oom-nim-L86 |
12:09:41 | * | r3d9u11 quit (Remote host closed the connection) |
12:11:42 | hal1 | these are things I just did to pass the time while I try to figure out how to make it work with the new regex lib, which is the real goal |
12:12:27 | * | joe___ joined #nim |
12:13:40 | FromGitter | <zacharycarter> output from lldb - ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5adb2af31130fe3d36fedcc8] |
12:15:38 | FromGitter | <zacharycarter> I guess it's because I'm not returning anything from the method being spawned |
12:15:51 | FromGitter | <zacharycarter> but... should this maybe be caught at the compiler level? |
12:15:57 | hal1 | I get the impression the docopt repository is not the most active, there is an open PR from January |
12:16:09 | FromGitter | <zacharycarter> I don't think the maintainer works on Nim stuff anymore |
12:16:16 | * | dddddd_ joined #nim |
12:17:16 | dom96 | Might be good to ask for access to the repo |
12:17:24 | * | dddddd_ is now known as dddddd |
12:26:09 | * | SenasOzys quit (Ping timeout: 264 seconds) |
12:26:47 | hal1 | I changed nre to regex and made it compile but then the tests fail. I'm not sure if I wrote an incorrect replacement for captures[0] or if nre and regex differ in other places. If someone has time and interest to have a look this is it so far: https://github.com/docopt/docopt.nim/compare/master...hendrikgit:nim-regex |
12:30:13 | * | SenasOzys joined #nim |
12:31:05 | dom96 | Import both nre and regex and see where they differ |
12:31:09 | dom96 | add some 'echo's in there |
12:31:19 | dom96 | it might be a bug in 'regex' |
12:42:55 | * | joe___ quit (Ping timeout: 260 seconds) |
12:44:50 | * | tiychioh quit () |
13:02:23 | * | natrys quit (Quit: natrys) |
13:13:06 | * | smt` joined #nim |
13:17:09 | * | smt quit (Ping timeout: 264 seconds) |
13:20:35 | FromGitter | <alehander42> I almost made a mini web framework in my horrible websocket.nim based file |
13:21:09 | FromGitter | <alehander42> I already have html templates & routing dsl |
13:24:00 | FromGitter | <alehander42> actually are there any other nim web frameworks than jester? i've always found it weird crystal guys have several and we have one, a bit like in the python vs ruby distribution |
13:28:47 | Araq | I don't know. time to improve jester I guess. |
13:28:57 | * | endragor joined #nim |
13:29:03 | Araq | btw you can use "native karax" for the html templates |
13:30:08 | FromGitter | <alehander42> jester seems nice, I just always wanted to write my own little framework , pure egoism :D |
13:30:31 | Araq | well it's like your own pattern matching DSL. |
13:30:39 | Araq | always nice to write his own. |
13:31:03 | FromGitter | <alehander42> yes, you just have to write one, otherwise you'll never find the true pattern of life |
13:31:15 | Araq | I wanted to use 'lexim' for jester's routing |
13:33:43 | * | endragor quit (Ping timeout: 256 seconds) |
13:34:01 | FromGitter | <alehander42> hm, lexim looks interesting |
13:34:49 | FromGitter | <alehander42> how can you use native karax btw ? does it just have an alternative genHtml ? |
13:34:57 | * | jjido joined #nim |
13:35:30 | Araq | there is a test for it, I hope. |
13:36:07 | Araq | you import karax_dsl and it buildHtml() builds a DOM that can be turned into a string |
13:36:16 | Araq | sadly, it doesn't build the string directly |
13:37:00 | Araq | but depending on what you do, the tree representation can be faster. |
13:39:11 | FromGitter | <alehander42> ah yeah, `$` |
13:41:43 | Araq | tbh I don't really know what a web framework needs to do. Routing, yes. I tried to do a general 'login' mechanism but it's so tied to the data model |
13:43:46 | * | Sembei quit (Read error: Connection reset by peer) |
13:44:52 | * | Sembei joined #nim |
13:45:09 | FromGitter | <alehander42> yeah, I doubt one can really bake a too general login mechanism inside |
13:46:51 | Araq | would be cool though, users have 'roles' and every action is attached to a role |
13:46:57 | FromGitter | <alehander42> also you can have complicated auth schemes, role-based auth etc, probably 3rd party libs |
13:47:09 | FromGitter | <alehander42> would be best for that |
13:47:39 | Araq | so the framework makes it harder to introduce security problems. |
13:48:08 | Araq | every action is checked against the user role |
13:49:29 | * | nsf quit (Quit: WeeChat 2.0.1) |
13:50:16 | FromGitter | <alehander42> so basically each action has something like a whitelist of roles? |
13:51:39 | FromGitter | <ZarsBranchkin> What tools are there for automatic javascript binding generation? |
13:51:52 | * | leorize joined #nim |
13:52:07 | Araq | alehander42: exactly. |
13:52:51 | Araq | if attached to the routing pattern, you cannot forget it. |
13:53:24 | Araq | django seems to solve this by producing the SQL schema for you |
13:53:40 | FromGitter | <alehander42> @ZarsBranchkin https://github.com/mcclure/dts2nim (it's great, but a bit old, the author doesn't seem to work with Nim anymore: I have an unfinished newer version of it) |
13:54:04 | FromGitter | <alehander42> what do you need it for? |
13:54:11 | FromGitter | <alehander42> @Araq yeah, it seems useful |
13:54:41 | FromGitter | <alehander42> still I can imagine some people just resetting to a single role annoyed by the additional work |
13:54:56 | FromGitter | <ZarsBranchkin> alright, thanks. Just wanted to use simple game framework library in Nim, hopefuly can avoid manually writing the bindings as I write |
13:55:11 | hal1 | dom96: one of my docopt PRs just got accepted, so the repo owner is looking at it :) I made another one following your advice on issue 32 https://github.com/docopt/docopt.nim/pull/36 but that one has conflicts and I'm not sure how it came to that. |
13:57:06 | FromGitter | <alehander42> @ZarsBranchkin which framework? if it has definition files, this would be good. otherwise if you're just trying it/using a small subset, you can still go far with the jsffi dynamic `.` or several handwritten definitions |
13:58:14 | FromGitter | <alehander42> @Araq I wonder about the server side karax: on one hand it can be very useful, on the other I am already used to write most stuff as SPA and my original server side html is usually a very small sceleton |
13:58:16 | FromGitter | <ZarsBranchkin> was looking at this: http://www.pixijs.com/ |
13:58:32 | FromGitter | <ZarsBranchkin> How the API looks: http://pixijs.io/examples/#/basics/basic.js |
13:59:19 | FromGitter | <ZarsBranchkin> Haven't interfaced with javascript yet, so don't really know the workflow there |
13:59:39 | FromGitter | <ZarsBranchkin> Espeically since javascript doesn't have static types, so probably have to define all those manually |
14:00:21 | FromGitter | <alehander42> @ZarsBranchkin well you need to define only those types which you use, which depends a lot on your usecase |
14:01:13 | FromGitter | <ZarsBranchkin> Yeah, I guess writing the bindings as I go isn't that bad |
14:01:42 | FromGitter | <alehander42> you can also just use the stdlib jsffi `js` type which is like a dynamic catch-all, but you'll need a lot of casting and generally it's useful for experimentation/playing with an API , not really for longterm code |
14:01:42 | FromGitter | <ZarsBranchkin> I just found this framework anyway, so I don't know everything that it has to offer yet |
14:02:36 | Araq | alehander42: well yeah, it's mostly an either-or thing. if you use Karax for SPAs you don't need server-side karax |
14:03:07 | Araq | but server-side karax is native Nim and not everybody likes the fluffy DOM stuff |
14:06:30 | * | user1101 joined #nim |
14:06:58 | Araq | I personally prefer SPAs though. |
14:07:59 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
14:11:34 | * | xkapastel quit (Quit: Connection closed for inactivity) |
14:22:50 | * | hddgvvc joined #nim |
14:23:41 | * | xet7 joined #nim |
14:25:26 | FromGitter | <ZarsBranchkin> jsffi seems perfect for my needs, wasn't aware of it, thanks |
14:26:49 | * | Senketsu quit (Quit: WeeChat 2.1) |
14:27:19 | Araq | good thing I want to deprecate it, huh? :P |
14:27:20 | * | hddgvvc quit (Ping timeout: 260 seconds) |
14:27:46 | * | Senketsu joined #nim |
14:29:44 | * | Vladar joined #nim |
14:29:58 | FromGitter | <ZarsBranchkin> Hah, well good thing this isn't a serious project |
14:30:45 | Araq | aww |
14:34:04 | FromGitter | <ZarsBranchkin> Why is it getting deprecated, because it neglects static types? |
14:34:40 | Araq | well instead of foo.uncheckedField I'd like to do quirky(foo.uncheckedField) |
14:35:00 | Araq | so that people know where the static checking is disabled |
14:35:19 | FromDiscord | <claude> can someone teach me what these lines do in the js output `var NTI104 = {size: 0,kind: 31,base: null,node: null,finalizer: null};` |
14:35:51 | Araq | claude: it's Nim's RTTI |
14:36:35 | Araq | kudos to dom96 btw for bringing it up |
14:36:48 | FromGitter | <ZarsBranchkin> Seems reasonable, although probably will make pretty noisey code unless it's used as block macro |
14:37:51 | Araq | I wonder if it should be a general macro in sugar.nim |
14:38:27 | Araq | brackets(foo.bar.baz) --> foo["bar"]["baz"] |
14:39:04 | * | Senketsu_ quit (Quit: Leaving) |
14:40:08 | * | jjido joined #nim |
14:46:58 | * | miran joined #nim |
14:47:30 | FromGitter | <alehander42> @Araq yea I also prefer spa-s these days |
14:48:38 | Araq | I could never remember how forms work in HTTP land :P |
14:52:22 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
15:02:12 | * | jjido joined #nim |
15:03:03 | * | smt` quit (Read error: Connection reset by peer) |
15:13:50 | * | Vantage joined #nim |
15:14:52 | dom96 | Araq: Thanks :) |
15:15:45 | dom96 | SPAs suck, they make browsers even slower than they already are |
15:15:45 | Araq | do we want sugar.brackets ? better tie it to JsObject for now, right? |
15:17:21 | Araq | dom96: but they bring us closer to the ideal world where there are recv/send operations instead of HTTP redirects, GET vs POST decisions, URL hierarchies, cookies and all that other cruft that has nothing to do whatsoever with application development |
15:18:33 | * | xkapastel joined #nim |
15:44:26 | * | Vantage quit (Quit: Leaving) |
15:49:44 | dom96 | https://github.com/nim-lang/Nim/issues/2650#issuecomment-383306112 :'( |
15:49:47 | dom96 | That's so sad |
15:51:02 | FromGitter | <mratsim> oh :/ |
15:51:44 | FromGitter | <ZarsBranchkin> woah, hadn't seen something like that before on github. Pretty dark |
15:52:32 | Araq | so passionate he told his wife about github. wow. |
15:52:50 | FromGitter | <mratsim> she replied by email |
16:01:43 | Araq | mratsim: for-loop macros? |
16:02:04 | FromGitter | <mratsim> let me have a look :) |
16:02:56 | Araq | probably I need to give the macro a 'typed' AST :P |
16:03:17 | FromGitter | <mratsim> I’ve been trying to beat assembly routines for bigints with pure Nim most of the day. I’m now within 10%. |
16:03:41 | Araq | seems like a good day. :-) |
16:03:53 | FromGitter | <mratsim> yesterday I was 5x slower :P |
16:04:06 | * | Hgfdfg joined #nim |
16:04:10 | Araq | you need to livecode your optimization sessions |
16:04:16 | Araq | we need more Nim youtubers. |
16:04:33 | dom96 | yep, more twitch streaming can't hurt |
16:04:34 | Araq | it also forces you to focus, can't read reddit when recording |
16:04:37 | FromGitter | <mratsim> Ah that’s actually a good idea |
16:04:43 | dom96 | We can add a section on the website for them :) |
16:05:03 | FromGitter | <mratsim> I never read reddit while working, I have my head deep in papers :P |
16:05:31 | Araq | I watch youtube videos about Lego. |
16:05:46 | Araq | XD |
16:06:30 | Hgfdfg | Me neither I just do 8 hours reddit sessions and go home |
16:07:13 | Araq | Hgfdfg: since you don't break anything, I bet you're the most productive worker ever |
16:07:30 | Hgfdfg | Yep :-) |
16:08:25 | Araq | you should be promoted to management. :-) |
16:12:20 | * | Hgfdfg quit (Ping timeout: 260 seconds) |
16:21:48 | * | hal1 quit (Quit: WeeChat 1.4) |
16:23:16 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
16:26:00 | * | BitPuffin joined #nim |
16:28:01 | FromGitter | <mratsim> @Araq, what’s the expected syntax?: https://gist.github.com/mratsim/7d05f73fde8e59cc69335b726651a016#file-forloop_macro-nim-L117 |
16:28:29 | FromGitter | <mratsim> I get "Error: iterator within for loop context expected” with latests devel |
16:30:45 | FromGitter | <mratsim> only the last 12 lines are relevant, the rest is a macro to generate a variadic zip iterator. But if I can’t make a normal one work (zipZipZIp) the variadic one won't |
16:31:29 | * | smt joined #nim |
16:35:14 | * | SenasOzys quit (Ping timeout: 260 seconds) |
16:44:53 | * | xet7 quit (Remote host closed the connection) |
16:46:37 | * | xet7 joined #nim |
16:58:18 | * | PMunch joined #nim |
17:02:07 | PMunch | Hmm, the `.` experimental operator is a bit weird to work with |
17:02:19 | PMunch | I guess that's why it's experimental :P |
17:02:56 | PMunch | I wanted to have my protobuf objects have optional fields without littering everything with options from the "options" module as they're so clunky to work with |
17:03:36 | PMunch | Got it almost working, but it seems I can't get it to return a var type for some reason.. |
17:07:48 | FromGitter | <mratsim> I don’t suppose there is a direct acyclic graph library for Nim? |
17:08:52 | FromGitter | <mratsim> I will create thousands of nodes per second, each node can have multiple children and parents, so I suppose it needs a seq or something, but just thinking of the heap allocation *shrug* |
17:09:44 | PMunch | If you know how many you're going to create you can always pre-allocate |
17:10:21 | FromGitter | <mratsim> Na, it’s for Monte-Carlo simulation of games of go. There is not enough memory on earth for that. |
17:11:16 | PMunch | Ah :P |
17:11:56 | FromDiscord | <claude> thousands? that can't be enough |
17:12:24 | FromGitter | <mratsim> yes sorry, thousands of games —> 450 nodes per game |
17:13:27 | FromGitter | <mratsim> but some nodes will have 4 parents, some 10, some 1, (if multiple moves lead to the same board position) |
17:15:31 | FromGitter | <mratsim> I was thinking that since table can store multiple values for the same key, I can use that and iterate on all stored values for one key but I don’t think there is a proc for that exposed |
17:19:36 | * | jjido joined #nim |
17:24:24 | Araq | mratsim: check out the test for it, macro m(x: ForLoopStmt) |
17:25:27 | Araq | mratsim: I used IntSet with integer node IDs, a is connected to b if myset.contains(a*N+b) |
17:26:01 | Araq | a sparse matrix representation |
17:26:31 | Araq | PMunch: I want to remove dot overloading. |
17:26:36 | FromGitter | <mratsim> interesting |
17:26:45 | PMunch | Araq, oh really? |
17:27:38 | Araq | PMunch: yeah I dislike them too much, only produces fragile solutions |
17:28:04 | PMunch | Hmm, what do you mean by fragile solutions? |
17:29:09 | Araq | oh I just remembered, they are required for SharedRef hmmm |
17:29:37 | Araq | oh well... I will not decide anything. |
17:30:14 | PMunch | SharedRef? |
17:32:02 | miran | can i nim-brag a bit? :) |
17:32:12 | Araq | or shared_ptr |
17:32:25 | Araq | some smart pointer like C++ offers |
17:32:31 | PMunch | miran, brag away :) |
17:33:28 | miran | so far i have used nim only for personal toy-projects and just for fun. when i needed to do "serious work" for my job, i have used python. |
17:33:32 | FromGitter | <mratsim> oh well, I’ll start with seq first, I’ll see how much creating thousands of seq per second costs :P. At least, I can copy paste Arraymancer code this way. |
17:34:23 | miran | now i started working on a new thing at my work, and decided to use nim from the get-go |
17:34:48 | PMunch | Nice! |
17:34:57 | miran | i thought i will struggle much much more, but this has been really a smooth sailing |
17:35:29 | miran | i had so much pleasure writing the code! |
17:36:42 | miran | (well, i still need python to plot/animate the results, but the numerical calculation is done in nim+neo) |
17:37:51 | PMunch | What are you using to plot with? |
17:38:06 | FromGitter | <ephja> no COBOL? |
17:38:44 | miran | ephja: well, my mentor/boss is a big fan of fortran, so there's that.... :D |
17:39:35 | miran | PMunch: i save the results from nim in a .csv file, then use pandas to read that csv, and use matplotib.animate for animations |
17:40:03 | PMunch | Ah, I guess that's one way to do it |
17:40:21 | PMunch | Is there a plotting library in Nim? |
17:40:25 | miran | PMunch: if there's a better way, i'm all ears :) |
17:40:46 | miran | there are some libraries that i have found which should be ok for some simple plots |
17:41:07 | miran | i haven't tried them, this is based on the examples they provide |
17:41:40 | PMunch | Well, not necessarily better but you could always find a JS library and then output a simple HTML page with the data embedded |
17:41:42 | miran | see here: https://github.com/nim-lang/needed-libraries/issues/77#issuecomment-376223649 |
17:42:37 | miran | PMunch: i have zero experience with JS and anything web-related :) |
17:43:49 | PMunch | Ah |
17:44:11 | PMunch | It should be pretty easy. But if you have something you're comfortable with then you can just stick to that :) |
17:45:52 | PMunch | That plotly thing is pretty much what I was thinking of |
17:46:07 | PMunch | But in a nice wrapper thing |
17:46:08 | miran | well, matplotlib has the ugliest most unintuitive and inconsistent API ever, but it is quite powerful and i'm familiar with it |
17:47:18 | * | Trustable quit (Remote host closed the connection) |
17:47:48 | FromGitter | <ZarsBranchkin> Yeah, it's pretty annoying working with it, pretty clumy and messy workflow |
17:52:37 | PMunch | What I did last I needed something like this was to use gnuplot |
17:53:35 | * | endragor joined #nim |
17:54:51 | Araq | miran: I switched from matplotlib to SDL 1.1 back in the days |
17:55:16 | Araq | used putPixel to plot my diagrams, was faster than getting matplotlib to do what I wanted |
17:55:39 | dom96 | I use matplotlib for plotting too :) |
17:55:43 | Araq | and I would do it again :P |
17:55:55 | dom96 | Araq: and what did the graphs look like? |
17:56:08 | Araq | good. |
17:56:49 | Araq | did some nice scatter plots, nobody complained |
17:57:04 | Araq | used transparency too. |
17:57:37 | * | r3d9u11 joined #nim |
17:58:04 | miran | well, if it is anything simple, i might try to use some of the mentioned nim libraries, but for creating an animation relatively simply, i don't think anything that can beat MPL |
17:58:34 | * | endragor quit (Ping timeout: 264 seconds) |
18:00:29 | Araq | can't put an animation in a paper ;-) |
18:00:50 | miran | not with that attitude! :P |
18:01:06 | PMunch | Never played with those flip-through animations as a kid Araq? |
18:02:04 | * | nsf joined #nim |
18:04:22 | miran | regardless of the way to show the results, doing the simulation to obtain those results was such a pleasure to do in nim! will recommend to my colleagues, and will use it again! |
18:04:54 | PMunch | Nice! |
18:08:41 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
18:09:15 | * | yglukhov joined #nim |
18:11:07 | * | ieatnerds joined #nim |
18:11:12 | ieatnerds | Hey guys! |
18:11:29 | ieatnerds | Got a couple of questions, nothing too crazy I think. |
18:11:48 | PMunch | Hit us! |
18:13:03 | ieatnerds | Some context. for my job we are moving to storing client info in a more secure manner, I was really hoping to make something with nim that can accomplish this for us. In this endeavor I'm looking at if there are any nim libs that can interface with active directory credentials. |
18:13:21 | * | yglukhov quit (Ping timeout: 248 seconds) |
18:16:07 | * | xet7 quit (Remote host closed the connection) |
18:16:37 | PMunch | Hmm, haven't seen any. But then again I haven't been looking :P |
18:17:57 | ieatnerds | That's alright. I'll admit I'm not entirely sure what I'm doing, just thought I'd ask in case anyone here could help me. |
18:18:36 | * | xet7 joined #nim |
18:18:46 | * | yglukhov joined #nim |
18:22:06 | * | yglukhov quit (Read error: Connection reset by peer) |
18:22:40 | * | yglukhov joined #nim |
18:26:26 | PMunch | Hmm, what is a "method" in Nim? |
18:27:48 | FromDiscord | <claude> proc with dynamic dispatch instead of static |
18:28:16 | FromGitter | <Bennyelg> Guys, when I declare a 'Type' when I should refer him to an object and when to ref of object? |
18:28:17 | FromDiscord | <claude> like the method gets resolved at runtime instead of compiletime |
18:28:24 | FromGitter | <Bennyelg> what is the good practice |
18:28:58 | PMunch | Bennyelg: https://peterme.net/nim-types-originally-a-reddit-reply.html |
18:29:07 | FromGitter | <Bennyelg> Thanks. |
18:29:12 | PMunch | claude, aha |
18:29:20 | PMunch | That kinda makes sense I guess |
18:29:28 | Araq | Bennyelg: 'ref object' if you're too used to Python, 'object' if you want to reap Nim's benefits |
18:29:53 | FromGitter | <Bennyelg> @Araq I am python developer but I want to learn nim way hehe |
18:30:02 | FromGitter | <Bennyelg> so I want to reap the benifits of Nim evantually |
18:32:13 | miran | Bennyelg: object vs ref object is something that has bothered me for quite a lot of time (as i'm also coming from pyton's world). PMunch's reddit reply helped me to understand more what's going on. but the best method for learning was when i implemented both version and played with them to see the differences in practice |
18:32:54 | FromGitter | <Bennyelg> Yea, I am reading the reddit reply and will play with them and see |
18:32:57 | FromGitter | <Bennyelg> thanks. |
18:33:53 | * | vantage joined #nim |
18:34:56 | miran | pass that (ref) objects around and change them in the new location, see what happens with the originals |
18:35:35 | vantage | can we improve nimble to recommend package maintainers to have a tests directory and also something like travis ci for their packages? |
18:41:34 | * | Vladar quit (Quit: Leaving) |
18:59:58 | shashlick | Araq: 'nimble install tissue' should work now |
19:00:03 | FromGitter | <Varriount> vantage: A generic |
19:00:37 | vantage | varriont? |
19:00:55 | vantage | varriount? |
19:03:27 | FromGitter | <zacharycarter> vantage: varriount doesn't maintain nimble and I believe the current version of nimble will create a test directory for you when you run nimble init. |
19:03:37 | FromGitter | <zacharycarter> I think expecting nimble to produce a CI pipeline for you is asking a bit much |
19:03:49 | FromGitter | <zacharycarter> nimble isn't something like yeoman |
19:03:52 | FromGitter | <zacharycarter> it's more akin to NPM |
19:05:03 | FromGitter | <Bennyelg> how I can print the addr of an object? ⏎ echo(addr(s)) |
19:05:04 | FromGitter | <Bennyelg> ? |
19:05:07 | vantage | zacharycarter. i was just asking for clarification since i didnt understand what he meant with "generic" |
19:05:17 | FromDiscord | <claude> echo cast[int](addr(s)) |
19:05:36 | FromDiscord | <claude> i think |
19:06:49 | vantage | zacharycarter, i just want a way to know that the packages i download work, and that they arent broken, at the moment theres really no way to do so. |
19:07:42 | vantage | even just something on nimble's website would be good |
19:08:19 | FromGitter | <Bennyelg> anyone ? P |
19:08:50 | miran | Bunnyelg: claude answered it, no? |
19:09:10 | FromGitter | <Bennyelg> oh I see didnt see it :/ sorry |
19:09:11 | FromGitter | <Bennyelg> thanks |
19:11:10 | FromGitter | <Bennyelg> ```code paste, see link``` ⏎ ⏎ how come it modified the same object but the address in memory is not the same? [https://gitter.im/nim-lang/Nim?at=5adb8cce15c9b031141f2397] |
19:13:33 | * | yglukhov quit (Remote host closed the connection) |
19:13:45 | dom96 | vantage: even if a package has CI that doesn't mean much |
19:13:56 | dom96 | because the CI won't be run if the package isn't updated |
19:14:04 | dom96 | or it could be run with an old version of Nim |
19:14:05 | FromGitter | <zacharycarter> yeah - it's impossible to force someone to maintain something through tooling |
19:14:38 | FromGitter | <krux02> @zacharycarter A lot of people don't understand that. |
19:14:40 | FromGitter | <zacharycarter> I think you're describing something like yeoman maybe - something to like bootstrap a project with sensible defaults |
19:14:50 | FromGitter | <zacharycarter> @krux02 agreed |
19:15:00 | FromDiscord | <claude> @Bennyelg because when you do `addr(s)` you get the adress of the variable not the reference. you will get the same value if you do `addr(s[])` and `addr(o[])` |
19:15:30 | FromGitter | <Bennyelg> oh so there are 2 address? |
19:15:35 | FromGitter | <Bennyelg> I never heard of that before :| |
19:16:06 | FromDiscord | <claude> you can change ref objects to `let` and still mutate them |
19:16:27 | FromDiscord | <claude> in the case of `let`, addr(s) won't work |
19:17:50 | FromGitter | <Bennyelg> now I c , thanks! |
19:20:15 | vantage | zach dom96 well then could it be possible to mark specific versions as working or tested, i think a large part is that most of the package (that ive tried) lacks tests so its difficult to know if the package is broken or my setup is wrong. also a lack of readmes |
19:21:10 | dom96 | Sure, a project that allows people to do this would be nice, but it's outside the scope of Nimble's responsibility. |
19:21:28 | FromGitter | <zacharycarter> I mean - I think this is like totally up to the maintainer and how much time they want to put into it |
19:21:52 | FromGitter | <zacharycarter> things like badges, etc... that display status on various SCMs I think are totally sufficient if the maintainer chooses to leverage them and CI solutions |
19:22:10 | FromGitter | <zacharycarter> I think tooling already exists for this issue - I just think you're trying to solve a problem that isn't solvable |
19:22:16 | dom96 | Something similar that could be created is something that goes through all Nimble packages and checks which are depended on by most packages. That could be a useful metric for popularity/reliability. |
19:22:16 | FromGitter | <krux02> do any of you people know the editor 4coder? |
19:22:26 | FromGitter | <krux02> I know it from the Handmade Hero stream. |
19:22:33 | FromGitter | <zacharycarter> nimble.directory could be expanded to be more like npm |
19:22:41 | FromGitter | <zacharycarter> @krux02 I've heard of it / seen it |
19:22:45 | FromGitter | <zacharycarter> never used it |
19:22:50 | FromGitter | <krux02> And it has only a native interface for customization |
19:22:51 | Araq | bennyelg: a ref object's "ID" is cast[int](theRef), not cast[int](addr theRef), typical mistake |
19:23:04 | FromGitter | <krux02> that is a good idea istead of an editor that is Nim Only. |
19:23:18 | FromGitter | <krux02> who was it here who had the font rendering engine written? |
19:23:20 | FromGitter | <zacharycarter> NOVA Nim meetup tomorrow - it's happening folks! |
19:23:32 | FromGitter | <zacharycarter> font rendering engine? |
19:23:32 | FromGitter | <krux02> NOVA? |
19:23:38 | FromGitter | <zacharycarter> Northern Virginia |
19:23:46 | FromGitter | <zacharycarter> it's just me and Varriount |
19:23:53 | Araq | krux02: blasphemy -- a Nim only editor is cool. we only need more Nim users for this to be viable. |
19:24:04 | FromGitter | <zacharycarter> but we're going to solve world peace with Nim |
19:24:05 | FromGitter | <zacharycarter> or something |
19:24:30 | FromGitter | <krux02> Araq: I am sticking with emacs, even though I now have a love/hate relationship with it now. |
19:24:37 | * | Joe___ joined #nim |
19:24:55 | FromGitter | <krux02> I wish vscode would not have fucked up keyboard support. |
19:25:02 | FromGitter | <Bennyelg> ```code paste, see link``` ⏎ ⏎ and now, why I can see the address of an object p? since it hasnt allocated yet? [https://gitter.im/nim-lang/Nim?at=5adb900e1130fe3d36005b9d] |
19:25:05 | Araq | huhm Nothern Virginia. sounds dirty. |
19:26:17 | FromDiscord | <claude> non-ref objects are immutable, you need `var` to mutate them |
19:27:06 | FromDiscord | <claude> and since non-ref objects don't point to anything `p[]` isn't valid |
19:27:33 | FromGitter | <Bennyelg> yep I notice thanks. |
19:27:55 | FromGitter | <zacharycarter> so does Araq |
19:27:58 | FromGitter | <zacharycarter> but I'm not saying anything |
19:28:04 | FromGitter | <zacharycarter> :P |
19:28:24 | FromGitter | <zacharycarter> https://mholt.github.io/json-to-go/ - would something like this for Nim be useful too? |
19:28:35 | * | jjido joined #nim |
19:29:12 | FromGitter | <krux02> well when it is useful to you and you concider yourself a member of the Nim community, then yes. |
19:29:15 | Joe___ | Installed NIm on my Antergos 64 and want to experiment with IUP |
19:29:39 | Joe___ | I compiled an example program but when I try to run it I get this message |
19:29:44 | FromGitter | <krux02> Otherwise, it is probably just a neat toy. |
19:29:54 | Joe___ | could not load: libiup(|3.0|2.7|2.6|2.5|2.4).so(|.1) |
19:30:10 | dom96 | zacharycarter: sure, but it's important to emphasise that the `to` macro is not the only way to parse JSON in Nim. |
19:30:23 | FromGitter | <zacharycarter> but I mean - we are part of the https://www.youtube.com/watch?v=A9l6yTAUhd8 |
19:30:35 | FromGitter | <zacharycarter> dirty south |
19:30:42 | dom96 | Joe___: Did you install libiup? |
19:30:51 | FromGitter | <krux02> what is in that video, I blocked youtube for productivity reasons |
19:31:00 | Joe___ | I'm not sure which IUP version to download. I gather it's one of there https://sourceforge.net/projects/iup/files/3.0/Linux%20Libraries/ |
19:31:09 | Joe___ | But no idea which one |
19:31:39 | FromGitter | <zacharycarter> a bunch of hip hop american rap videos from hip hop artists that represent the southern eastern coast of northern america |
19:31:41 | FromGitter | <zacharycarter> aka don't watch it |
19:32:03 | FromGitter | <zacharycarter> this goes back to araq's comment about our state |
19:32:07 | FromGitter | <zacharycarter> and it being dirtyu |
19:32:21 | Joe___ | @dom96 you mean I should install the version from AUR |
19:33:12 | dom96 | Joe___: yes, or via the official antergos repos (if those exist) |
19:33:24 | dom96 | I'm not familiar with Antergos |
19:34:02 | Araq | virgin, vagina, virginia... |
19:34:16 | Araq | I bet nobody noticed this before :P |
19:34:19 | FromGitter | <zacharycarter> lol |
19:34:21 | FromGitter | <zacharycarter> I was about to say |
19:35:07 | FromGitter | <zacharycarter> dom96: did you by any chance take a glance at that snippet I posted earlier in the day regarding the playground and oom errors I was getting? |
19:35:22 | FromGitter | <zacharycarter> and if you don't have the time to talk bout it now - no worries - I can ping you about it later |
19:35:27 | dom96 | zacharycarter: yes, but I don't see how async could cause that. |
19:35:44 | dom96 | So you need to give more info |
19:35:44 | FromGitter | <zacharycarter> yeah... I'm not sure if it's related to async or what - it's weird |
19:35:48 | FromGitter | <zacharycarter> okay |
19:36:05 | FromGitter | <zacharycarter> I'll try to produce some different gists and dumps and make sure I'm working with the latest version and everything |
19:36:41 | FromGitter | <zacharycarter> thanks for taking a look - I'll spend some time collecting data and let you know when I think I have something |
19:38:20 | Araq | Joe___: I never got libiup to build on Linux back then |
19:38:40 | Araq | try the newer ui library? |
19:39:25 | * | nsf quit (Quit: WeeChat 2.0.1) |
19:44:05 | * | Joe___ quit (Ping timeout: 260 seconds) |
19:44:32 | vantage | libui didnt build for me either :( |
19:52:58 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
19:55:59 | Araq | why not? it links statically |
19:59:29 | FromGitter | <ephja> undefined references? |
19:59:50 | dom96 | Is this you? https://github.com/nim-lang/ui/issues/11#issuecomment-383135887 |
20:01:15 | FromGitter | <ephja> failed on windows for me before. can't remember if it was before or after that was closed. ill check later |
20:02:57 | * | rokups quit (Quit: Connection closed for inactivity) |
20:09:35 | vantage | libui compiled then failed at the linking stage |
20:09:58 | vantage | but there might be some instructions ive overlooked |
20:11:19 | * | ieatnerds quit (Quit: Leaving) |
20:14:33 | * | BitPuffin quit (Remote host closed the connection) |
20:21:31 | * | yglukhov joined #nim |
20:24:12 | * | Vantage_ joined #nim |
20:31:29 | * | miran quit (Ping timeout: 248 seconds) |
20:40:07 | FromGitter | <tim-st> when I have the choice between map 30k int items constant using a table or using a const int array but then with 1_000_000 entries (970k unused) but direct lookup, what would be better? |
20:41:14 | Araq | table |
20:41:54 | FromGitter | <tim-st> but it's often called and const (unicode tr 10) and table is much slower I think |
20:41:55 | federico3 | it depends if you want speed over memory |
20:42:17 | FromGitter | <tim-st> both, but I think 1_000_000 is only one megabyte or not? |
20:42:50 | federico3 | it's 1 million *ints* |
20:43:06 | FromGitter | <tim-st> oh, yes of course^^ |
20:43:09 | Vantage_ | 64 mb then? |
20:43:29 | FromGitter | <tim-st> yes that's true, of course table is only possible then, thanks^^ |
20:43:36 | federico3 | how do you look up thos values tho? |
20:44:30 | Araq | a couple of checks plus a cache hit vs a cache miss. |
20:44:42 | Araq | table will easily win this one. |
20:45:12 | Araq | especially if you don't test this in a toy setup. |
20:45:12 | FromGitter | <tim-st> thanks! |
20:45:13 | dom96 | or you could figure out a way to skip the entries you know aren't being used, maybe |
20:45:20 | dom96 | and use a smaller array |
20:45:38 | federico3 | ...hence my question |
20:45:53 | FromGitter | <tim-st> yes, for my personal use case 99% fall out, but maybe it's better to have the full algo working |
20:48:16 | petersjt014[m] | is there any way to concat tuples? |
20:49:07 | * | xet7 quit (Remote host closed the connection) |
20:50:16 | petersjt014[m] | I'm trying to zip a list twice (i.e. three lists) and I can't find a simple/working way to unnest them |
20:50:44 | Araq | stop solving puzzles and start programming :P |
20:50:46 | FromGitter | <zacharycarter> is choosenim still working? - it seems to be taking forever on my osx machine to unzip the nim distro it downloads |
20:51:21 | Araq | I never had to zip lists twice :P |
20:51:26 | dom96 | should be |
20:52:09 | FromGitter | <zacharycarter> yeah - it started building finally, my machine just must be slow |
20:52:53 | Araq | hmm still one bug |
21:00:44 | FromGitter | <tim-st> @dom96 thanks, I think your idea is the best here, I can use const int array and then define my own hash function to calculate the index in the range (or a tleast for the big few Runes that are at the end) |
21:01:14 | dom96 | tim-st: Sounds good :) |
21:22:43 | * | yglukhov quit (Remote host closed the connection) |
21:22:49 | * | simonsolnes quit (Ping timeout: 260 seconds) |
21:30:28 | * | r3d9u11 quit (Remote host closed the connection) |
21:34:25 | * | simonsolnes joined #nim |
21:37:02 | * | Trustable joined #nim |
21:38:22 | * | nsf joined #nim |
21:42:51 | * | rockcavera quit (Remote host closed the connection) |
21:59:08 | Araq | mission accomplished, only 1300 open issues left before the next fullmoon rise |
21:59:58 | * | yglukhov joined #nim |
22:02:40 | * | cspar joined #nim |
22:03:57 | * | yglukhov quit (Ping timeout: 240 seconds) |
22:06:55 | dom96 | What if someone creates an issue now though? :P |
22:10:07 | Araq | there will be blood |
22:11:43 | FromDiscord | <claude> this could be closed https://github.com/nim-lang/Nim/issues/1094 |
22:12:41 | Araq | nah, it's still an issue :-) |
22:15:26 | Vantage_ | Can we remove this part in the docs? "run run the project (with Tiny C backend; buggy!)" |
22:15:42 | Vantage_ | Since the support for Tiny C was dropped or something |
22:15:47 | Vantage_ | and it doesn't work |
22:19:05 | Araq | ok |
22:19:43 | Araq | yay only 4 showstopper bugs left |
22:20:32 | Vantage_ | ? |
22:22:01 | * | yglukhov joined #nim |
22:24:48 | Vantage_ | How is Araq supposed to go through all those issues? |
22:26:23 | * | yglukhov quit (Ping timeout: 256 seconds) |
22:32:19 | Vantage_ | Wait it seems tinyc is still there |
22:32:32 | Araq | Vantage_: there is more than just one Araq, don't worry. |
22:33:09 | Vantage_ | Araq.spawn() |
22:33:14 | * | PMunch quit (Quit: leaving) |
22:36:18 | * | krux02 joined #nim |
22:36:35 | * | krux02 quit (Client Quit) |
22:44:33 | * | nsf quit (Quit: WeeChat 2.0.1) |
22:45:11 | * | SenasOzys joined #nim |
22:48:30 | * | yglukhov joined #nim |
22:52:27 | * | yglukhov quit (Ping timeout: 240 seconds) |
22:53:35 | Araq | what's the fix again for: OpenSSL error is: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure |
22:53:40 | Araq | ? |
22:57:37 | dom96 | https://github.com/nim-lang/nimble#troubleshooting |
22:58:24 | Araq | ugh. |
22:58:33 | Araq | can I build nimble without that feature? |
22:58:40 | Araq | some --define for me? |
23:01:32 | dom96 | no, but you can download the packages.json file manually |
23:01:46 | Vantage_ | Araq, Remove your nimble.ini file. https://github.com/nim-lang/nimble#configuration |
23:01:51 | dom96 | save it as ~/.nimble/packages_official.json |
23:01:54 | Vantage_ | Is what a forum post said |
23:05:09 | Araq | I should sleep anyway |
23:07:53 | Vantage_ | gd nite? |
23:08:59 | * | user1101 quit (Quit: user1101) |
23:19:31 | shashlick | dom96: https://github.com/nim-lang/Nim/issues/3531 <= snippet crashes without release mode, even nim_temp crashes with SIGSEGV |
23:21:57 | dom96 | hrm? |
23:22:12 | dom96 | The point is that it doesn't crash in release mode. |
23:32:30 | shashlick | oh ok :) |
23:42:21 | * | simonsolnes quit (Ping timeout: 264 seconds) |
23:44:14 | * | simonsolnes joined #nim |
23:44:52 | shashlick | dom96: what's the convention for global variables? I make them all caps to make them stand out |
23:45:20 | dom96 | The convention is same as normal variables |
23:46:08 | dom96 | If you want to make it obvious that it's a global then put that in the name |
23:47:01 | shashlick | okay |
23:48:52 | * | simonsolnes quit (Ping timeout: 256 seconds) |
23:50:09 | Vantage_ | shashlick, Only the first character of a variable is Case checked |
23:50:28 | Vantage_ | I skipped over that section of the manual at first :P |
23:54:10 | * | simonsolnes joined #nim |