<< 09-04-2018 >>

00:04:25FromGitter<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:42FromGitter<gogolxdong> GET
00:37:53*leorize quit (Quit: WeeChat 2.1)
01:39:04TangerHey folks! Anybody scraped gmail in nim before? Or know of a library that has?
01:43:48FromGitter<gogolxdong> @Varriount Thanks to your inspiration, we can get our instance data ,but in xml, how to make it reply json?
01:44:53FromGitter<gogolxdong> I believe gmail provides APIs in Google Cloud. @Tanger
01:54:53Tangergogolxdong: Thanks! Will look into that
02:01:53FromGitter<Varriount> @gogolxdong The response format is API specific. Some APIs respond only in XML
02:02:10FromGitter<Varriount> Some in JSON
02:02:30FromGitter<Varriount> Speaking on which, what serialization options are there with regards to Nim and XML?
02:02:39FromGitter<gogolxdong> we used aws-python-sdk to get the json reponse
02:06:34FromGitter<Varriount> @gogolxdong You mean botocore?
02:06:51FromGitter<gogolxdong> yes ,boto3
02:07:07FromGitter<Varriount> That normalizes the API response to a python datastructure.
02:07:40FromGitter<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:43FromGitter<gogolxdong> yes, not quite sure.but not familiar with dealing xml is sure.
02:12:02FromGitter<gogolxdong> As far as I know, there isn't json or xml serialization library,we get used to access JsonNode directly.
02:12:25FromGitter<Varriount> There's https://nim-lang.org/docs/xmlparser.html#parseXml,Stream,string,seq[string]
02:12:35FromGitter<Varriount> and https://nim-lang.org/docs/xmltree.html
02:13:12FromGitter<Varriount> Hm, writing something that can deserialize those responses into sensible data structures will be tricky..
02:14:44FromGitter<gogolxdong> mostly uses recursion.
02:16:09FromGitter<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:46FromGitter<gogolxdong> JsonNode and XmlNode corresponding to the struct type of Go.
02:26:11FromGitter<gogolxdong> I prefer the way in Nim ,then we get the data as required instead of keeping variouse explict structs.
03:05:24FromGitter<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:53FromGitter<gogolxdong> yes ,use .innerText()
03:38:26*smt quit (Read error: Connection reset by peer)
03:39:03*smt joined #nim
04:14:04FromGitter<gogolxdong> How to transform the string literals to string literals?
04:15:43FromGitter<gogolxdong> like ```
04:16:15FromGitter<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:02FromGitter<gogolxdong> or ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5acaed3a92f5d62057aa2bef]
05:43:39FromGitter<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:40FromGitter<Varriount> @gogolxdong I'm trying to make deserializer based off of the XML streamingmodule.
06:18:43*leorize joined #nim
06:24:10FromGitter<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:23FromGitter<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:20FromGitter<Varriount> @gogolxdong Hopefully the JSON APIs will be better.
07:43:51FromGitter<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:47FromGitter<Varriount> @gogolxdong I assume the createAwsAuthorization function is working correctly?
08:12:00FromGitter<gogolxdong> yes.
08:12:52FromGitter<gogolxdong> thanks to you, we have been stuck for couple of months.
08:13:02FromGitter<mratsim> @Varriount yes I know some places in arraymancer where I force convert to sequences
08:13:32FromGitter<gogolxdong> still don't know where is the key.
08:13:42FromGitter<Varriount> Key?
08:13:52*suvendu joined #nim
08:14:29FromGitter<gogolxdong> the thing matters.
08:14:56FromGitter<Varriount> I still don't understand.
08:17:24FromGitter<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:44FromGitter<Varriount> Hm, I should probably implement that capability next then.
08:22:55FromGitter<gogolxdong> except the name , our urlencoded payload takes the place of query string when assembling https url.
08:24:42FromGitter<data-man> @mratsim: Support me, please: #7549 :)
08:29:16FromGitter<Varriount> @data-man I'm +0.5 on it. What would be the pro's and con's of this addition?
08:35:18FromGitter<alehander42> @data-man thank you for the sighash advice, I can export all of the type info I need with it
08:35:54FromGitter<data-man> @alehander42: No problem :)
08:36:54FromGitter<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:50Araqit really doesn't speed up anything
08:38:55*couven92 joined #nim
08:38:59Araqand readability is subjective
08:39:46FromGitter<alehander42> it's useful to have standard types for such operations
08:40:17FromGitter<alehander42> and several aliases is hardly a bloat
08:40:50Araqsystem.nim is 4150 lines because of that attitude
08:41:11Araqthere is always one more handy shortcut everybody should have available without an import
08:41:26FromGitter<data-man> Can we split on minimodules?
08:42:15Araqor stuff we need for "consistency" like doAssertRaises.
08:45:27Araqsystem.onFailedAssert # ugh, why is that in system? never used it once.
08:48:26FromGitter<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:56FromGitter<alehander42> ok, so would it make sense in a e.g. type aliases module
08:50:20*couven92 quit (Quit: Client disconnecting)
08:53:07FromGitter<mratsim> @data-man not sure I see where it would be useful
08:54:22FromGitter<data-man> If the stdlib will be adapted to type aliases, what difference what to import, system.nim or aliases.nim?
08:55:15FromGitter<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:23FromGitter<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:11FromGitter<mratsim> then can we keep only the unary and binary predicate?
08:56:39FromGitter<alehander42> well it's kinda similar with the `BinaryOperation[string, string, int]`
08:58:44FromGitter<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:29FromGitter<mratsim> furthermore, most of the time I’d rather use a template than a procvar because it’s inlined.
09:09:01FromGitter<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:34FromGitter<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:38Araq3.something iirc
09:16:45FromGitter<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:35FromGitter<data-man> @mratsim: Thanks!
09:18:19FromGitter<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:20FromGitter<data-man> But to update dlls.zip will be better. :)
09:22:44AraqI don't know how compatible SQLite 4 is
09:23:40FromGitter<data-man> Development for SQLite 4 is stopped.
09:23:56Araqoh? why?
09:24:37FromGitter<data-man> I read about this. Just sec. :)
09:26:11FromGitter<data-man> > All development work on SQLite4 has ended. The experiment has concluded.
09:26:24FromGitter<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:29FromGitter<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:28FromGitter<k0pernicus> Thanks @mratsim for your comment :-)
10:00:20Araqarnetheduck: it's usually ok but there are dragons
10:00:38FromGitter<narimiran> @k0pernicus @mratsim speaking of idioms - is `0 ..< x.len` preferred over `0 .. x.high`?
10:01:20FromGitter<mratsim> yes, I rarely see x.high except if the array does not start at 0
10:01:36FromGitter<mratsim> for example arrays indexed by enums or by chars uses x.high
10:02:06FromGitter<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:14FromGitter<mratsim> but in that case you use x.low .. x. high
10:02:50FromGitter<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:56FromGitter<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:28FromGitter<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:20FromGitter<data-man> @mratsim: I'm wrong, or before Arraymancer code contained a prefetching?
10:12:26Araqwell cycles in the PNode structure are invalid
10:12:45Araqyou can always traverse it as a tree, it's acyclic
10:15:58FromGitter<mratsim> @data-man Prefetching? are you talking about Cuda?
10:16:12FromGitter<data-man> __builtin_prefetch, I mean
10:16:36FromGitter<mratsim> no, it contains builtin_assume_aligned but it never had prefetching
10:18:24FromGitter<data-man> Hmm, so I saw it in another library. I'll be looking for. :)
10:22:07FromGitter<data-man> It's very useful https://gist.github.com/osimola/7917568
10:29:25*dddddd joined #nim
10:46:16FromGitter<alehander42> Hey araq
10:47:23FromGitter<alehander42> So I can serialize typed ast of most functions during compilation
10:47:49FromGitter<alehander42> But I wonder where is the best place to plug that code in order to get the types before generics instantiation
10:49:05FromGitter<alehander42> (Get one version of f with T instead of several with the resolved concrete typw)
10:53:33FromGitter<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:05FromGitter<mratsim> either tensors are contiguous and the compiler doesn’t need the instruction because it’s straightforward
10:54:10FromGitter<mratsim> or it’s not and :???
11:13:51FromGitter<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:18FromGitter<mratsim> are better than a software based one
11:26:26FromGitter<data-man> @mratsim: Oh! :) ⏎ Did you compile the code from gist?
11:38:28FromGitter<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:44FromGitter<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:10FromGitter<alehander42> What is golem prim
12:21:26FromGitter<alehander42> Why do you need * :D
12:22:51FromGitter<narimiran> "A Go bot written in Nim" (Go as in 'ancient game', not 'programming language')
12:24:05FromGitter<data-man> So, AGBWIN seems better.
12:26:08FromGitter<mratsim> Prime > Zero —> Golem Prime > AlphaGo Zero ;)
12:27:21ArrrrAre we talking about Metroid?
12:33:04*sendell joined #nim
12:44:04*xet7 quit (Ping timeout: 265 seconds)
12:53:27FromGitter<alehander42> ah it didnt open in mobile
12:53:52FromGitter<alehander42> I thought about writing a chess engine in Nim
12:54:06FromGitter<alehander42> as that would be the only way to beat one of my friends: my engine vs his
12:54:20FromGitter<alehander42> but then I saw somebody already did that
12:56:36*xet7 joined #nim
12:59:10*Vladar quit (Quit: Leaving)
12:59:35FromGitter<data-man> @alehander42: https://github.com/StefanSalewski/nim-chess4 :)
13:00:45FromGitter<alehander42> haha yeah
13:00:49FromGitter<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:38FromGitter<mratsim> I’m weak at chess :P
13:20:25*athenot_ joined #nim
13:21:02*athenot quit (Ping timeout: 245 seconds)
13:31:23FromGitter<alehander42> I am 1200 at chess :D :D
13:31:40FromGitter<alehander42> do people in go have similar ELO system
13:37:35FromGitter<data-man> I'm Grandmaster at Tic-tac-toe & Battleship :-D
13:38:45FromGitter<alehander42> :D i played a lot of 4 connect in school , wasn't the brightest kid
13:39:11def-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:13FromGitter<alehander42> 2600 (amateur)
13:40:24FromGitter<alehander42> oh man
13:40:55FromGitter<alehander42> but the best go players have >3600
13:41:51*athenot joined #nim
13:42:18FromGitter<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:34FromGitter<mratsim> I’m about 2100 (dan level/black belt) at Go
14:48:12*jxy_ quit (Quit: leaving)
14:48:26FromGitter<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:00FromGitter<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:26FromGitter<alehander42> that's what I saw https://www.goratings.org/en/
14:58:28FromGitter<alehander42> :D
14:59:18FromGitter<alehander42> I thought they use different constants
15:00:00FromGitter<alehander42> the move thing is very go-specific
15:00:02FromGitter<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:52FromGitter<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:02FromGitter<mratsim> as long as you don’t start programming in go anything is fine by me ;)
15:04:39shashlickdata-man: just saw your comment on #7440, what's a compiler plugin?
15:16:16FromGitter<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:51FromGitter<alehander42> wow angular's ngIf is baaaad
16:01:57FromGitter<alehander42> `*ngIf="isValid;else other_content">`
16:02:00FromGitter<alehander42> are you kidding me
16:02:25FromGitter<alehander42> 1:0 karax
16:04:48FromGitter<data-man> @shashlick: The compiler supports a plugins. See compiler/plugins dir.
16:05:44*couven92 quit (Quit: Client disconnecting)
16:06:32shashlick@data-man does it need to be compiled into the compiler?
16:06:37Yardanicoshashlick, yes AFAIK
16:06:57Yardanico@data-man: for future: you don't need to use "a" with plurals :)
16:07:48shashlickya that doesn't help cause I'm working on a nimble package
16:08:02shashlickif it requires a plugin, it's the same as adding a feature into the VM
16:10:13FromGitter<data-man> @Yardanico: Thanks! I'll remember that, if I don't forget to take a pills for memory improvement.
16:11:02FromGitter<alehander42> taking pills to remember to take pills to forget !
16:11:11FromGitter<alehander42> (sorry, just reminded me of a fav song :D )
16:11:53*SenasOzys joined #nim
16:13:04FromGitter<data-man> @alehander42: I don't know this song. :(
16:13:47FromGitter<alehander42> it's very obscure :D
16:15:50FromGitter<data-man> Placebo?
16:17:09FromGitter<alehander42> I think this one https://www.youtube.com/watch?v=q34pNSOvav8
16:17:16FromGitter<alehander42> but yeah placebo also have this song :D
16:17:20FromGitter<alehander42> song with this name *
16:22:55Yardanicohttps://github.com/Araq/nox hmmm :)
16:30:14*sendell quit (Remote host closed the connection)
16:31:06*nsf joined #nim
16:36:02FromGitter<data-man> Isn't "hmmm", but an intrigue. Today I won't sleep!
16:39:05Yardanico@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:10FromGitter<data-man> @Yardanico: Oh! Do you think I need other pills? :-D
16:42:21mirannox 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:30dom96what
17:05:43dom96Yardanico: did you get that via PM?
17:14:41Yardanicodom96, https://i.imgur.com/YC3qv6z.png
17:15:45YardanicoI'm not a stalker, just randomly saw that :)
17:17:55FromGitter<data-man> @Yardanico: How many images you have already saved? :-D
17:18:03*Torro quit (Read error: Connection reset by peer)
17:18:16Yardanico@data-man I don't really use imgur frequently, it's just easy to upload there :)
17:28:00FromGitter<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:41Araqstalkers
18:06:43Araq:P
18:07:19Araqdo you prefer I push more random stuff into nim.git instead?
18:07:51NoOpHi Araq, is there a Trello Roadmap or something similar for Nim?
18:08:05Araqthe issue tracker contains all our plans
18:08:08NoOpHi 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:27NoOpAraq, thank you very much :D will check them out
18:08:39Araqthe bugs "high priority" and "showstopper" and "next release" determine the v1 progress
18:08:52NoOpawesome
18:09:00AraqI removed todo.txt and the roadmap, it's all in the issue tracker now
18:09:09Araqfor better or worse. :-)
18:09:28NoOpHaha 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:28FromGitter<alehander42> haha I also saw nox @Araq and I was curious :D
18:45:11FromGitter<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:28FromGitter<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:45FromGitter<alehander42> I'll stalk the nox repo too from now
18:58:32*yglukhov joined #nim
19:29:14*nixfreak joined #nim
19:29:51nixfreakHello 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:52nixfreakif_statement.nim(3, 13) Error: ':' or '=' expected, but found ''
19:41:27*Trustable quit (Ping timeout: 245 seconds)
19:43:52FromGitter<dom96> This looks promising https://github.com/yue/yue
19:44:19FromGitter<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:22ativolhttps://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:22ativolSearching 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:48FromGitter<dom96> Seems it's a bug. Report it on github, and don't nest in async procs for now.
20:42:00ativolOkay, will do (both).
20:51:08*yglukhov quit (Remote host closed the connection)
20:53:04FromGitter<mratsim> 6 watchers already:
20:53:12FromGitter<mratsim> (https://files.gitter.im/nim-lang/Nim/n8Xo/2018-04-09_22-52-51.png)
20:56:14FromGitter<zetashift> dom86, and probably @zacharycarter maybe chime on this: https://www.gamedev.net/forums/topic/696254-nim-or-rust/?
21:09:20nixfreakanyone use emacs nim-mode and nimsuggests with company-mode ?
21:17:16*nsf quit (Quit: WeeChat 2.0.1)
21:18:51FromGitter<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:18NoOphow I could reverse a string like in python `string[::-1]` ?
21:29:19FromGitter<mratsim> import algorithm —> reversed
21:29:55NoOplegit
21:30:03NoOpwas taking a look a this https://en.wikipedia.org/wiki/Nim_%28programming_language%29#Reversing_a_string
21:32:55FromGitter<zetashift> guess it got removed
21:38:38NoOpthe `[::-1]` way of reversing strings?
21:38:56NoOpwell, reversed is a more convenient approach if you tell me :D
21:42:02Araqone of these homework tasks. I never had to reverse a string in my life.
21:44:17FromGitter<mratsim> Let’s not stop the RFCs train: https://github.com/nim-lang/Nim/issues/7551
21:44:27NoOpThehehe
21:45:16FromGitter<mratsim> @Araq: Maybe it’s because of endianness :D
21:46:25Araqmitems is not the same as 'msort'
21:46:33Araqthis RFC makes no sense.
21:46:47Araq'm' prefix is to allow a mutable view into something.
21:47:02Araqsort() is not a mutable view, it mutates.
21:47:48Araqalso some things are naturally mutating operations (pop comes to mind)
21:47:59FromGitter<mratsim> I wasn’t aware of this mutable view convention, and neither was dom in September
21:48:04FromGitter<mratsim> yes of course
21:48:15FromGitter<mratsim> I’m only talking about proc that have a mutating and non mutating version
21:49:04FromGitter<mratsim> added a disclaimer
21:49:26*yglukhov joined #nim
21:49:52Araqwell now you know
21:50:02nixfreakis it possible to run nim via commandline like a 1liner ?
21:50:22FromGitter<mratsim> nim -e yournimscript.nims
21:50:28nixfreakthanks
21:50:39FromGitter<mratsim> or nim c -r yournimfile.nim
21:51:35FromGitter<mratsim> NimScript is more like a bash/powershell scripting subset of Nim (moving files, renaming …)
21:52:07ativolBecause 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:09nixfreakhmm
21:52:48ativol(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:37FromGitter<zetashift> @mratsim https://www.gamedev.net/forums/topic/696259-nim-or-rust/ it should work now
22:53:07*sz0 joined #nim
22:53:29FromGitter<mratsim> And I raised the issue 1300!
22:54:54FromGitter<mratsim> yes I can reach it @zetashift
22:58:58FromGitter<Varriount> @mratsim I want to like NimScript... but the ospaths/os shenanigans are annoying
23:00:36FromGitter<Varriount> @mratsim I like your proposal. I didn't like the 'm' prefix initially, but it has grown on me.
23:01:45FromGitter<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:01FromGitter<Varriount> Araq: What about another prefix, like "i" or "ip" (for in-place)?
23:04:51Araqwhat about not fixing what is not broken?
23:05:14Araqthe -ed versions never mutate in place btw.
23:05:33Araqif it returns void, it mutates, otherwise it doesn't
23:05:52*Sentreen quit (Ping timeout: 260 seconds)
23:07:21FromGitter<Varriount> Without return-type overloading, that distinction doesn't help much.
23:09:04FromGitter<Varriount> `strutils.replace(stringVar, target, replacement) # Hm, what would an in-place version of this be named?`
23:15:40Araqnow you're shifting the question
23:16:13Araqstrutils.doReplace
23:16:17Araqgood night.
23:16:22FromGitter<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:24FromGitter<mratsim> “* if it also has a non-mutating version"
23:31:12FromGitter<mratsim> pop is always mutating.
23:31:52*xkapastel quit (Quit: Connection closed for inactivity)
23:32:14ativolLinked 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)