<< 29-07-2017 >>

00:11:11*ShalokShalom quit (Read error: Connection reset by peer)
00:15:45*ShalokShalom joined #nim
00:16:24FromGitter<zacharycarter> @Araq I would think so - I've never done SSR though in a web app so I guess my answer will be - sure it's possible
00:20:27*yingjun joined #nim
00:24:57*yingjun quit (Ping timeout: 240 seconds)
00:35:40*Jesin quit (Quit: Leaving)
00:37:35*Jesin joined #nim
00:37:48*Jesin quit (Remote host closed the connection)
00:38:40*Jesin joined #nim
00:44:07*Serenit0r joined #nim
00:47:27*Serenitor quit (Ping timeout: 240 seconds)
00:49:35*smt quit (Ping timeout: 240 seconds)
01:15:27*krux02 quit (Remote host closed the connection)
01:17:26FromGitter<TiberiumN> When you have nothing to do - search for Nim code
01:17:28FromGitter<TiberiumN> https://github.com/search?utf8=✓&q=language%3ANim+fuck&type=Code
01:20:20FromGitter<TiberiumN> Some tga reader with benchmarks - https://github.com/BontaVlad/nimtga
01:30:59*chemist69 quit (Ping timeout: 246 seconds)
01:44:53*chemist69 joined #nim
01:51:49*def-pri-pub joined #nim
02:17:56*mahtob quit (Remote host closed the connection)
02:18:29*ShalokShalom quit (Quit: No Ping reply in 180 seconds.)
02:19:55*ShalokShalom joined #nim
02:22:30*yingjun joined #nim
02:26:49*yingjun quit (Ping timeout: 240 seconds)
02:38:01*deep-book-gk_ joined #nim
02:38:16*deep-book-gk_ left #nim (#nim)
02:46:28*dankrad_ quit (Ping timeout: 276 seconds)
02:47:30*dankrad joined #nim
03:10:06FromGitter<singularperturbation> how should I format test cases for testament? I don't think that my tests is actually running when I do tests/testament c <mycategory>
03:10:14FromGitter<singularperturbation> or tests/testament r <mycategory/tfile.nim>
03:10:34FromGitter<singularperturbation> It'll give me an error if there's a bug with the test bad enough for it not to compile :P
03:11:23FromGitter<singularperturbation> but I don't think it runs- it passes no matter what and side effects (printing to stdout/stderr, writing to a file) don't happen
03:19:53FromGitter<singularperturbation> I think I have to do a header with ⏎ discard """ ⏎ ⏎ ```<somedirective>: value``` ⏎ ... [https://gitter.im/nim-lang/Nim?at=597bfed8614889d475fd5ed3]
03:24:42FromGitter<singularperturbation> to force testament to run the test... which is bad, looking around, b/c a *lot* of other tests (like stdlib/tjsontestsuite) do the same thing of importing unittest and setting up a test suite as normal without actually running the code when called through testament
03:33:54*endragor joined #nim
03:49:18*dddddd quit (Remote host closed the connection)
03:50:07*deep-book-gk_ joined #nim
03:51:15*deep-book-gk_ left #nim (#nim)
03:52:42FromGitter<singularperturbation> Found a workaround but I'm not that happy with it https://github.com/nim-lang/Nim/pull/6149
03:52:47FromGitter<singularperturbation> (test for ^ )
03:53:08*rauss quit (Quit: WeeChat 1.9)
03:53:25FromGitter<singularperturbation> reason testament wasn't running the test is that default action is just to compile, running it isn't triggered unless you give an action of 'run' or expected output or something
04:05:27FromGitter<singularperturbation> I think there are other tests out there that aren't getting run (using unittest) that people might expect to be running. ⏎ I'll create an issue if someone can confirm, these are some examples: ⏎ https://github.com/nim-lang/Nim/blob/master/tests/stdlib/thashes.nimhttps://github.com/nim-lang/Nim/blob/master/tests/stdlib/trstgen.nimhttps://github.com/nim-lan
04:05:27FromGitter... g/Nim/blob/master/tests/stdlib/thttpcore.nim ... [https://gitter.im/nim-lang/Nim?at=597c098645fc670746d79b43]
04:11:18*Serenit0r quit (Quit: Leaving)
04:26:07*BitPuffin|osx quit (Ping timeout: 260 seconds)
04:39:26*skrylar joined #nim
04:40:04skrylarwas just pondering something relevant to nim. mostly in that if a particular module binds C++, doesn't that mean the whole project must now be built with g++? or does nim do some clever mangling so one set of modules is in one and the others are shielded from that
04:44:25skrylarhttps://crystal-lang.org/ cute.
05:15:54*def-pri-pub quit (Quit: leaving)
05:24:37*yingjun joined #nim
05:28:48*yingjun quit (Ping timeout: 240 seconds)
05:41:20*cspar_ joined #nim
05:42:37*cspar__ quit (Read error: Connection reset by peer)
06:03:14*pilne quit (Quit: Quitting!)
06:10:41*endragor_ joined #nim
06:14:10*endragor quit (Ping timeout: 240 seconds)
06:18:02*nsf joined #nim
06:26:00*yingjun joined #nim
06:29:50*Vladar joined #nim
06:35:27*big_num joined #nim
06:43:29*Trustable joined #nim
06:44:49*Trustable quit (Remote host closed the connection)
06:45:35*Trustable joined #nim
07:05:30*yingjun quit (Ping timeout: 240 seconds)
07:11:01*andrzejku joined #nim
07:26:18*skrylar quit (Ping timeout: 240 seconds)
07:32:22*skrylar joined #nim
07:57:17*ShalokShalom quit (Ping timeout: 260 seconds)
07:58:09federico3why is Nim so slow on those bench?
08:06:24Araqwhich bench?
08:08:46*andrzejku quit (Quit: My iMac has gone to sleep. ZZZzzz…)
08:10:44*andrzejku joined #nim
08:18:09*andrzejku quit (Quit: My iMac has gone to sleep. ZZZzzz…)
08:22:00federico3Araq: the one linked from crystal. Nim is actually fast but limited to one core
08:22:15FromGitter<TiberiumN> Oh wait, crystal doesn't work on Windows?
08:22:44FromGitter<TiberiumN> This benchmark?
08:22:47FromGitter<TiberiumN> https://github.com/costajob/app-servers
08:23:47FromGitter<TiberiumN> Well async is one-threaded unless you run multiple instances with nginx
08:24:18FromGitter<TiberiumN> Crystal uses green threads, called "fibers", spawned inside an event loop vi the libevent library.
08:26:04FromGitter<TiberiumN> Why no Windows though?
08:30:22*big_num quit (Quit: WeeChat 1.9)
08:34:12Araqyou can try to multi-thread it with --gc:boehm, but why cares about these toy benchmarks that pretend the OS cannot do multi processing?
08:36:17*sakalli joined #nim
08:38:53FromGitter<TiberiumN> What do you mean by boehm? It can automatically parallelise Nim program?
08:40:21*sakalli quit (Client Quit)
08:51:22*sakalli joined #nim
08:54:06euantorboehm is an alternative GC
08:55:18*yglukhov joined #nim
09:02:57*yingjun joined #nim
09:04:17FromGitter<TiberiumN> yeah, I know
09:04:50euantorI'd say Nim does fairly well in that benchmark overall - lowest memory usage, and a decent throughput given it's the only single threaded application there - we beat Elixir (Erlang based) which is meant to be good for this kind of scenario
09:06:17euantorAnd no, it can't automatically parallelise Nim programs, but it's more forgiving when it comes to threading
09:07:52*yingjun quit (Ping timeout: 260 seconds)
09:08:37FromGitter<TiberiumN> ah, ok
09:11:10*yglukhov quit (Remote host closed the connection)
09:13:06skrylari thought nim could use multiple cores but you had a gc per thread and had to communicate by message passing or shared memory
09:13:21FromGitter<TiberiumN> yes it still can use multiple cores
09:13:39FromGitter<TiberiumN> afaik nimsuggest uses threads :)
09:14:28*yingjun joined #nim
09:18:57*yingjun quit (Ping timeout: 260 seconds)
09:20:58*Vladar quit (Quit: Leaving)
09:23:04skrylareh well most of the libui stuff i dealt with earlier :x
09:23:19skrylarneed to poke around with their 'areas' for custom stuff. haven't done the platform specific headers yet
09:30:18*yglukhov joined #nim
09:36:26euantorYeah, Nim can use multiple threads, but asyncdispatch is single threads dby default
09:36:36euantor*single threaded by
09:37:58skrylarelixir is kind of neat. although i suspect BEAM was not built for speed :>
09:38:18skrylaralthough they can do hot reloads and nim cannot, which is part of where they lose some of that speed
09:40:56FromGitter<TiberiumN> nim can do hot reload :)
09:40:58FromGitter<TiberiumN> via dll
09:41:34skrylaris that built in or conceptual
09:53:05*Vladar joined #nim
09:53:54federico3a multithreaded dispatcher could be part of the stdlib
09:55:23FromGitter<TiberiumN> yeah, that would be awesome
09:56:33*Matthias247 joined #nim
09:58:11*endragor_ quit (Remote host closed the connection)
09:58:49*endragor joined #nim
10:02:55*endragor quit (Ping timeout: 246 seconds)
10:28:57*dankrad quit (Ping timeout: 260 seconds)
10:30:45*dankrad joined #nim
10:34:16*Matthias247 quit (Read error: Connection reset by peer)
11:04:04*federico3 quit (Ping timeout: 260 seconds)
11:15:56*smt joined #nim
11:30:48*federico3 joined #nim
11:34:12*vendethiel joined #nim
11:49:07*Trustable quit (Remote host closed the connection)
12:05:00*v17d joined #nim
12:06:49*Snircle joined #nim
12:16:36*yingjun joined #nim
12:17:01*andrzejku joined #nim
12:20:49*yingjun quit (Ping timeout: 246 seconds)
12:24:10FromGitter<zacharycarter> I've tried doing hot reloading for Nim via DLL's and it's not idea
12:24:15FromGitter<zacharycarter> especially when multiple threads enter the picture
12:25:14FromGitter<TiberiumN> yeah
12:25:57FromGitter<zacharycarter> I think focusing on Nim's VM is a better approach to hot reloading coding
12:26:53user0Hi, two questions: 1. How do define two different generic types in function argument? Is it like ``proc fn[T, U] (a: T, b: U): string = ``? It does not work . And,
12:27:21FromGitter<TiberiumN> proc fn[T, U] (a: T, b: U): string = works
12:27:25FromGitter<TiberiumN> maybe you have old compiler?
12:27:37FromGitter<TiberiumN> proc fn[T, U] (a: T, b: U): string = "hello"
12:28:12user0Oh, I didn't notice, there was a typo
12:28:19user0I have another question
12:29:02user0Is there any alternative to the "auto" keyword? for example, ``proc[T, U] (a: T, b: U): auto =``
12:29:14user0^This would be really helpful
12:29:26FromGitter<TiberiumN> ehm, probably no
12:29:48FromGitter<TiberiumN> and "auto" is not the idiomatic way
12:29:58FromGitter<TiberiumN> well it can help while porting some code from python for example
12:30:10user0What do you do if you can't determine the output type of the function?
12:30:10FromGitter<zacharycarter> about the only type inference Nim does is when you say var foo = "stringval"
12:30:10*skrylar quit (Ping timeout: 276 seconds)
12:30:40FromGitter<TiberiumN> proc[T, U] (a: T, b: U): string = 132 ⏎ ⏎ compiler will show an error
12:31:03FromGitter<TiberiumN> oh wait :)
12:31:05user0Should I return a pointer and dereference it?
12:31:09dom96user0: you can always determine it
12:31:32dom96Could you describe a situation where you cannot?
12:32:00user0dom96: For a very small example, you have an "add function" for complex numbers. How do you know if the real or the imaginary part is float or not?
12:33:52user0Or, a function that gives different type of output based on inputs etc
12:35:35dom96use an object variant
12:36:15user0You mean variant type? Hmm, that'd be a clever way out actually :D
12:36:18*Vladar quit (Quit: Leaving)
12:36:54dom96Nim calls them object variants: https://nim-lang.org/docs/manual.html#types-object-variants
12:38:08*skrylar joined #nim
12:38:12user0Oh, sorry. Anyways, thanks guys.
12:39:06*insomniac joined #nim
12:40:12*dankrad quit (Ping timeout: 260 seconds)
12:40:59*v17d quit (Remote host closed the connection)
12:42:44*v17d joined #nim
12:43:19*nsf quit (Quit: WeeChat 1.9)
12:52:18*enthus1ast- joined #nim
12:53:44FromGitter<TiberiumN> Can I convert char to string?
12:53:47FromGitter<TiberiumN> one char only
12:54:12FromGitter<zacharycarter> https://play.nim-lang.org?gist=7e66216eae78368cb2b04725fadfa1c7
12:54:14FromGitter<zacharycarter> sure
12:54:25FromGitter<TiberiumN> lol :)
12:54:48FromGitter<zacharycarter> :)
12:55:22dom96zacharycarter: ooh yay
12:55:26dom96Now with gist support :D
12:55:30FromGitter<zacharycarter> yessir!
12:56:06dom96Btw the Nim logo should all be a huge link together with the | Playground text and link to the playground home page IMO :)
12:56:37*rokups joined #nim
12:57:19FromGitter<zacharycarter> okay I can fix that
12:58:51dom96You might need to be careful about rate limiting, I'm not sure how many gists GitHub will allow you to create.
12:59:32FromGitter<zacharycarter> yeah I was kind of worried about this
12:59:40*dankrad joined #nim
12:59:56FromGitter<zacharycarter> I already had my IP blocked temporarily while I was deving
13:00:16dom96You created an API token for it thought right?
13:00:18dom96*though
13:00:34FromGitter<TiberiumN> but why you can't let users load gists?
13:00:51FromGitter<TiberiumN> so their browser will load gists
13:00:52FromGitter<TiberiumN> not server
13:01:04FromGitter<zacharycarter> the browser does load the gist actually
13:01:09FromGitter<zacharycarter> :)
13:01:21FromGitter<zacharycarter> dom96: i didn't right now it's all anonymous requests
13:01:36dom96Yeah, that only gets you like 50 per hour
13:01:44dom96You need an API token ASAP
13:01:54FromGitter<TiberiumN> but if you make custom token, you will need to transfer gist load logic to the server
13:01:56FromGitter<zacharycarter> alright I'll work on that as well
13:02:03dom96how does the loading work? client-side request to GitHub API?
13:02:10FromGitter<zacharycarter> yeah
13:02:12FromGitter<zacharycarter> the loading is here
13:02:33dom96Hrm, that's also bad
13:02:39FromGitter<zacharycarter> https://github.com/zacharycarter/nim-playground-frontend/blob/master/static/js/ace.js#L28-L48
13:02:48FromGitter<zacharycarter> I'll move it to the server
13:02:50dom96People won't be able to load gists past 50 per hour
13:02:59FromGitter<zacharycarter> and add a token
13:03:22dom96okay :)
13:03:31dom96Nice job though :D
13:03:35FromGitter<zacharycarter> thanks :)
13:04:27dom96oh and also https://twitter.com/AndrewVos/status/891282122262052864
13:05:03FromGitter<zacharycarter> yeah I noticed that the other day
13:05:16FromGitter<zacharycarter> I'll work on that
13:05:20FromGitter<zacharycarter> after the api token stuff
13:07:04*Jesin quit (Quit: Leaving)
13:08:55FromGitter<zacharycarter> I'm turrible at css haha, going to be fun trying to make this stuff responsive
13:09:02FromGitter<zacharycarter> even though it already should be since I'm using bulma
13:10:08*xet7 quit (Ping timeout: 240 seconds)
13:10:15*yuken wave
13:10:34FromGitter<zacharycarter> Hi yuken!
13:10:37*BitPuffin|osx joined #nim
13:10:38FromGitter<zacharycarter> how goes learning Nim?
13:11:01yukenit's certainly a thing! Most of it is similar enough to other languagess that it's easy
13:11:12yukenbut I've never worked with a lot of the stuff it offers either.
13:11:44FromGitter<zacharycarter> well just keep asking questions
13:12:05FromGitter<zacharycarter> I'm glad you're learning it though, Nim needs more users
13:12:16yukenhttps://gist.github.com/YukenK/13b350e83ea07f6d7861c97f55f92506 my first test app that didn't work because it stopped at the first loop lol
13:13:05dom96zacharycarter: what you've created looks awesome already so you're pretty good at CSS IMO :)
13:13:12dom96hello yuken!
13:13:48FromGitter<zacharycarter> dom96: thank you :D lots of help from the community on the css bits though, especially flexbox which is all new to me
13:13:57FromGitter<zacharycarter> but I imagine it's also where the problem lies on mobile
13:23:27*xet7 joined #nim
13:25:11*Jesin joined #nim
13:25:13*BitPuffin|osx quit (Remote host closed the connection)
13:25:28*BitPuffin|osx joined #nim
13:35:21*endragor joined #nim
13:45:30*yglukhov quit (Remote host closed the connection)
13:46:33*pilne joined #nim
13:57:42FromGitter<TiberiumN> what's the best way to parse math expressions in Nim?
13:58:03FromGitter<TiberiumN> because for now I'm using simple tinyexpr (C library for math expression parsing) library wrapper
14:06:20skrylarwhee, backpropagation in nim
14:14:54FromGitter<TiberiumN> dom96: maybe you remember about the http client issue that I tried to reproduce? ⏎ It seems that this doesn't depend on URL, but depends on the lifetime of http client instance ⏎ ⏎ because in my app every module, which uses client (one client for one module), throws an error like "Connection was closed before full request has been made ⏎ parseResponse's lead up to read of failed Future:"
14:14:55FromGitter... [https://gitter.im/nim-lang/Nim?at=597c985e2723db8d5e58fbb1]
14:15:31FromGitter<TiberiumN> I'll try to make simple app which would be do request to httpbin.org every 5 seconds and let it run until it crashes (maybe)
14:16:50FromGitter<TiberiumN> so
14:17:24FromGitter<TiberiumN> in one of my modules I defined client (async http client) instance at top level, and in two others - it's created on every module call
14:17:33*Jesin quit (Quit: Leaving)
14:18:18*yingjun joined #nim
14:21:01FromGitter<TiberiumN> dom96: is there any downsides if I'll create new async http client every 5-30 seconds? will gc handle it properly?
14:22:57*yingjun quit (Ping timeout: 248 seconds)
14:32:21*yglukhov joined #nim
14:32:44dom96there shouldn't be.
14:33:28*Jesin joined #nim
14:34:46FromGitter<zacharycarter> once the cache clears the playground should be looking better on mobile
14:38:36dom96zacharycarter: I've cleared it just for you :)
14:39:52FromGitter<TiberiumN> let me see how it looks like
14:39:54FromGitter<zacharycarter> dom96: thank you! :D
14:40:48FromGitter<TiberiumN> well it's a bit weird on 5 inch android smartphone (using chrome)
14:41:17FromGitter<zacharycarter> yeah it still looks off hrm
14:41:18FromGitter<zacharycarter> let me see
14:41:33FromGitter<TiberiumN> i'll upload screenshots now
14:42:17FromGitter<TiberiumN> http://imgur.com/a/OIYZ4
14:42:44FromGitter<zacharycarter> ah yeah that's what I intended for you to see so cool :D
14:42:49FromGitter<zacharycarter> I don't think it's perfect by any means
14:43:26FromGitter<TiberiumN> ok, I don't read compiler output anyway (unless there's an error)
14:45:37*cspar_ quit (Ping timeout: 260 seconds)
14:46:14FromGitter<zacharycarter> my opinion is, it's meant to be used on desktop but as long as it's functional on mobile and doesn't have any display artifacts, I'm good with it
14:51:46FromGitter<TiberiumN> dom96: yes, I have a repro script
14:51:53FromGitter<TiberiumN> Will post an issue now
14:52:03*dddddd joined #nim
14:53:47FromGitter<TiberiumN> dom96: maybe I'm using client incorrectly? https://github.com/nim-lang/Nim/issues/6155
14:54:22FromGitter<TiberiumN> url doesn't really matter, you can put here any website
14:55:23dom96Hrm, so I bet that's because the remote server closes the connection.
14:55:42dom96HttpClient keeps one connection open for as long as possible
14:55:48FromGitter<TiberiumN> ahh
14:55:48dom96Maybe it needs to refresh the connection somehow
14:56:16FromGitter<TiberiumN> I didn't knew that it keeps the connection open
14:59:58FromGitter<TiberiumN> dom96: would it make sence to call "close" to close connection after every http request?
15:00:07FromGitter<TiberiumN> I mean not in stdlib, but in user code
15:00:22dom96I don't think so.
15:02:15dom96I think the solution might be to fix httpclient to reconnect automagically.
15:02:41FromGitter<TiberiumN> maybe add retry count?
15:07:46dom96I replied to the issue
15:13:29FromGitter<zacharycarter> so do I need to set up a new github account for the playground?
15:13:36FromGitter<zacharycarter> and then I guess publish gists through that account
15:14:18FromGitter<TiberiumN> well I don't think it's safe to publish user gists under your account
15:14:26FromGitter<TiberiumN> who knows that user can write....
15:14:37FromGitter<zacharycarter> hrm so I'll have to have people login then?
15:15:17FromGitter<zacharycarter> the rust playground creates anonymous gists
15:15:21FromGitter<TiberiumN> well you can publish anonymous gists with your token
15:15:24FromGitter<zacharycarter> ah okay
15:15:51FromGitter<TiberiumN> ah, I mean without token
15:15:59FromGitter<TiberiumN> but also there would be some rate-limiting..
15:15:59FromGitter<TiberiumN> hm
15:16:05FromGitter<TiberiumN> is rust playground opensource?
15:16:25FromGitter<zacharycarter> https://github.com/integer32llc/rust-playground
15:17:54FromGitter<TiberiumN> well rust playground uploads gists from client-side: https://github.com/integer32llc/rust-playground/blob/cde9c3ec7e3846e65eb605ee5251475a72539bcb/ui/frontend/gist.js
15:22:12FromGitter<TiberiumN> and no one is complaining it seems
15:23:39FromGitter<zacharycarter> I can't tell if adding ?accessToken=myaccesstokenhere to the end of the request does anything
15:24:40FromGitter<zacharycarter> I don't think it did
15:24:45FromGitter<zacharycarter> I'm still getting rate limited
15:28:27FromGitter<zacharycarter> okay I figured it out
15:28:31dom96You should publish anon gists using your token
15:28:37dom96It'll decrease the limit of requests
15:28:41FromGitter<zacharycarter> where / how should I store my token
15:28:43dom96er increase it rather
15:28:46FromGitter<zacharycarter> it did
15:28:52FromGitter<zacharycarter> I can do like 6000 with the token
15:28:53dom96in a config file
15:29:10FromGitter<zacharycarter> I guess I don't check that into git
15:29:25FromGitter<TiberiumN> yeah
15:29:29skrylarannoyance: libui seems to be lacking scrollbars :|
15:29:43*skrylar grumbles about having to do a gtk3 setup anyway
15:31:22skrylarhttps://gogs.io/ neat.
15:31:29skrylarwhy don't we have frameworks to do that :f
15:33:39FromGitter<TiberiumN> why another github/gitlab clone?
15:36:06*mahtob joined #nim
15:39:20*endragor quit (Remote host closed the connection)
15:39:52*dankrad quit (Ping timeout: 260 seconds)
15:39:58*endragor joined #nim
15:41:44*skrylar quit (Ping timeout: 260 seconds)
15:44:33*endragor quit (Ping timeout: 248 seconds)
15:46:26FromGitter<zacharycarter> alright new gists are now using api token
15:46:43FromGitter<zacharycarter> now to move gets to the server
15:46:57euantorlogs has been around a while, I think it was started before GitLab
15:47:14FromGitter<TiberiumN> ah, ok
15:47:27FromGitter<TiberiumN> but anyway to do something like this in Nim we need sponsors
15:47:50FromGitter<TiberiumN> @zacharycarter can you make these links "real"? so I can click on them and go to gist page
15:47:58FromGitter<TiberiumN> (https://files.gitter.im/nim-lang/Nim/S5Ji/image.png)
15:48:11FromGitter<TiberiumN> it would a nice small addition
15:48:17euantorReally you need to have something interesting before you get sponsors - build interesting/useful things and people will come
15:51:02FromGitter<zacharycarter> sure
15:51:23FromGitter<zacharycarter> once I finish the gist stuff I'll do that @TiberiumN
15:52:15FromGitter<TiberiumN> ok
16:00:36enthus1ast-gitlab is unusable slow, gogs runs on a raspberry TiberiuM
16:01:05FromGitter<TiberiumN> well because gitlab is ruby and gogs is go
16:01:13FromGitter<TiberiumN> compiled language > interpreter language in terms of speed
16:01:27FromGitter<TiberiumN> also gitlab uses ROR
16:02:56enthus1ast-gitlab has a job that kills processes because they leak memory :)
16:03:07enthus1ast-in their default installation
16:03:29FromGitter<TiberiumN> lol
16:03:39FromGitter<TiberiumN> also what does github use?
16:03:48enthus1ast-github
16:04:01FromGitter<TiberiumN> php?
16:05:16euantorMostly Ruby, and a lot of caching and some C I believe
16:05:22euantorIt's a mix of stuff at GH
16:05:43FromGitter<TiberiumN> well github sucks at searching repositories sadly
16:06:05FromGitter<TiberiumN> https://github.com/search?o=desc&q=language%3ANim&s=updated&type=Repositories&utf8=%E2%9C%93 ⏎ ⏎ I want to see newest Nim repos, and I can't :(
16:06:22enthus1ast-thats the only negativ point i see for gogs, they have no search at all
16:12:46*guestxx27 joined #nim
16:13:09FromGitter<zacharycarter> okay so all the gist stuff should be moved to the backend
16:13:35FromGitter<zacharycarter> need to wait for a cache reset before we can really test
16:13:52FromGitter<TiberiumN> yay that works https://github.com/search?o=desc&q=language%3ANim+pushed%3A%3E2017-06-01&s=updated&type=Repositories&utf8=%E2%9C%93
16:13:59FromGitter<TiberiumN> @zacharycarter I see your repo right here :)
16:14:13FromGitter<TiberiumN> this searches all repos which was updated in last 2 months
16:14:43FromGitter<zacharycarter> :)
16:16:33*v17d quit (Remote host closed the connection)
16:17:59*v17d joined #nim
16:20:08*yingjun joined #nim
16:20:20FromGitter<zacharycarter> going to be glad to be done with web dev work and do some game dev work tonight :P
16:22:48*v17d quit (Ping timeout: 260 seconds)
16:24:10*yingjun quit (Ping timeout: 240 seconds)
16:26:13mahtobhttps://ncry.pt/p/P3Dn#HA4ABHv8cRzNCoFK36pzpTmpwvcQiFyugCzWWEQ1saQ
16:26:47FromGitter<TiberiumN> as I said - you need to fix msgpack
16:27:16mahtobnimble install msgpack
16:27:16FromGitter<TiberiumN> Try this - https://github.com/jangko/msgpack4nim
16:27:20FromGitter<TiberiumN> https://github.com/jangko/msgpack4nim
16:27:41FromGitter<TiberiumN> nimble install msgpack4nim
16:27:51FromGitter<TiberiumN> msgpack is unmaintained
16:27:57FromGitter<TiberiumN> "I will start this project once Nim compiler reaches 1.0"
16:28:03FromGitter<TiberiumN> just lol
16:28:12mahtobok
16:28:33mahtobhm so
16:28:43mahtobnimrpc should fix also
16:28:55mahtobit uses msgpack
16:30:15mahtobhttps://github.com/rogercloud/nim-rpc/blob/master/src/nimrpc/rpc_client.nim#L1
16:30:25mahtobs/msgpack/msgpack4nim
16:31:05FromGitter<TiberiumN> well this library is unmaintained too
16:31:13FromGitter<TiberiumN> it has the fix
16:31:13FromGitter<TiberiumN> https://github.com/rogercloud/nim-rpc/pull/1
16:31:35FromGitter<zacharycarter> @TiberiumN : next time the cache is cleared the changes you suggested should be apparent
16:31:47FromGitter<TiberiumN> ok! thanks
16:31:52FromGitter<zacharycarter> np!
16:32:37mahtobyes before a pr exists ...
16:32:46FromGitter<zacharycarter> anyone have ideas to sell Nim to a bunch of JavaScript / Java developers
16:32:56FromGitter<zacharycarter> mostly web developers
16:34:11*v17d joined #nim
16:37:59*guestxx27 quit (Remote host closed the connection)
16:45:52*guestxx27 joined #nim
16:53:55*def-pri-pub joined #nim
16:55:42FromGitter<timmyjose> Hello, folks. Is there any REPL for Nim?
16:56:07FromGitter<timmyjose> @dom96 Thanks, Dom (just saw your comment offering to help!) :-)
16:56:54FromGitter<TiberiumN> well nim isn't interpreted, so "real" REPL - no
16:57:02FromGitter<TiberiumN> but there's at least "nim secret", which has bugs
16:57:54FromGitter<timmyjose> @TiberiumN Thanks! I'll check that out
16:59:00FromGitter<timmyjose> Ah yes, that should be fine for my needs for now - just wanted to try out small snippets as I am learning the language!
16:59:03FromGitter<timmyjose> :-)
17:00:53*skrylar joined #nim
17:01:49FromGitter<TiberiumN> you can also use play.nim-lang.org :)
17:01:53FromGitter<TiberiumN> https://play.nim-lang.org
17:03:58FromGitter<timmyjose> Tried that out, but no I/O allowed(?)
17:04:26FromGitter<zacharycarter> it's pretty locked down to prevent security holes
17:04:41FromGitter<timmyjose> Ah, I see
17:04:54skrylarTiberiumN: I dunno. Was just thinking of all the micro webservers Go has tho
17:05:05FromGitter<timmyjose> Hmmm... I could use that for programs that don't require I/O I suppose then! :-)
17:05:11FromGitter<zacharycarter> it compiles your code in a docker container that has no network access
17:05:15skrylarmattermost and gogs are mostly one-bin-you're-done
17:05:28FromGitter<zacharycarter> but sure @timmyjose it's also good for sharing code with others as it has gist integration
17:05:38FromGitter<timmyjose> Excellent point!
17:11:56skrylarbleh. i know how much work it woudl take to make one of those though. and i'm not sure if it would help much
17:19:13FromGitter<zacharycarter> slides so far
17:19:18FromGitter<zacharycarter> (https://files.gitter.im/nim-lang/Nim/BeF6/Nim.pdf)
17:21:10FromGitter<TiberiumN> yeah, nice that you've included this slide too "why not nim"
17:21:49FromGitter<zacharycarter> now I just need to come up with an idea for something to write in Nim
17:21:51FromGitter<zacharycarter> for the rest of the presentation
17:23:01dom96zacharycarter: Looks nice. Some things that I would change: make the naming of the vars in the quicksort example more verbose.
17:23:27dom96Also, this seems like a pretty long way to implement quicksort, you sure there is no more succinct way?
17:23:38FromGitter<zacharycarter> I stole that quicksort example from a blog
17:23:45FromGitter<zacharycarter> so probably
17:23:51FromGitter<zacharycarter> they were comparing quicksort in several languages
17:23:57FromGitter<zacharycarter> and that was the Nim implementation they came up with
17:24:18FromGitter<zacharycarter> https://rosettacode.org/wiki/Sorting_algorithms/Quicksort#Nim
17:24:35FromGitter<zacharycarter> if you can think of better snippets to put there, I'm game
17:35:28*skrylar quit (Ping timeout: 255 seconds)
17:39:43yglukhovzacharycarter: i've got a couple of blazing fast quicksorts, but they are not pretty at all for rozettacode: https://github.com/yglukhov/ecs/blob/master/private/algorithms.nim
17:44:38FromGitter<zacharycarter> @yglukhov yeah :/ would be tough to fit them on a slide
17:45:30FromGitter<TiberiumN> https://github.com/nim-lang/Nim/issues/6156 probably related to appveyor timeouts?
17:48:06*enthus1ast- quit (Quit: Lost terminal)
17:48:28*yglukhov quit (Remote host closed the connection)
17:49:36*guestxx27 quit (Remote host closed the connection)
18:00:03mahtobis there any current rpc client ?
18:01:36mahtobrpcnim has issue on connect
18:07:05*Sentreen quit (Ping timeout: 240 seconds)
18:13:10*yglukhov joined #nim
18:19:41*guestxx27 joined #nim
18:20:08*Sentreen joined #nim
18:22:01*yingjun joined #nim
18:26:30*yingjun quit (Ping timeout: 268 seconds)
18:36:38*guestxx27 quit (Remote host closed the connection)
18:38:31*guestxx27 joined #nim
18:41:26*endragor joined #nim
18:41:28*salewski joined #nim
18:42:19salewski> skrylar grumbles about having to do a gtk3 setup anyway
18:42:40salewskiTry new nimble package: https://github.com/StefanSalewski/oldgtk3
18:44:33salewskiOr: https://github.com/StefanSalewski/gintro
18:46:07*endragor quit (Ping timeout: 255 seconds)
18:47:34*salewski quit (Quit: WeeChat 1.4)
18:49:27*Sentreen quit (Ping timeout: 260 seconds)
18:50:37*andrzejku quit (Ping timeout: 260 seconds)
19:02:03*Sentreen joined #nim
19:15:59*andrzejku joined #nim
19:18:08*mahtob quit (Remote host closed the connection)
19:26:22*rokups quit (Quit: Connection closed for inactivity)
19:27:24*Etheco joined #nim
19:31:47*guestxx27 quit (Remote host closed the connection)
19:37:12*nhywyll joined #nim
19:52:46*gokr joined #nim
19:53:58*rando1287 joined #nim
19:57:04*rando1287 quit (Remote host closed the connection)
20:02:34*Trustable joined #nim
20:05:50*andrzejku quit (Quit: My iMac has gone to sleep. ZZZzzz…)
20:06:29*Etheco quit (Quit: Leaving)
20:06:40*Etheco joined #nim
20:10:28FromGitter<adamrezich> hi, noob here: just pulled and built from source on Win10. everything worked but when I ran koch tests, I got: ⏎ C:\nim\tests\testament\tester.exe all ⏎ could not load: sqlite3_32.dll ⏎ C:\nim\tests\testament\tester.exe html ⏎ could not load: sqlite3_32.dll ... [https://gitter.im/nim-lang/Nim?at=597cebb42723db8d5e59e9de]
20:11:44*dankrad joined #nim
20:12:30dom96adamrezich: you need http://nim-lang.org/download/dlls.zip in your PATH
20:13:28FromGitter<adamrezich> dom96: ah I see, what's the recommended way to do that? put the DLLs in my nim directory (already in PATH), or windows folder, separate new directory...?
20:15:44dom96I usually create a DLLs directory somewhere, but you can also put them in your Nim dir.
20:15:47dom96Up to you.
20:17:51FromGitter<adamrezich> cool, thanks a ton. do I need to include those DLLs with my executable on release?
20:18:33*aziz joined #nim
20:21:21dom96Only if you use certain modules (re, db_sqlite and some others)
20:21:43*aziz quit (Client Quit)
20:21:44dom96also you need openssl for SSL (so when using httpclient with https://)
20:41:09*andrzejku joined #nim
20:43:23*cspar_ joined #nim
20:52:51*BitPuffin joined #nim
21:20:36*andrzejku quit (Quit: Textual IRC Client: www.textualapp.com)
21:23:45*gokr quit (Ping timeout: 248 seconds)
21:23:57*yingjun joined #nim
21:24:52*gokr joined #nim
21:28:27*yingjun quit (Ping timeout: 240 seconds)
21:32:04*rando1287 joined #nim
21:32:04*rando1287 quit (Remote host closed the connection)
21:32:59*rando1287 joined #nim
21:32:59*rando1287 quit (Remote host closed the connection)
21:35:46FromGitter<TiberiumN> Sorry, I'm not into math stuff, but what would be the simplest way to write math expression parser in Nim? With operators like + - and functions ( sin, cos, etc.)?
21:35:49*rando1287 joined #nim
21:35:49*rando1287 quit (Remote host closed the connection)
21:36:24FromGitter<cyberlis> i think i can help
21:36:43*rando1287 joined #nim
21:37:13*rando1287 quit (Remote host closed the connection)
21:37:16*nhywyll quit (Quit: nhywyll)
21:38:01*rando1287 joined #nim
21:39:00*rando1287 quit (Remote host closed the connection)
21:40:26*rando1287 joined #nim
21:45:05*rando1287 quit (Remote host closed the connection)
21:45:17*nsf joined #nim
21:50:44*mahtob joined #nim
21:52:00FromGitter<cyberlis> https://en.wikipedia.org/wiki/Shunting-yard_algorithm
21:52:43FromGitter<TiberiumN> Yeah, thanks a lot
21:53:38*rando1287 joined #nim
21:54:11*rando1287 quit (Remote host closed the connection)
21:54:16*djellemah__ joined #nim
21:54:56*rando1287 joined #nim
21:54:58*rando1287 quit (Remote host closed the connection)
21:55:04*rando1287 joined #nim
21:56:02*rando1287 quit (Remote host closed the connection)
21:57:16*yglukhov quit (Remote host closed the connection)
21:57:45*rando1287 joined #nim
21:58:10*rando1287 quit (Remote host closed the connection)
21:58:16*djellemah_ quit (Ping timeout: 276 seconds)
21:58:53*mahtob quit (Quit: Leaving)
21:59:19*mahmudov joined #nim
21:59:19*Trustable quit (Remote host closed the connection)
22:01:19*rando1287 joined #nim
22:15:15dom96Anyone Chinese here know what this means? 邬 博宇
22:16:47FromGitter<TiberiumN> Maybe Google translate can help?
22:17:58*rando1287 quit (Remote host closed the connection)
22:18:11*rando1287 joined #nim
22:21:35dom96Tried
22:22:10dom96Translates to Wu Boyu. I guess it's a person's name.
22:22:56*skrylar joined #nim
22:22:58*v17d quit (Ping timeout: 276 seconds)
22:25:25*skrylar quit (Client Quit)
22:27:07*rando1287 quit (Ping timeout: 255 seconds)
22:28:16*rando1287 joined #nim
22:35:12*rando1287 quit (Ping timeout: 260 seconds)
22:36:39*rando1287 joined #nim
22:46:27*vendethiel quit (Ping timeout: 240 seconds)
22:55:28*gokr quit (Ping timeout: 276 seconds)
22:55:30*rando1287 quit (Remote host closed the connection)
22:56:57dom96The script that generates nim-lang.org's sponsors list now has a "mod" feature: https://github.com/nim-lang/website/blob/master/scripts/bountysource_mod.json :D
22:57:09dom96So no more problems fixing up the data and adding manual entries.
23:07:29*rando1287 joined #nim
23:09:45*rando1287 quit (Remote host closed the connection)
23:11:40*Sentreen quit (Ping timeout: 255 seconds)
23:16:35*rando1287 joined #nim
23:22:52*rando1287 quit (Remote host closed the connection)
23:24:22*Sentreen joined #nim
23:25:54*yingjun joined #nim
23:30:16*yingjun quit (Ping timeout: 260 seconds)
23:33:13*sms joined #nim
23:33:24smsHey there
23:35:43*nsf quit (Quit: WeeChat 1.9)
23:36:16*deep-book-gk_ joined #nim
23:37:50*BitPuffin|osx quit (Ping timeout: 240 seconds)
23:38:04*deep-book-gk_ left #nim (#nim)
23:39:49*rando1287 joined #nim
23:39:52FromGitter<TiberiumN> Hi
23:40:30rando1287Ho
23:42:55*sakalli quit (Ping timeout: 276 seconds)
23:42:57FromGitter<cyberlis> I have function argument with default value `nil`. How can i check it in function and initialize this argument?
23:43:17FromGitter<TiberiumN> if value.isNil()
23:43:36FromGitter<cyberlis> yes
23:43:51FromGitter<cyberlis> and then i cant assign this variable
23:43:58FromGitter<TiberiumN> Yes you can't
23:44:09FromGitter<TiberiumN> You need to create another variable
23:44:25dom96bah
23:44:38FromGitter<cyberlis> thank you :(
23:44:47dom96What a silly mistake to make in the latest bountysource update
23:46:54dom96oh well, night guys
23:47:07FromGitter<cyberlis> bb
23:47:41*rando1287 quit (Remote host closed the connection)
23:47:58*rando1287 joined #nim
23:48:20FromGitter<TiberiumN> Yeah, is 2:48 am here :)
23:54:36yuken7 hours ahead, so you're probably in... eastern Germany, czech republic, slovakia, around there?
23:58:03*rando1287 quit (Remote host closed the connection)