<< 13-01-2019 >>

00:04:19FromGitter<gogolxdong> occasional `WebSocket connection to 'ws://127.0.0.1:8083/' failed: Invalid frame header`of karax/jwebsockets , is there any reason?
00:28:52FromDiscord_<exelotl> oh I think I got it, when you import in panicoverride the majority of `system` module features haven't been defined yet, at the point where panicoverride is inserted
00:30:24FromDiscord_<exelotl> anyways here's my GBA wrapper if anyone is interested! https://github.com/exelotl/nim-tonc
00:30:40*narimiran quit (Ping timeout: 250 seconds)
00:36:18*shpx quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:37:10*shpx joined #nim
00:43:10*shpx quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:49:14*shpx joined #nim
00:54:57*zyklon quit (Read error: Connection reset by peer)
00:59:14*shpx quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
01:11:33*zyklon joined #nim
01:17:19*Ven`` quit (Ping timeout: 244 seconds)
01:25:30*zyklon quit (Read error: Connection reset by peer)
01:25:37*zachk quit (Quit: Leaving)
01:31:44*shpx joined #nim
01:32:57*skellock joined #nim
01:35:09*shpx quit (Client Quit)
01:35:26FromDiscord_<exelotl> cc @hcorion
01:38:59FromDiscord_<hcorion> Very cool! How are you finding Nim's perf for gba, it have you not experimented with that kind of thing yet
01:43:14*zyklon joined #nim
01:43:28FromDiscord_<exelotl> I haven't experimented too much but I've found that you can get it to output very straightforward and readable C code with the right compiler flags and by spamming the {.noinit.} pragma
01:46:18FromDiscord_<exelotl> I should make some better examples though, the framework can do so much more than hello world xD
02:12:37*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
02:23:53*ng0_ joined #nim
02:26:59*ng0 quit (Ping timeout: 256 seconds)
02:26:59*zyklon quit (Read error: Connection reset by peer)
02:44:09*zyklon joined #nim
02:57:04*zyklon quit (Read error: Connection reset by peer)
03:00:07*oculux quit (Quit: blah)
03:00:27*oculux joined #nim
03:00:35*banc quit (Quit: Bye)
03:01:22*oculux quit (Client Quit)
03:02:07*oculux joined #nim
03:14:10*zyklon joined #nim
03:16:25*banc joined #nim
03:19:39FromGitter<zacharycarter> trying to fix / update the playground
03:19:50FromGitter<zacharycarter> digital ocean ubuntu box is saying the disk is full - but not according to df -h
03:20:41*gangstacat quit (Quit: Ĝis!)
03:21:45FromGitter<zacharycarter> ah INodes are full
03:31:42*zyklon quit (Read error: Connection reset by peer)
03:32:19*Tyresc quit (Quit: WeeChat 2.4-dev)
03:35:22*vlad1777d quit (Ping timeout: 268 seconds)
03:44:23*darithorn_ joined #nim
03:48:22*darithorn quit (Ping timeout: 272 seconds)
03:49:40*zyklon joined #nim
03:52:33*lritter quit (Ping timeout: 245 seconds)
03:53:22*lritter joined #nim
04:02:20*zyklon quit (Read error: Connection reset by peer)
04:05:22*skellock quit (Ping timeout: 246 seconds)
04:18:30*zyklon joined #nim
04:36:09*shpx joined #nim
04:37:03*Marumoto__ joined #nim
04:39:32*Marumto_ quit (Ping timeout: 246 seconds)
04:43:13*skellock joined #nim
04:43:24*shpx quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
04:44:48*theelous3 joined #nim
04:47:07*gangstacat joined #nim
04:51:58*Marumoto__ quit (Remote host closed the connection)
04:52:26*thomasross joined #nim
05:03:27*skellock quit (Ping timeout: 240 seconds)
05:38:05*lritter quit (Remote host closed the connection)
05:43:01*darithorn_ quit (Quit: Leaving)
05:53:33*dddddd quit (Remote host closed the connection)
05:53:36FromGitter<zacharycarter> playground is running 0.19.0 which was the latest docker image I could find
05:54:38*theelous3 quit (Ping timeout: 245 seconds)
06:44:27FromGitter<gogolxdong> Is there a usable websocket server example with jwesockets of Karax?
06:49:57FromGitter<gogolxdong> the example server in websocket.nim and ormin doesn't work properly with jwebsockets .
06:51:58*nsf joined #nim
07:24:55*narimiran joined #nim
08:00:58*shpx joined #nim
08:01:41*skellock joined #nim
08:06:00*skellock quit (Ping timeout: 244 seconds)
08:06:00*zyklon quit (Read error: Connection reset by peer)
08:23:17*zyklon joined #nim
08:59:16FromDiscord_<aleks-ooo> Sex dating Discord > http://discord.amazingsexdating.com
09:02:31*cspar_ quit (Ping timeout: 246 seconds)
09:09:25*cspar joined #nim
09:18:29*itschin left #nim ("Leaving")
09:18:33*absolutejam_phon quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com ))
09:18:54*absolutejam_phon joined #nim
09:54:01leorizeWhat's with the discord ads?
09:59:32Calinouit's an ongoing attack on all Discord servers
10:08:03*zyklon quit (Read error: Connection reset by peer)
10:11:25*cyraxjoe joined #nim
10:11:32*MightyJoe quit (Ping timeout: 272 seconds)
10:25:59*zyklon joined #nim
10:26:01*baba2 joined #nim
10:58:27*absolutejam_phon quit (Ping timeout: 240 seconds)
11:01:48*aguspiza joined #nim
11:03:42aguspizaso that's why it works on my nim compiler built
11:17:18*oculux quit (Quit: blah)
11:18:22*oculux joined #nim
11:20:20*chemist69 joined #nim
11:32:45*leorize quit (Ping timeout: 252 seconds)
11:33:06*leorize joined #nim
11:33:47*baba2 quit (Ping timeout: 240 seconds)
11:34:15*kapil____ joined #nim
11:48:54*zyklon quit (Read error: Connection reset by peer)
12:05:26*zyklon joined #nim
12:31:44*baba2 joined #nim
12:35:10*BigEpsilon joined #nim
12:42:27*rayman22201 quit (Ping timeout: 256 seconds)
12:45:59*dddddd joined #nim
12:57:10*skellock joined #nim
12:58:25ZevvZah just asked me to provide a test case for a PR I made - where do I add tests, and how do I run these locally without running the complete 40 minutes test suite?
12:58:59*Snircle joined #nim
13:02:36*shpx quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
13:03:39Araqadd it an existing test covering the feature you enhanced
13:03:53Araqand test the categories that apply
13:03:58Araqvia
13:04:11Araqtestament\tester cat macros
13:06:00*itschin joined #nim
13:06:13*ng0_ is now known as ng0
13:06:30*xet7 joined #nim
13:07:15Zevvok
13:09:24Zevvthat was easy, thanks
13:10:10Araqtestament is documented in our contributors guidelines iirc
13:10:40ZevvI'll look into that
13:14:19*Bburn1ng joined #nim
13:15:16ZevvYes, all there in the doc, sorry for the noise.
13:24:28*Bburn1ng left #nim (#nim)
14:00:27*baba2 quit (Ping timeout: 240 seconds)
14:03:58*baba2 joined #nim
14:04:38*steve1 joined #nim
14:08:11*baba2 quit (Remote host closed the connection)
14:09:14*steve1 quit (Ping timeout: 250 seconds)
14:11:53*nsf quit (Quit: WeeChat 2.3)
14:44:48*stefanos82 joined #nim
14:46:59*Vladar joined #nim
14:47:13FromGitter<gogolxdong> Can jwebsockets work in long connection mode? I found our earlier usage cases are all transient connection.
14:48:09FromGitter<gogolxdong> It doesn't work properly in long connection mode.
14:48:46Araqit's a thin wrapper about what the browser offers
14:49:01Araqand I don't understand what "long connection mode" means
14:49:54FromGitter<gogolxdong> means a global opened websocket handle, sending requests.
14:51:50Araqyou mean stored in a global var?
14:52:24FromGitter<gogolxdong> yes
14:54:59AraqI dunno, sounds ok, the karax client connects to one server via a connection stored in a global
14:55:17Araqmaybe you got the init order wrong
14:58:11FromGitter<gogolxdong> same thought , my usage case is opening a global karax client and set different onmessage callback before sending different requests.
15:06:36FromGitter<gogolxdong> but occasionally got invalid frame header , then I changed to short connection mode just now, it works but I'm trying to avoid handshakes of each new websocket connection.
15:07:40Araqmake sure your Nim server uses the latest websockets version
15:09:54FromGitter<gogolxdong> confirmed.
15:11:24FromGitter<gogolxdong> BTW, it's outdated in nimble package meta data.
15:11:27*shpx joined #nim
15:16:20FromGitter<Vindaar> @Araq @gogolxdong woah, so there actually was a bug in websocket when creating large packages? I thought it was my browser not liking huge packages. That simplifies things a lot :)
15:21:03FromGitter<gogolxdong> I met huge data problem couple of months before, sending binary protobuf data which was truncated. Don't know how it going. Not sure they are related or not, at least error is the same, invalid frame header.
15:26:47FromGitter<gogolxdong> seems I was misled during previous jobs, long connection should be keep-alive connection or persistent connection.
15:33:17*kapil____ quit (Quit: Connection closed for inactivity)
15:41:08*aguspiza quit (Ping timeout: 258 seconds)
15:53:50*Trustable joined #nim
16:19:53*stefanos82 quit (Remote host closed the connection)
16:34:03*absolutejam_phon joined #nim
16:37:20*ghost64 quit (Read error: Connection reset by peer)
16:38:40*ghost64 joined #nim
16:39:08*kapil____ joined #nim
16:41:54absolutejam_phonAre there any recommended high level ncurses modules?
16:46:58xaceabsolutejam_phon: not that im sure of, i'm currently suppose to work on a project that's suppose to use ncurses/termbox, and i'm not a fan of it atm... the nim ncurses lib seem to be a simple wrapper, while the termbox lib seems to be a higher quality wrapper for nim... sadly termbox has its own unique dependencies...
16:47:49leorizebut termbox can be linked statically :)
16:55:43*absolutejam_phon quit (Ping timeout: 246 seconds)
17:04:40xaceno idea atm, i recall it being dependant on something that required waf or some python based build system that broke during the 3.7 release or w/e... this project hasn't been very enticing, so i'm working on it very slowly... though i feel like ncurses is more widely spread than termbox in terms of dependencies, but termbox seems to be a simplified version with better design... I feel like to actually make
17:04:46xacesomething with it I should probably spend a minute or two to design the program first rather then coding it in the spur of the moment
17:06:28FromGitter<zetashift> termbox also sadly doesn't work on windows :(
17:07:18xacezetashift, hah, yeah but then I realised, my experience of terminals in windows isn't appealing at all...
17:08:07FromGitter<zetashift> well the termbox not supporting window is a thing in the C implementation nothing the Nim version can really change about that
17:09:31Calinoutcell apps work quite well on Windows in my experience, but it's a Go library
17:10:21FromGitter<zetashift> termbox-go does support Windows too but that also is a Go library :P
17:13:42FromGitter<zetashift> depending on your needs bearlibterminal might be a viable option
17:15:28*steve1 joined #nim
17:28:09*absolutejam_phon joined #nim
17:28:45absolutejam_phonSorry, DCd but thanks for your reply xace
17:30:17*BigEpsilon quit (Quit: WeeChat 2.3)
17:32:59*gangstacat quit (Quit: Ĝis!)
17:33:41absolutejam_phonI saw the nim_
17:34:26*gangstacat joined #nim
17:34:30absolutejam_phonnim-ncurses library but it looked like low level wrspper and i had no idea where to stary
17:34:33absolutejam_phonStart
17:42:21*abm joined #nim
17:52:37*absolutejam_phon quit (Remote host closed the connection)
17:59:09*absolutejam_phon joined #nim
18:04:48*absolutejam_phon quit (Ping timeout: 252 seconds)
18:07:08*absolutejam_phon joined #nim
18:15:52*absolutejam_phon quit (Read error: Connection timed out)
18:18:27*steve1 quit (Ping timeout: 240 seconds)
18:18:49*shpx quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:21:54*shpx joined #nim
18:26:03FromGitter<sotrhRaven> What does functional code look like in nim. Also is it difficult to embed a python and or lua interpreter?
18:26:28narimiransth.map(f1).filter(bool)
18:27:02*skellock quit (Ping timeout: 244 seconds)
18:27:35Zevvembedding lua is pretty trivial, the lua api is plain C with a pretty simple interface
18:27:56Zevvit's stack based, so it takes some effort to get your head around how to get the proper data in or take it out
18:28:02Araqlua.nim is in the official wrappers iirc
18:28:03xacesotrhRaven: functional code as in functional programming paradigm? in regard to python i just `import nimpy` and var numpy = pyImport("numpy")
18:28:04Zevvbut thats also in C, not a nim thing
18:30:20*skellock joined #nim
18:30:51FromGitter<sotrhRaven> I am thinking of trying to make a modal editor like vim with an interpreted config extension language like emacs just not elisp.
18:31:41skellockjester question: is there an option to specify the number threads? my current options seem to be --threads:off or --threads:on and then I get 8 (1 per core).
18:32:19*chemist69 quit (Quit: WeeChat 2.2)
18:34:20*absolutejam_phon joined #nim
18:37:23FromGitter<sotrhRaven> @xace yes as in the paradigm
18:38:20xacesotrhRaven, afaik it doesn't have it build in, but you could potentially implement it as a macro if you hate life
18:39:13xaceskellock: --threads:on /off is only meant for enabling thread support. implementing how many threads/cores being used is something you specify in the code
18:39:48FromGitter<sotrhRaven> Lol imperative is 👌
18:40:22xaceunfortunately i haven't messed around with jester yet as i need to find a method to wrap jester-apps with SSL, and my servers dont have enough RAM to run nginx so I need a very low ram usage SSL reverse tunnel or w/e you call it
18:42:14xacesotrhRaven: :) well the `nimpy` library works fine to me and is relatively simple to use... there is a nim-based modal editor if you are interested: https://github.com/fox0430/moe # or `nimble install moe`
18:44:27shashlickbearlibterminal looks interesting
18:45:00skellockxace: make sense, thx for the reply
18:45:56xaceshashlick: does it also run in regular terminals ? or is it a standolne type of thing
18:45:58*itschin quit (Ping timeout: 246 seconds)
18:46:18*dddddd quit (Ping timeout: 245 seconds)
18:46:52shashlicknever used it xace, but i guess it should
18:49:10shashlicknimterop works nicely on the header
18:50:21shashlicktoast -n -p BearLibTerminal.h => http://ix.io/1yg2
18:51:00*nsf joined #nim
18:52:55skellockshashlick: sweet baby jesus, that's pretty awesome... does it work too?
18:53:53absolutejam_phonIve never heard of bearlibterm but it looks awesome
18:54:19*Tyresc joined #nim
18:54:31absolutejam_phonWould i have to compile my project to c++ to use it though?
18:54:39*Vladar quit (Remote host closed the connection)
18:55:17absolutejam_phonOo https://github.com/zacharycarter/blt-nim/blob/master/examples/test.nim
18:55:27shashlickshellock - nim check passes
18:55:41shashlickbut still need to verify that it actually does the right thing 🙂
18:56:39skellockxace: [followup] it's httpbeast that sets it up -- and it works exactly how you just said; just diy -- thx again! https://github.com/dom96/httpbeast/blob/754a3ce2c5da7a2deff10ceaa3d88df733f3473d/src/httpbeast.nim#L396-L401
18:57:16shashlickabsolutejam_phon - oh nice @zacharycarter has already wrapped it
19:00:51Araqshashlick: I fixed Nimscript exception handling btw
19:02:26shashlickya I saw that - thanks for doing that! need to come back to my editor project
19:03:11shashlickspent the last few days on nimterop - it's pretty good now
19:05:00*dddddd joined #nim
19:07:56*kapil____ quit (Quit: Connection closed for inactivity)
19:11:48FromGitter<sotrhRaven> Moe looks interesting
19:12:00ZevvI'm still a bit confused about tuple field names, they feel a bit like second class citizens:
19:12:17Zevv- I can define a proc that returns anonymous tuples, but I can not define a type
19:12:25Zevv- repr just ignores tuple field names
19:12:51Zevv- I can create a type with one unnamed field only, like so: type A = tuple[int, b:int, c:string]
19:12:56ZevvIs there something obvious I am missing?
19:15:25shashlickAraq: is there any reason we do 3 iterations in koch boot?
19:15:34*skellock quit (Quit: WeeChat 2.3)
19:16:04AraqZevv: they are second class by design
19:16:32Araqshashlick: there is some proof that a fixpoint is always computed after 3 iterations
19:16:43Araq(if there is a fixpoint, that is)
19:17:59ZevvOh that explains. I just read "Araq mentioned in a pull request that named tuples might be removed from the language." in the forum (old message, feb 2017). Is that still relevant?
19:18:51shashlickAraq: is it okay to do just a single iteration on local machines during dev?
19:19:43shashlicknimscript exceptions work!
19:31:45FromDiscord_<j$> Im trying to get the ordinal value of an enum inside a macro, but I cant see mto figure out how to access the actual enum
19:32:52FromDiscord_<j$> I can pass in the ordinal value, but i'd prefer to pass in the enum
19:34:07Araqj$ I think n.intVal gives you the value
19:34:21AraqZevv: no but they will remain crippled
19:34:29Zevvfair enough
19:35:20FromDiscord_<j$> it doesn't it, "node lacks field: intVal"
19:45:26*rect0x51 joined #nim
19:48:05*rayman22201 joined #nim
19:49:17rect0x51is there an EOF constant in Nim? how to check end of file?
19:51:09*nsf quit (Quit: WeeChat 2.3)
19:57:33*sagax joined #nim
20:02:07Zevvj$: can you post a snippet of what you are trying to do?
20:02:57*a_b_m joined #nim
20:03:02ZevvnewStmtList(newCall(ident("int"), v)) works for me, which is basically just `int(v)`
20:04:21FromGitter<zetashift> rect0x51, doesn't readFile return false if the end has been reached?
20:05:59*abm quit (Ping timeout: 246 seconds)
20:10:34Araqrect0x51: system.endOfFile or something, don't remember
20:15:53*steve1 joined #nim
20:16:46*kungtotte quit (Remote host closed the connection)
20:20:32*steve1 quit (Ping timeout: 268 seconds)
20:26:34rect0x51thanks
20:27:25*rect0x51 quit (Quit: WeeChat 2.3)
20:28:43*Vladar joined #nim
20:37:17*lritter joined #nim
20:41:08*Trustable quit (Remote host closed the connection)
20:48:22*Elronnd is now known as Mennnnnnnnnnche
20:53:47*absolutejam_phon quit (Ping timeout: 240 seconds)
21:07:43*absolutejam_phon joined #nim
21:13:41absolutejam_phonCan i inspect procs at runtime?
21:13:44*skellock joined #nim
21:14:10absolutejam_phonLike, get a list, look at signatures and help etc
21:16:32*aguspiza joined #nim
21:20:06absolutejam_phonGuess itd be a macro
21:20:58xaceinspect in the sense of debugging?
21:22:17xacei usually `nim c --debugger:native myprog.nim && gdb myprog`
21:23:09absolutejam_phonNo, i mean in a reflection way
21:23:23Zevvabsolutejam_phon: for what its worth: http://paste.debian.net/1060308/
21:23:55absolutejam_phonSweet, thank you
21:24:12ZevvI wonder if there is much you can do with that, though
21:24:13absolutejam_phonFound a similar forum post too
21:25:27absolutejam_phonIm creating a CLI/shell tool that allows you to inspect and interact with objects
21:25:55Zevvwell, keep us posted on that!
21:26:22absolutejam_phonSo i may have a Cat type and in the shell, the user will be able to run exposed procs and access fields
21:26:24Zevvremember that it's all static though
21:26:37Zevvyou can't just pass as string, lookup the proc and get the signature at run time
21:27:44absolutejam_phonWould i have to generate the info at compile time?
21:28:00ZevvI guess so, my example is basically doing that at compile time as well
21:28:20Zevvfrom what I understand. But's is pretty new to me as well
21:28:50absolutejam_phonIve never dealt with a compiled language so its all a bit magical haha
21:29:06skellocksounds fun
21:29:11ZevvMy sample was bogus by the way
21:29:15Zevvthat's only compile time
21:29:33absolutejam_phonI dont mind generating a list of procs annotated with a pragma or something at compile time
21:29:40skellocki made something like that for javascript (but it was easy as you can imagine)
21:32:16absolutejam_phonYeah,i
21:32:19absolutejam_phonIve os
21:32:45absolutejam_phonDone similar in python
21:33:00*aguspiza quit (Ping timeout: 272 seconds)
21:33:04absolutejam_phonStupid phone keyboard
21:33:34ZevvThis one is "run time": http://paste.debian.net/1060311/
21:33:50Zevvthe string "signature is proc (a: int; b: string): bool" is built compile time, but available run time
21:34:15ZevvNo idea how you would automatically do this for all procs matching a specific pragma, or something like that, though
21:44:34AraqZevv: with wrapper procs that do some marshalling
21:45:14Araqproc fooWrapper(args: JsonNode) = foo(args[0].getInt, args[1].getStr)
21:45:32Araqthere are nimble packages that can do this for you.
21:47:18*a_b_m quit (Quit: Leaving)
21:52:10FromDiscord_<j$> https://pastebin.com/6D2tHRkg
21:54:37*narimiran quit (Ping timeout: 246 seconds)
22:13:01*ng0 quit (Ping timeout: 256 seconds)
22:13:42*dddddd quit (Ping timeout: 250 seconds)
22:17:05*steve1 joined #nim
22:18:21*ng0 joined #nim
22:19:21*dddddd joined #nim
22:19:31FromGitter<alehander42> Absolutejam
22:19:48FromGitter<alehander42> You can use debuginfi
22:19:50FromGitter<alehander42> For that
22:19:54FromGitter<alehander42> Eventually
22:20:05FromGitter<alehander42> But not sure of the arch of your shell
22:21:18*steve1 quit (Ping timeout: 245 seconds)
22:25:24FromGitter<tweenietomatoes> guys i promoted myself from MODERATED to SPAMMER in forum , can you please set me back to the original state and publish my question? thank you
22:28:25Araqno lol, re-register instead
22:28:43Araqwell maybe I can do it
22:29:56Araqok
22:41:28*absolutejam_phon quit (Remote host closed the connection)
22:59:38*skellock quit (Quit: WeeChat 2.3)
23:00:07FromGitter<kayabaNerve> When will Nim update accordingly? https://lwn.net/SubscriberLink/776435/664f2f0b0b6fc9f5/
23:00:18FromGitter<kayabaNerve> (2038 problem)
23:07:39*gangstacat quit (Ping timeout: 268 seconds)
23:08:04*gangstacat joined #nim
23:24:27*Vladar quit (Remote host closed the connection)
23:32:19*Geezus42 quit (Ping timeout: 268 seconds)
23:33:35*Geezus42 joined #nim
23:37:25*theelous3 joined #nim
23:47:10FromGitter<tweenietomatoes> thanks araq :D
23:48:41FromGitter<tweenietomatoes> something is not ok when i cant set every code block between { } nim should add this option for obsessed people like me
23:58:06FromGitter<zacharycarter> is there any way to change a forum username?
23:58:12FromGitter<zacharycarter> sort of like - a display name concept?
23:58:32FromGitter<zacharycarter> I wasn't going by zacharycarter on github when I created my forum handle, and now I am
23:58:49FromGitter<zacharycarter> my forum handle is carterza - and not that it matters, but I'm not sure people correlate my forum posts with me
23:59:33FromGitter<zacharycarter> I'm not even sure how to change my forum icon....
23:59:38FromGitter<zacharycarter> or avatar whatever
23:59:52FromGitter<zacharycarter> oh - gravatar