<< 14-08-2017 >>

00:00:37*PMunch quit (Quit: leaving)
00:01:22FromGitter<zacharycarter> if you say so
00:01:30FromGitter<zacharycarter> nuklear is also dependency free
00:01:33FromGitter<zacharycarter> single C header file
00:01:44FromGitter<zacharycarter> https://www.youtube.com/watch?v=rlg00tvrfAY&feature=youtu.be
00:01:47FromGitter<zacharycarter> @Araq
00:02:10FromGitter<zacharycarter> ugh what is up with these potato quality videos
00:05:05*Jesin joined #nim
00:06:03*def-pri-pub joined #nim
00:10:58*Kingsquee joined #nim
00:17:56*skrylar joined #nim
00:18:35*skrylar quit (Client Quit)
00:28:55*dddddd quit (Quit: Hasta otra..)
00:29:35*def-pri-pub quit (Quit: leaving)
00:29:37*Jesin quit (Quit: Leaving)
00:39:52*smt quit (Ping timeout: 255 seconds)
00:40:55*smt_ quit (Ping timeout: 276 seconds)
00:44:17*sz0 quit (Quit: Connection closed for inactivity)
00:51:03*yglukhov joined #nim
00:55:17*yglukhov quit (Ping timeout: 246 seconds)
01:24:22*chemist69 quit (Ping timeout: 246 seconds)
01:26:26*Jesin joined #nim
01:36:52*chemist69 joined #nim
02:17:51FromGitter<jacob88888> I can't find this online: how do you deal with circular object type references (in type definition)?: ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ Is there forward declarations for object types, or some other method? Thanks [https://gitter.im/nim-lang/Nim?at=5991084fbc464729747e1678]
02:21:04FromGitter<jacob88888> Also an issue with only one type section (illegal recursion in type 'objA')
02:34:58*Jesin quit (Quit: Leaving)
02:36:55*Jesin joined #nim
02:52:57*yglukhov joined #nim
02:57:31*yglukhov quit (Ping timeout: 255 seconds)
03:06:14*couven92 quit (Quit: Client Disconnecting)
03:10:36*skrylar joined #nim
03:36:14*Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif)
03:36:44*endragor joined #nim
03:47:33subsetparkzacharycarter is your username zax?
04:05:08*pilne quit (Quit: Quitting!)
04:28:33*kalexm joined #nim
04:30:52*kalexm quit (Read error: Connection reset by peer)
04:31:06*kalexm joined #nim
04:35:10*kalexm quit (Ping timeout: 240 seconds)
04:40:20*Jesin quit (Ping timeout: 246 seconds)
04:40:50*Jesin joined #nim
04:51:07*Jesin quit (Ping timeout: 260 seconds)
04:51:30*Jesin joined #nim
04:54:43*yglukhov joined #nim
04:58:57*yglukhov quit (Ping timeout: 240 seconds)
05:36:51*dankrad quit (Ping timeout: 255 seconds)
05:36:59*skrylar quit (Remote host closed the connection)
05:42:35*BitPuffin|osx quit (Ping timeout: 240 seconds)
05:43:29*Jesin quit (Ping timeout: 248 seconds)
06:07:03*yglukhov joined #nim
06:11:30*yglukhov quit (Ping timeout: 255 seconds)
06:30:50*rauss quit (Quit: WeeChat 1.9)
06:32:00FromGitter<zacharycarter> negative
06:32:37*ShalokShalom_ joined #nim
06:35:04FromGitter<zacharycarter> I'm getting errors trying to import rst
06:35:45*ShalokShalom quit (Ping timeout: 248 seconds)
06:35:45*nsf joined #nim
06:35:56FromGitter<zacharycarter> https://play.nim-lang.org/?gist=f2c756f3ee520c4d7413edd06eee102f
06:38:02*Gertm left #nim ("Closing Window")
06:43:03*kalexm joined #nim
06:43:38FromGitter<zacharycarter> figured out I had to import packages/docutils/rst
06:46:30FromGitter<Smaehtin> @jacob88888 You can put them under the same `type` block to fix the `undeclared identifier: 'objB'`error, but you'll have to make use of `ref` to create circular references, so changing `objA = object` to `objA = ref object` and the same for `objB` should work
06:47:08*Matthias247 joined #nim
06:47:14FromGitter<Smaehtin> @jacob88888 see also: https://nim-lang.org/docs/tut2.html#object-oriented-programming-mutually-recursive-types
06:52:05*Matthias247 quit (Read error: Connection reset by peer)
06:53:03FromGitter<zacharycarter> hrm rstToHtml seems to break when threads are involved
06:57:28*solitude joined #nim
06:58:02Elronndif I want a struct to have multiple publicly accessible members, do I do type foo = object a*, b*: int, or a*, b: int
07:18:20*yglukhov joined #nim
07:23:57*mahtov quit (Ping timeout: 260 seconds)
07:25:02*couven92 joined #nim
07:27:13*yglukhov quit (Remote host closed the connection)
07:37:05*kalexm quit (Ping timeout: 246 seconds)
07:41:47*yglukhov joined #nim
07:53:29*gangstacat joined #nim
07:53:59FromGitter<zacharycarter> @Araq is there any way to do something similar to rst2html in a threadsafe manner?
08:00:32FromGitter<zacharycarter> nevermind I forgot about createshared
08:11:44Elronndformattedline &= ", $# points, T:$#, $#" % [xlog.points, xlog.turns, xlog.reason] on this line I get this error: "effbot.nim(69, 90) Error: type mismatch: got (string) but expected 'int'". It's pointing to xlog.reason -- why would it expect that to be an int?
08:13:59*mahmudov joined #nim
08:18:06*Arrrr joined #nim
08:18:49Arrrrhttps://tulayang.github.io/articles/asyncio-issure
08:25:09*ShalokShalom_ is now known as ShalokShalom
08:32:15*xet7 joined #nim
08:39:33*ShalokShalom quit (Quit: No Ping reply in 180 seconds.)
08:40:00*ShalokShalom joined #nim
08:53:22*yglukhov quit (Remote host closed the connection)
09:05:34*dom96|w joined #nim
09:12:45*yglukhov joined #nim
09:15:31*jinshil quit (Quit: Good-bye!)
09:16:59*kalexm joined #nim
09:21:22*kalexm quit (Ping timeout: 255 seconds)
09:42:29*Tiberium_ joined #nim
09:42:51*Tiberium_ quit (Client Quit)
09:43:35couven92where is the `importc` pragma declared? Or is import compiler-magic?
09:48:13dom96|wcompiler magic
09:50:21couven92I talked with Araq yesterday about creating a a more advanced `import` that uses the nim symbol name, but capitalizes/uppercases the C identifier (e.g. when importing C defines that are ALL UPPERCASE). Araq said to write a macro, but I was thinking: this could maybe be useful in the stdlib, right?
09:50:41couven92*a more advanced `importc`
09:51:16euantorSeeing the discussion from yesterday about parsing stuff from `/proc` and sad to see no mention of `strscans` - just `parseutils` and `pegs`. `strscans` is a neat tool :)
09:52:59*Tiberium quit ()
09:53:15*Tiberium joined #nim
09:53:45couven92I could write up a PR for a more advanced `importc`, but where is the best place to put it? in system? :O
09:55:30couven92I am thinking: `macro importc(namingRule: ImportcNamingRule, ast: typed): typed` with `ImportcNamingRule` declaring `inrAllUppercase` and `inrCapitalize`
09:55:35*Tiberium quit (Remote host closed the connection)
09:56:55couven92but maybe that's better put into a nimble package (like `importc_helpers`) since I have some other importc helper macros by now?
10:02:25*sz0 joined #nim
10:03:27*Tiberium joined #nim
10:05:48*dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…)
10:05:55Araqcouven92: is it really that useful? many use c2nim to create the importc'ed procs which supports --nep1
10:06:59couven92Araq, yeah, I can see that... Okay, I'll create an importc_helpers nimble package instead... For me and others who sometimes need to do manual importc-ing
10:07:02Tiberiumeuantor, yeah, and it is also fast (at least faster than split)
10:08:00Araqstrscans needs better docs perhaps
10:08:34Araqbut yeah, it came after pegs and works much better for many data extractions tasks
10:08:46euantorI think they're pretty god at the minute. A few more examples may help though
10:08:54euantor*good
10:09:48Tiberiumwell I've only used them for simple $i|$f|$f|$i string
10:12:27couven92dom96, you wanted this for tracking, but maybe also tag with RFC tag? https://github.com/nim-lang/nimble/issues/392
10:18:08*kalexm joined #nim
10:22:27*kalexm quit (Ping timeout: 240 seconds)
10:26:48*haha_ joined #nim
10:35:17*Arrrr quit (Disconnected by services)
10:35:17*Arrrr1 joined #nim
10:35:35*Arrrr1 quit (Client Quit)
10:51:49*dom96|w joined #nim
10:56:36*ibutra joined #nim
10:58:40*dddddd joined #nim
10:59:13*kalexm joined #nim
10:59:13*kalexm quit (Remote host closed the connection)
11:02:08*kalexm joined #nim
11:06:09*dave24 quit (Ping timeout: 248 seconds)
11:08:03*dave24 joined #nim
11:12:37dom96|wcouven92 put it in Nimble package for now
11:18:13*kalexm quit (Remote host closed the connection)
11:19:10*solitude quit (Remote host closed the connection)
11:20:27Tiberiumwow, https://github.com/GULPF/nimquery/ seems to be a better version of q.nim
11:20:41Tiberiumq.nim - https://github.com/OpenSystemsLab/q.nim
11:38:24*yglukhov quit (Remote host closed the connection)
11:48:20*mjanssen quit (Remote host closed the connection)
11:59:38*krux02 joined #nim
12:07:03*yglukhov joined #nim
12:09:32Tiberiumoh
12:09:41Tiberiumhttps://github.com/Eugeny/terminus
12:09:48Tiberiumterminal. in. type. script
12:09:53Tiberiumwtf?
12:10:53*ibutra quit (Read error: Connection reset by peer)
12:15:57*dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…)
12:40:44*arnetheduck quit (Remote host closed the connection)
12:42:29*arnetheduck joined #nim
12:42:58FromGitter<jacob88888> @Smaehtin Thanks, works :)
12:45:08*Vladar joined #nim
12:45:36*yglukhov quit (Remote host closed the connection)
12:46:46*dom96|w joined #nim
12:49:36*Gertm joined #nim
12:50:25*arnetheduck quit (Remote host closed the connection)
12:51:58*arnetheduck joined #nim
12:54:58FromGitter<GULPF> @Tiberium Thanks :) It's been a good project for learning about nim & parsing
12:55:52*arnetheduck quit (Remote host closed the connection)
12:56:21*Arrrr joined #nim
12:56:21*Arrrr quit (Changing host)
12:56:21*Arrrr joined #nim
12:59:10*ibutra joined #nim
13:02:36ArrrrDo people actually answer SO questions? I think there is barely anyone pending of what's going on over there https://stackoverflow.com/questions/tagged/nim?sort=newest&pageSize=15
13:06:47*dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…)
13:07:46*Arrrr quit (Ping timeout: 276 seconds)
13:11:36TiberiumAraq, well they do
13:16:03*dom96|w joined #nim
13:18:44*kalexm joined #nim
13:23:04*kalexm quit (Ping timeout: 255 seconds)
13:25:57*planhths joined #nim
13:27:44*haha_ quit (Quit: haha_)
13:30:19*mosORadi joined #nim
13:30:49*rauss joined #nim
13:30:50*mosORadi quit (Client Quit)
13:30:59*mosORadi joined #nim
13:32:28*endragor quit (Remote host closed the connection)
13:37:39planhthshey guys
13:37:47planhths@Araq what else would you add to the strscans docs? I want to improve them.
13:41:19Araqplanhths: hum, I dunno. I just assumed they are incomplete :-)
13:43:08planhthswell I was thinking about making a PR to remove the ^* operator from the docs since it doesn't work
13:43:40planhthsand add a couple more examples
13:43:54planhthsfor scanp
13:45:55*yglukhov joined #nim
13:46:00planhthsthough I don't know what else to parse in the examples
13:47:13planhthsany suggestions someone?
13:48:13*chemist69 quit (Ping timeout: 255 seconds)
13:55:24*arnetheduck joined #nim
13:59:03arnetheduckhello
14:01:17Araqplanhths: scanp in general could get some love :-)
14:02:00Araqare maybe we should deprecate it, it's hard to understand and still doesn't work properly
14:02:08*chemist69 joined #nim
14:02:18planhthsthats bad to hear
14:02:59*haha_ joined #nim
14:03:10planhthsthough in some cases it is more appropriate to use scanp than scanf
14:05:06planhthsmost code I have 'fished' in github uses scanf in non optimal way like:
14:06:07planhthswhile idx < content.len:
14:06:09planhths if content[idx..^1].scanf(... )
14:06:37ibutraBut do you solve this non optimal way by providing an alternative nobody uses?
14:06:37planhthsclearly a case for scanp
14:06:52ibutraread nobody= hardly anybody
14:07:55planhthswell nothing is concrete. if scanp could be improved then maybe more people start using it
14:07:58Araqdoesn't scanf support a 'start' parameter?
14:09:25AraqI think scanf is really sweet and 'scanp' might need to become 'grammar' ;-)
14:09:36euantorIf I remember correctly, I don't think `scanf` supports optional entries which is something I wanted in the past whilst trying to use it to parse RFC 5424 syslog packets
14:10:20Araqscanf cannot easily support more operators without turning into a mess IMO
14:10:32euantorOther than that, I've used it a couple of times and it's a nice tool. I think we just need to highlight it more when regular expressions are brought up in a context where strscans can do the job
14:10:48Araqmore features mean a DSL will work better
14:11:02arnetheduckany chances of https://github.com/nim-lang/Nim/pull/5818 being looked at? it's a simple cleanup req
14:12:38krux02Araq: Is a feature request `proc typeCheck(arg:NimNode): NimNode` in the macros module feasible to implement?
14:12:40Araqarnetheduck: I think the compiler needs more support for unchecked arrays first
14:13:11Araqkrux02: I doubt it, by design the VM doesn't have access to the semantic checking phases
14:13:35arnetheduckwell, it passes the test suite - afair when I looked at it, there had been changes in the compiler earlier that made things work and this looked like leftovers
14:13:42planhthsfor a start parameter; I don't know I hardly understand their code :)
14:13:49krux02Well to have that would solve a lot of problems with the macros system
14:13:58Araqarnetheduck: for example, a[5] can be prevented at compiletime if the compiler thinks it's an array of length 0...
14:14:07krux02or better said it would make DSL creation much easier
14:14:21arnetheduckthese removals are for unchecked arrays
14:14:41arnetheduckthen the compiler should allow even at compile time, no?
14:15:00krux02I think of a DSL as a partially typechecked ast, and that feature would allow to implement the logic for the partial typechecker in the macro itself
14:17:29arnetheduckor rather, the whole point with arraydummysize is to skip the range check - compile time or no - having it there seems strictly worse because you pay a price but get no benefit
14:18:31Araqfirstly, you do get a tiny benefit because negative numbers are still checked against.
14:19:09Araqsecondly, the benefit of arrayDummySize is that it doesn't require yet another pragma/language feature
14:19:14*Ven joined #nim
14:19:27*gangstacat quit (Quit: Leaving)
14:19:40*Ven is now known as Guest12884
14:20:06*kalexm joined #nim
14:20:07krux02I think that arrayDummySize is a bad idea
14:20:35Araqit's not even an "idea", it's something that emerges from the rest of the language rules
14:20:40Araqit cannot be "bad".
14:20:47krux02an array is a type that has it's length encoded in the type and an unchecked array is an array of unknown length to the compiler
14:20:58krux02for me it's an entirely distinct type
14:21:02mahmudovNiGui is there any nigui example that can show webpage or html in a window
14:21:13mahmudovor another nim lib ?
14:21:25krux02and I think that mapping uncecked arrays as an array with a pragma is wrong
14:22:12*mahtov joined #nim
14:22:46*mahmudov quit (Remote host closed the connection)
14:23:13Araqok, but that's not helpful at all
14:23:41*haha_ quit (Quit: haha_)
14:24:08*kalexm quit (Ping timeout: 240 seconds)
14:24:37krux02yea sorry for that
14:25:04arnetheduckfor unchecked arrays, negative indices are a feature which allow you to go backwards
14:25:09*haha_ joined #nim
14:25:16krux02I don't have a solution in my head, but I know that I once had one in my head
14:25:50krux02would be a lot to clean up though, because it would destroy all unchecked array usages
14:26:21Araqso ... when your macro type checks what do you then do with the result?
14:26:31arnetheduckunchecked arrays are here to stay, in one form or another if you want to support any kind of FFI / C interop
14:29:14arnetheduckthey can be a pragma, a distinct type or anything - the dummy array size works around a wart that is there for legacy interaction, but it does so inefficiently
14:31:42arnetheduckthe worst thing they do is hiding the developers intention from the compiler - a human reader might deduce that what the intended functionality is to skip the range check, but the compiler has no clue and can offer no help
14:33:18arnetheduck.. and the required language feature is already there ({.unchecked.}).. if arraydummysize is to be kept, should unchecked be removed?
14:33:54Araqit's not to be kept, all I tried to say was "needs more compiler support"
14:34:01Araqthe PR is fine
14:34:07krux02IMHO, the unchecked array size should not be used for anything anymore (deprecation) and the unchecked array should be a type in system.nim, so that nobody needs to ever use the pragma unchecked anymore. That pragma should be deprecated except for the use in sysetm.nim
14:38:30*Guest12884 is now known as Ven``
14:39:48FromGitter<andreaferretti> @krux02 I agree
14:45:50*xet7 quit (Ping timeout: 246 seconds)
14:46:44*Kingsquee joined #nim
14:48:55Araqso ... when your macro type checks what do you then do with the result, krux02
14:49:30*couven92 quit (Quit: Client disconnecting)
14:59:00*yglukhov quit (Ping timeout: 240 seconds)
14:59:48*yglukhov joined #nim
15:00:03*Arrrr joined #nim
15:00:03*Arrrr quit (Changing host)
15:00:03*Arrrr joined #nim
15:05:55arnetheduckAraq, updated pr to latest devel, looks like more dummies have crept in since
15:06:36Araqarnetheduck: can you check the compiler allows for a[6] on an unchecked array?
15:08:50arnetheducklike this? https://github.com/arnetheduck/Nim/blob/a6501e1a7da77f303d8db738f7912088740b8656/tests/array/tunchecked.nim
15:10:26arnetheduckpasses that test without crashing, so.. yes
15:10:26Araqyes
15:10:52Araqhmm ok then
15:14:14*ibutra_ joined #nim
15:14:22*kalexm joined #nim
15:17:48*ibutra quit (Ping timeout: 240 seconds)
15:21:05*ibutra_ quit (Ping timeout: 248 seconds)
15:31:02*Trustable joined #nim
15:31:37*gokr joined #nim
15:37:09*ibutra joined #nim
15:39:56*mosORadi quit (Quit: Connection closed for inactivity)
15:40:07*Octopi joined #nim
15:46:54*Octopi quit (Quit: Page closed)
15:47:32*Jipok joined #nim
15:47:54JipokPlease, somebody help me test this in Safari and Edge
15:47:58Jipokhttps://jipok.github.io/
15:53:03*solitude joined #nim
15:54:31euantorNo luck in Edge I'm afraid https://usercontent.irccloud-cdn.com/file/S4E7vVLH/Capture.PNG
15:54:52*Jipok[m] left #nim ("User left")
15:55:17*Jipok[m] joined #nim
15:55:56Jipokno wasm support
15:57:55euantorYup, looks like it. RUnning the current version of Edge
15:58:33TiberiumJipok, will you share it? maybe to integrate it into nimgame2 ?
15:59:12TiberiumJipok, well, it works for me on Chrome under linux, but it has a lot of screen tearing
15:59:20Tiberiumthis astronaut sprite has a lot of tearing
15:59:42Tiberiumif you move it very fsast
15:59:43Tiberiumfast
16:00:24TiberiumJipok, but nonetheless great work
16:00:57*arnetheduck quit (Ping timeout: 240 seconds)
16:01:41JipokTiberium, Unfortunately now sdl2_gfx_ primitives does not work on the web
16:01:49JipokHow much do I know nimgame2 uses these functions
16:01:56krux02Araq: when the value is i constant, I can get the actual value and process it
16:02:23TiberiumJipok, why it doesn't?
16:03:08TiberiumJipok, waait
16:03:20Tiberiumyou mean that whole thing is only ~2mb?
16:03:21Tiberiumwow
16:05:15JipokPls, test asmjs version too
16:05:16Jipokhttps://jipok.github.io/asmjs/main.html
16:05:38Tiberiumworks
16:05:43Tiberiumbut for some reason FPS is locked on 44
16:05:46JipokSafari?
16:05:49JipokEdge?
16:05:52TiberiumChrome
16:05:53krux02Araq: in my specific example, with the type symbols I map types to glsl types so that I can great the shader at compile time
16:06:44krux02eventually that would allow to run a shader verifier at compile time, but currently it is a much better workflow that if I would generate istructions that would generate the shader at runtime.
16:07:59Jipok[m]euantor: can u test asmjs version?
16:08:03*kalexm quit (Remote host closed the connection)
16:08:09Jipok[m]in edge
16:08:25euantorThat one doesn't error at least :)
16:08:55euantorAnd it seems to work, getting about 53FPS
16:09:05Jipokgood
16:09:11TiberiumI don't know why I'm getting 44fps though
16:09:18JipokF11 works?
16:09:28Jipokand fullscreen btn
16:09:46euantorF11 does, I'll check fullscreen
16:10:02Tiberiumwell fullscreen works too
16:10:11euantorYe, fullscreen works
16:10:31JipokF11 should enable / disable FPS display, do not switch fullscreen mode
16:10:53euantorYes, F11 shows the FPS, to go fullscreen I have to click the button at the top right
16:11:08TiberiumJipok, well maybe you need to change that shortcut
16:11:15Tiberiumbecause in chrome F11 is fullscreen mode for a webpage
16:12:05JipokIt had to translate. In firefox works. Well, it does not matter
16:12:33JipokIntercept*
16:12:36Tiberiumso will you make a PR to nimgame2?
16:13:42krux02http://ix.io/z8P
16:14:20*yglukhov quit (Remote host closed the connection)
16:15:33Tiberiumas I understand one of the biggest todos is to remove nil from Nim?
16:15:48*gokr quit (Ping timeout: 240 seconds)
16:15:48*yglukhov joined #nim
16:16:57*yglukhov_ joined #nim
16:16:57*yglukhov quit (Read error: Connection reset by peer)
16:18:35JipokWhy nimgame?
16:18:37JipokI thought to make a small change in Vladar4 / sdl2_nim. After that, in almost all of examples, it is required to change only one line, that they were also compiled into emscripten.
16:19:25krux02Tiberium, well it is not too much work to implement.
16:19:33FromGitter<Smaehtin> @Tiberium I don't think there's a plan to remove nil, I think it's more making "not nil" the default, and making nilable opt-in?
16:19:41krux02the todo list is rather to make nil and empty behaved identical
16:19:55krux02so there is technically still a nil, but it doesn't matter anymore
16:20:21Tiberiumand also import "segfaults" by default?
16:20:32Tiberiumso instead of SIGSEGV we'll get NilAccessError?
16:20:38krux02nope
16:21:02krux02instead of segfault when adding to a nil seq, the seq will be initialized
16:21:12krux02less segfaults
16:21:15*Jipok quit (Quit: Page closed)
16:21:23*yglukhov_ quit (Ping timeout: 246 seconds)
16:22:22krux02ref types will sill be nil by default, but ref types don't matter that much
16:22:26krux02I don't need them
16:24:14*ibutra quit (Remote host closed the connection)
16:24:22*ibutra joined #nim
16:26:10TiberiumIs there any difference if I declare some "var" variables inside of a "for" loop, and outside of it? I use scanf
16:26:37*gokr joined #nim
16:26:56*BitPuffin|osx joined #nim
16:33:10Tiberiumhmm, also
16:33:19TiberiumIs there any faster alternative to "split"?
16:33:27Tiberiummaybe more low-level, but faster
16:35:44*Sentreen quit (Ping timeout: 246 seconds)
16:35:55*kalexm joined #nim
16:40:27*kalexm quit (Ping timeout: 260 seconds)
16:42:31Tiberiumah, maybe parseUntil
16:44:04*Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:48:59krux02thanks for the help with diminish
16:49:00*Sentreen joined #nim
16:49:16krux02I also found out that projectile has it's own customization options for the mode line
16:49:54krux02that allows to still include the project name in the mode line
16:50:18*kalexm joined #nim
16:50:52krux02oh sorry wrong channel
16:54:31*kalexm quit (Ping timeout: 255 seconds)
16:55:14*yglukhov joined #nim
16:59:30*yglukhov quit (Ping timeout: 255 seconds)
17:05:10*Tiberium quit (Quit: Leaving)
17:07:28Elronndhow do I convert an int to a string?
17:08:11*haha_ quit (Quit: haha_)
17:09:20*yglukhov joined #nim
17:09:37*dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…)
17:09:44krux02Elrond
17:09:45krux02$
17:10:06krux02let x = 123; let y = $x
17:10:36*mosORadi joined #nim
17:11:50Elronndhmmm
17:12:00Elronndwhat's the difference between $ and intToStr in strutils?
17:16:41*couven92 joined #nim
17:17:47*kalexm joined #nim
17:19:32*gokr quit (Ping timeout: 260 seconds)
17:19:40*mahmudov joined #nim
17:23:01*dankrad joined #nim
17:24:08*PMunch joined #nim
17:25:16*nsf quit (Quit: WeeChat 1.9)
17:27:27*Tiberium joined #nim
17:29:14FromGitter<TiberiumN> The resulting string will be minimally minchars characters long. This is achieved by adding leading zeros.
17:30:27*dankrad quit (Ping timeout: 240 seconds)
17:31:01*kalexm quit (Ping timeout: 276 seconds)
17:31:26*dankrad joined #nim
17:46:51*haha_ joined #nim
17:50:19*planhths quit (Ping timeout: 246 seconds)
17:53:00*ibutra quit (Read error: Connection reset by peer)
17:57:00*nhywyll joined #nim
17:58:01*mahmudov quit (Remote host closed the connection)
18:01:32*haha_ quit (Quit: haha_)
18:02:06*smt joined #nim
18:05:12*haha_ joined #nim
18:15:19*fredrik92 joined #nim
18:17:00*Arrrr quit (Ping timeout: 240 seconds)
18:17:35*couven92 quit (Ping timeout: 246 seconds)
18:27:48*gokr joined #nim
18:29:10*fredrik92 quit (Read error: Connection reset by peer)
18:41:19Elronndwtf? I have a "var telldb: initTable[string, seq[Message]]()", and I'm getting complaints about "effbot.nim(19, 44) Error: type expected"
18:41:27Elronndwhy is it expecting a type? I *gave* it a type!!
18:46:02dom96Elronnd: pastebin effbot.nim
18:46:09krux02what does "Error: system module needs 'nimGCunrefRC1'" mean?
18:46:31krux02Elrond you should put = insetad of :
18:46:42krux02: is for the type, but initTable is function call
18:46:50Elronndright, thanks
18:46:54dom96oh yeah, that
18:48:10krux02dom96: have you anyo idea about that error?
18:48:32dom96No, seems like a broken Nim installation
18:49:39krux02I am on devel
18:50:18dom96Maybe you need to `koch boot`?
18:52:34*couven92 joined #nim
18:52:56*Matthias247 joined #nim
18:55:10krux02koch boot fails, too
18:59:08dom96Try rebuilding from C sources I guess
19:01:48krux02that is what I did now and it works
19:01:53krux02thanks
19:05:15*yglukhov_ joined #nim
19:06:25*yglukhov quit (Ping timeout: 255 seconds)
19:06:44krux02can the php backend be dropped
19:07:08krux02I don't care about it, and the the support make pull requests hard
19:09:07*yglukhov joined #nim
19:09:07*yglukhov_ quit (Read error: Connection reset by peer)
19:12:52FromGitter<zacharycarter> wait there's a php backend?
19:13:00krux02well yes
19:13:14krux02don'k ask me why
19:13:22*FromGitter * zacharycarter had no idea
19:13:27krux02there is C C++ javascript and php afaik
19:13:34krux02objective C
19:13:52krux02(c c++ objective-c is almost identical)
19:14:36*haha_ quit (Quit: haha_)
19:14:47*nsf joined #nim
19:15:17FromGitter<stisa> js+nodejs and php share most of the code too I think
19:15:43*yglukhov_ joined #nim
19:16:31*yglukho__ joined #nim
19:16:31*yglukhov_ quit (Read error: Connection reset by peer)
19:16:34*yglukhov quit (Read error: Connection reset by peer)
19:21:23Elronndwait waht? PHP, wtf
19:21:28ElronndWhy do we even need it
19:23:00federico3for unlucky people who need to use some php libraries?
19:28:03Tiberiumphp is broken
19:28:10Tiberiumphp backend is fully broken and it should be removed
19:28:29Elronndfederico3: then they can write in php
19:29:04Tiberiumwell php is broken, nothing is working with it :)
19:29:22FromGitter<zacharycarter> I can't decide whether to continue working on the project I started yesterday or not
19:29:56*mosORadi quit (Quit: Connection closed for inactivity)
19:30:12FromGitter<zacharycarter> mostly because I don't think it'd be useful
19:30:22krux02well then don't continue it
19:31:12FromGitter<zacharycarter> I could be mistaken though :P
19:32:05FromGitter<zacharycarter> I think it's definitely more useful than the PHP backend :P
19:34:03krux02well you can create a pull request that removel all traces of the PHP backend in the compiler
19:34:04krux02yay
19:34:46*planhths joined #nim
19:36:54FromGitter<zacharycarter> I could... I have a feeling tracking them all down would be quite painful
19:36:59FromGitter<zacharycarter> unless they're easily identifiable
19:43:54*krux02 quit (Remote host closed the connection)
19:45:52Elronndis there a way to get the last item of a sequence without doing list[len(list)] because that's redundant and a lot of typing?
19:46:01ElronndI know pop() can do it, but i don't want to remove the item
19:46:09Elronndcan I do list[^1] like with slices?
19:46:19Elronndcan I do list[-1] like in python?
19:46:32*Trustable quit (Remote host closed the connection)
19:46:50TiberiumElronnd, list[^1], yes :)
19:47:30Elronndok, cool
19:51:21Elronndis it possible to break out of an if?
19:52:29*Enamex joined #nim
20:04:36*Enamex quit ()
20:06:23dom96return?
20:07:39*smt` joined #nim
20:07:49Tiberiumyou can put if into a block
20:07:52Tiberiumand break out of the block
20:07:53*haha_ joined #nim
20:09:01dom96or that but I can't imagine a use case where that would be appropriate.
20:11:37*smt quit (Ping timeout: 260 seconds)
20:11:43*Vladar quit (Quit: Leaving)
20:23:20*nsf quit (Quit: WeeChat 1.9)
20:23:51*sz0 quit (Quit: Connection closed for inactivity)
20:28:12*haha_ quit (Quit: haha_)
20:34:30*onionhammer quit (Ping timeout: 240 seconds)
20:47:12FromGitter<zacharycarter> @Araq given some karax code is it possible to render html?
20:47:27FromGitter<zacharycarter> is there like a toHTML that takes in some portion of the vdom and produces html?
20:47:53*planhths quit (Quit: Konversation terminated!)
20:48:25*ShalokShalom quit (Read error: Connection reset by peer)
20:50:08*ShalokShalom joined #nim
20:50:36*Jesin joined #nim
20:58:48*Jesin quit (Ping timeout: 240 seconds)
20:58:55*rauss quit (Quit: WeeChat 1.9)
21:00:35*nsf joined #nim
21:03:52*Tiberium quit (Remote host closed the connection)
21:07:30*mindB quit (Ping timeout: 240 seconds)
21:07:40*Jipok[m] quit (Ping timeout: 258 seconds)
21:07:50*Demos[m] quit (Ping timeout: 240 seconds)
21:08:07*dyce[m] quit (Ping timeout: 276 seconds)
21:08:10*hohlerde quit (Ping timeout: 264 seconds)
21:08:10*TheManiac quit (Ping timeout: 264 seconds)
21:08:17*ehmry quit (Ping timeout: 240 seconds)
21:08:20*MrAxilus[m] quit (Ping timeout: 255 seconds)
21:10:36*Tiberium joined #nim
21:10:50*Tiberium quit (Client Quit)
21:11:36*Tiberium joined #nim
21:11:53*jivank[m] quit (Ping timeout: 258 seconds)
21:12:17*Jesin joined #nim
21:13:06*sz0 joined #nim
21:23:05*Jesin quit (Ping timeout: 255 seconds)
21:24:42*Jesin joined #nim
21:29:38*onionhammer joined #nim
21:30:47*onionhammer quit (Client Quit)
21:31:11*onionhammer joined #nim
21:39:57*solitude quit (Ping timeout: 240 seconds)
21:40:10*Jipok[m] joined #nim
21:42:49*onionhammer quit (Quit: WeeChat 1.7)
21:43:25*Jesin quit (Ping timeout: 246 seconds)
21:44:14*Jesin joined #nim
21:46:08*MrAxilus[m] joined #nim
21:46:08*Demos[m] joined #nim
21:46:09*ehmry joined #nim
21:46:09*dyce[m] joined #nim
21:46:15*mindB joined #nim
21:46:15*jivank[m] joined #nim
21:46:15*TheManiac joined #nim
21:46:15*hohlerde joined #nim
21:46:18*onionhammer joined #nim
21:47:21FromGitter<zacharycarter> nevermind rethinking that question it doesn't make sense
21:49:45*rauss joined #nim
21:52:08*Jesin quit (Ping timeout: 240 seconds)
21:53:41*Jesin joined #nim
21:54:30ElronndI just want to say, holy fuck is nim expressive. I just started using it a week or so ago, and I think I've written 5 comments in that time just because there's nothing to explain
21:55:21dom96:D
21:55:34dom96Elronnd: what language are you coming from?
21:56:09Elronndlots of them
21:56:22ElronndI shuttled around a lot of languages, looking for some I liked
21:56:29ElronndRight now I like C, D, and nim
22:01:00*yglukho__ quit (Remote host closed the connection)
22:05:52*Jesin quit (Quit: Leaving)
22:21:52*nsf quit (Quit: WeeChat 1.9)
22:22:52*gokr quit (Ping timeout: 276 seconds)
22:26:09*PMunch quit (Quit: leaving)
22:33:42*endragor joined #nim
22:38:00*endragor quit (Ping timeout: 240 seconds)
22:52:35*nhywyll quit (Quit: nhywyll)
23:06:40*Kingsquee quit (Excess Flood)
23:07:07*Kingsquee joined #nim
23:13:30*Matthias247 quit (Read error: Connection reset by peer)
23:18:10*Tiberium quit (Remote host closed the connection)
23:20:55*cspar joined #nim
23:24:31TheManiacHi all... trying to get my head around osproc
23:24:56TheManiacI can work out how to run a process and send stdout and stderr to my stdout and stderr (use poParentStreams)
23:25:40TheManiacAnd I can work out how to get both stdout and stderr sent to something where I can read them both together (use poStdErrToStdOut)
23:25:59TheManiacBut what if I want to read stdout and allow stderr to go to parent stderr?
23:30:10Elronnd"proc startscummed(log: XLog): bool = if log.score < 10 or log.turns < 10: true else: false" this gives me an error "Error: complex statement requires indentation". But how is that a complex statement?
23:30:15Elronndand is there another way to write that?
23:37:30*dankrad quit (Ping timeout: 240 seconds)
23:38:33*Kingsqueee joined #nim
23:39:31*Kingsquee quit (Ping timeout: 255 seconds)
23:45:06TheManiacassume you know how to do it if extra whitespace is allowed?
23:45:24TheManiacand assume it compiles if you remove 'or log.turns < 10' ?
23:45:41TheManiacMy guess is nim has a very generous definition of 'complex' :)
23:51:20*onionhammer quit (*.net *.split)
23:51:20*chemist69 quit (*.net *.split)
23:51:21*Xe quit (*.net *.split)
23:51:21*MonsterAbyss_ quit (*.net *.split)
23:51:22*acidx quit (*.net *.split)
23:51:22*abeaumont quit (*.net *.split)
23:51:23*derlafff quit (*.net *.split)
23:51:23*SunDwarf quit (*.net *.split)
23:51:23*byte512 quit (*.net *.split)
23:51:24*Ieuan quit (*.net *.split)
23:51:24*flyx quit (*.net *.split)
23:51:24*qwertfisch quit (*.net *.split)
23:51:25*ehmry quit (*.net *.split)
23:51:25*dyce[m] quit (*.net *.split)
23:51:25*gggs quit (*.net *.split)
23:51:26*smt` quit (*.net *.split)
23:51:27*Araq quit (*.net *.split)
23:51:29*niv quit (*.net *.split)
23:51:29*bozaloshtsh quit (*.net *.split)
23:51:29*pleiosaur quit (*.net *.split)
23:51:29*adamchainz quit (*.net *.split)
23:51:30*jonafato quit (*.net *.split)
23:51:30*MrAxilus[m] quit (*.net *.split)
23:51:31*mahtov quit (*.net *.split)
23:51:31*joshbaptiste quit (*.net *.split)
23:51:34*euantor quit (*.net *.split)
23:51:36*pydsigner quit (*.net *.split)
23:51:36*couven92 quit (*.net *.split)
23:51:37*Pisuke quit (*.net *.split)
23:51:38*Gertm quit (*.net *.split)
23:51:39*def- quit (*.net *.split)
23:51:48*yaiyan joined #nim
23:52:12*joshbaptiste joined #nim
23:54:59*jivank[m] quit (Ping timeout: 246 seconds)
23:54:59*TheManiac quit (Ping timeout: 246 seconds)
23:55:15*dyce[m] joined #nim
23:55:15*ehmry joined #nim
23:55:15*smt` joined #nim
23:55:15*Araq joined #nim
23:55:15*niv joined #nim
23:55:15*gggs joined #nim
23:55:15*adamchainz joined #nim
23:55:15*bozaloshtsh joined #nim
23:55:15*pleiosaur joined #nim
23:55:15*jonafato joined #nim
23:55:22*ehmry quit (Ping timeout: 240 seconds)
23:55:25*euantor joined #nim
23:55:30*dyce[m] quit (Ping timeout: 240 seconds)
23:55:34*mindB quit (Ping timeout: 264 seconds)
23:55:41*Demos[m] quit (Ping timeout: 246 seconds)
23:55:43*Jipok[m] quit (Ping timeout: 255 seconds)
23:56:31*onionhammer joined #nim
23:56:31*chemist69 joined #nim
23:56:31*MonsterAbyss_ joined #nim
23:56:31*acidx joined #nim
23:56:31*abeaumont joined #nim
23:56:31*derlafff joined #nim
23:56:31*SunDwarf joined #nim
23:56:32*hohlerde quit (Ping timeout: 255 seconds)
23:56:34*flyx joined #nim
23:56:46*qwertfisch joined #nim
23:56:54*couven92 joined #nim
23:56:55*Gertm joined #nim
23:56:55*Pisuke joined #nim
23:56:55*def- joined #nim
23:57:20*flyx quit (*.net *.split)
23:57:23*Pisuke quit (Max SendQ exceeded)
23:57:25*Xe joined #nim
23:57:28*gggs quit (*.net *.split)
23:57:28*smt` quit (*.net *.split)
23:57:29*Araq quit (*.net *.split)
23:57:30*niv quit (*.net *.split)
23:57:31*bozaloshtsh quit (*.net *.split)
23:57:31*pleiosaur quit (*.net *.split)
23:57:31*adamchainz quit (*.net *.split)
23:57:31*jonafato quit (*.net *.split)
23:58:32*m712 quit (Ping timeout: 260 seconds)
23:58:52*Pisuke joined #nim
23:59:41*smt` joined #nim
23:59:41*Araq joined #nim
23:59:41*niv joined #nim
23:59:41*gggs joined #nim
23:59:41*adamchainz joined #nim
23:59:41*bozaloshtsh joined #nim
23:59:41*pleiosaur joined #nim
23:59:41*jonafato joined #nim