<< 10-11-2019 >>

00:00:01*junland quit (Quit: %ZNC Disconnected%)
00:01:16*junland joined #nim
00:07:24*krux02__ joined #nim
00:09:53*krux02_ quit (Ping timeout: 245 seconds)
00:10:17*couven92 quit (Ping timeout: 276 seconds)
00:10:45FromDiscord<Avatarfighter> So for the people who use karax, is there a way to access the response headers of an ajax request?
00:32:30*GordonBGood joined #nim
00:35:51*Hideki_ joined #nim
00:39:57*Hideki_ quit (Ping timeout: 240 seconds)
00:44:41FromGitter<s0kil> Are there any Nim bindings for the v8 engine?
00:45:57disrupteknot aware of any, but there's a quickjs wrapper.
00:48:43FromGitter<s0kil> Any idea what are the major differences between quickjs and duktape?
00:48:50disrupteknope.
01:05:50*fanta1 quit (Quit: fanta1)
01:25:53shashlickThere's a duktape wrapper too I think
01:30:17*Hideki_ joined #nim
02:22:08FromGitter<iffy> I know I can replicate the behavior of Python decorators with macros in Nim. But has anyone suggested adding a special syntax to nim for decorators? I really like the line-by-line stackability of Python decorators. For instance, like the Python click library: https://click.palletsprojects.com/en/7.x/
02:24:07disruptekhttps://github.com/disruptek/mws/blob/mws/boto/mws/connection.py#L571
02:28:58FromGitter<iffy> Was that to me?
02:30:22disruptekyeah, in the middle of something, but wanted to offer my BTDT :-D
02:30:31*sz0 joined #nim
02:32:59disruptekhow would your idea work?
02:33:38*Hideki_ quit (Ping timeout: 240 seconds)
02:50:30FromDiscord<exelotl> wow I didn't know about quickjs
02:50:34FromDiscord<exelotl> seems excellent
02:51:19FromGitter<iffy> disruptek: I dunno. Maybe the decorators have to be macros and they are given the function or maybe the AST as an argument?
02:56:16*lritter quit (Ping timeout: 240 seconds)
02:57:22*lritter joined #nim
03:26:34*uu91 quit (Read error: Connection reset by peer)
03:27:00*uu91 joined #nim
04:09:18disruptekiffy: i mean, what does it look like? draw some syntax.
04:30:55*Hideki_ joined #nim
04:36:00*Hideki_ quit (Ping timeout: 268 seconds)
04:45:22*dddddd quit (Remote host closed the connection)
04:49:47*chemist69 quit (Ping timeout: 276 seconds)
04:51:00*chemist69 joined #nim
04:56:58*theelous3 quit (Ping timeout: 268 seconds)
04:58:29*theelous3_ joined #nim
05:10:32*uu91 quit (Ping timeout: 268 seconds)
05:11:12*uu91 joined #nim
05:26:02FromGitter<Vindaar> @clyybber: you might be still asleep, so not sure if you see this. Yes, I still don't know what the root cause was of sometimes fast and sometimes slow. It's just that all the GC operations that took place were sometimes either fast and sometimes slow. But essentially the same number of calls to procs that copy were made according to callgrind. The difference was in the number of `interiorAllocatedPtr`, `contains` and
05:26:02FromGitter... `intSetGet`, which were all called O(230 mio times). But I don't know why :)
05:39:39*endragor joined #nim
05:39:45*letto quit (Read error: Connection reset by peer)
05:43:54FromDiscord<Avatarfighter> Would anyone know how to get around these two errors, I'm trying to access an attribute of a JsObject that contains a dollar sign and it seems to not play nice with jsffi :L https://dsh.re/c43c4
05:44:55FromDiscord<Avatarfighter> Here is my code incase someone is interested 😄 https://dsh.re/5b9b81
05:46:20FromDiscord<Avatarfighter> I believe I'm using everything correctly, though I could definitely be wrong and I wouldn't mind a bit of assistance haha
05:47:19*adeohluwa joined #nim
05:51:35*ponyrider joined #nim
05:53:19*endragor quit (Remote host closed the connection)
06:11:13FromGitter<Vindaar> I don't spend any time in JS land, let alone java land. the error says to escape the `$`. What happens if you try that?
06:13:04FromDiscord<Avatarfighter> When I escape it the regular way with a backslash the js backend replaces the field with `MangledString1` which isn't a valid field sadly, I fixed my issue by doing `hookedclass1.["$init"]` though!
06:13:30FromDiscord<Avatarfighter> I do have a new issue though now lmao
06:15:05FromDiscord<Avatarfighter> for some odd reason this `.overload("java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean", "boolean")` gets converted to this `.overload(("java.lang.String"), ("java.lang.String"), ("java.lang.String"), ("java.lang.String"), ("java.lang.String"), ("java.lang.String"), ("java.lang.S
06:18:10FromDiscord<Avatarfighter> I thought it would be fun making a https://frida.re/ wrapper for nim, I was sooo wrong
06:21:38FromGitter<Vindaar> you know, seeing all those long ass names is exactly why I don't want to deal with java :P (aside from playing with clojure sometimes :) )
06:22:41FromDiscord<Avatarfighter> ngl I love java just because of how easy it is to dynamically analyze
06:25:59*adeohluwa quit (Ping timeout: 276 seconds)
06:26:21FromDiscord<Avatarfighter> I must admit I'm definitely not used to wrapping stuff notably js and I have no idea if the output I got above is expected lol
06:36:45*solitudesf joined #nim
06:39:00*lritter quit (Ping timeout: 265 seconds)
06:44:41*adeohluwa joined #nim
06:45:41*adeohluwa quit (Remote host closed the connection)
06:48:06*adeohluwa joined #nim
06:49:28*solitudesf quit (Ping timeout: 245 seconds)
06:51:56Araqdunno either
06:52:08Araqpersonally $init screams to me "Hacker crap, do not use"
06:53:17*adeohluwa quit (Ping timeout: 240 seconds)
07:00:54*nsf joined #nim
07:11:19*fanta1 joined #nim
07:14:18*narimiran joined #nim
07:41:14*theelous3_ quit (Ping timeout: 240 seconds)
08:00:00*gmpreussner quit (Quit: kthxbye)
08:04:55*gmpreussner joined #nim
08:06:17*kungtotte quit (Ping timeout: 268 seconds)
08:30:10*oculuxe quit (Ping timeout: 265 seconds)
08:32:27*Hideki_ joined #nim
08:36:51*Hideki_ quit (Ping timeout: 250 seconds)
08:47:19*thomz joined #nim
09:15:12*uu91 quit (Read error: Connection reset by peer)
09:15:28*uu91 joined #nim
09:37:29*letto joined #nim
09:41:53*couven92 joined #nim
09:47:38*narimiran quit (Ping timeout: 240 seconds)
10:07:44*jjido joined #nim
10:16:17*oculux joined #nim
10:23:01*jjido quit (Quit: Textual IRC Client: www.textualapp.com)
10:31:40*thomz_ joined #nim
10:33:37*thomz quit (Ping timeout: 240 seconds)
10:37:22*thomz_ quit (Ping timeout: 268 seconds)
10:38:34*jjido joined #nim
10:38:34*jjido quit (Client Quit)
11:16:56*jjido joined #nim
11:22:23*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
11:24:32FromGitter<mratsim> some integration with VS code debugger would be nice for Nim yes
11:29:17*ng0 joined #nim
11:35:41*thomz_ joined #nim
11:36:04*thomz_ is now known as thomz
11:36:04*thomz quit (Remote host closed the connection)
11:36:17*thomz_ joined #nim
11:36:20*thomz_ is now known as thomz
11:42:42*endragor joined #nim
11:46:26*jjido joined #nim
11:47:02*thomz quit (Quit: Going offline, see ya! (www.adiirc.com))
12:12:20*endragor quit (Remote host closed the connection)
12:17:24*ng0 quit (Ping timeout: 260 seconds)
12:18:33*ng0 joined #nim
12:24:42*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:34:06*Hideki_ joined #nim
12:38:16*Hideki_ quit (Ping timeout: 240 seconds)
12:58:30*jjido joined #nim
13:06:57*dddddd joined #nim
13:14:23*krux02__ quit (Remote host closed the connection)
13:19:20*nsf quit (Quit: WeeChat 2.6)
13:21:52FromDiscord<kodkuce> https://goo.gl/NzUEPf. << link is broken for choosenim telemetry
13:29:53*GordonBGood quit (Ping timeout: 245 seconds)
13:31:35*Calinou joined #nim
13:42:09*exelotl joined #nim
14:02:38*theelous3 joined #nim
14:13:20FromGitter<Willyboar> You are very quite today :)
14:28:20Araqpeople don't work on Sunday
14:31:04FromGitter<Willyboar> i don't say to work. Nim is not work for everyone here.
14:32:52disruptekshhh i work every day. no days off.
14:32:58*drewr joined #nim
14:33:49FromGitter<Willyboar> i know you are :)
14:34:43*solitudesf joined #nim
14:39:21FromGitter<mratsim> break the compiler on Sunday for fun, repair it on Monday for profit
14:40:01FromGitter<Willyboar> something like that :P
14:41:41FromGitter<mratsim> By the way @Araq, I don't know about you but for the threading API, I'd rather have an eplit name than "^" for "await". Since await is taken and we use "sync" for global barrier, we can overload sync to await for a Flowvar
14:41:56FromDiscord<kodkuce> hmm whats that pastebin like site that just does it better whout javascript
14:42:06FromGitter<mratsim> And we can add a 3rd overload to wait at a local barrier variable
14:42:37FromGitter<mratsim> well "local" because it must be tagged {.global.} I think so that threads don't create their own
14:44:26FromGitter<mratsim> eplit --> explicit
14:45:17lqdev[m]@kodkuce ix.io
14:45:23FromDiscord<kodkuce> ty
14:45:40lqdev[m]you can use it from your terminal `cat some_file.txt | curl ix.io -F "f:1=<-"
14:48:51FromDiscord<kodkuce> http://ix.io/21oo
14:48:52disbot^ play at https://play.nim-lang.org/#ix=21oo 😏
14:49:07FromDiscord<kodkuce> hmm so is nible broken
14:49:24FromDiscord<kodkuce> i have nim path exported
14:49:30FromDiscord<kodkuce> so duno why it complins
14:50:58lqdev[m]can you run `nim` normally from your command line?
14:51:17FromDiscord<kodkuce> yep
14:52:21disrupteki agree that ^ was poorly named.
14:53:13lqdev[m]that seems strange. what is the output of `/bin/sh -c nim`?
14:53:41FromDiscord<kodkuce> /bin/sh: 1: nim: not found
14:53:57FromDiscord<kodkuce> export PATH="$PATH:~/.nimble/bin"
14:54:07FromDiscord<kodkuce> did i export it wrong?
14:54:08lqdev[m]where did you put that line?
14:54:16lqdev[m]no, it's fine.
14:54:17FromDiscord<kodkuce> bashrc
14:54:26FromDiscord<kodkuce> should i drop it in bashprofile insted
14:54:28lqdev[m]try putting it in ~/.profile
14:56:39FromDiscord<kodkuce> i dont have profile i have .bashprofile that same or should i make profile too
14:56:47FromDiscord<kodkuce> need logout to test right?
14:59:13FromDiscord<kodkuce> hmm puthing in ~/.bash_profile dident help guess will create .prfile
15:01:16FromDiscord<kodkuce> nah same issue
15:01:19FromDiscord<kodkuce> dident help
15:02:55FromGitter<auxym> Hi. Is there a way to access the internal list of an `OrderedTable` other than iterators? Like, say I want to access the n'th element by insertion order?
15:06:36lqdev[m]@kodkuce try running `sh` and then `source ~/.profile`
15:06:45lqdev[m]not sure if it'll help, though
15:07:36FromDiscord<kodkuce> sh: 1: source: not found
15:08:57FromDiscord<kodkuce> bash.sh colorls.sh gawk.csh gawk.sh locale.sh mozplugin.sh vte.sh
15:09:30FromDiscord<kodkuce> this is in my /etc/profile.d
15:12:22disruptekis nim actually in ~/.nimble/bin?
15:13:18*Hideki_ joined #nim
15:14:00FromDiscord<kodkuce> yep
15:15:17FromDiscord<kodkuce> https://pasteboard.co/IG3xaz4.png
15:15:48FromDiscord<kodkuce> i did login logout, do i need to meybe restart?
15:16:00disruptekyou don't need to do either of those.
15:16:24FromDiscord<kodkuce> then duno weird i am first time having this issue
15:16:46FromDiscord<kodkuce> form what i understand sh is not detecting it and bash does
15:16:59FromDiscord<kodkuce> is exporting syntax for sh meybe diferent
15:17:01disrupteksh /is/ bash.
15:17:28disruptekyes, but it's in your env so it shouldn't need to be exported again.
15:18:06*Hideki_ quit (Ping timeout: 265 seconds)
15:18:36disruptekall i can think is that nimble is doing something stupid wrt the environment.
15:18:44dom96try changing ~ to $HOME
15:19:03dom96and make sure your PATH is correct in your terminal by running `echo $PATH`
15:19:19disruptekhe can run nim in his terminal.
15:19:24FromDiscord<kodkuce> /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:~/.nimble/bin << FROM ECHO
15:19:59dom96what's the error you're getting when running nimble?
15:20:08disruptekhttp://ix.io/21oo
15:20:09disbot^ play at https://play.nim-lang.org/#ix=21oo 😏
15:20:14FromDiscord<kodkuce> http://ix.io/21oo
15:20:14disbot^ play at https://play.nim-lang.org/#ix=21oo 😏
15:20:39FromDiscord<kodkuce> when i run sh -c /bin/nim i get too not found
15:21:01disruptek/bin/nim isn't a thing.
15:21:06FromDiscord<kodkuce> so my logic its linux related not nimble tought i am meybe wrong
15:21:22FromDiscord<kodkuce> /bin/sh -c nim << sorry this
15:21:33FromDiscord<kodkuce> /bin/sh: 1: nim: not found
15:22:12disruptekdo you have nim aliased in bash?
15:22:13dom96very strange
15:22:40disrupteki guess your profile is blowing away your env.
15:23:07FromDiscord<kodkuce> nah only allieas i have is i just added this for uploading alias toSHARE="curl -F 'f:1=<-' ix.io"
15:23:20FromDiscord<kodkuce> can commenit it out too #
15:23:21dom96easy workaround: sudo ln -s $HOME/.nimble/bin/nim /usr/local/bin/nim
15:23:35FromDiscord<kodkuce> 🙂
15:23:38disruptekset some random var in your env and then see if a sh script can echo it.
15:27:32FromDiscord<kodkuce> Note: In Void Linux /bin/sh is symlinked to /bin/dash, not /bin/bash, unlike many distributions. << MEYBE THIS TROLING ME
15:27:50disruptekyep.
15:28:10FromDiscord<kodkuce> https://pasteboard.co/IG3CnNf.png
15:28:11disruptekprobably you need to `export PATH` separately from `set PATH=`.
15:28:41disruptekie. after setting it.
15:29:38disruptekyour WTFFF test wouldn't work because you don't export it.
15:29:48FromDiscord<kodkuce> oh lol
15:30:13FromDiscord<kodkuce> missed that too
15:30:36disruptekdash is compat with sh but too few sh scripts are compatible with sh, so...
15:31:21FromDiscord<kodkuce> you shure i dont need reloag for .profile to work cuz addint export dident help, brb
15:33:11disruptekdash only reads .profile if it's a login shell.
15:35:16lqdev[m]how can I check if a `ntyTypeDesc` points to a `ref object`?
15:40:35lqdev[m]also, I wonder why passing a symbol to a macro results in an `ntyTypeDesc`, but getting the return type of a proc results in an `ntyRef`
15:43:15FromGitter<mratsim> foo is ref
15:44:09*nsf joined #nim
15:44:15FromGitter<mratsim> @auxym no way to index an OrderedTable by position unfortunately
15:44:21lqdev[m]@mratsim that won't work in a macro
15:44:55FromGitter<auxym> @mratsim Thanks! I figured, I rolled my own object type wrapping a hidden table+seq
15:48:19FromDiscord<kodkuce> export PATH="$HOME/.nimble/bin:$PATH" << WORKS STUPIT DASH
15:48:26FromDiscord<kodkuce> ty all
15:51:10disrupteknice; it takes a village.
15:53:49*krux02 joined #nim
15:54:27*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:11:08*dddddd quit (Ping timeout: 245 seconds)
16:12:13*dddddd joined #nim
16:22:02*theelous3 quit (Ping timeout: 276 seconds)
16:27:21shashlickLooks like it is the same as this original issue https://github.com/nim-lang/nimble/issues/696
16:27:51*NimBot joined #nim
16:27:59shashlickCan someone please post solution so that we can close it?
16:29:24disruptekit's not the same.
16:29:59disruptekthe issue is that neither sh or dash translate ~ into $HOME.
16:31:48FromGitter<mratsim> @lqdev, maybe use sameType(mySym, bindSym"ref")
16:32:47FromGitter<mratsim> I wish you the best of luck before the biggest adventure of you life: working with types in macros
16:33:20FromGitter<mratsim> I will give the territory I have charted and for the rest "here be dragons"
16:33:44FromGitter<mratsim> https://github.com/nim-lang/RFCs/issues/44
16:38:46disruptekmratsim loves throwing out RFC 44.
16:39:08FromGitter<mratsim> Oh and so that you don't lose an afternoon, once a typedesc is a Nimnode, there is no turning back
16:39:20FromGitter<mratsim> actually @disruptek, that's not even close ;)
16:39:41disruptekmratsim /hates/ throwing out RFC 44.
16:39:45FromGitter<mratsim> This one is much worse: https://github.com/nim-lang/Nim/issues/8677
16:39:46disbot^ [Meta] Generics/Static early symbol resolution
16:40:02disruptekty disbot
16:40:04lqdev[m]@mratsim guess what. I'm working with types in macros.
16:40:23lqdev[m]for like, the past few weeks
16:40:54FromGitter<mratsim> Did you see the sun? :P
16:41:20*lqdev joined #nim
16:41:31lqdevmaybe once or twice
16:41:56lqdevmatrix seems to be ded, btw.
16:42:17FromGitter<mratsim> I don't know who hosts the relay or even how it works
16:42:33lqdevit's hosted by matrix themselves
16:43:20lqdevbut it's not a problem with the relay; it's just homeserver slowness going on again as usual
16:44:14lqdevwell, I think I'm done with the first version of my Wren wrapper https://github.com/liquid600pgm/euwren
16:44:23lqdevtell me what you think, feedback is appreciated
16:46:01*lqdev quit (Client Quit)
16:46:21FromGitter<mratsim> The readme looks very goo
16:46:23FromGitter<mratsim> good
16:46:26*lqdev joined #nim
16:46:51FromGitter<mratsim> but in this example: https://github.com/liquid600pgm/euwren#binding-procs ⏎ ⏎ I don't see the source code of add and sub, are they built-in?
16:47:14FromGitter<mratsim> ah it's defined on top
16:47:39FromGitter<mratsim> I think you need a first example "Hello from Nim" that you call in Wren
16:48:31FromGitter<mratsim> yep, I confirm that looks very interesting
16:49:08lqdevhmm, I'll add one. I agree the first example with procs is too complex
16:49:28FromGitter<mratsim> Is that used in games in place of Lua or Lisp?
16:50:54lqdevit doesn't have to be used in games, but yeah
16:51:43FromGitter<mratsim> It seems like Wren uses libuv, will you map that to asyncdispatch or libuv?
16:52:23FromDiscord<Avatarfighter> Guys I'm proud to announce I'm making progress on my wrapper of frida.re 😄 I've ironed out my main issues haha
16:53:13lqdev@mratsim Wren only uses libuv in the CLI, it doesn't have io when used as an embedded scripting language
16:53:22lqdevthe embedder has to implement that themselves
16:53:54FromGitter<mratsim> Ah I see
16:54:43FromGitter<mratsim> I only see 2 expectKind in your code. I find them very helpful when i have to re-read my macro code months later. It's like poor man type system in the macro world.
16:55:21lqdevI know, the error reporting is pretty bad rn but I hope to solve it once I get to use the wrapper a little more
16:55:27FromGitter<mratsim> Anywhere you took some time to figure out how to do something you should add expectKind or a comment so you don't refigure it out 3 months from now
16:55:50lqdevI tried to do that
16:55:54FromGitter<mratsim> otherwise it looks pretty good
16:56:07FromGitter<mratsim> congrats are in order
16:56:28lqdevthanks!
16:56:42lqdevI guess the next thing to implement would be inheritance support in type checking
16:57:06*d10n quit (Quit: why all the #hashtags #lol #hackers #overheard)
16:58:24*lqdev quit (Read error: Connection reset by peer)
16:58:34*lqdev joined #nim
17:02:12*d10n joined #nim
17:02:12*d10n quit (Changing host)
17:02:12*d10n joined #nim
17:03:02FromGitter<mratsim> > euwren (pronounced oyren, like euro in German) ⏎ ⏎ The best reason to learn German?
17:03:53lqdevdunno, maybe
17:04:04lqdevI just like how 'euro' is pronounced
17:07:30lqdevalso, I changed the pronounciation becuase I don't like how when you pronounce it in english it sounds like 'urine'. my wrapper's not piss, duh
17:07:43lqdevand I couldn't make up a better name
17:08:02*narimiran joined #nim
17:08:27*uu91 quit (Read error: Connection reset by peer)
17:08:48*uu91 joined #nim
17:14:31disrupteksounds fine to me; who doesn't know how to pronounce `urine`?
17:15:15disruptekseems like the namespace macro could also build the string input to `module`, right?
17:17:36lqdevdisruptek: I don't do that, since the user might want to put some extra methods on the generated class
17:18:32disruptekmaybe you could just offer an api to do that.
17:19:03lqdevhmm, I'll think about that
17:19:05disrupteks/ProgLangauge/ProgLanguage/
17:19:51lqdevthanks, fixing
17:22:13disruptekdo wren instances communicate with one another?
17:35:21*filcuc joined #nim
17:46:01*fanta1 quit (Quit: fanta1)
17:54:55lqdevdisruptek: no
17:56:13disruptekso the only way to move data from one vm to the other is through individual nim objects?
17:59:12lqdevyes
18:01:38*lritter joined #nim
18:06:14*lqdev_ joined #nim
18:09:16*lqdev quit (Ping timeout: 240 seconds)
18:10:28*theelous3 joined #nim
18:20:08*fanta1 joined #nim
18:21:37*clyybber joined #nim
18:27:32*lqdev_ quit (Quit: Leaving)
18:32:36*ng0 quit (Ping timeout: 260 seconds)
18:37:50*clyybber quit (Quit: WeeChat 2.6)
18:40:28*ng0 joined #nim
18:47:36FromDiscord<kodkuce> why nim c wont output errors to txt
18:47:37FromDiscord<kodkuce> nim c Auth.nim >> wtf.txt
18:48:01*fanta1 quit (Quit: fanta1)
18:48:47FromDiscord<Chiqqum_Ngbata> 2>&1 >> wtf.txt ?
18:49:33FromDiscord<kodkuce> what
18:49:43Araqyou need to redirect stderr too
18:49:58FromDiscord<kodkuce> echo "zzzz" >> wtf.txt
18:50:10FromDiscord<kodkuce> oh
18:52:27FromDiscord<kodkuce> nim c Auth.nim 2>&1 >> wtf.txt
18:52:34FromDiscord<kodkuce> like this right? still getting nothing
18:52:45FromDiscord<kodkuce> /home/me/.nimble/pkgs/jwt-0.2/jwt/private/crypto.nim(31, 24) Error: type mismatch: got <ptr PemDecoderContext, proc (ctx: pointer, pbytes: pointer, nbytes: int){.cdecl.}, pointer>
18:53:47*filcuc quit (Ping timeout: 268 seconds)
18:54:14FromDiscord<kodkuce> im c --stdout:on
18:54:21FromDiscord<kodkuce> i needed this stdout thingy
18:54:40Zevvother way around: echo zzzz > wtf.txt 2>&1
18:54:41Zevvit's terrible
18:56:01FromDiscord<kodkuce> oh dident know this 2>&1 is put on end 😦
18:57:51FromDiscord<kodkuce> http://ix.io/21pz
18:57:52disbot^ play at https://play.nim-lang.org/#ix=21pz 😏
18:58:13FromDiscord<kodkuce> so anyone know why i get this , this script worked like 5month ago
18:59:27FromDiscord<kodkuce> guess need to read about that jwt, there some type change or soemthign
19:03:27FromDiscord<kodkuce> or w8 @yglukhov and :disruptek fix it
19:04:18disruptekyes, you need the latest version so it works with any nim.
19:04:40disrupteksadly, no release was tagged. so you have to specify the #head.
19:05:27FromDiscord<kodkuce> oh no stable ok,
19:05:41FromGitter<yglukhov> or just reinstall, and nimble will fetch the latest
19:06:21FromDiscord<kodkuce> i have choosenim and i did fresh OS install today
19:06:33FromDiscord<kodkuce> but i picked stable, you talking about nim not jwt package
19:06:44FromDiscord<kodkuce> need to change form stable to #head devel?
19:07:12disruptekactually, that's a different error unrelated to my patch.
19:07:21FromGitter<yglukhov> no, i was talking about jwt. but if you're saying you installed it today? hm...
19:08:03FromDiscord<kodkuce> yep and i am running stable nim
19:08:13FromDiscord<kodkuce> Version: 1.0.2
19:08:51FromDiscord<kodkuce> error is Error: type mismatch: so that should be kinda easy to solve or at least i think 🙂
19:12:04*gangstacat quit (Ping timeout: 264 seconds)
19:12:59*gangstacat joined #nim
19:13:18FromGitter<yglukhov> I can't reproduce it. Can you show me a minimal reproducible sample and the nim flags you're using?
19:14:56*Hideki_ joined #nim
19:17:14FromDiscord<kodkuce> can try i used almost no flags at all
19:17:31FromDiscord<kodkuce> just -d:ssl cuz i thinked it probbaly needed
19:19:10*Hideki_ quit (Ping timeout: 252 seconds)
19:20:50*uu91 quit (Ping timeout: 240 seconds)
19:20:52*nsf quit (Quit: WeeChat 2.6)
19:21:36*uu91 joined #nim
19:24:52FromDiscord<kodkuce> ygulkhov: http://ix.io/21pH
19:24:53disbot^ play at https://play.nim-lang.org/#ix=21pH 😏
19:25:27FromDiscord<kodkuce> lol i copy pasted frogot to put names xD
19:26:28FromDiscord<kodkuce> http://ix.io/21pJ
19:26:29disbot^ play at https://play.nim-lang.org/#ix=21pJ 😏
19:26:34FromDiscord<kodkuce> ok here updaed
19:26:56FromDiscord<kodkuce> nimble v0.11.0 compiled at 2019-11-10 13:48:49
19:28:50FromDiscord<kodkuce> [me@oldcan jwt-0.2]$ nimble check jwt
19:28:51FromDiscord<kodkuce> Success: jwt is valid!
19:30:18FromGitter<yglukhov> is it like `nim c test.nim`?
19:30:49FromDiscord<kodkuce> nim c minimalerror.nim
19:31:01FromDiscord<kodkuce> so yes
19:31:05FromDiscord<kodkuce> kinda 🙂
19:32:28FromGitter<yglukhov> weird, i'm not getting any errors. try adding gcsafe to prc and see where it leads
19:32:45FromDiscord<kodkuce> i did fresh OS install is it possible that i am missing some lib tought it complains about type mistmach for proc right
19:33:30FromGitter<yglukhov> yeah, jwt shouldnt depend on os or any libs.
19:33:42FromDiscord<kodkuce> then duno
19:33:57FromDiscord<kodkuce> when you run same you dont get error?
19:35:06FromGitter<yglukhov> nope, compiles just fine. add gcsafe pragma to prc arg definition to fix it or get a more meaningful error
19:35:36FromGitter<yglukhov> you're sure you've got no local changes that should trigger it? :)
19:35:53FromGitter<yglukhov> i mean did you try nimble install -y jwt?
19:36:57*jjido joined #nim
19:37:56FromDiscord<kodkuce> just tryed nimble install -y jwt didnet help, nah i dident touch it just instlled OS today and did nimble install stuff
19:38:40FromDiscord<kodkuce> added proc pemDecoderLoop(pem: string, prc: proc(ctx: pointer, pbytes: pointer, nbytes: int) {.cdecl, gcsafe.}, ctx: pointer) = now gcsafe here to test
19:41:05FromGitter<yglukhov> so does it help? or what's the new error?
19:42:03FromDiscord<kodkuce> wtf
19:42:05*Jesin quit (Quit: Leaving)
19:42:17FromDiscord<kodkuce> i head toannotate 2 more procs with gcsafe
19:42:23FromDiscord<kodkuce> and now it compiles no error
19:43:29FromDiscord<kodkuce> http://ix.io/21pL
19:43:30disbot^ play at https://play.nim-lang.org/#ix=21pL 😏
19:43:54FromDiscord<kodkuce> runing too now works
19:43:58FromDiscord<kodkuce> ./minimalerror
19:43:58FromDiscord<kodkuce> eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywiZXhwIjoxNTczNTAxNDIxLCJyb2xlIjoiYWRtaW4ifQ.X0sYx-R_lzVgnodlHECG7Y_HKyeq2qH2-PXR83gHHUQ
19:44:36shashlick@disruptek I felt it is similar since the issue submitter had the same /bin/sh issue mentioned here
19:45:00shashlickThe other posters mention other things which mixes up the issue
19:45:18FromGitter<yglukhov> kodkuce: yeah, strange. but whatever. we can forget about it as soon as you file the pr :)
19:46:47FromDiscord<kodkuce> you want me to file pr ? i just added for pemDecoderLoop on line 16 44 and 49 ,gcsafe.
19:49:10shashlick@disruptek am using your bot.nim as a base for my needs, thanks for getting it working
19:49:12FromGitter<yglukhov> ah ok, ill add it myself
19:49:15shashlicklooks like the irc package needs a new tag
19:49:36disruptekshashlick: cool; lemme know how it works.
19:49:39FromDiscord<kodkuce> np i can add
19:49:51FromDiscord<kodkuce> i am poor on PRs
19:50:51FromGitter<yglukhov> ok go ahead then :)
19:55:23disruptekthere's a variant object bug in dbus which crashes me very rarely; other than that, the bot is pretty stable.
20:00:19*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
20:02:10*jjido joined #nim
20:02:35FromDiscord<kodkuce> lol i just cloned wrong jwt to make a preq xD was wtf wehre is https://github.com/ekarlso/nim-jwt crypt.nim in xD aahahah
20:03:05*Jesin joined #nim
20:13:22FromDiscord<kodkuce> yglukhov: it took some time but done
20:36:03*freddy92 joined #nim
20:36:41*couven92 quit (Disconnected by services)
20:36:48*freddy92 is now known as couven92
20:45:16*narimiran quit (Ping timeout: 240 seconds)
20:47:14*clyybber joined #nim
20:51:42zedeusdom96: I narrowed down the cause of the "Bad file descriptor" bug with jester/asynchttpserver, please take a look at the issue
20:54:29zedeustl;dr: `socket.send` is called with asyncCheck instead of `await` causing the connection to close immediately
20:56:18*Kaivo quit (Quit: WeeChat 2.6)
21:07:51FromDiscord<kodkuce> anyone know why proc cb(req: Request) {.async, gcsafe.} = >>>> waitFor server.serve(Port(8888), cb) undeclared identifier: 'cb' , vscode shows me as problem ofc it compiles np
21:11:17*GordonBGood joined #nim
21:12:48FromDiscord<Lantos> out of curiosity is it posible to for nim to be changed to run like rust ( as in the no gcc, immutable, mutable, referenced vars) or if any one has tried?
21:13:26Araqnlvm uses LLVM instead of GCC. dunno what you want for mutable
21:15:09*clyybber quit (Quit: WeeChat 2.6)
21:15:10FromDiscord<Lantos> neat I'll check out nlvm
21:15:46*GordonBGood quit (Ping timeout: 265 seconds)
21:18:29FromDiscord<Lantos> nice post here https://www.reddit.com/r/programming/comments/37gnxw/nim_on_llvm_vs_c/
21:18:30FromDiscord<Lantos> thanks for the direction Araq
21:27:35Araqnotice that all the major improvements are implemented as AST transformations so that it's easier for nlvm to keep up with Nim's development.
21:30:26*Hideki_ joined #nim
21:33:04FromDiscord<itmuckel> Hey guys! Does this happen for you too? In Visual Studio Code, nim plugin, when I type object, it shows me this useless autocompletion. Then I press Esc and I exited vim's insert mode. Surely not how it is intended, right?
21:33:05FromDiscord<itmuckel> https://cdn.discordapp.com/attachments/371759389889003532/643201482073702431/unknown.png
21:33:49lqdev[m]wait, what. vim?
21:34:12lqdev[m]are you using a vim plugin for vscode?
21:34:18FromDiscord<itmuckel> Yeah, I additionally have the vim plugin turned on. 😅
21:34:51FromDiscord<Lantos> I turned vim plugin off for vscode. It clashes. I found it not plying nice with keybindings also
21:34:58lqdev[m]why don't you just use nim.nvim, if you want a vim like experience?
21:35:20*Hideki_ quit (Ping timeout: 276 seconds)
21:35:29lqdev[m]I heard it's better than the vscode plugin
21:36:25FromDiscord<itmuckel> Ouch, looks like another rabbit hole. So I'll set up neovim now. 😄
21:36:47FromDiscord<itmuckel> There's no programming without vim. 😦
21:41:47FromDiscord<Lantos> ahh I see araq the "safe" runtime is being talked about
21:41:47FromDiscord<Lantos>
21:41:47FromDiscord<Lantos> https://forum.nim-lang.org/t/5459#34123
21:41:47FromDiscord<Lantos>
21:41:48FromDiscord<Lantos> This is what I was thinking 30 mins ago
21:44:26*Jjp137 quit (Ping timeout: 276 seconds)
21:44:27FromDiscord<krab4t> @itmuckel it happens all the time, that plugin almost useless
21:45:16FromDiscord<itmuckel> I wish there was an IntelliJ plugin for nim.
22:06:54*Jjp137 joined #nim
22:17:09*solitudesf quit (Ping timeout: 265 seconds)
22:24:56*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
22:31:29*jjido joined #nim
22:31:59*nim67 joined #nim
22:45:50*tklohna joined #nim
22:50:03*nim67 quit (Remote host closed the connection)
22:52:23*couven92 quit (Remote host closed the connection)
22:54:46*couven92 joined #nim
22:54:57*couven92 quit (Remote host closed the connection)
22:55:22*couven92 joined #nim
22:56:58FromDiscord<exelotl> worst thing with Nim vscode completion is when you type "proc foo() =" then when you hit return, it autocompletes the "=" to "`-=`"
22:57:44FromDiscord<itmuckel> Yes! That's the other thing annoying thing I forgot. 🙄
22:59:07FromDiscord<ZeeQyu> What would be the minimum viable feature list for a IntelliJ plugin, for your use case?
22:59:22FromDiscord<ZeeQyu> @itmuckel
23:00:33FromDiscord<itmuckel> @ZeeQyu Syntax Highlighting, useful code completion, import suggestions(!)
23:00:47FromDiscord<itmuckel> Refactoring support for renaming
23:00:58FromDiscord<ZeeQyu> How about go to definition/usages?
23:01:07FromDiscord<ZeeQyu> Not essential?
23:01:14FromDiscord<itmuckel> Yes, that too
23:02:09FromDiscord<ZeeQyu> That's a fairly limited list, as I see it. It's only import suggestions I'm curious how difficult it would be.
23:02:58FromDiscord<ZeeQyu> I started the process of learning what I need to create such a plugin, but life happened, so I haven't touched it for a few weeks. But I wish to revisit it soon.
23:03:22*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
23:03:29FromDiscord<krab4t> working code completion not that default feature that works in any editor "complete what you already typed" :\
23:04:28FromDiscord<ZeeQyu> I'm unsure if I understand what you mean. Is the feature you're frustrated about something like where a drop-down appears that has one item which is what you wrote and nothing else?
23:04:29FromDiscord<itmuckel> You have something to work with? I built a plugin for Common Lisp written in Kotlin two weeks ago. Refactoring it for nim should be a bit of work, but not too complicated. 😄
23:05:48FromDiscord<itmuckel> @ZeeQyu Did you start writing a plugin specifically for nim?
23:07:40FromDiscord<ZeeQyu> I have the Jetbrains' tutorial, which goes over simple lexing. Which would mean writing/converting the language interpretation in their framework. Alternatively, I might get their framework to work nicely with nimsuggest, but I'm unsure if that's viable considering their plugin interface.
23:07:40FromDiscord<ZeeQyu>
23:07:40FromDiscord<ZeeQyu> My goal is to write a plugin specifically for nim, but I haven't gotten to writing it yet, still on the learning part.
23:07:51FromDiscord<ZeeQyu> What code would be reusable from your plugin?
23:08:46FromDiscord<ZeeQyu> As I see it, the difficult part is the language-specific part. The interfacing part seems straight-forward.
23:09:50dom96zedeus, I thought we already knew this was the cause? :)
23:10:07FromDiscord<ZeeQyu> ( I need sleep, but I'll respond later @itmuckel . )
23:10:31FromDiscord<itmuckel> Yeah, I'll see what I can salvage from my other plugin tomorrow. See ya!
23:11:15FromDiscord<krab4t> @ZeeQyu https://i.imgur.com/Jhxt8gf.png
23:11:27FromDiscord<itmuckel> xD
23:12:12FromDiscord<itmuckel> But even this the vscode-nim plugin should figure out
23:12:27FromDiscord<itmuckel> The suggestions aren't always that far off
23:14:05zedeusdom96: sort of, reading through #12325 you mentioned asyncCheck but it seemed like you were talking about fixing the symptom (adding asyncExceptionHandler) rather than the cause
23:14:22dom96zedeus, I commented
23:31:14*luis_ joined #nim
23:32:15*pbb quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
23:32:29*pbb joined #nim
23:43:18*tklohna quit (Ping timeout: 246 seconds)
23:52:00*luis_ quit (Quit: luis_)
23:52:25*luis_ joined #nim