00:04:25 | FromGitter | <Varriount> @gogolxdong Did you make sure that the authorization data is created using the POST method *and* that the request is made using POST? |
00:32:42 | FromGitter | <gogolxdong> GET |
00:37:53 | * | leorize quit (Quit: WeeChat 2.1) |
01:39:04 | Tanger | Hey folks! Anybody scraped gmail in nim before? Or know of a library that has? |
01:43:48 | FromGitter | <gogolxdong> @Varriount Thanks to your inspiration, we can get our instance data ,but in xml, how to make it reply json? |
01:44:53 | FromGitter | <gogolxdong> I believe gmail provides APIs in Google Cloud. @Tanger |
01:54:53 | Tanger | gogolxdong: Thanks! Will look into that |
02:01:53 | FromGitter | <Varriount> @gogolxdong The response format is API specific. Some APIs respond only in XML |
02:02:10 | FromGitter | <Varriount> Some in JSON |
02:02:30 | FromGitter | <Varriount> Speaking on which, what serialization options are there with regards to Nim and XML? |
02:02:39 | FromGitter | <gogolxdong> we used aws-python-sdk to get the json reponse |
02:06:34 | FromGitter | <Varriount> @gogolxdong You mean botocore? |
02:06:51 | FromGitter | <gogolxdong> yes ,boto3 |
02:07:07 | FromGitter | <Varriount> That normalizes the API response to a python datastructure. |
02:07:40 | FromGitter | <Varriount> The response sent back from the API may still be XML, it's just parsed for you into a more manageable structure. |
02:09:43 | FromGitter | <gogolxdong> yes, not quite sure.but not familiar with dealing xml is sure. |
02:12:02 | FromGitter | <gogolxdong> As far as I know, there isn't json or xml serialization library,we get used to access JsonNode directly. |
02:12:25 | FromGitter | <Varriount> There's https://nim-lang.org/docs/xmlparser.html#parseXml,Stream,string,seq[string] |
02:12:35 | FromGitter | <Varriount> and https://nim-lang.org/docs/xmltree.html |
02:13:12 | FromGitter | <Varriount> Hm, writing something that can deserialize those responses into sensible data structures will be tricky.. |
02:14:44 | FromGitter | <gogolxdong> mostly uses recursion. |
02:16:09 | FromGitter | <gogolxdong> well ,if it's the definition of serialization. I used Go json serialization, it's quite different. |
02:17:21 | * | dddddd quit (Remote host closed the connection) |
02:17:46 | FromGitter | <gogolxdong> JsonNode and XmlNode corresponding to the struct type of Go. |
02:26:11 | FromGitter | <gogolxdong> I prefer the way in Nim ,then we get the data as required instead of keeping variouse explict structs. |
03:05:24 | FromGitter | <gogolxdong> Does XmlNode only has child() accessor , how to get the wrapped value? |
03:08:53 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
03:16:53 | FromGitter | <gogolxdong> yes ,use .innerText() |
03:38:26 | * | smt quit (Read error: Connection reset by peer) |
03:39:03 | * | smt joined #nim |
04:14:04 | FromGitter | <gogolxdong> How to transform the string literals to string literals? |
04:15:43 | FromGitter | <gogolxdong> like ``` |
04:16:15 | FromGitter | <gogolxdong> like ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5acae90fdf3e0fb547b89bb8] |
04:18:21 | * | endragor joined #nim |
04:32:24 | * | Lord_Nig- joined #nim |
04:33:58 | * | Lord_Nightmare quit (Ping timeout: 264 seconds) |
04:33:58 | * | Lord_Nig- is now known as Lord_Nightmare |
04:34:02 | FromGitter | <gogolxdong> or ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5acaed3a92f5d62057aa2bef] |
05:43:39 | FromGitter | <gogolxdong> What I can make best is ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5acafd8b1130fe3d36b81c33] |
06:09:01 | * | nsf joined #nim |
06:09:40 | * | aguspiza joined #nim |
06:15:40 | FromGitter | <Varriount> @gogolxdong I'm trying to make deserializer based off of the XML streamingmodule. |
06:18:43 | * | leorize joined #nim |
06:24:10 | FromGitter | <gogolxdong> can't wait , mine is a basic version, It might not be feasible in reverse macro since I can't cheat the compiler to make `item`(which mean a literal string tag in xmlnode and others) valid without "". |
06:26:23 | FromGitter | <gogolxdong> but probably viable in positive macro. |
06:37:33 | * | aguspiza quit (Ping timeout: 264 seconds) |
06:37:35 | * | jaco60 joined #nim |
06:39:07 | * | xkapastel quit (Quit: Connection closed for inactivity) |
06:47:36 | * | rokups joined #nim |
07:05:10 | * | Vladar joined #nim |
07:15:59 | * | SenasOzys quit (Remote host closed the connection) |
07:18:39 | * | Vladar quit (Ping timeout: 256 seconds) |
07:21:32 | * | Vladar joined #nim |
07:42:20 | FromGitter | <Varriount> @gogolxdong Hopefully the JSON APIs will be better. |
07:43:51 | FromGitter | <gogolxdong> I emulated `{}` accessor in json module. |
07:51:35 | * | floppydh joined #nim |
08:04:27 | * | gmpreussner quit (Ping timeout: 240 seconds) |
08:05:18 | * | gmpreussner joined #nim |
08:11:47 | FromGitter | <Varriount> @gogolxdong I assume the createAwsAuthorization function is working correctly? |
08:12:00 | FromGitter | <gogolxdong> yes. |
08:12:52 | FromGitter | <gogolxdong> thanks to you, we have been stuck for couple of months. |
08:13:02 | FromGitter | <mratsim> @Varriount yes I know some places in arraymancer where I force convert to sequences |
08:13:32 | FromGitter | <gogolxdong> still don't know where is the key. |
08:13:42 | FromGitter | <Varriount> Key? |
08:13:52 | * | suvendu joined #nim |
08:14:29 | FromGitter | <gogolxdong> the thing matters. |
08:14:56 | FromGitter | <Varriount> I still don't understand. |
08:17:24 | FromGitter | <gogolxdong> the only difference is you use query parameters as query string without urlencoded, we used urlencoded query parameters as payload. |
08:18:38 | * | suvendu quit (Client Quit) |
08:19:44 | FromGitter | <Varriount> Hm, I should probably implement that capability next then. |
08:22:55 | FromGitter | <gogolxdong> except the name , our urlencoded payload takes the place of query string when assembling https url. |
08:24:42 | FromGitter | <data-man> @mratsim: Support me, please: #7549 :) |
08:29:16 | FromGitter | <Varriount> @data-man I'm +0.5 on it. What would be the pro's and con's of this addition? |
08:35:18 | FromGitter | <alehander42> @data-man thank you for the sighash advice, I can export all of the type info I need with it |
08:35:54 | FromGitter | <data-man> @alehander42: No problem :) |
08:36:54 | FromGitter | <data-man> @Varriount: ⏎ pro: code readability, uniform style, maybe speedup compilation ⏎ cons: bloat system.nim |
08:37:30 | * | couven92 joined #nim |
08:37:51 | * | couven92 quit (Client Quit) |
08:38:50 | Araq | it really doesn't speed up anything |
08:38:55 | * | couven92 joined #nim |
08:38:59 | Araq | and readability is subjective |
08:39:46 | FromGitter | <alehander42> it's useful to have standard types for such operations |
08:40:17 | FromGitter | <alehander42> and several aliases is hardly a bloat |
08:40:50 | Araq | system.nim is 4150 lines because of that attitude |
08:41:11 | Araq | there is always one more handy shortcut everybody should have available without an import |
08:41:26 | FromGitter | <data-man> Can we split on minimodules? |
08:42:15 | Araq | or stuff we need for "consistency" like doAssertRaises. |
08:45:27 | Araq | system.onFailedAssert # ugh, why is that in system? never used it once. |
08:48:26 | FromGitter | <wu-lee> I'd be grateful if anyone might answer my SO question here: https://stackoverflow.com/questions/49706654/given-a-generic-object-ref-can-i-discover-the-type-of-the-object-it-is-refere |
08:48:56 | FromGitter | <alehander42> ok, so would it make sense in a e.g. type aliases module |
08:50:20 | * | couven92 quit (Quit: Client disconnecting) |
08:53:07 | FromGitter | <mratsim> @data-man not sure I see where it would be useful |
08:54:22 | FromGitter | <data-man> If the stdlib will be adapted to type aliases, what difference what to import, system.nim or aliases.nim? |
08:55:15 | FromGitter | <mratsim> I think Nim needs some "Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. — Antoine de Saint Exupéry” |
08:55:23 | FromGitter | <alehander42> well the point is for all kinds of algorithms that get a predicate or operations, it's more clear to just have "BinaryPredicate[int]" etc instead of "proc(a: int, b: int): bool" |
08:56:11 | FromGitter | <mratsim> then can we keep only the unary and binary predicate? |
08:56:39 | FromGitter | <alehander42> well it's kinda similar with the `BinaryOperation[string, string, int]` |
08:58:44 | FromGitter | <mratsim> there is already an arity builtin in typetraits, I’d rather have a `type NaryProc[N: static[int]] = concept x` than having Unary, and Binary overloads |
08:59:29 | FromGitter | <mratsim> furthermore, most of the time I’d rather use a template than a procvar because it’s inlined. |
09:09:01 | FromGitter | <data-man> @Araq: Other question: what version of sqlite in dlls.zip? |
09:09:48 | * | arnetheduck_ quit (Quit: Leaving) |
09:10:38 | * | arnetheduck joined #nim |
09:12:34 | FromGitter | <mratsim> @data-man replied. After further think, I think it would be better to have `(T, U) -> R` be standard than `proc(p1: T, p2: U): R` or `HBinaryProc[T, U, R]` |
09:12:38 | Araq | 3.something iirc |
09:16:45 | FromGitter | <alehander42> btw Araq, adding function to export type info from the compiler (at least top level types from modules, maybe even locals if possible): yes/no? the first one seems easy even based on some sighashes hack |
09:17:35 | FromGitter | <data-man> @mratsim: Thanks! |
09:18:19 | FromGitter | <data-man> @Araq: I want update sqlite-wrapper for new versions. ⏎ For compatibility with old versions it is necessary to add ```when defined (SQLITE_SOMETHING)```? |
09:20:20 | FromGitter | <data-man> But to update dlls.zip will be better. :) |
09:22:44 | Araq | I don't know how compatible SQLite 4 is |
09:23:40 | FromGitter | <data-man> Development for SQLite 4 is stopped. |
09:23:56 | Araq | oh? why? |
09:24:37 | FromGitter | <data-man> I read about this. Just sec. :) |
09:26:11 | FromGitter | <data-man> > All development work on SQLite4 has ended. The experiment has concluded. |
09:26:24 | FromGitter | <data-man> https://sqlite.org/src4/info/c0b7f14c0976ed5e |
09:46:45 | * | yglukhov joined #nim |
09:47:18 | * | yglukhov quit (Read error: Connection reset by peer) |
09:47:53 | * | yglukhov joined #nim |
09:49:29 | FromGitter | <arnetheduck> Hey, I have a question about macros: is it ok to generate nodes that form a graph instead of a tree? The easiest way for this to happen is to add the same node to two parents.. @Araq? |
09:57:18 | * | leorize quit (Quit: WeeChat 2.1) |
09:58:28 | FromGitter | <k0pernicus> Thanks @mratsim for your comment :-) |
10:00:20 | Araq | arnetheduck: it's usually ok but there are dragons |
10:00:38 | FromGitter | <narimiran> @k0pernicus @mratsim speaking of idioms - is `0 ..< x.len` preferred over `0 .. x.high`? |
10:01:20 | FromGitter | <mratsim> yes, I rarely see x.high except if the array does not start at 0 |
10:01:36 | FromGitter | <mratsim> for example arrays indexed by enums or by chars uses x.high |
10:02:06 | FromGitter | <narimiran> i also use `len` because that is what i also use in python, but wasn't sure if `high` is maybe preferred.... |
10:02:14 | FromGitter | <mratsim> but in that case you use x.low .. x. high |
10:02:50 | FromGitter | <arnetheduck> Araq, yeah, lots of dragons I'd think :) it means that the AST is no longer an AST so you can't traverse it as you can a tree.. what I'm curious about is whether this is considered a feature, or simply undefined behavior |
10:03:56 | FromGitter | <mratsim> for a array\[‘0’..’F’, uint8\] like I use to model register in chirp-8 I would use x.low .. x.high or just for foo in bar. https://github.com/mratsim/chirp8/blob/master/src/datatypes.nim#L19 |
10:05:28 | FromGitter | <arnetheduck> I hit upon it because in nlvm I use the node id to cache stuff that's already been computed which works for all "ordinary" code, but the async macros reuse some nodes sometimes which breaks that assumption (in llvm this is tied to the liveness analysis of variables, in c it doesn't matter because it simply prints out the expression anew when it traverses the tree / said nodes again) |
10:10:20 | FromGitter | <data-man> @mratsim: I'm wrong, or before Arraymancer code contained a prefetching? |
10:12:26 | Araq | well cycles in the PNode structure are invalid |
10:12:45 | Araq | you can always traverse it as a tree, it's acyclic |
10:15:58 | FromGitter | <mratsim> @data-man Prefetching? are you talking about Cuda? |
10:16:12 | FromGitter | <data-man> __builtin_prefetch, I mean |
10:16:36 | FromGitter | <mratsim> no, it contains builtin_assume_aligned but it never had prefetching |
10:18:24 | FromGitter | <data-man> Hmm, so I saw it in another library. I'll be looking for. :) |
10:22:07 | FromGitter | <data-man> It's very useful https://gist.github.com/osimola/7917568 |
10:29:25 | * | dddddd joined #nim |
10:46:16 | FromGitter | <alehander42> Hey araq |
10:47:23 | FromGitter | <alehander42> So I can serialize typed ast of most functions during compilation |
10:47:49 | FromGitter | <alehander42> But I wonder where is the best place to plug that code in order to get the types before generics instantiation |
10:49:05 | FromGitter | <alehander42> (Get one version of f with T instead of several with the resolved concrete typw) |
10:53:33 | FromGitter | <mratsim> @data-man I’m not too sure when to use prefetch instead of just doing the computation and relying on the CPU scheduler |
10:54:05 | FromGitter | <mratsim> either tensors are contiguous and the compiler doesn’t need the instruction because it’s straightforward |
10:54:10 | FromGitter | <mratsim> or it’s not and :??? |
11:13:51 | FromGitter | <mratsim> Anyway, here you go, feel free to experiment: https://github.com/mratsim/Arraymancer/issues/216 in any case I’m pretty sure Skylake+ and Ryzen+ hardware prefetcher |
11:14:18 | FromGitter | <mratsim> are better than a software based one |
11:26:26 | FromGitter | <data-man> @mratsim: Oh! :) ⏎ Did you compile the code from gist? |
11:38:28 | FromGitter | <data-man> I experimented with prefetchRead and prefetchWrite templates (again in the system.nim :)) like unlikely/likely. ⏎ But something is wrong. :( |
11:39:25 | * | natrys joined #nim |
11:39:31 | * | leorize joined #nim |
11:43:22 | * | jaco60 quit (Quit: Textual IRC Client: www.textualapp.com) |
11:46:06 | * | couven92 joined #nim |
11:52:39 | * | jaco60 joined #nim |
12:01:45 | * | Arrrr joined #nim |
12:01:46 | * | Arrrr quit (Changing host) |
12:01:46 | * | Arrrr joined #nim |
12:07:44 | FromGitter | <mratsim> I didn’t yet, I’m deep into big integer arithmetic (for https://github.com/status-im/mpint) or Graph theory (for https://github.com/mratsim/golem-prime), that would be too much distraction :P |
12:12:59 | * | xet7 joined #nim |
12:18:10 | * | mostly-harmless quit (Ping timeout: 256 seconds) |
12:19:31 | * | mostly-harmless joined #nim |
12:19:32 | * | flyx quit (Quit: ZNC - http://znc.in) |
12:21:10 | FromGitter | <alehander42> What is golem prim |
12:21:26 | FromGitter | <alehander42> Why do you need * :D |
12:22:51 | FromGitter | <narimiran> "A Go bot written in Nim" (Go as in 'ancient game', not 'programming language') |
12:24:05 | FromGitter | <data-man> So, AGBWIN seems better. |
12:26:08 | FromGitter | <mratsim> Prime > Zero —> Golem Prime > AlphaGo Zero ;) |
12:27:21 | Arrrr | Are we talking about Metroid? |
12:33:04 | * | sendell joined #nim |
12:44:04 | * | xet7 quit (Ping timeout: 265 seconds) |
12:53:27 | FromGitter | <alehander42> ah it didnt open in mobile |
12:53:52 | FromGitter | <alehander42> I thought about writing a chess engine in Nim |
12:54:06 | FromGitter | <alehander42> as that would be the only way to beat one of my friends: my engine vs his |
12:54:20 | FromGitter | <alehander42> but then I saw somebody already did that |
12:56:36 | * | xet7 joined #nim |
12:59:10 | * | Vladar quit (Quit: Leaving) |
12:59:35 | FromGitter | <data-man> @alehander42: https://github.com/StefanSalewski/nim-chess4 :) |
13:00:45 | FromGitter | <alehander42> haha yeah |
13:00:49 | FromGitter | <alehander42> i'll play a game with it now |
13:01:02 | * | Lord_Nightmare2 joined #nim |
13:02:27 | * | flyx joined #nim |
13:04:34 | * | Lord_Nightmare quit (Ping timeout: 264 seconds) |
13:04:34 | * | Lord_Nightmare2 is now known as Lord_Nightmare |
13:06:05 | * | Vladar joined #nim |
13:14:43 | * | athenot joined #nim |
13:19:38 | FromGitter | <mratsim> I’m weak at chess :P |
13:20:25 | * | athenot_ joined #nim |
13:21:02 | * | athenot quit (Ping timeout: 245 seconds) |
13:31:23 | FromGitter | <alehander42> I am 1200 at chess :D :D |
13:31:40 | FromGitter | <alehander42> do people in go have similar ELO system |
13:37:35 | FromGitter | <data-man> I'm Grandmaster at Tic-tac-toe & Battleship :-D |
13:38:45 | FromGitter | <alehander42> :D i played a lot of 4 connect in school , wasn't the brightest kid |
13:39:11 | def- | alehander42: https://en.wikipedia.org/wiki/Go_ranks_and_ratings#Rating_systems |
13:39:50 | * | athenot_ quit (Quit: Textual IRC Client: www.textualapp.com) |
13:40:13 | FromGitter | <alehander42> 2600 (amateur) |
13:40:24 | FromGitter | <alehander42> oh man |
13:40:55 | FromGitter | <alehander42> but the best go players have >3600 |
13:41:51 | * | athenot joined #nim |
13:42:18 | FromGitter | <alehander42> but yeah the formula is different |
13:48:39 | * | Torro joined #nim |
13:56:23 | * | leorize quit (Quit: WeeChat 2.1) |
14:10:28 | * | miran joined #nim |
14:12:54 | * | leorize joined #nim |
14:17:04 | * | athenot quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
14:20:43 | * | endragor quit (Remote host closed the connection) |
14:27:27 | * | Arrrr quit (Ping timeout: 240 seconds) |
14:36:44 | * | endragor joined #nim |
14:36:46 | * | endragor quit (Remote host closed the connection) |
14:38:04 | * | endragor joined #nim |
14:46:34 | FromGitter | <mratsim> I’m about 2100 (dan level/black belt) at Go |
14:48:12 | * | jxy_ quit (Quit: leaving) |
14:48:26 | FromGitter | <mratsim> 3600? I don’t think so, maybe in the Alpha Go paper but that seems too ridiculous |
14:48:40 | * | smt` joined #nim |
14:49:00 | FromGitter | <mratsim> 2500 vs 2100 would mean that to balance the game the 2100 player can start with 4 moves in a row |
14:49:54 | * | nsf quit (Quit: WeeChat 2.0.1) |
14:51:42 | * | jxy joined #nim |
14:52:22 | * | smt quit (Ping timeout: 260 seconds) |
14:56:02 | * | athenot joined #nim |
14:58:26 | FromGitter | <alehander42> that's what I saw https://www.goratings.org/en/ |
14:58:28 | FromGitter | <alehander42> :D |
14:59:18 | FromGitter | <alehander42> I thought they use different constants |
15:00:00 | FromGitter | <alehander42> the move thing is very go-specific |
15:00:02 | FromGitter | <mratsim> Yeah it’s pro player specific to dilate small differences in strength (but that matter a lot at this level of play) |
15:00:52 | FromGitter | <alehander42> I wondered if I should start playing go, but I figured it would take me less time to become better at chess |
15:02:02 | FromGitter | <mratsim> as long as you don’t start programming in go anything is fine by me ;) |
15:04:39 | shashlick | data-man: just saw your comment on #7440, what's a compiler plugin? |
15:16:16 | FromGitter | <alehander42> @mratsim already been there, written a half-assed go-with-generics and different error handling toy tool, left :D |
15:17:33 | * | leorize quit (Quit: WeeChat 2.1) |
15:17:34 | * | Arrrr joined #nim |
15:17:35 | * | Arrrr quit (Changing host) |
15:17:35 | * | Arrrr joined #nim |
15:26:07 | * | endragor quit (Remote host closed the connection) |
15:37:23 | * | floppydh quit (Quit: WeeChat 2.1) |
15:42:09 | * | Trustable joined #nim |
15:44:40 | * | aguspiza joined #nim |
15:56:36 | * | xkapastel joined #nim |
16:01:51 | FromGitter | <alehander42> wow angular's ngIf is baaaad |
16:01:57 | FromGitter | <alehander42> `*ngIf="isValid;else other_content">` |
16:02:00 | FromGitter | <alehander42> are you kidding me |
16:02:25 | FromGitter | <alehander42> 1:0 karax |
16:04:48 | FromGitter | <data-man> @shashlick: The compiler supports a plugins. See compiler/plugins dir. |
16:05:44 | * | couven92 quit (Quit: Client disconnecting) |
16:06:32 | shashlick | @data-man does it need to be compiled into the compiler? |
16:06:37 | Yardanico | shashlick, yes AFAIK |
16:06:57 | Yardanico | @data-man: for future: you don't need to use "a" with plurals :) |
16:07:48 | shashlick | ya that doesn't help cause I'm working on a nimble package |
16:08:02 | shashlick | if it requires a plugin, it's the same as adding a feature into the VM |
16:10:13 | FromGitter | <data-man> @Yardanico: Thanks! I'll remember that, if I don't forget to take a pills for memory improvement. |
16:11:02 | FromGitter | <alehander42> taking pills to remember to take pills to forget ! |
16:11:11 | FromGitter | <alehander42> (sorry, just reminded me of a fav song :D ) |
16:11:53 | * | SenasOzys joined #nim |
16:13:04 | FromGitter | <data-man> @alehander42: I don't know this song. :( |
16:13:47 | FromGitter | <alehander42> it's very obscure :D |
16:15:50 | FromGitter | <data-man> Placebo? |
16:17:09 | FromGitter | <alehander42> I think this one https://www.youtube.com/watch?v=q34pNSOvav8 |
16:17:16 | FromGitter | <alehander42> but yeah placebo also have this song :D |
16:17:20 | FromGitter | <alehander42> song with this name * |
16:22:55 | Yardanico | https://github.com/Araq/nox hmmm :) |
16:30:14 | * | sendell quit (Remote host closed the connection) |
16:31:06 | * | nsf joined #nim |
16:36:02 | FromGitter | <data-man> Isn't "hmmm", but an intrigue. Today I won't sleep! |
16:39:05 | Yardanico | @data-man: "Nox is about language design experiments that Nim eventually might benefit from. It will be a radical (?) new way to write production quality compi…" |
16:42:10 | FromGitter | <data-man> @Yardanico: Oh! Do you think I need other pills? :-D |
16:42:21 | miran | nox is about postponing nim v1.0 for coulpe of months even further :D :P |
16:46:39 | * | rokups quit (Quit: Connection closed for inactivity) |
17:05:30 | dom96 | what |
17:05:43 | dom96 | Yardanico: did you get that via PM? |
17:14:41 | Yardanico | dom96, https://i.imgur.com/YC3qv6z.png |
17:15:45 | Yardanico | I'm not a stalker, just randomly saw that :) |
17:17:55 | FromGitter | <data-man> @Yardanico: How many images you have already saved? :-D |
17:18:03 | * | Torro quit (Read error: Connection reset by peer) |
17:18:16 | Yardanico | @data-man I don't really use imgur frequently, it's just easy to upload there :) |
17:28:00 | FromGitter | <data-man> https://github.com/Microsoft/winfile A lot of useful info. :) |
17:34:08 | * | Torro joined #nim |
17:48:34 | * | Arrrr quit (Quit: Leaving.) |
17:51:42 | * | rauss quit (Quit: WeeChat 2.1) |
17:52:32 | * | rauss joined #nim |
17:56:59 | * | jaco60 quit (Ping timeout: 255 seconds) |
18:06:32 | * | NoOp joined #nim |
18:06:41 | Araq | stalkers |
18:06:43 | Araq | :P |
18:07:19 | Araq | do you prefer I push more random stuff into nim.git instead? |
18:07:51 | NoOp | Hi Araq, is there a Trello Roadmap or something similar for Nim? |
18:08:05 | Araq | the issue tracker contains all our plans |
18:08:08 | NoOp | Hi Araq, is there a Trello Roadmap or something similar for Nim, where I can stay tuned for furute events to come up in the next coming versions |
18:08:27 | NoOp | Araq, thank you very much :D will check them out |
18:08:39 | Araq | the bugs "high priority" and "showstopper" and "next release" determine the v1 progress |
18:08:52 | NoOp | awesome |
18:09:00 | Araq | I removed todo.txt and the roadmap, it's all in the issue tracker now |
18:09:09 | Araq | for better or worse. :-) |
18:09:28 | NoOp | Haha gotcha :D |
18:23:46 | * | yglukhov quit (Remote host closed the connection) |
18:24:21 | * | yglukhov joined #nim |
18:28:27 | * | yglukhov quit (Ping timeout: 240 seconds) |
18:29:27 | * | noonien quit (Quit: Connection closed for inactivity) |
18:39:26 | * | nsf quit (Quit: WeeChat 2.0.1) |
18:43:28 | FromGitter | <alehander42> haha I also saw nox @Araq and I was curious :D |
18:45:11 | FromGitter | <alehander42> my area42 project wants to be soooomething like that (system for prototyping / experimenting with language features) but without the production quality part :D (instead with maximally declarative / easily swappable components, e.g. gc-s, type systems, generators etc) |
18:45:36 | * | Mat4 joined #nim |
18:46:51 | * | Mat4 quit (Client Quit) |
18:47:28 | FromGitter | <alehander42> but the maximally declarative part might be a pipe dream (I feel I have to reimplement something like prolog for my type system "definitions") |
18:47:45 | FromGitter | <alehander42> I'll stalk the nox repo too from now |
18:58:32 | * | yglukhov joined #nim |
19:29:14 | * | nixfreak joined #nim |
19:29:51 | nixfreak | Hello just checking out nim and I am using nim-mode and nimsuggests on emacs and received this compile error nim c -r --verbosity\:0 --hint\[Processing\]\:off --excessiveStackTrace\:on /Users/aaronm/.env/nim/if_statement.nim |
19:29:52 | nixfreak | if_statement.nim(3, 13) Error: ':' or '=' expected, but found '' |
19:41:27 | * | Trustable quit (Ping timeout: 245 seconds) |
19:43:52 | FromGitter | <dom96> This looks promising https://github.com/yue/yue |
19:44:19 | FromGitter | <dom96> We should wrap it :) |
19:44:57 | * | Torro quit (Ping timeout: 240 seconds) |
19:46:01 | * | xkapastel quit (Quit: Connection closed for inactivity) |
19:46:58 | * | skelett2 quit (Read error: Connection reset by peer) |
19:47:25 | * | skelett2 joined #nim |
19:51:44 | * | Trustable joined #nim |
20:03:36 | * | max3 joined #nim |
20:03:49 | * | Trustable quit (Remote host closed the connection) |
20:08:11 | * | ativol joined #nim |
20:18:22 | ativol | https://dpaste.de/KgGk -- what am I doing incorrectly with using nested procs in an async proc? I get compile error messages (see snippet linked) I don't understand. Why is it trying to return both the inner and outer types in one tuple? |
20:18:49 | * | Vladar quit (Quit: Leaving) |
20:19:22 | ativol | Searching IRC logs of this channel for similar issues, someone a few months ago asked about https://glot.io/snippets/eps2actig8 which for me has the ame issue and the same basic structure (though their inner proc is also async; it doesn't seem to affect the outcome much). |
20:25:36 | * | miran quit (Quit: Konversation terminated!) |
20:31:45 | * | nsf joined #nim |
20:32:48 | FromGitter | <dom96> Seems it's a bug. Report it on github, and don't nest in async procs for now. |
20:42:00 | ativol | Okay, will do (both). |
20:51:08 | * | yglukhov quit (Remote host closed the connection) |
20:53:04 | FromGitter | <mratsim> 6 watchers already: |
20:53:12 | FromGitter | <mratsim> (https://files.gitter.im/nim-lang/Nim/n8Xo/2018-04-09_22-52-51.png) |
20:56:14 | FromGitter | <zetashift> dom86, and probably @zacharycarter maybe chime on this: https://www.gamedev.net/forums/topic/696254-nim-or-rust/? |
21:09:20 | nixfreak | anyone use emacs nim-mode and nimsuggests with company-mode ? |
21:17:16 | * | nsf quit (Quit: WeeChat 2.0.1) |
21:18:51 | FromGitter | <mratsim> @zetashift Can’t get the actual post: We could not locate the item you are trying to view. |
21:22:25 | * | xkapastel joined #nim |
21:28:18 | NoOp | how I could reverse a string like in python `string[::-1]` ? |
21:29:19 | FromGitter | <mratsim> import algorithm —> reversed |
21:29:55 | NoOp | legit |
21:30:03 | NoOp | was taking a look a this https://en.wikipedia.org/wiki/Nim_%28programming_language%29#Reversing_a_string |
21:32:55 | FromGitter | <zetashift> guess it got removed |
21:38:38 | NoOp | the `[::-1]` way of reversing strings? |
21:38:56 | NoOp | well, reversed is a more convenient approach if you tell me :D |
21:42:02 | Araq | one of these homework tasks. I never had to reverse a string in my life. |
21:44:17 | FromGitter | <mratsim> Let’s not stop the RFCs train: https://github.com/nim-lang/Nim/issues/7551 |
21:44:27 | NoOp | Thehehe |
21:45:16 | FromGitter | <mratsim> @Araq: Maybe it’s because of endianness :D |
21:46:25 | Araq | mitems is not the same as 'msort' |
21:46:33 | Araq | this RFC makes no sense. |
21:46:47 | Araq | 'm' prefix is to allow a mutable view into something. |
21:47:02 | Araq | sort() is not a mutable view, it mutates. |
21:47:48 | Araq | also some things are naturally mutating operations (pop comes to mind) |
21:47:59 | FromGitter | <mratsim> I wasn’t aware of this mutable view convention, and neither was dom in September |
21:48:04 | FromGitter | <mratsim> yes of course |
21:48:15 | FromGitter | <mratsim> I’m only talking about proc that have a mutating and non mutating version |
21:49:04 | FromGitter | <mratsim> added a disclaimer |
21:49:26 | * | yglukhov joined #nim |
21:49:52 | Araq | well now you know |
21:50:02 | nixfreak | is it possible to run nim via commandline like a 1liner ? |
21:50:22 | FromGitter | <mratsim> nim -e yournimscript.nims |
21:50:28 | nixfreak | thanks |
21:50:39 | FromGitter | <mratsim> or nim c -r yournimfile.nim |
21:51:35 | FromGitter | <mratsim> NimScript is more like a bash/powershell scripting subset of Nim (moving files, renaming …) |
21:52:07 | ativol | Because of odd inconsistencies in shbang line handling, I ended up just making a little helper script: "nim c "-o:$(mktemp)" --verbosity:0 --hints:off --run "$@"" |
21:52:09 | nixfreak | hmm |
21:52:48 | ativol | (Multiple argument handling especially regarding how to turn off some of the messages which made it rather less shell-script-like to run.) |
22:04:06 | * | natrys quit (Quit: natrys) |
22:08:07 | * | nixfreak quit (Ping timeout: 260 seconds) |
22:29:41 | * | yglukhov quit (Read error: Connection reset by peer) |
22:29:46 | * | aguspiza quit (Ping timeout: 245 seconds) |
22:30:16 | * | yglukhov joined #nim |
22:51:37 | FromGitter | <zetashift> @mratsim https://www.gamedev.net/forums/topic/696259-nim-or-rust/ it should work now |
22:53:07 | * | sz0 joined #nim |
22:53:29 | FromGitter | <mratsim> And I raised the issue 1300! |
22:54:54 | FromGitter | <mratsim> yes I can reach it @zetashift |
22:58:58 | FromGitter | <Varriount> @mratsim I want to like NimScript... but the ospaths/os shenanigans are annoying |
23:00:36 | FromGitter | <Varriount> @mratsim I like your proposal. I didn't like the 'm' prefix initially, but it has grown on me. |
23:01:45 | FromGitter | <Varriount> Problems with the "-ed" prefix: it doesn't work everywhere, and it's still somewhat ambiguous ("Hm, does the -ed version mutate in-place, or do a copy?") |
23:04:01 | FromGitter | <Varriount> Araq: What about another prefix, like "i" or "ip" (for in-place)? |
23:04:51 | Araq | what about not fixing what is not broken? |
23:05:14 | Araq | the -ed versions never mutate in place btw. |
23:05:33 | Araq | if it returns void, it mutates, otherwise it doesn't |
23:05:52 | * | Sentreen quit (Ping timeout: 260 seconds) |
23:07:21 | FromGitter | <Varriount> Without return-type overloading, that distinction doesn't help much. |
23:09:04 | FromGitter | <Varriount> `strutils.replace(stringVar, target, replacement) # Hm, what would an in-place version of this be named?` |
23:15:40 | Araq | now you're shifting the question |
23:16:13 | Araq | strutils.doReplace |
23:16:17 | Araq | good night. |
23:16:22 | FromGitter | <Varriount> My question is, "What naming convention do we use for procedures that modify structures in-place"? |
23:18:53 | * | Sentreen joined #nim |
23:30:24 | FromGitter | <mratsim> “* if it also has a non-mutating version" |
23:31:12 | FromGitter | <mratsim> pop is always mutating. |
23:31:52 | * | xkapastel quit (Quit: Connection closed for inactivity) |
23:32:14 | ativol | Linked from https://nim-lang.org/docs/lib.html are https://nim-lang.org/docs/basic3d.html and https://nim-lang.org/docs/basic2d.html which both 404? |
23:33:30 | * | yglukhov quit (Remote host closed the connection) |