<< 02-01-2018 >>

00:00:10FromGitter<data-man> ./doc/html/lib.html
00:01:53FromGitter<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:10dom96hrm, yeah, the sorting by type doesn't work either
00:03:11*endragor quit (Ping timeout: 248 seconds)
00:03:14dom96Should be fixed
00:03:47FromGitter<data-man> Link to src="../dochack.js"
00:09:44FromGitter<data-man> @dom96: Can you merge? https://github.com/nim-lang/Nim/pull/7011 ⏎ While Araq is not here. :-)
00:09:45FromGitter<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:23dom96data-man: lol
00:41:37dom96tests 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:36FromGitter<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:05FromGitter<data-man> Tests passed.
01:06:16FromGitter<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:42subsetparkSort of an interesting concept https://wiki.dlang.org/Voldemort_types
01:33:40*noonien quit (Quit: Connection closed for inactivity)
01:34:12subsetparkhttps://play.nim-lang.org/?gist=0eb2b3d689e3fd4940652aabbb579b36
01:41:26FromGitter<RedBeard0531> They are common(ish) in C++, although we usually use the less colorful "unutterable types"
01:42:39subsetparkProbably 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:51FromGitter<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:43FromGitter<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:50subsetparkCan 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:01FromGitter<RedBeard0531> subsetpark: If you really want that, you can get it in nim too: https://play.nim-lang.org/?gist=90c0ff701765df6cfcd1f1416d24cec6
01:51:50subsetparkYeah I've got that in my example - but in the D article, they also define "methods" (eg implementing all of an interface)
01:51:59subsetparkI suppose you could just do that in the module and use `auto`
01:55:08FromGitter<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:21FromGitter<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:23FromGitter<gogolxdong> Is there any nim-webassembly project?
03:19:21*dandevelo joined #nim
03:24:49*dandevelo quit (Ping timeout: 248 seconds)
03:58:33FromGitter<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:20FromGitter<gogolxdong> What can you see from this vision?
04:31:43FromGitter<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:41FromGitter<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:17FromGitter<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:52FromGitter<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:27yglukhovdata-man: yay! now where can we see the effect of this?
14:07:38dom96Awesome, thanks data-man :D
14:08:02dom96here: https://github.com/topics/nim
14:08:06dom96But I guess it might take a while to update
14:08:27FromGitter<data-man> Probably, some time must pass for renewal. :-)
14:09:44*craigger joined #nim
14:12:17FromGitter<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:45FromGitter<data-man> Correction: Happy Nim Year!
14:24:41*fvs joined #nim
14:32:16PMunchmratsim, drawille-nim now has proper colour support :)
14:33:29FromGitter<mratsim> Awesome!
14:38:52*dandevelo joined #nim
14:41:39*Yardanico joined #nim
14:45:11FromGitter<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:30FromGitter<RedBeard0531> Do I need to opt-in with some flag?
14:45:40*azur_kind joined #nim
14:47:01Yardanicoit seems for me that they're tested if you're compiling this file
14:47:05Yardanicobut I may be wrong
14:47:34FromGitter<Araq> 'nim doc' performs the tests
14:48:01FromGitter<Araq> and I ensured it works for the stdlib fwiw
14:48:36FromGitter<RedBeard0531> hrm
14:54:11*Trustable joined #nim
15:00:33FromGitter<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:58Yardanicomaybe because it's a template?
15:02:02Yardanicojust a guess
15:03:12FromGitter<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:41FromGitter<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:52FromGitter<Araq> in your isMainModule call getValueOrInit
15:29:59FromGitter<Araq> and it should be run.
15:30:24FromGitter<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:06FromGitter<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:02FromGitter<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:37subsetparkNobody 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:41FromGitter<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:18dom96ooh, a job offer with a "Nim" keyword on HN's "Who wants to be hired?": https://news.ycombinator.com/item?id=16052701
16:19:33dom96Seems demand for Nim programmers is rising :)
16:21:23*yglukhov_ quit (Ping timeout: 252 seconds)
16:21:44FromGitter<RedBeard0531> That post
16:21:47FromGitter<RedBeard0531> U
16:21:49FromGitter<Varriount> dom96: Isn't that a comment from someone who wants to be hired.
16:22:10dom96oh, you're right hah
16:22:17*dom96 is an idiot
16:22:33dom96Varriount: Coming to FOSDEM?
16:23:00FromGitter<Varriount> dom96: Too far away. :/
16:23:08dom96awww
16:23:21FromGitter<Varriount> A plane ticket would be in the $1,500 range
16:23:47FromGitter<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:59FromGitter<Varriount> @RedBeard0531 Yep.
16:24:09YardanicoRedBeard0531: yeah, it sucks
16:24:12dom96varriount: that is pretty expensive, pity :(
16:24:19Yardanicoand there's no good alternative
16:24:21Yardanicofor gitter app
16:24:22dom96Yeah, gitter's mobile app is pretty horrible
16:24:23Yardanicoso I use irc
16:24:33Yardanicoyou can seee Yardanico[Phone]
16:24:40FromGitter<Varriount> IRC requires one to be signed on all the time though.
16:24:43FromGitter<RedBeard0531> Grrr. Turning the phone off SHOULD NEVER POST
16:24:51YardanicoI use RevolutionIRC client on Android
16:24:57YardanicoVarriount: it's running in background
16:25:03*FromGitter * RedBeard0531 is done ranting
16:25:03subsetparkIt's fairly straightforward to get a bouncer going.
16:25:04dom96Gitter was acquired by GitLab, you'd think that would speed up development
16:25:18dom96Do bouncer's support mobile's?
16:25:34dom96Last time I tried I got spammed by the backlog every time I lost the network connection
16:25:38subsetparkBouncers basically act as the server you connect to - so yes, they don't care
16:25:48subsetparkon iOS, mutter works seamlessly with znc
16:25:55FromGitter<Varriount> You still have to be constantly connected. :/
16:25:58Yardanicosubsetpark, revolutionirc works seamlessly too
16:26:07euantorI just pay irccloud.com to handle everything for me :)
16:26:24Yardanicodom96, good clients do
16:26:26subsetparkYes, irccloud is great. I only went to the bouncer to save a bit of $$$, but I was totally happy with irccloud
16:27:10euantorirccloud's web client is pretty nice too, and is all that I use across several devices
16:27:35FromGitter<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:40YardanicoRedBeard0531: there's a good gitter mobile app
16:29:43Yardanicobut it has bugs too
16:29:52Yardanicohttps://github.com/apiko-dev/GitterMobile
16:29:59Yardanicoand it's not actively developed sadly
16:44:31*floppydh quit (Quit: WeeChat 2.0)
16:50:45subsetparkdom96: 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:19dom96are you on devel?
16:51:31subsetparkayup
16:51:47dom96tried reinstalling compiler@#head?
16:51:54subsetparkyep, did that...
16:52:10dom96then 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:01subsetparkwhuf.
16:58:19*cspar joined #nim
17:05:00avsejis it possible to make integers wrap in nim?
17:05:22avsejlike high(int) + 42 not raising OverflowError
17:06:30FromGitter<RedBeard0531> @avsej use +% or convert to uint
17:06:59FromGitter<RedBeard0531> uint and uintXX are defined to wrap on overflow (like in c)
17:07:42FromGitter<RedBeard0531> OP% gets you wrapping behavior with signed ints for a single OP
17:12:54avsejthanks
17:14:20subsetparkdom96: 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:24subsetparkwhich is strange to say the least
17:15:05FromGitter<RedBeard0531> is `nimble install compiler@#head` equivalent to `choosenim devel`?
17:16:12raussMatrix is an interesting irc/gitter alternative I've seen used lately. With a terrible name for seaching...
17:17:55dom96avsej: You can also disable overflow checks, although I'm not sure whether that's a good idea
17:18:01subsetparkI guess I'm more interested in the nimble install compiler@#head part
17:18:19subsetparkI 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:20dom96subsetpark: maybe your Nim compiler is an old 'devel'?
17:18:51subsetparkNo, 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:00dom96you should
17:19:08dom96do you not get that?
17:19:19subsetparkBecause my ~/.nimble/pkgs/compiler-0.17.3/compiler/rodutils.nim is a different file from what's on the repo
17:19:26dom96You can compare the files in ~/.nimble/pkgs/compiler-#head to your own files.
17:19:34dom96well, that's a different version
17:19:51dom96it should be in compiler-#head
17:20:21subsetparkHm... yeah, it doesn't do that :(
17:20:36dom96Then it seems like you have an old nimble?
17:20:42subsetparkhaha
17:20:43subsetparkok
17:21:06dom96I think choosenim should just link the 'compiler' source it has into Nimble.
17:21:07subsetparkThat's what I got with choosenim... Should I `nimble install nimble@#head` ?
17:21:22dom96no, check what version of Nimble you have
17:21:24dom96and tell me
17:21:53subsetparknimble v0.8.8 compiled at 2018-01-02 11:55:14
17:21:54subsetparkgit hash: 18da3c8b4ca836753ef29fa89947d05a56188842
17:22:35subsetparkthat's /home/zax/.nimble/bin/nimble, by the way
17:22:47*cspar quit (Ping timeout: 256 seconds)
17:23:00FromGitter<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:01dom96hmmm
17:23:24FromGitter<RedBeard0531> If that is the behavior you want in nim, you need to pass -fwrapv to gcc/clang
17:23:40dom96subsetpark: can you gist the output of `nimble install compiler@#head --debug` please?
17:24:23subsetpark--debug ? That doesn't produce any more verbose output
17:25:01subsetparkah, debug works better in front
17:25:20dom96it shouldn't matter where it's placed
17:25:26dom96weird :)
17:25:39subsetparkhttps://gist.github.com/subsetpark/286cc6aa80dc7dfeae822e1302f3a57d
17:26:32subsetparkhmmm let me try one more
17:26:53subsetparkha!
17:27:02subsetparkmy shell was swallowing #head
17:27:04subsetparkoh boy...
17:27:26subsetparkyes, now there is a compiler-#head and now c2nim installs perfectly :D :D
17:27:31dom96omg lol
17:28:13dom96Okay, that's a nimble bug, it should fail on `nimble install compiler@`
17:28:36subsetparkman oh man... what a morning. time for lunch.
17:29:51dom96https://github.com/nim-lang/nimble/issues/445
17:30:50dom96and 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:45vegax87is there a p2p library for Nim?
18:25:31federico3I wish
18:25:38federico3vegax87: what kind of p2p?
18:26:34vegax87DHT
18:27:00federico3heh, I have one around
18:27:26federico3compatibile with Kademlia or not?
18:28:10vegax87yes
18:28:37federico3I'm curious what do you need it for?
18:29:47vegax87just for simple things, like creating a basic blockchain
18:31:34*endragor quit (Remote host closed the connection)
18:34:12federico3do 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:14avsejis 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:07FromGitter<konqoro> Seems fine to me
20:17:52FromGitter<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:21Yardanicobtw guys, can we change copyright year to 2018?
20:35:00Yardanicohttps://github.com/nim-lang/Nim/pull/6581/files and also in jsgen.nim probably?
20:40:09dom96I think we should just remove the "to" date
20:40:16dom96It's enough to state when the copyright begins
20:41:09dom96but then again, I'm no lawyer
20:56:38*jjido joined #nim
20:57:12*marenz__ joined #nim
20:58:11FromGitter<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:35Yardanicoprobably every object variant has a union of all fields
20:59:04FromGitter<tim-st> not good. than I can easily use a tuple instead which does the same and is constant
20:59:27FromGitter<tim-st> (When I built union tuples)
21:04:34*devdri joined #nim
21:05:19*devdri left #nim (#nim)
21:12:14FromGitter<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:22FromGitter<nitely> well, at least not *that* useful
21:18:43FromGitter<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:42FromGitter<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:11subsetparkHow should I write an array of cchars to a socket?
22:18:09subsetparkOr - it doesn't need to be an array of cchars. I just want to write a sequence of bytes.
22:19:50Yardanicosubsetpark, convert them to string?
22:21:32subsetparkSo if I do `0.cchar & 9.cchar & 1.cchar & 0.cchar` - is the resulting string stil just those four bytes in sequence?
22:21:40subsetparkApologies for the dumb questions. I usually don't work with raw bytes :)
22:21:55Yardanicosubsetpark, 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:19FromGitter<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:21FromGitter<tim-st> there is no builtin sum for array[Number]? :(
22:37:50FromGitter<tim-st> this is my code now: `return s[0] + s[1] + s[2] + s[3] + s[4] + s[5]` ^^
22:39:20FromGitter<RedBeard0531> https://nim-lang.org/docs/math.html#sum,openArray[T]
22:39:46FromGitter<tim-st> thanks!
22:40:50FromGitter<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:31FromGitter<tim-st> ah that's nice, thanks. I used google before
22:43:09FromGitter<RedBeard0531> I find the search box works better for the stdlib (most of the time)
22:44:02FromGitter<tim-st> yes, it works really good. didnt know it before
22:44:29FromGitter<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:50dom96You might be able to implement that into https://nimble.directory
23:04:35FromGitter<RedBeard0531> Oh nifty! I didn't know about that
23:04:59FromGitter<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:05dom96Might want to ping federico3 about that :)
23:08:17dom96or 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:33FromGitter<dustinlacewell> Is there a javascript boilerplate for using Pixi.js? Or an article about using Nim for JS?
23:27:15FromGitter<RedBeard0531> Start with the code block at the top of https://nim-lang.org/docs/jsffi.html
23:28:31FromGitter<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:29ldleworkIs 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:19FromGitter<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)