00:11:11 | * | ShalokShalom quit (Read error: Connection reset by peer) |
00:15:45 | * | ShalokShalom joined #nim |
00:16:24 | FromGitter | <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:26 | FromGitter | <TiberiumN> When you have nothing to do - search for Nim code |
01:17:28 | FromGitter | <TiberiumN> https://github.com/search?utf8=✓&q=language%3ANim+fuck&type=Code |
01:20:20 | FromGitter | <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:06 | FromGitter | <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:14 | FromGitter | <singularperturbation> or tests/testament r <mycategory/tfile.nim> |
03:10:34 | FromGitter | <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:23 | FromGitter | <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:53 | FromGitter | <singularperturbation> I think I have to do a header with ⏎ discard """ ⏎ ⏎ ```<somedirective>: value``` ⏎ ... [https://gitter.im/nim-lang/Nim?at=597bfed8614889d475fd5ed3] |
03:24:42 | FromGitter | <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:42 | FromGitter | <singularperturbation> Found a workaround but I'm not that happy with it https://github.com/nim-lang/Nim/pull/6149 |
03:52:47 | FromGitter | <singularperturbation> (test for ^ ) |
03:53:08 | * | rauss quit (Quit: WeeChat 1.9) |
03:53:25 | FromGitter | <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:27 | FromGitter | <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.nim ⏎ https://github.com/nim-lang/Nim/blob/master/tests/stdlib/trstgen.nim ⏎ https://github.com/nim-lan |
04:05:27 | FromGitter | ... 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:04 | skrylar | was 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:25 | skrylar | https://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:09 | federico3 | why is Nim so slow on those bench? |
08:06:24 | Araq | which 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:00 | federico3 | Araq: the one linked from crystal. Nim is actually fast but limited to one core |
08:22:15 | FromGitter | <TiberiumN> Oh wait, crystal doesn't work on Windows? |
08:22:44 | FromGitter | <TiberiumN> This benchmark? |
08:22:47 | FromGitter | <TiberiumN> https://github.com/costajob/app-servers |
08:23:47 | FromGitter | <TiberiumN> Well async is one-threaded unless you run multiple instances with nginx |
08:24:18 | FromGitter | <TiberiumN> Crystal uses green threads, called "fibers", spawned inside an event loop vi the libevent library. |
08:26:04 | FromGitter | <TiberiumN> Why no Windows though? |
08:30:22 | * | big_num quit (Quit: WeeChat 1.9) |
08:34:12 | Araq | you 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:53 | FromGitter | <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:06 | euantor | boehm is an alternative GC |
08:55:18 | * | yglukhov joined #nim |
09:02:57 | * | yingjun joined #nim |
09:04:17 | FromGitter | <TiberiumN> yeah, I know |
09:04:50 | euantor | I'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:17 | euantor | And 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:37 | FromGitter | <TiberiumN> ah, ok |
09:11:10 | * | yglukhov quit (Remote host closed the connection) |
09:13:06 | skrylar | i 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:21 | FromGitter | <TiberiumN> yes it still can use multiple cores |
09:13:39 | FromGitter | <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:04 | skrylar | eh well most of the libui stuff i dealt with earlier :x |
09:23:19 | skrylar | need 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:26 | euantor | Yeah, Nim can use multiple threads, but asyncdispatch is single threads dby default |
09:36:36 | euantor | *single threaded by |
09:37:58 | skrylar | elixir is kind of neat. although i suspect BEAM was not built for speed :> |
09:38:18 | skrylar | although they can do hot reloads and nim cannot, which is part of where they lose some of that speed |
09:40:56 | FromGitter | <TiberiumN> nim can do hot reload :) |
09:40:58 | FromGitter | <TiberiumN> via dll |
09:41:34 | skrylar | is that built in or conceptual |
09:53:05 | * | Vladar joined #nim |
09:53:54 | federico3 | a multithreaded dispatcher could be part of the stdlib |
09:55:23 | FromGitter | <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:10 | FromGitter | <zacharycarter> I've tried doing hot reloading for Nim via DLL's and it's not idea |
12:24:15 | FromGitter | <zacharycarter> especially when multiple threads enter the picture |
12:25:14 | FromGitter | <TiberiumN> yeah |
12:25:57 | FromGitter | <zacharycarter> I think focusing on Nim's VM is a better approach to hot reloading coding |
12:26:53 | user0 | Hi, 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:21 | FromGitter | <TiberiumN> proc fn[T, U] (a: T, b: U): string = works |
12:27:25 | FromGitter | <TiberiumN> maybe you have old compiler? |
12:27:37 | FromGitter | <TiberiumN> proc fn[T, U] (a: T, b: U): string = "hello" |
12:28:12 | user0 | Oh, I didn't notice, there was a typo |
12:28:19 | user0 | I have another question |
12:29:02 | user0 | Is there any alternative to the "auto" keyword? for example, ``proc[T, U] (a: T, b: U): auto =`` |
12:29:14 | user0 | ^This would be really helpful |
12:29:26 | FromGitter | <TiberiumN> ehm, probably no |
12:29:48 | FromGitter | <TiberiumN> and "auto" is not the idiomatic way |
12:29:58 | FromGitter | <TiberiumN> well it can help while porting some code from python for example |
12:30:10 | user0 | What do you do if you can't determine the output type of the function? |
12:30:10 | FromGitter | <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:40 | FromGitter | <TiberiumN> proc[T, U] (a: T, b: U): string = 132 ⏎ ⏎ compiler will show an error |
12:31:03 | FromGitter | <TiberiumN> oh wait :) |
12:31:05 | user0 | Should I return a pointer and dereference it? |
12:31:09 | dom96 | user0: you can always determine it |
12:31:32 | dom96 | Could you describe a situation where you cannot? |
12:32:00 | user0 | dom96: 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:52 | user0 | Or, a function that gives different type of output based on inputs etc |
12:35:35 | dom96 | use an object variant |
12:36:15 | user0 | You mean variant type? Hmm, that'd be a clever way out actually :D |
12:36:18 | * | Vladar quit (Quit: Leaving) |
12:36:54 | dom96 | Nim calls them object variants: https://nim-lang.org/docs/manual.html#types-object-variants |
12:38:08 | * | skrylar joined #nim |
12:38:12 | user0 | Oh, 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:44 | FromGitter | <TiberiumN> Can I convert char to string? |
12:53:47 | FromGitter | <TiberiumN> one char only |
12:54:12 | FromGitter | <zacharycarter> https://play.nim-lang.org?gist=7e66216eae78368cb2b04725fadfa1c7 |
12:54:14 | FromGitter | <zacharycarter> sure |
12:54:25 | FromGitter | <TiberiumN> lol :) |
12:54:48 | FromGitter | <zacharycarter> :) |
12:55:22 | dom96 | zacharycarter: ooh yay |
12:55:26 | dom96 | Now with gist support :D |
12:55:30 | FromGitter | <zacharycarter> yessir! |
12:56:06 | dom96 | Btw 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:19 | FromGitter | <zacharycarter> okay I can fix that |
12:58:51 | dom96 | You might need to be careful about rate limiting, I'm not sure how many gists GitHub will allow you to create. |
12:59:32 | FromGitter | <zacharycarter> yeah I was kind of worried about this |
12:59:40 | * | dankrad joined #nim |
12:59:56 | FromGitter | <zacharycarter> I already had my IP blocked temporarily while I was deving |
13:00:16 | dom96 | You created an API token for it thought right? |
13:00:18 | dom96 | *though |
13:00:34 | FromGitter | <TiberiumN> but why you can't let users load gists? |
13:00:51 | FromGitter | <TiberiumN> so their browser will load gists |
13:00:52 | FromGitter | <TiberiumN> not server |
13:01:04 | FromGitter | <zacharycarter> the browser does load the gist actually |
13:01:09 | FromGitter | <zacharycarter> :) |
13:01:21 | FromGitter | <zacharycarter> dom96: i didn't right now it's all anonymous requests |
13:01:36 | dom96 | Yeah, that only gets you like 50 per hour |
13:01:44 | dom96 | You need an API token ASAP |
13:01:54 | FromGitter | <TiberiumN> but if you make custom token, you will need to transfer gist load logic to the server |
13:01:56 | FromGitter | <zacharycarter> alright I'll work on that as well |
13:02:03 | dom96 | how does the loading work? client-side request to GitHub API? |
13:02:10 | FromGitter | <zacharycarter> yeah |
13:02:12 | FromGitter | <zacharycarter> the loading is here |
13:02:33 | dom96 | Hrm, that's also bad |
13:02:39 | FromGitter | <zacharycarter> https://github.com/zacharycarter/nim-playground-frontend/blob/master/static/js/ace.js#L28-L48 |
13:02:48 | FromGitter | <zacharycarter> I'll move it to the server |
13:02:50 | dom96 | People won't be able to load gists past 50 per hour |
13:02:59 | FromGitter | <zacharycarter> and add a token |
13:03:22 | dom96 | okay :) |
13:03:31 | dom96 | Nice job though :D |
13:03:35 | FromGitter | <zacharycarter> thanks :) |
13:04:27 | dom96 | oh and also https://twitter.com/AndrewVos/status/891282122262052864 |
13:05:03 | FromGitter | <zacharycarter> yeah I noticed that the other day |
13:05:16 | FromGitter | <zacharycarter> I'll work on that |
13:05:20 | FromGitter | <zacharycarter> after the api token stuff |
13:07:04 | * | Jesin quit (Quit: Leaving) |
13:08:55 | FromGitter | <zacharycarter> I'm turrible at css haha, going to be fun trying to make this stuff responsive |
13:09:02 | FromGitter | <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:34 | FromGitter | <zacharycarter> Hi yuken! |
13:10:37 | * | BitPuffin|osx joined #nim |
13:10:38 | FromGitter | <zacharycarter> how goes learning Nim? |
13:11:01 | yuken | it's certainly a thing! Most of it is similar enough to other languagess that it's easy |
13:11:12 | yuken | but I've never worked with a lot of the stuff it offers either. |
13:11:44 | FromGitter | <zacharycarter> well just keep asking questions |
13:12:05 | FromGitter | <zacharycarter> I'm glad you're learning it though, Nim needs more users |
13:12:16 | yuken | https://gist.github.com/YukenK/13b350e83ea07f6d7861c97f55f92506 my first test app that didn't work because it stopped at the first loop lol |
13:13:05 | dom96 | zacharycarter: what you've created looks awesome already so you're pretty good at CSS IMO :) |
13:13:12 | dom96 | hello yuken! |
13:13:48 | FromGitter | <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:57 | FromGitter | <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:42 | FromGitter | <TiberiumN> what's the best way to parse math expressions in Nim? |
13:58:03 | FromGitter | <TiberiumN> because for now I'm using simple tinyexpr (C library for math expression parsing) library wrapper |
14:06:20 | skrylar | whee, backpropagation in nim |
14:14:54 | FromGitter | <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:55 | FromGitter | ... [https://gitter.im/nim-lang/Nim?at=597c985e2723db8d5e58fbb1] |
14:15:31 | FromGitter | <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:50 | FromGitter | <TiberiumN> so |
14:17:24 | FromGitter | <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:01 | FromGitter | <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:44 | dom96 | there shouldn't be. |
14:33:28 | * | Jesin joined #nim |
14:34:46 | FromGitter | <zacharycarter> once the cache clears the playground should be looking better on mobile |
14:38:36 | dom96 | zacharycarter: I've cleared it just for you :) |
14:39:52 | FromGitter | <TiberiumN> let me see how it looks like |
14:39:54 | FromGitter | <zacharycarter> dom96: thank you! :D |
14:40:48 | FromGitter | <TiberiumN> well it's a bit weird on 5 inch android smartphone (using chrome) |
14:41:17 | FromGitter | <zacharycarter> yeah it still looks off hrm |
14:41:18 | FromGitter | <zacharycarter> let me see |
14:41:33 | FromGitter | <TiberiumN> i'll upload screenshots now |
14:42:17 | FromGitter | <TiberiumN> http://imgur.com/a/OIYZ4 |
14:42:44 | FromGitter | <zacharycarter> ah yeah that's what I intended for you to see so cool :D |
14:42:49 | FromGitter | <zacharycarter> I don't think it's perfect by any means |
14:43:26 | FromGitter | <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:14 | FromGitter | <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:46 | FromGitter | <TiberiumN> dom96: yes, I have a repro script |
14:51:53 | FromGitter | <TiberiumN> Will post an issue now |
14:52:03 | * | dddddd joined #nim |
14:53:47 | FromGitter | <TiberiumN> dom96: maybe I'm using client incorrectly? https://github.com/nim-lang/Nim/issues/6155 |
14:54:22 | FromGitter | <TiberiumN> url doesn't really matter, you can put here any website |
14:55:23 | dom96 | Hrm, so I bet that's because the remote server closes the connection. |
14:55:42 | dom96 | HttpClient keeps one connection open for as long as possible |
14:55:48 | FromGitter | <TiberiumN> ahh |
14:55:48 | dom96 | Maybe it needs to refresh the connection somehow |
14:56:16 | FromGitter | <TiberiumN> I didn't knew that it keeps the connection open |
14:59:58 | FromGitter | <TiberiumN> dom96: would it make sence to call "close" to close connection after every http request? |
15:00:07 | FromGitter | <TiberiumN> I mean not in stdlib, but in user code |
15:00:22 | dom96 | I don't think so. |
15:02:15 | dom96 | I think the solution might be to fix httpclient to reconnect automagically. |
15:02:41 | FromGitter | <TiberiumN> maybe add retry count? |
15:07:46 | dom96 | I replied to the issue |
15:13:29 | FromGitter | <zacharycarter> so do I need to set up a new github account for the playground? |
15:13:36 | FromGitter | <zacharycarter> and then I guess publish gists through that account |
15:14:18 | FromGitter | <TiberiumN> well I don't think it's safe to publish user gists under your account |
15:14:26 | FromGitter | <TiberiumN> who knows that user can write.... |
15:14:37 | FromGitter | <zacharycarter> hrm so I'll have to have people login then? |
15:15:17 | FromGitter | <zacharycarter> the rust playground creates anonymous gists |
15:15:21 | FromGitter | <TiberiumN> well you can publish anonymous gists with your token |
15:15:24 | FromGitter | <zacharycarter> ah okay |
15:15:51 | FromGitter | <TiberiumN> ah, I mean without token |
15:15:59 | FromGitter | <TiberiumN> but also there would be some rate-limiting.. |
15:15:59 | FromGitter | <TiberiumN> hm |
15:16:05 | FromGitter | <TiberiumN> is rust playground opensource? |
15:16:25 | FromGitter | <zacharycarter> https://github.com/integer32llc/rust-playground |
15:17:54 | FromGitter | <TiberiumN> well rust playground uploads gists from client-side: https://github.com/integer32llc/rust-playground/blob/cde9c3ec7e3846e65eb605ee5251475a72539bcb/ui/frontend/gist.js |
15:22:12 | FromGitter | <TiberiumN> and no one is complaining it seems |
15:23:39 | FromGitter | <zacharycarter> I can't tell if adding ?accessToken=myaccesstokenhere to the end of the request does anything |
15:24:40 | FromGitter | <zacharycarter> I don't think it did |
15:24:45 | FromGitter | <zacharycarter> I'm still getting rate limited |
15:28:27 | FromGitter | <zacharycarter> okay I figured it out |
15:28:31 | dom96 | You should publish anon gists using your token |
15:28:37 | dom96 | It'll decrease the limit of requests |
15:28:41 | FromGitter | <zacharycarter> where / how should I store my token |
15:28:43 | dom96 | er increase it rather |
15:28:46 | FromGitter | <zacharycarter> it did |
15:28:52 | FromGitter | <zacharycarter> I can do like 6000 with the token |
15:28:53 | dom96 | in a config file |
15:29:10 | FromGitter | <zacharycarter> I guess I don't check that into git |
15:29:25 | FromGitter | <TiberiumN> yeah |
15:29:29 | skrylar | annoyance: libui seems to be lacking scrollbars :| |
15:29:43 | * | skrylar grumbles about having to do a gtk3 setup anyway |
15:31:22 | skrylar | https://gogs.io/ neat. |
15:31:29 | skrylar | why don't we have frameworks to do that :f |
15:33:39 | FromGitter | <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:26 | FromGitter | <zacharycarter> alright new gists are now using api token |
15:46:43 | FromGitter | <zacharycarter> now to move gets to the server |
15:46:57 | euantor | logs has been around a while, I think it was started before GitLab |
15:47:14 | FromGitter | <TiberiumN> ah, ok |
15:47:27 | FromGitter | <TiberiumN> but anyway to do something like this in Nim we need sponsors |
15:47:50 | FromGitter | <TiberiumN> @zacharycarter can you make these links "real"? so I can click on them and go to gist page |
15:47:58 | FromGitter | <TiberiumN> (https://files.gitter.im/nim-lang/Nim/S5Ji/image.png) |
15:48:11 | FromGitter | <TiberiumN> it would a nice small addition |
15:48:17 | euantor | Really you need to have something interesting before you get sponsors - build interesting/useful things and people will come |
15:51:02 | FromGitter | <zacharycarter> sure |
15:51:23 | FromGitter | <zacharycarter> once I finish the gist stuff I'll do that @TiberiumN |
15:52:15 | FromGitter | <TiberiumN> ok |
16:00:36 | enthus1ast- | gitlab is unusable slow, gogs runs on a raspberry TiberiuM |
16:01:05 | FromGitter | <TiberiumN> well because gitlab is ruby and gogs is go |
16:01:13 | FromGitter | <TiberiumN> compiled language > interpreter language in terms of speed |
16:01:27 | FromGitter | <TiberiumN> also gitlab uses ROR |
16:02:56 | enthus1ast- | gitlab has a job that kills processes because they leak memory :) |
16:03:07 | enthus1ast- | in their default installation |
16:03:29 | FromGitter | <TiberiumN> lol |
16:03:39 | FromGitter | <TiberiumN> also what does github use? |
16:03:48 | enthus1ast- | github |
16:04:01 | FromGitter | <TiberiumN> php? |
16:05:16 | euantor | Mostly Ruby, and a lot of caching and some C I believe |
16:05:22 | euantor | It's a mix of stuff at GH |
16:05:43 | FromGitter | <TiberiumN> well github sucks at searching repositories sadly |
16:06:05 | FromGitter | <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:22 | enthus1ast- | thats the only negativ point i see for gogs, they have no search at all |
16:12:46 | * | guestxx27 joined #nim |
16:13:09 | FromGitter | <zacharycarter> okay so all the gist stuff should be moved to the backend |
16:13:35 | FromGitter | <zacharycarter> need to wait for a cache reset before we can really test |
16:13:52 | FromGitter | <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:59 | FromGitter | <TiberiumN> @zacharycarter I see your repo right here :) |
16:14:13 | FromGitter | <TiberiumN> this searches all repos which was updated in last 2 months |
16:14:43 | FromGitter | <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:20 | FromGitter | <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:13 | mahtob | https://ncry.pt/p/P3Dn#HA4ABHv8cRzNCoFK36pzpTmpwvcQiFyugCzWWEQ1saQ |
16:26:47 | FromGitter | <TiberiumN> as I said - you need to fix msgpack |
16:27:16 | mahtob | nimble install msgpack |
16:27:16 | FromGitter | <TiberiumN> Try this - https://github.com/jangko/msgpack4nim |
16:27:20 | FromGitter | <TiberiumN> https://github.com/jangko/msgpack4nim |
16:27:41 | FromGitter | <TiberiumN> nimble install msgpack4nim |
16:27:51 | FromGitter | <TiberiumN> msgpack is unmaintained |
16:27:57 | FromGitter | <TiberiumN> "I will start this project once Nim compiler reaches 1.0" |
16:28:03 | FromGitter | <TiberiumN> just lol |
16:28:12 | mahtob | ok |
16:28:33 | mahtob | hm so |
16:28:43 | mahtob | nimrpc should fix also |
16:28:55 | mahtob | it uses msgpack |
16:30:15 | mahtob | https://github.com/rogercloud/nim-rpc/blob/master/src/nimrpc/rpc_client.nim#L1 |
16:30:25 | mahtob | s/msgpack/msgpack4nim |
16:31:05 | FromGitter | <TiberiumN> well this library is unmaintained too |
16:31:13 | FromGitter | <TiberiumN> it has the fix |
16:31:13 | FromGitter | <TiberiumN> https://github.com/rogercloud/nim-rpc/pull/1 |
16:31:35 | FromGitter | <zacharycarter> @TiberiumN : next time the cache is cleared the changes you suggested should be apparent |
16:31:47 | FromGitter | <TiberiumN> ok! thanks |
16:31:52 | FromGitter | <zacharycarter> np! |
16:32:37 | mahtob | yes before a pr exists ... |
16:32:46 | FromGitter | <zacharycarter> anyone have ideas to sell Nim to a bunch of JavaScript / Java developers |
16:32:56 | FromGitter | <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:42 | FromGitter | <timmyjose> Hello, folks. Is there any REPL for Nim? |
16:56:07 | FromGitter | <timmyjose> @dom96 Thanks, Dom (just saw your comment offering to help!) :-) |
16:56:54 | FromGitter | <TiberiumN> well nim isn't interpreted, so "real" REPL - no |
16:57:02 | FromGitter | <TiberiumN> but there's at least "nim secret", which has bugs |
16:57:54 | FromGitter | <timmyjose> @TiberiumN Thanks! I'll check that out |
16:59:00 | FromGitter | <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:03 | FromGitter | <timmyjose> :-) |
17:00:53 | * | skrylar joined #nim |
17:01:49 | FromGitter | <TiberiumN> you can also use play.nim-lang.org :) |
17:01:53 | FromGitter | <TiberiumN> https://play.nim-lang.org |
17:03:58 | FromGitter | <timmyjose> Tried that out, but no I/O allowed(?) |
17:04:26 | FromGitter | <zacharycarter> it's pretty locked down to prevent security holes |
17:04:41 | FromGitter | <timmyjose> Ah, I see |
17:04:54 | skrylar | TiberiumN: I dunno. Was just thinking of all the micro webservers Go has tho |
17:05:05 | FromGitter | <timmyjose> Hmmm... I could use that for programs that don't require I/O I suppose then! :-) |
17:05:11 | FromGitter | <zacharycarter> it compiles your code in a docker container that has no network access |
17:05:15 | skrylar | mattermost and gogs are mostly one-bin-you're-done |
17:05:28 | FromGitter | <zacharycarter> but sure @timmyjose it's also good for sharing code with others as it has gist integration |
17:05:38 | FromGitter | <timmyjose> Excellent point! |
17:11:56 | skrylar | bleh. 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:13 | FromGitter | <zacharycarter> slides so far |
17:19:18 | FromGitter | <zacharycarter> (https://files.gitter.im/nim-lang/Nim/BeF6/Nim.pdf) |
17:21:10 | FromGitter | <TiberiumN> yeah, nice that you've included this slide too "why not nim" |
17:21:49 | FromGitter | <zacharycarter> now I just need to come up with an idea for something to write in Nim |
17:21:51 | FromGitter | <zacharycarter> for the rest of the presentation |
17:23:01 | dom96 | zacharycarter: Looks nice. Some things that I would change: make the naming of the vars in the quicksort example more verbose. |
17:23:27 | dom96 | Also, this seems like a pretty long way to implement quicksort, you sure there is no more succinct way? |
17:23:38 | FromGitter | <zacharycarter> I stole that quicksort example from a blog |
17:23:45 | FromGitter | <zacharycarter> so probably |
17:23:51 | FromGitter | <zacharycarter> they were comparing quicksort in several languages |
17:23:57 | FromGitter | <zacharycarter> and that was the Nim implementation they came up with |
17:24:18 | FromGitter | <zacharycarter> https://rosettacode.org/wiki/Sorting_algorithms/Quicksort#Nim |
17:24:35 | FromGitter | <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:43 | yglukhov | zacharycarter: 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:38 | FromGitter | <zacharycarter> @yglukhov yeah :/ would be tough to fit them on a slide |
17:45:30 | FromGitter | <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:03 | mahtob | is there any current rpc client ? |
18:01:36 | mahtob | rpcnim 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:19 | salewski | > skrylar grumbles about having to do a gtk3 setup anyway |
18:42:40 | salewski | Try new nimble package: https://github.com/StefanSalewski/oldgtk3 |
18:44:33 | salewski | Or: 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:28 | FromGitter | <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:30 | dom96 | adamrezich: you need http://nim-lang.org/download/dlls.zip in your PATH |
20:13:28 | FromGitter | <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:44 | dom96 | I usually create a DLLs directory somewhere, but you can also put them in your Nim dir. |
20:15:47 | dom96 | Up to you. |
20:17:51 | FromGitter | <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:21 | dom96 | Only if you use certain modules (re, db_sqlite and some others) |
20:21:43 | * | aziz quit (Client Quit) |
20:21:44 | dom96 | also 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:46 | FromGitter | <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:24 | FromGitter | <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:00 | FromGitter | <cyberlis> https://en.wikipedia.org/wiki/Shunting-yard_algorithm |
21:52:43 | FromGitter | <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:15 | dom96 | Anyone Chinese here know what this means? 邬 博宇 |
22:16:47 | FromGitter | <TiberiumN> Maybe Google translate can help? |
22:17:58 | * | rando1287 quit (Remote host closed the connection) |
22:18:11 | * | rando1287 joined #nim |
22:21:35 | dom96 | Tried |
22:22:10 | dom96 | Translates 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:57 | dom96 | The 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:09 | dom96 | So 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:24 | sms | Hey 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:52 | FromGitter | <TiberiumN> Hi |
23:40:30 | rando1287 | Ho |
23:42:55 | * | sakalli quit (Ping timeout: 276 seconds) |
23:42:57 | FromGitter | <cyberlis> I have function argument with default value `nil`. How can i check it in function and initialize this argument? |
23:43:17 | FromGitter | <TiberiumN> if value.isNil() |
23:43:36 | FromGitter | <cyberlis> yes |
23:43:51 | FromGitter | <cyberlis> and then i cant assign this variable |
23:43:58 | FromGitter | <TiberiumN> Yes you can't |
23:44:09 | FromGitter | <TiberiumN> You need to create another variable |
23:44:25 | dom96 | bah |
23:44:38 | FromGitter | <cyberlis> thank you :( |
23:44:47 | dom96 | What a silly mistake to make in the latest bountysource update |
23:46:54 | dom96 | oh well, night guys |
23:47:07 | FromGitter | <cyberlis> bb |
23:47:41 | * | rando1287 quit (Remote host closed the connection) |
23:47:58 | * | rando1287 joined #nim |
23:48:20 | FromGitter | <TiberiumN> Yeah, is 2:48 am here :) |
23:54:36 | yuken | 7 hours ahead, so you're probably in... eastern Germany, czech republic, slovakia, around there? |
23:58:03 | * | rando1287 quit (Remote host closed the connection) |