00:00:10 | FromGitter | <data-man> ./doc/html/lib.html |
00:01:53 | FromGitter | <RedBeard0531> Yeah, I got that. But the search box doesn't work because it expects some js file in another directory, but the directory structure in the repo doesn't match the url structure of nim-lang.org so it doesn't work right. |
00:03:10 | dom96 | hrm, yeah, the sorting by type doesn't work either |
00:03:11 | * | endragor quit (Ping timeout: 248 seconds) |
00:03:14 | dom96 | Should be fixed |
00:03:47 | FromGitter | <data-man> Link to src="../dochack.js" |
00:09:44 | FromGitter | <data-man> @dom96: Can you merge? https://github.com/nim-lang/Nim/pull/7011 ⏎ While Araq is not here. :-) |
00:09:45 | FromGitter | <RedBeard0531> I filed https://github.com/nim-lang/Nim/issues/7013 about this. |
00:11:00 | * | Yardanico[Phone] quit (Read error: Connection reset by peer) |
00:11:22 | * | Yardanico[Phone] joined #nim |
00:18:32 | * | claudiuinberlin quit (Quit: Textual IRC Client: www.textualapp.com) |
00:39:57 | * | Yardanico[Phone] quit (Ping timeout: 264 seconds) |
00:41:23 | dom96 | data-man: lol |
00:41:37 | dom96 | tests need to pass first :) |
00:41:45 | * | Yardanico[Phone] joined #nim |
00:43:49 | * | Yardanico[Phone] quit (Remote host closed the connection) |
00:44:10 | * | Yardanico[Phone] joined #nim |
00:47:36 | FromGitter | <data-man> Hmm, I just noticed that the tester's output is not colored on AppVeyor. |
00:59:45 | * | PMunch quit (Quit: leaving) |
01:05:05 | FromGitter | <data-man> Tests passed. |
01:06:16 | FromGitter | <data-man> And https://github.com/nim-lang/Nim/pull/6996 |
01:14:05 | * | MJCaley joined #nim |
01:17:04 | * | dandevelo joined #nim |
01:22:08 | * | dandevelo quit (Ping timeout: 252 seconds) |
01:24:38 | * | MJCaley quit (Quit: MJCaley) |
01:32:42 | subsetpark | Sort of an interesting concept https://wiki.dlang.org/Voldemort_types |
01:33:40 | * | noonien quit (Quit: Connection closed for inactivity) |
01:34:12 | subsetpark | https://play.nim-lang.org/?gist=0eb2b3d689e3fd4940652aabbb579b36 |
01:41:26 | FromGitter | <RedBeard0531> They are common(ish) in C++, although we usually use the less colorful "unutterable types" |
01:42:39 | subsetpark | Probably less useful in Nim because unlike in this example http://www.drdobbs.com/cpp/voldemort-types-in-d/232901591?pgno=2 you can't encapsulate whole procedures in a type declaration |
01:42:51 | FromGitter | <RedBeard0531> All lambdas in C++ are unutterable types |
01:43:07 | * | Trustable quit (Remote host closed the connection) |
01:45:26 | * | mal`` quit (Read error: Connection reset by peer) |
01:46:43 | FromGitter | <RedBeard0531> I think it is also less useful in nim because you can avoid exporting a Foo type but still export initFoo() and fooMethod(foo: Foo), which essentially makes Foo a less awkward unutterable type |
01:47:50 | subsetpark | Can you not do that in D? My impression was that you could, but voldemort types are even more encapsulated because you can't even use them in the same module |
01:50:26 | * | mal`` joined #nim |
01:51:01 | FromGitter | <RedBeard0531> subsetpark: If you really want that, you can get it in nim too: https://play.nim-lang.org/?gist=90c0ff701765df6cfcd1f1416d24cec6 |
01:51:50 | subsetpark | Yeah I've got that in my example - but in the D article, they also define "methods" (eg implementing all of an interface) |
01:51:59 | subsetpark | I suppose you could just do that in the module and use `auto` |
01:55:08 | FromGitter | <RedBeard0531> You can still do that, but it defeats the purpose: https://play.nim-lang.org?gist=d23a04746475658f7a7bc28e640ba3c9 |
01:59:10 | * | vivus quit (Quit: Leaving) |
01:59:21 | FromGitter | <RedBeard0531> Anyone around who understands nim Concepts? Is it supposed to be the case that adding `false` as a statement in a concept definition prevents any types from matching it? That is what I'd expect, but it isn't what I'm seeing... |
02:05:38 | * | chemist69 quit (Ping timeout: 265 seconds) |
02:18:52 | * | chemist69 joined #nim |
02:20:18 | * | rupil joined #nim |
02:21:41 | * | rupil left #nim (#nim) |
02:22:45 | * | rupil joined #nim |
02:23:08 | * | rupil left #nim (#nim) |
02:28:45 | * | rupil joined #nim |
02:30:43 | * | rupil quit (Client Quit) |
02:31:14 | * | rupil joined #nim |
02:36:36 | * | marenz__ quit (Ping timeout: 260 seconds) |
02:45:21 | * | vlad1777d quit (Ping timeout: 248 seconds) |
02:53:26 | * | dddddd quit (Remote host closed the connection) |
03:03:22 | * | chemist69 quit (Ping timeout: 255 seconds) |
03:06:21 | * | gokr quit (Ping timeout: 260 seconds) |
03:17:07 | * | chemist69 joined #nim |
03:17:23 | FromGitter | <gogolxdong> Is there any nim-webassembly project? |
03:19:21 | * | dandevelo joined #nim |
03:24:49 | * | dandevelo quit (Ping timeout: 248 seconds) |
03:58:33 | FromGitter | <RedBeard0531> Liuxiaodong this may be a crazy path forward given that nim can compile to clang https://news.ycombinator.com/item?id=16049242 |
04:20:53 | * | cspar joined #nim |
04:30:20 | FromGitter | <gogolxdong> What can you see from this vision? |
04:31:43 | FromGitter | <gogolxdong> compile nim to wasm directly? |
04:36:43 | * | user0 quit (Quit: user0) |
05:21:52 | * | dandevelo joined #nim |
05:27:07 | * | dandevelo quit (Ping timeout: 272 seconds) |
05:57:57 | * | Snircle quit (Ping timeout: 240 seconds) |
06:02:38 | * | Snircle joined #nim |
06:07:11 | * | yglukhov joined #nim |
06:11:43 | * | yglukhov quit (Ping timeout: 248 seconds) |
06:23:45 | * | dandevelo joined #nim |
06:28:17 | * | dandevelo quit (Ping timeout: 248 seconds) |
06:37:08 | * | nsf joined #nim |
06:44:08 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
07:13:41 | * | gokr joined #nim |
07:14:41 | * | dddddd joined #nim |
07:24:59 | * | dandevelo joined #nim |
07:30:57 | * | dandevelo quit (Ping timeout: 240 seconds) |
07:34:55 | * | gokr quit (Ping timeout: 248 seconds) |
07:37:35 | * | xet7 joined #nim |
08:05:19 | * | xet7 quit (Ping timeout: 248 seconds) |
08:11:13 | * | PMunch joined #nim |
08:11:46 | * | floppydh joined #nim |
08:17:19 | * | xet7 joined #nim |
08:23:19 | * | gokr joined #nim |
08:23:27 | * | xet7 quit (Ping timeout: 248 seconds) |
08:23:27 | * | Yardanico[Phone] quit (Ping timeout: 248 seconds) |
08:26:14 | * | endragor joined #nim |
08:35:03 | * | xet7 joined #nim |
08:42:10 | * | yglukhov joined #nim |
08:48:39 | * | claudiuinberlin joined #nim |
09:20:08 | * | Vladar joined #nim |
09:27:59 | * | dandevelo joined #nim |
09:32:35 | * | dandevelo quit (Ping timeout: 240 seconds) |
10:04:52 | * | endragor quit (Remote host closed the connection) |
10:07:12 | * | endragor joined #nim |
10:19:53 | * | vlad1777d joined #nim |
10:22:20 | * | Trustable joined #nim |
10:22:48 | * | dddddd quit (Remote host closed the connection) |
10:25:59 | * | yglukhov quit (Remote host closed the connection) |
10:27:57 | * | vlad1777d quit (Ping timeout: 264 seconds) |
10:29:20 | * | user0 joined #nim |
10:30:43 | * | yglukhov joined #nim |
10:47:41 | FromGitter | <mratsim> You can compile to C and then pass that as input to LLVM like what def- did for the NES emulator NimEs @gogolxdong. I will explore that in the future for Arraymancer. |
10:56:17 | FromGitter | <mratsim> zengine can also compile to WASM via emscripten. The best way forward would be nlvm (Nim LLVM front-end ) I guess. |
11:11:05 | * | gokr quit (Ping timeout: 240 seconds) |
11:13:40 | * | endragor quit (Remote host closed the connection) |
11:29:54 | * | dandevelo joined #nim |
11:34:25 | * | dandevelo quit (Ping timeout: 248 seconds) |
11:40:51 | * | cspar quit (Ping timeout: 260 seconds) |
11:40:51 | * | Vladar quit (Read error: Connection reset by peer) |
11:43:15 | * | Vladar joined #nim |
11:43:39 | * | Trustable quit (Remote host closed the connection) |
11:59:27 | * | m712 is now known as __pycache__ |
12:15:32 | * | yglukhov quit () |
12:21:33 | * | yglukhov joined #nim |
12:24:37 | * | dandevelo joined #nim |
12:27:54 | * | Snircle joined #nim |
12:38:45 | * | willprice joined #nim |
12:41:09 | * | endragor joined #nim |
12:46:33 | * | endragor quit (Ping timeout: 264 seconds) |
12:55:13 | * | natrys joined #nim |
12:59:25 | * | xet7 quit (Quit: Leaving) |
13:05:29 | * | sz0 joined #nim |
13:10:56 | * | gokr joined #nim |
13:24:51 | * | noonien joined #nim |
13:54:25 | * | Yardanico[Phone] joined #nim |
13:55:58 | * | dandevelo quit (Ping timeout: 268 seconds) |
13:56:52 | FromGitter | <data-man> https://github.com/github/explore/pull/128 is merged! ⏎ Happy New Year! :-) |
13:57:07 | * | willprice quit (Remote host closed the connection) |
13:57:25 | * | willprice joined #nim |
13:57:35 | * | willprice94 joined #nim |
14:07:27 | yglukhov | data-man: yay! now where can we see the effect of this? |
14:07:38 | dom96 | Awesome, thanks data-man :D |
14:08:02 | dom96 | here: https://github.com/topics/nim |
14:08:06 | dom96 | But I guess it might take a while to update |
14:08:27 | FromGitter | <data-man> Probably, some time must pass for renewal. :-) |
14:09:44 | * | craigger joined #nim |
14:12:17 | FromGitter | <data-man> I assume that Nim should appear here https://github.com/topics between "Natural language processing" and "Node.js" :-) |
14:12:39 | * | dddddd joined #nim |
14:17:45 | FromGitter | <data-man> Correction: Happy Nim Year! |
14:24:41 | * | fvs joined #nim |
14:32:16 | PMunch | mratsim, drawille-nim now has proper colour support :) |
14:33:29 | FromGitter | <mratsim> Awesome! |
14:38:52 | * | dandevelo joined #nim |
14:41:39 | * | Yardanico joined #nim |
14:45:11 | FromGitter | <RedBeard0531> Has anyone here tried using runnableExamples yet? They don't seem to get tested for me. `nim doc hhset` finishes successfully even when they have code that I know won't compile |
14:45:30 | FromGitter | <RedBeard0531> Do I need to opt-in with some flag? |
14:45:40 | * | azur_kind joined #nim |
14:47:01 | Yardanico | it seems for me that they're tested if you're compiling this file |
14:47:05 | Yardanico | but I may be wrong |
14:47:34 | FromGitter | <Araq> 'nim doc' performs the tests |
14:48:01 | FromGitter | <Araq> and I ensured it works for the stdlib fwiw |
14:48:36 | FromGitter | <RedBeard0531> hrm |
14:54:11 | * | Trustable joined #nim |
15:00:33 | FromGitter | <RedBeard0531> @Araq could you try it with this file: https://gist.github.com/RedBeard0531/efd1071fe2474ba83149921d0427a8fb#file-hhset-nim-L135-L149. It clearly shouldn't pass, but `nim doc hhset.nim` succeeds :/ |
15:01:58 | Yardanico | maybe because it's a template? |
15:02:02 | Yardanico | just a guess |
15:03:12 | FromGitter | <RedBeard0531> Its used in a macro here, so I assume it works in templates: https://github.com/nim-lang/Nim/blob/devel/lib/pure/strformat.nim#L229 |
15:03:41 | FromGitter | <RedBeard0531> I checked the html output and it does have the nice highlighted codeblock, so nimdoc does see it |
15:09:19 | * | endragor joined #nim |
15:10:31 | * | erhlee_bird joined #nim |
15:22:19 | * | Yardanico quit (Read error: Connection reset by peer) |
15:22:37 | * | nsf quit (Quit: WeeChat 2.0.1) |
15:29:01 | * | Yardanico joined #nim |
15:29:52 | FromGitter | <Araq> in your isMainModule call getValueOrInit |
15:29:59 | FromGitter | <Araq> and it should be run. |
15:30:24 | FromGitter | <Araq> your template is not expanded otherwise and so doesn't run. not sure if I can fix that |
15:43:18 | * | Vladar quit (Quit: Leaving) |
15:52:28 | * | Vladar joined #nim |
15:53:41 | * | Yardanico quit (Remote host closed the connection) |
15:54:17 | * | Yardanico joined #nim |
15:58:42 | * | Yardanico quit (Remote host closed the connection) |
15:59:45 | * | Yardanico joined #nim |
16:04:06 | FromGitter | <RedBeard0531> @Araq no luck. I added these lines but it still doesn't fail: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5a4bad76ba39a53f1ac9b337] |
16:04:09 | * | PMunch quit (Quit: Leaving) |
16:06:02 | FromGitter | <RedBeard0531> btw, is there a less awkward way to pass an assignment statement to an untyped argument? That was the best I could find. It seems to parse wrongly if I do `assert "bop" == hhs.gVOI("bop"): value = "bop"` |
16:06:41 | * | fvs left #nim ("ERC (IRC client for Emacs 25.3.1)") |
16:13:37 | subsetpark | Nobody has done any work on AMQP, have they? |
16:14:05 | * | yglukhov quit (Remote host closed the connection) |
16:14:37 | * | yglukhov joined #nim |
16:14:41 | FromGitter | <RedBeard0531> I tried pulling it out of the template to the top level and that gets it to run, but it puts bad code into hhset_examples.nim. It doesn't seem to correctly handle the block argument: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5a4baff15355812e5742b63f] |
16:17:02 | * | Yardanico quit (Remote host closed the connection) |
16:17:02 | * | yglukhov quit (Read error: Connection reset by peer) |
16:17:03 | * | yglukhov_ joined #nim |
16:17:29 | * | Yardanico joined #nim |
16:17:36 | * | ofelas quit (Quit: shutdown -h now) |
16:17:54 | * | ofelas joined #nim |
16:19:18 | dom96 | ooh, a job offer with a "Nim" keyword on HN's "Who wants to be hired?": https://news.ycombinator.com/item?id=16052701 |
16:19:33 | dom96 | Seems demand for Nim programmers is rising :) |
16:21:23 | * | yglukhov_ quit (Ping timeout: 252 seconds) |
16:21:44 | FromGitter | <RedBeard0531> That post |
16:21:47 | FromGitter | <RedBeard0531> U |
16:21:49 | FromGitter | <Varriount> dom96: Isn't that a comment from someone who wants to be hired. |
16:22:10 | dom96 | oh, you're right hah |
16:22:17 | * | dom96 is an idiot |
16:22:33 | dom96 | Varriount: Coming to FOSDEM? |
16:23:00 | FromGitter | <Varriount> dom96: Too far away. :/ |
16:23:08 | dom96 | awww |
16:23:21 | FromGitter | <Varriount> A plane ticket would be in the $1,500 range |
16:23:47 | FromGitter | <RedBeard0531> Whoever decided to make gitters mobile ui post when you tap the screen is my new enemy (assuming those weird posts show up to everyone not just me) |
16:23:59 | FromGitter | <Varriount> @RedBeard0531 Yep. |
16:24:09 | Yardanico | RedBeard0531: yeah, it sucks |
16:24:12 | dom96 | varriount: that is pretty expensive, pity :( |
16:24:19 | Yardanico | and there's no good alternative |
16:24:21 | Yardanico | for gitter app |
16:24:22 | dom96 | Yeah, gitter's mobile app is pretty horrible |
16:24:23 | Yardanico | so I use irc |
16:24:33 | Yardanico | you can seee Yardanico[Phone] |
16:24:40 | FromGitter | <Varriount> IRC requires one to be signed on all the time though. |
16:24:43 | FromGitter | <RedBeard0531> Grrr. Turning the phone off SHOULD NEVER POST |
16:24:51 | Yardanico | I use RevolutionIRC client on Android |
16:24:57 | Yardanico | Varriount: it's running in background |
16:25:03 | * | FromGitter * RedBeard0531 is done ranting |
16:25:03 | subsetpark | It's fairly straightforward to get a bouncer going. |
16:25:04 | dom96 | Gitter was acquired by GitLab, you'd think that would speed up development |
16:25:18 | dom96 | Do bouncer's support mobile's? |
16:25:34 | dom96 | Last time I tried I got spammed by the backlog every time I lost the network connection |
16:25:38 | subsetpark | Bouncers basically act as the server you connect to - so yes, they don't care |
16:25:48 | subsetpark | on iOS, mutter works seamlessly with znc |
16:25:55 | FromGitter | <Varriount> You still have to be constantly connected. :/ |
16:25:58 | Yardanico | subsetpark, revolutionirc works seamlessly too |
16:26:07 | euantor | I just pay irccloud.com to handle everything for me :) |
16:26:24 | Yardanico | dom96, good clients do |
16:26:26 | subsetpark | Yes, irccloud is great. I only went to the bouncer to save a bit of $$$, but I was totally happy with irccloud |
16:27:10 | euantor | irccloud's web client is pretty nice too, and is all that I use across several devices |
16:27:35 | FromGitter | <RedBeard0531> I like that gitter synchronizes what I've read across all my devices. I also like github flavored markdown, although I guess that could be painful for people on irc... |
16:29:40 | Yardanico | RedBeard0531: there's a good gitter mobile app |
16:29:43 | Yardanico | but it has bugs too |
16:29:52 | Yardanico | https://github.com/apiko-dev/GitterMobile |
16:29:59 | Yardanico | and it's not actively developed sadly |
16:44:31 | * | floppydh quit (Quit: WeeChat 2.0) |
16:50:45 | subsetpark | dom96: https://github.com/nim-lang/c2nim/issues/115 is still producing the rodutils-related build failure for me. Do you know if it's supposed to work now? |
16:51:19 | dom96 | are you on devel? |
16:51:31 | subsetpark | ayup |
16:51:47 | dom96 | tried reinstalling compiler@#head? |
16:51:54 | subsetpark | yep, did that... |
16:52:10 | dom96 | then I'm out of ideas :( |
16:52:57 | * | Arrrr joined #nim |
16:52:57 | * | Arrrr quit (Changing host) |
16:52:57 | * | Arrrr joined #nim |
16:53:01 | subsetpark | whuf. |
16:58:19 | * | cspar joined #nim |
17:05:00 | avsej | is it possible to make integers wrap in nim? |
17:05:22 | avsej | like high(int) + 42 not raising OverflowError |
17:06:30 | FromGitter | <RedBeard0531> @avsej use +% or convert to uint |
17:06:59 | FromGitter | <RedBeard0531> uint and uintXX are defined to wrap on overflow (like in c) |
17:07:42 | FromGitter | <RedBeard0531> OP% gets you wrapping behavior with signed ints for a single OP |
17:12:54 | avsej | thanks |
17:14:20 | subsetpark | dom96: it's looking like right now it's not even any code in c2nim that's stopping the build; the version of rodutils.nim you get with nimble install compiler@#head doesn't seem compatible with the version of nim you get with choosenim devel |
17:14:24 | subsetpark | which is strange to say the least |
17:15:05 | FromGitter | <RedBeard0531> is `nimble install compiler@#head` equivalent to `choosenim devel`? |
17:16:12 | rauss | Matrix is an interesting irc/gitter alternative I've seen used lately. With a terrible name for seaching... |
17:17:55 | dom96 | avsej: You can also disable overflow checks, although I'm not sure whether that's a good idea |
17:18:01 | subsetpark | I guess I'm more interested in the nimble install compiler@#head part |
17:18:19 | subsetpark | I would have assumed that would give me something that's up to date with https://github.com/nim-lang/Nim/blob/devel/compiler/ |
17:18:20 | dom96 | subsetpark: maybe your Nim compiler is an old 'devel'? |
17:18:51 | subsetpark | No, updated that too... But if I `nimble install compiler@#head`, should I not have the same as what's on GH under devel? |
17:19:00 | dom96 | you should |
17:19:08 | dom96 | do you not get that? |
17:19:19 | subsetpark | Because my ~/.nimble/pkgs/compiler-0.17.3/compiler/rodutils.nim is a different file from what's on the repo |
17:19:26 | dom96 | You can compare the files in ~/.nimble/pkgs/compiler-#head to your own files. |
17:19:34 | dom96 | well, that's a different version |
17:19:51 | dom96 | it should be in compiler-#head |
17:20:21 | subsetpark | Hm... yeah, it doesn't do that :( |
17:20:36 | dom96 | Then it seems like you have an old nimble? |
17:20:42 | subsetpark | haha |
17:20:43 | subsetpark | ok |
17:21:06 | dom96 | I think choosenim should just link the 'compiler' source it has into Nimble. |
17:21:07 | subsetpark | That's what I got with choosenim... Should I `nimble install nimble@#head` ? |
17:21:22 | dom96 | no, check what version of Nimble you have |
17:21:24 | dom96 | and tell me |
17:21:53 | subsetpark | nimble v0.8.8 compiled at 2018-01-02 11:55:14 |
17:21:54 | subsetpark | git hash: 18da3c8b4ca836753ef29fa89947d05a56188842 |
17:22:35 | subsetpark | that's /home/zax/.nimble/bin/nimble, by the way |
17:22:47 | * | cspar quit (Ping timeout: 256 seconds) |
17:23:00 | FromGitter | <RedBeard0531> @dom96 @avsej disabling overflow checks and overflowing will just lead to UB in C, which causes impossible to debug problems with -opt:on or -d:release. So... don't do that :) |
17:23:01 | dom96 | hmmm |
17:23:24 | FromGitter | <RedBeard0531> If that is the behavior you want in nim, you need to pass -fwrapv to gcc/clang |
17:23:40 | dom96 | subsetpark: can you gist the output of `nimble install compiler@#head --debug` please? |
17:24:23 | subsetpark | --debug ? That doesn't produce any more verbose output |
17:25:01 | subsetpark | ah, debug works better in front |
17:25:20 | dom96 | it shouldn't matter where it's placed |
17:25:26 | dom96 | weird :) |
17:25:39 | subsetpark | https://gist.github.com/subsetpark/286cc6aa80dc7dfeae822e1302f3a57d |
17:26:32 | subsetpark | hmmm let me try one more |
17:26:53 | subsetpark | ha! |
17:27:02 | subsetpark | my shell was swallowing #head |
17:27:04 | subsetpark | oh boy... |
17:27:26 | subsetpark | yes, now there is a compiler-#head and now c2nim installs perfectly :D :D |
17:27:31 | dom96 | omg lol |
17:28:13 | dom96 | Okay, that's a nimble bug, it should fail on `nimble install compiler@` |
17:28:36 | subsetpark | man oh man... what a morning. time for lunch. |
17:29:51 | dom96 | https://github.com/nim-lang/nimble/issues/445 |
17:30:50 | dom96 | and https://github.com/dom96/choosenim/issues/46 |
17:47:34 | * | yglukhov joined #nim |
17:49:02 | * | yglukhov quit (Read error: Connection reset by peer) |
17:49:39 | * | yglukhov joined #nim |
17:52:34 | * | cspar joined #nim |
18:11:10 | * | Trustable quit (Remote host closed the connection) |
18:12:18 | * | dandevelo quit (Ping timeout: 265 seconds) |
18:13:26 | * | Trustable joined #nim |
18:21:32 | * | themagician joined #nim |
18:24:45 | vegax87 | is there a p2p library for Nim? |
18:25:31 | federico3 | I wish |
18:25:38 | federico3 | vegax87: what kind of p2p? |
18:26:34 | vegax87 | DHT |
18:27:00 | federico3 | heh, I have one around |
18:27:26 | federico3 | compatibile with Kademlia or not? |
18:28:10 | vegax87 | yes |
18:28:37 | federico3 | I'm curious what do you need it for? |
18:29:47 | vegax87 | just for simple things, like creating a basic blockchain |
18:31:34 | * | endragor quit (Remote host closed the connection) |
18:34:12 | federico3 | do you need kad compatibility to create a blockchain? |
18:48:14 | * | vivus joined #nim |
18:59:20 | * | mcc joined #nim |
19:04:31 | * | nsf joined #nim |
19:07:33 | * | azur_kind quit (Remote host closed the connection) |
19:08:00 | * | yglukhov quit (Remote host closed the connection) |
19:11:27 | * | endragor joined #nim |
19:15:43 | * | endragor quit (Ping timeout: 248 seconds) |
19:17:14 | avsej | is it acceptable to dynamically change limit for rationals? it turns out that toRational(float) returns Rational[int] which cannot be safely ported to 32bit platform, so I reduced precision: https://github.com/nim-lang/Nim/pull/7021/files |
19:22:34 | * | yglukhov joined #nim |
19:23:47 | * | yglukhov quit (Remote host closed the connection) |
19:31:30 | * | yglukhov joined #nim |
19:38:41 | * | dandevelo joined #nim |
19:43:14 | * | dandevelo quit (Ping timeout: 252 seconds) |
19:51:23 | * | Jesin joined #nim |
20:15:07 | FromGitter | <konqoro> Seems fine to me |
20:17:52 | FromGitter | <konqoro> I also thought to remove the proc parameter but I dont know if thats acceptable |
20:19:58 | * | Arrrr quit (Read error: Connection reset by peer) |
20:31:21 | Yardanico | btw guys, can we change copyright year to 2018? |
20:35:00 | Yardanico | https://github.com/nim-lang/Nim/pull/6581/files and also in jsgen.nim probably? |
20:40:09 | dom96 | I think we should just remove the "to" date |
20:40:16 | dom96 | It's enough to state when the copyright begins |
20:41:09 | dom96 | but then again, I'm no lawyer |
20:56:38 | * | jjido joined #nim |
20:57:12 | * | marenz__ joined #nim |
20:58:11 | FromGitter | <tim-st> does every object variant only takes the memory of its fields or does every object variant has the union of all fields of all variants and there is only an access restriction? |
20:58:35 | Yardanico | probably every object variant has a union of all fields |
20:59:04 | FromGitter | <tim-st> not good. than I can easily use a tuple instead which does the same and is constant |
20:59:27 | FromGitter | <tim-st> (When I built union tuples) |
21:04:34 | * | devdri joined #nim |
21:05:19 | * | devdri left #nim (#nim) |
21:12:14 | FromGitter | <nitely> @tim-st Also, there is no compile-time access checking. So, I think they are not really useful: https://play.nim-lang.org/?gist=b3a6e580372813de47a9973124c03725 |
21:18:22 | FromGitter | <nitely> well, at least not *that* useful |
21:18:43 | FromGitter | <tim-st> @nitely Yes, I was wondering about it when I read in the docs that a field error appears. I think in theory the compiler could check it at compile time and because of this could optimize to not take the union of all fields (if that's the case) but still there is one downside: I can not seperate the objects variants by a real type |
21:22:42 | FromGitter | <tim-st> but of course I don't have it too when using tuples. I will probably just use tuples and check all types explicitly by enum. At least I can mix my hashmap than... |
21:39:59 | * | dandevelo joined #nim |
21:44:35 | * | dandevelo quit (Ping timeout: 256 seconds) |
21:56:30 | * | yglukhov quit (Remote host closed the connection) |
22:10:53 | * | vlad1777d joined #nim |
22:16:17 | * | natrys quit (Quit: natrys) |
22:16:45 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
22:17:01 | * | ofelas quit (Quit: shutdown -h now) |
22:17:11 | subsetpark | How should I write an array of cchars to a socket? |
22:18:09 | subsetpark | Or - it doesn't need to be an array of cchars. I just want to write a sequence of bytes. |
22:19:50 | Yardanico | subsetpark, convert them to string? |
22:21:32 | subsetpark | So if I do `0.cchar & 9.cchar & 1.cchar & 0.cchar` - is the resulting string stil just those four bytes in sequence? |
22:21:40 | subsetpark | Apologies for the dumb questions. I usually don't work with raw bytes :) |
22:21:55 | Yardanico | subsetpark, IDK really, but you can check :) |
22:23:05 | * | Yardanico quit (Remote host closed the connection) |
22:25:50 | * | nsf quit (Quit: WeeChat 2.0.1) |
22:32:19 | FromGitter | <RedBeard0531> https://nim-lang.org/docs/net.html#send,Socket,pointer,int is going to be more efficient that getting it into a string |
22:34:17 | * | MJCaley joined #nim |
22:37:21 | FromGitter | <tim-st> there is no builtin sum for array[Number]? :( |
22:37:50 | FromGitter | <tim-st> this is my code now: `return s[0] + s[1] + s[2] + s[3] + s[4] + s[5]` ^^ |
22:39:20 | FromGitter | <RedBeard0531> https://nim-lang.org/docs/math.html#sum,openArray[T] |
22:39:46 | FromGitter | <tim-st> thanks! |
22:40:50 | FromGitter | <RedBeard0531> btw, in case you weren't aware, the search box on the upper left corner of the nim doc pages is really nice and shows results as you type. |
22:41:31 | FromGitter | <tim-st> ah that's nice, thanks. I used google before |
22:43:09 | FromGitter | <RedBeard0531> I find the search box works better for the stdlib (most of the time) |
22:44:02 | FromGitter | <tim-st> yes, it works really good. didnt know it before |
22:44:29 | FromGitter | <RedBeard0531> Someone should really build the nim equivalent of https://www.haskell.org/hoogle/. It could also index all (popular?) nimble packages, and would support flexible queries by type. |
22:49:55 | * | byte512 joined #nim |
22:53:56 | * | Vladar quit (Quit: Leaving) |
22:56:50 | dom96 | You might be able to implement that into https://nimble.directory |
23:04:35 | FromGitter | <RedBeard0531> Oh nifty! I didn't know about that |
23:04:59 | FromGitter | <RedBeard0531> It doesn't seem to build the indexes though: https://nimble.directory/docs/nimx |
23:06:48 | * | MJCaley quit (Quit: MJCaley) |
23:07:57 | * | MJCaley joined #nim |
23:08:05 | dom96 | Might want to ping federico3 about that :) |
23:08:17 | dom96 | or make a PR :) |
23:10:27 | * | dandevelo joined #nim |
23:15:11 | * | dandevelo quit (Ping timeout: 248 seconds) |
23:16:48 | * | claudiuinberlin quit (Quit: Textual IRC Client: www.textualapp.com) |
23:21:33 | FromGitter | <dustinlacewell> Is there a javascript boilerplate for using Pixi.js? Or an article about using Nim for JS? |
23:27:15 | FromGitter | <RedBeard0531> Start with the code block at the top of https://nim-lang.org/docs/jsffi.html |
23:28:31 | FromGitter | <RedBeard0531> Mentally pronounce "importc" as "simple native import" and "importcpp" as "complex native import" :) |
23:37:19 | * | Yardanico[Phone] quit (Read error: Connection reset by peer) |
23:37:43 | * | Yardanico[Phone] joined #nim |
23:38:59 | * | mcc quit (Quit: Connection closed for inactivity) |
23:39:04 | * | MJCaley quit (Quit: MJCaley) |
23:41:29 | ldlework | Is there a boilerplate for using Pixi.js? Alternatively, is there a good guide on using Nim for javascript and interoperating with random js? |
23:45:19 | FromGitter | <RedBeard0531> did pixi.js and nim both just hit some feed together? I've never head of it before, but someone else just asked about it. |
23:52:18 | * | yglukhov joined #nim |
23:56:27 | * | yglukhov quit (Ping timeout: 240 seconds) |