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:45 | FromDiscord | <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:41 | FromGitter | <s0kil> Are there any Nim bindings for the v8 engine? |
00:45:57 | disruptek | not aware of any, but there's a quickjs wrapper. |
00:48:43 | FromGitter | <s0kil> Any idea what are the major differences between quickjs and duktape? |
00:48:50 | disruptek | nope. |
01:05:50 | * | fanta1 quit (Quit: fanta1) |
01:25:53 | shashlick | There's a duktape wrapper too I think |
01:30:17 | * | Hideki_ joined #nim |
02:22:08 | FromGitter | <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:07 | disruptek | https://github.com/disruptek/mws/blob/mws/boto/mws/connection.py#L571 |
02:28:58 | FromGitter | <iffy> Was that to me? |
02:30:22 | disruptek | yeah, in the middle of something, but wanted to offer my BTDT :-D |
02:30:31 | * | sz0 joined #nim |
02:32:59 | disruptek | how would your idea work? |
02:33:38 | * | Hideki_ quit (Ping timeout: 240 seconds) |
02:50:30 | FromDiscord | <exelotl> wow I didn't know about quickjs |
02:50:34 | FromDiscord | <exelotl> seems excellent |
02:51:19 | FromGitter | <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:18 | disruptek | iffy: 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:02 | FromGitter | <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:02 | FromGitter | ... `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:54 | FromDiscord | <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:55 | FromDiscord | <Avatarfighter> Here is my code incase someone is interested 😄 https://dsh.re/5b9b81 |
05:46:20 | FromDiscord | <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:13 | FromGitter | <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:04 | FromDiscord | <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:30 | FromDiscord | <Avatarfighter> I do have a new issue though now lmao |
06:15:05 | FromDiscord | <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:10 | FromDiscord | <Avatarfighter> I thought it would be fun making a https://frida.re/ wrapper for nim, I was sooo wrong |
06:21:38 | FromGitter | <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:41 | FromDiscord | <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:21 | FromDiscord | <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:56 | Araq | dunno either |
06:52:08 | Araq | personally $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:32 | FromGitter | <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:52 | FromDiscord | <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:20 | FromGitter | <Willyboar> You are very quite today :) |
14:28:20 | Araq | people don't work on Sunday |
14:31:04 | FromGitter | <Willyboar> i don't say to work. Nim is not work for everyone here. |
14:32:52 | disruptek | shhh i work every day. no days off. |
14:32:58 | * | drewr joined #nim |
14:33:49 | FromGitter | <Willyboar> i know you are :) |
14:34:43 | * | solitudesf joined #nim |
14:39:21 | FromGitter | <mratsim> break the compiler on Sunday for fun, repair it on Monday for profit |
14:40:01 | FromGitter | <Willyboar> something like that :P |
14:41:41 | FromGitter | <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:56 | FromDiscord | <kodkuce> hmm whats that pastebin like site that just does it better whout javascript |
14:42:06 | FromGitter | <mratsim> And we can add a 3rd overload to wait at a local barrier variable |
14:42:37 | FromGitter | <mratsim> well "local" because it must be tagged {.global.} I think so that threads don't create their own |
14:44:26 | FromGitter | <mratsim> eplit --> explicit |
14:45:17 | lqdev[m] | @kodkuce ix.io |
14:45:23 | FromDiscord | <kodkuce> ty |
14:45:40 | lqdev[m] | you can use it from your terminal `cat some_file.txt | curl ix.io -F "f:1=<-" |
14:48:51 | FromDiscord | <kodkuce> http://ix.io/21oo |
14:48:52 | disbot | ^ play at https://play.nim-lang.org/#ix=21oo 😏 |
14:49:07 | FromDiscord | <kodkuce> hmm so is nible broken |
14:49:24 | FromDiscord | <kodkuce> i have nim path exported |
14:49:30 | FromDiscord | <kodkuce> so duno why it complins |
14:50:58 | lqdev[m] | can you run `nim` normally from your command line? |
14:51:17 | FromDiscord | <kodkuce> yep |
14:52:21 | disruptek | i agree that ^ was poorly named. |
14:53:13 | lqdev[m] | that seems strange. what is the output of `/bin/sh -c nim`? |
14:53:41 | FromDiscord | <kodkuce> /bin/sh: 1: nim: not found |
14:53:57 | FromDiscord | <kodkuce> export PATH="$PATH:~/.nimble/bin" |
14:54:07 | FromDiscord | <kodkuce> did i export it wrong? |
14:54:08 | lqdev[m] | where did you put that line? |
14:54:16 | lqdev[m] | no, it's fine. |
14:54:17 | FromDiscord | <kodkuce> bashrc |
14:54:26 | FromDiscord | <kodkuce> should i drop it in bashprofile insted |
14:54:28 | lqdev[m] | try putting it in ~/.profile |
14:56:39 | FromDiscord | <kodkuce> i dont have profile i have .bashprofile that same or should i make profile too |
14:56:47 | FromDiscord | <kodkuce> need logout to test right? |
14:59:13 | FromDiscord | <kodkuce> hmm puthing in ~/.bash_profile dident help guess will create .prfile |
15:01:16 | FromDiscord | <kodkuce> nah same issue |
15:01:19 | FromDiscord | <kodkuce> dident help |
15:02:55 | FromGitter | <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:36 | lqdev[m] | @kodkuce try running `sh` and then `source ~/.profile` |
15:06:45 | lqdev[m] | not sure if it'll help, though |
15:07:36 | FromDiscord | <kodkuce> sh: 1: source: not found |
15:08:57 | FromDiscord | <kodkuce> bash.sh colorls.sh gawk.csh gawk.sh locale.sh mozplugin.sh vte.sh |
15:09:30 | FromDiscord | <kodkuce> this is in my /etc/profile.d |
15:12:22 | disruptek | is nim actually in ~/.nimble/bin? |
15:13:18 | * | Hideki_ joined #nim |
15:14:00 | FromDiscord | <kodkuce> yep |
15:15:17 | FromDiscord | <kodkuce> https://pasteboard.co/IG3xaz4.png |
15:15:48 | FromDiscord | <kodkuce> i did login logout, do i need to meybe restart? |
15:16:00 | disruptek | you don't need to do either of those. |
15:16:24 | FromDiscord | <kodkuce> then duno weird i am first time having this issue |
15:16:46 | FromDiscord | <kodkuce> form what i understand sh is not detecting it and bash does |
15:16:59 | FromDiscord | <kodkuce> is exporting syntax for sh meybe diferent |
15:17:01 | disruptek | sh /is/ bash. |
15:17:28 | disruptek | yes, 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:36 | disruptek | all i can think is that nimble is doing something stupid wrt the environment. |
15:18:44 | dom96 | try changing ~ to $HOME |
15:19:03 | dom96 | and make sure your PATH is correct in your terminal by running `echo $PATH` |
15:19:19 | disruptek | he can run nim in his terminal. |
15:19:24 | FromDiscord | <kodkuce> /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:~/.nimble/bin << FROM ECHO |
15:19:59 | dom96 | what's the error you're getting when running nimble? |
15:20:08 | disruptek | http://ix.io/21oo |
15:20:09 | disbot | ^ play at https://play.nim-lang.org/#ix=21oo 😏 |
15:20:14 | FromDiscord | <kodkuce> http://ix.io/21oo |
15:20:14 | disbot | ^ play at https://play.nim-lang.org/#ix=21oo 😏 |
15:20:39 | FromDiscord | <kodkuce> when i run sh -c /bin/nim i get too not found |
15:21:01 | disruptek | /bin/nim isn't a thing. |
15:21:06 | FromDiscord | <kodkuce> so my logic its linux related not nimble tought i am meybe wrong |
15:21:22 | FromDiscord | <kodkuce> /bin/sh -c nim << sorry this |
15:21:33 | FromDiscord | <kodkuce> /bin/sh: 1: nim: not found |
15:22:12 | disruptek | do you have nim aliased in bash? |
15:22:13 | dom96 | very strange |
15:22:40 | disruptek | i guess your profile is blowing away your env. |
15:23:07 | FromDiscord | <kodkuce> nah only allieas i have is i just added this for uploading alias toSHARE="curl -F 'f:1=<-' ix.io" |
15:23:20 | FromDiscord | <kodkuce> can commenit it out too # |
15:23:21 | dom96 | easy workaround: sudo ln -s $HOME/.nimble/bin/nim /usr/local/bin/nim |
15:23:35 | FromDiscord | <kodkuce> 🙂 |
15:23:38 | disruptek | set some random var in your env and then see if a sh script can echo it. |
15:27:32 | FromDiscord | <kodkuce> Note: In Void Linux /bin/sh is symlinked to /bin/dash, not /bin/bash, unlike many distributions. << MEYBE THIS TROLING ME |
15:27:50 | disruptek | yep. |
15:28:10 | FromDiscord | <kodkuce> https://pasteboard.co/IG3CnNf.png |
15:28:11 | disruptek | probably you need to `export PATH` separately from `set PATH=`. |
15:28:41 | disruptek | ie. after setting it. |
15:29:38 | disruptek | your WTFFF test wouldn't work because you don't export it. |
15:29:48 | FromDiscord | <kodkuce> oh lol |
15:30:13 | FromDiscord | <kodkuce> missed that too |
15:30:36 | disruptek | dash is compat with sh but too few sh scripts are compatible with sh, so... |
15:31:21 | FromDiscord | <kodkuce> you shure i dont need reloag for .profile to work cuz addint export dident help, brb |
15:33:11 | disruptek | dash only reads .profile if it's a login shell. |
15:35:16 | lqdev[m] | how can I check if a `ntyTypeDesc` points to a `ref object`? |
15:40:35 | lqdev[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:15 | FromGitter | <mratsim> foo is ref |
15:44:09 | * | nsf joined #nim |
15:44:15 | FromGitter | <mratsim> @auxym no way to index an OrderedTable by position unfortunately |
15:44:21 | lqdev[m] | @mratsim that won't work in a macro |
15:44:55 | FromGitter | <auxym> @mratsim Thanks! I figured, I rolled my own object type wrapping a hidden table+seq |
15:48:19 | FromDiscord | <kodkuce> export PATH="$HOME/.nimble/bin:$PATH" << WORKS STUPIT DASH |
15:48:26 | FromDiscord | <kodkuce> ty all |
15:51:10 | disruptek | nice; 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:21 | shashlick | Looks 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:59 | shashlick | Can someone please post solution so that we can close it? |
16:29:24 | disruptek | it's not the same. |
16:29:59 | disruptek | the issue is that neither sh or dash translate ~ into $HOME. |
16:31:48 | FromGitter | <mratsim> @lqdev, maybe use sameType(mySym, bindSym"ref") |
16:32:47 | FromGitter | <mratsim> I wish you the best of luck before the biggest adventure of you life: working with types in macros |
16:33:20 | FromGitter | <mratsim> I will give the territory I have charted and for the rest "here be dragons" |
16:33:44 | FromGitter | <mratsim> https://github.com/nim-lang/RFCs/issues/44 |
16:38:46 | disruptek | mratsim loves throwing out RFC 44. |
16:39:08 | FromGitter | <mratsim> Oh and so that you don't lose an afternoon, once a typedesc is a Nimnode, there is no turning back |
16:39:20 | FromGitter | <mratsim> actually @disruptek, that's not even close ;) |
16:39:41 | disruptek | mratsim /hates/ throwing out RFC 44. |
16:39:45 | FromGitter | <mratsim> This one is much worse: https://github.com/nim-lang/Nim/issues/8677 |
16:39:46 | disbot | ^ [Meta] Generics/Static early symbol resolution |
16:40:02 | disruptek | ty disbot |
16:40:04 | lqdev[m] | @mratsim guess what. I'm working with types in macros. |
16:40:23 | lqdev[m] | for like, the past few weeks |
16:40:54 | FromGitter | <mratsim> Did you see the sun? :P |
16:41:20 | * | lqdev joined #nim |
16:41:31 | lqdev | maybe once or twice |
16:41:56 | lqdev | matrix seems to be ded, btw. |
16:42:17 | FromGitter | <mratsim> I don't know who hosts the relay or even how it works |
16:42:33 | lqdev | it's hosted by matrix themselves |
16:43:20 | lqdev | but it's not a problem with the relay; it's just homeserver slowness going on again as usual |
16:44:14 | lqdev | well, I think I'm done with the first version of my Wren wrapper https://github.com/liquid600pgm/euwren |
16:44:23 | lqdev | tell me what you think, feedback is appreciated |
16:46:01 | * | lqdev quit (Client Quit) |
16:46:21 | FromGitter | <mratsim> The readme looks very goo |
16:46:23 | FromGitter | <mratsim> good |
16:46:26 | * | lqdev joined #nim |
16:46:51 | FromGitter | <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:14 | FromGitter | <mratsim> ah it's defined on top |
16:47:39 | FromGitter | <mratsim> I think you need a first example "Hello from Nim" that you call in Wren |
16:48:31 | FromGitter | <mratsim> yep, I confirm that looks very interesting |
16:49:08 | lqdev | hmm, I'll add one. I agree the first example with procs is too complex |
16:49:28 | FromGitter | <mratsim> Is that used in games in place of Lua or Lisp? |
16:50:54 | lqdev | it doesn't have to be used in games, but yeah |
16:51:43 | FromGitter | <mratsim> It seems like Wren uses libuv, will you map that to asyncdispatch or libuv? |
16:52:23 | FromDiscord | <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:13 | lqdev | @mratsim Wren only uses libuv in the CLI, it doesn't have io when used as an embedded scripting language |
16:53:22 | lqdev | the embedder has to implement that themselves |
16:53:54 | FromGitter | <mratsim> Ah I see |
16:54:43 | FromGitter | <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:21 | lqdev | I 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:27 | FromGitter | <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:50 | lqdev | I tried to do that |
16:55:54 | FromGitter | <mratsim> otherwise it looks pretty good |
16:56:07 | FromGitter | <mratsim> congrats are in order |
16:56:28 | lqdev | thanks! |
16:56:42 | lqdev | I 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:02 | FromGitter | <mratsim> > euwren (pronounced oyren, like euro in German) ⏎ ⏎ The best reason to learn German? |
17:03:53 | lqdev | dunno, maybe |
17:04:04 | lqdev | I just like how 'euro' is pronounced |
17:07:30 | lqdev | also, 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:43 | lqdev | and 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:31 | disruptek | sounds fine to me; who doesn't know how to pronounce `urine`? |
17:15:15 | disruptek | seems like the namespace macro could also build the string input to `module`, right? |
17:17:36 | lqdev | disruptek: I don't do that, since the user might want to put some extra methods on the generated class |
17:18:32 | disruptek | maybe you could just offer an api to do that. |
17:19:03 | lqdev | hmm, I'll think about that |
17:19:05 | disruptek | s/ProgLangauge/ProgLanguage/ |
17:19:51 | lqdev | thanks, fixing |
17:22:13 | disruptek | do wren instances communicate with one another? |
17:35:21 | * | filcuc joined #nim |
17:46:01 | * | fanta1 quit (Quit: fanta1) |
17:54:55 | lqdev | disruptek: no |
17:56:13 | disruptek | so the only way to move data from one vm to the other is through individual nim objects? |
17:59:12 | lqdev | yes |
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:36 | FromDiscord | <kodkuce> why nim c wont output errors to txt |
18:47:37 | FromDiscord | <kodkuce> nim c Auth.nim >> wtf.txt |
18:48:01 | * | fanta1 quit (Quit: fanta1) |
18:48:47 | FromDiscord | <Chiqqum_Ngbata> 2>&1 >> wtf.txt ? |
18:49:33 | FromDiscord | <kodkuce> what |
18:49:43 | Araq | you need to redirect stderr too |
18:49:58 | FromDiscord | <kodkuce> echo "zzzz" >> wtf.txt |
18:50:10 | FromDiscord | <kodkuce> oh |
18:52:27 | FromDiscord | <kodkuce> nim c Auth.nim 2>&1 >> wtf.txt |
18:52:34 | FromDiscord | <kodkuce> like this right? still getting nothing |
18:52:45 | FromDiscord | <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:14 | FromDiscord | <kodkuce> im c --stdout:on |
18:54:21 | FromDiscord | <kodkuce> i needed this stdout thingy |
18:54:40 | Zevv | other way around: echo zzzz > wtf.txt 2>&1 |
18:54:41 | Zevv | it's terrible |
18:56:01 | FromDiscord | <kodkuce> oh dident know this 2>&1 is put on end 😦 |
18:57:51 | FromDiscord | <kodkuce> http://ix.io/21pz |
18:57:52 | disbot | ^ play at https://play.nim-lang.org/#ix=21pz 😏 |
18:58:13 | FromDiscord | <kodkuce> so anyone know why i get this , this script worked like 5month ago |
18:59:27 | FromDiscord | <kodkuce> guess need to read about that jwt, there some type change or soemthign |
19:03:27 | FromDiscord | <kodkuce> or w8 @yglukhov and :disruptek fix it |
19:04:18 | disruptek | yes, you need the latest version so it works with any nim. |
19:04:40 | disruptek | sadly, no release was tagged. so you have to specify the #head. |
19:05:27 | FromDiscord | <kodkuce> oh no stable ok, |
19:05:41 | FromGitter | <yglukhov> or just reinstall, and nimble will fetch the latest |
19:06:21 | FromDiscord | <kodkuce> i have choosenim and i did fresh OS install today |
19:06:33 | FromDiscord | <kodkuce> but i picked stable, you talking about nim not jwt package |
19:06:44 | FromDiscord | <kodkuce> need to change form stable to #head devel? |
19:07:12 | disruptek | actually, that's a different error unrelated to my patch. |
19:07:21 | FromGitter | <yglukhov> no, i was talking about jwt. but if you're saying you installed it today? hm... |
19:08:03 | FromDiscord | <kodkuce> yep and i am running stable nim |
19:08:13 | FromDiscord | <kodkuce> Version: 1.0.2 |
19:08:51 | FromDiscord | <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:18 | FromGitter | <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:14 | FromDiscord | <kodkuce> can try i used almost no flags at all |
19:17:31 | FromDiscord | <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:52 | FromDiscord | <kodkuce> ygulkhov: http://ix.io/21pH |
19:24:53 | disbot | ^ play at https://play.nim-lang.org/#ix=21pH 😏 |
19:25:27 | FromDiscord | <kodkuce> lol i copy pasted frogot to put names xD |
19:26:28 | FromDiscord | <kodkuce> http://ix.io/21pJ |
19:26:29 | disbot | ^ play at https://play.nim-lang.org/#ix=21pJ 😏 |
19:26:34 | FromDiscord | <kodkuce> ok here updaed |
19:26:56 | FromDiscord | <kodkuce> nimble v0.11.0 compiled at 2019-11-10 13:48:49 |
19:28:50 | FromDiscord | <kodkuce> [me@oldcan jwt-0.2]$ nimble check jwt |
19:28:51 | FromDiscord | <kodkuce> Success: jwt is valid! |
19:30:18 | FromGitter | <yglukhov> is it like `nim c test.nim`? |
19:30:49 | FromDiscord | <kodkuce> nim c minimalerror.nim |
19:31:01 | FromDiscord | <kodkuce> so yes |
19:31:05 | FromDiscord | <kodkuce> kinda 🙂 |
19:32:28 | FromGitter | <yglukhov> weird, i'm not getting any errors. try adding gcsafe to prc and see where it leads |
19:32:45 | FromDiscord | <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:30 | FromGitter | <yglukhov> yeah, jwt shouldnt depend on os or any libs. |
19:33:42 | FromDiscord | <kodkuce> then duno |
19:33:57 | FromDiscord | <kodkuce> when you run same you dont get error? |
19:35:06 | FromGitter | <yglukhov> nope, compiles just fine. add gcsafe pragma to prc arg definition to fix it or get a more meaningful error |
19:35:36 | FromGitter | <yglukhov> you're sure you've got no local changes that should trigger it? :) |
19:35:53 | FromGitter | <yglukhov> i mean did you try nimble install -y jwt? |
19:36:57 | * | jjido joined #nim |
19:37:56 | FromDiscord | <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:40 | FromDiscord | <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:05 | FromGitter | <yglukhov> so does it help? or what's the new error? |
19:42:03 | FromDiscord | <kodkuce> wtf |
19:42:05 | * | Jesin quit (Quit: Leaving) |
19:42:17 | FromDiscord | <kodkuce> i head toannotate 2 more procs with gcsafe |
19:42:23 | FromDiscord | <kodkuce> and now it compiles no error |
19:43:29 | FromDiscord | <kodkuce> http://ix.io/21pL |
19:43:30 | disbot | ^ play at https://play.nim-lang.org/#ix=21pL 😏 |
19:43:54 | FromDiscord | <kodkuce> runing too now works |
19:43:58 | FromDiscord | <kodkuce> ./minimalerror |
19:43:58 | FromDiscord | <kodkuce> eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywiZXhwIjoxNTczNTAxNDIxLCJyb2xlIjoiYWRtaW4ifQ.X0sYx-R_lzVgnodlHECG7Y_HKyeq2qH2-PXR83gHHUQ |
19:44:36 | shashlick | @disruptek I felt it is similar since the issue submitter had the same /bin/sh issue mentioned here |
19:45:00 | shashlick | The other posters mention other things which mixes up the issue |
19:45:18 | FromGitter | <yglukhov> kodkuce: yeah, strange. but whatever. we can forget about it as soon as you file the pr :) |
19:46:47 | FromDiscord | <kodkuce> you want me to file pr ? i just added for pemDecoderLoop on line 16 44 and 49 ,gcsafe. |
19:49:10 | shashlick | @disruptek am using your bot.nim as a base for my needs, thanks for getting it working |
19:49:12 | FromGitter | <yglukhov> ah ok, ill add it myself |
19:49:15 | shashlick | looks like the irc package needs a new tag |
19:49:36 | disruptek | shashlick: cool; lemme know how it works. |
19:49:39 | FromDiscord | <kodkuce> np i can add |
19:49:51 | FromDiscord | <kodkuce> i am poor on PRs |
19:50:51 | FromGitter | <yglukhov> ok go ahead then :) |
19:55:23 | disruptek | there'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:35 | FromDiscord | <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:22 | FromDiscord | <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:42 | zedeus | dom96: I narrowed down the cause of the "Bad file descriptor" bug with jester/asynchttpserver, please take a look at the issue |
20:54:29 | zedeus | tl;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:51 | FromDiscord | <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:48 | FromDiscord | <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:26 | Araq | nlvm uses LLVM instead of GCC. dunno what you want for mutable |
21:15:09 | * | clyybber quit (Quit: WeeChat 2.6) |
21:15:10 | FromDiscord | <Lantos> neat I'll check out nlvm |
21:15:46 | * | GordonBGood quit (Ping timeout: 265 seconds) |
21:18:29 | FromDiscord | <Lantos> nice post here https://www.reddit.com/r/programming/comments/37gnxw/nim_on_llvm_vs_c/ |
21:18:30 | FromDiscord | <Lantos> thanks for the direction Araq |
21:27:35 | Araq | notice 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:04 | FromDiscord | <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:05 | FromDiscord | <itmuckel> https://cdn.discordapp.com/attachments/371759389889003532/643201482073702431/unknown.png |
21:33:49 | lqdev[m] | wait, what. vim? |
21:34:12 | lqdev[m] | are you using a vim plugin for vscode? |
21:34:18 | FromDiscord | <itmuckel> Yeah, I additionally have the vim plugin turned on. 😅 |
21:34:51 | FromDiscord | <Lantos> I turned vim plugin off for vscode. It clashes. I found it not plying nice with keybindings also |
21:34:58 | lqdev[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:29 | lqdev[m] | I heard it's better than the vscode plugin |
21:36:25 | FromDiscord | <itmuckel> Ouch, looks like another rabbit hole. So I'll set up neovim now. 😄 |
21:36:47 | FromDiscord | <itmuckel> There's no programming without vim. 😦 |
21:41:47 | FromDiscord | <Lantos> ahh I see araq the "safe" runtime is being talked about |
21:41:47 | FromDiscord | <Lantos> |
21:41:47 | FromDiscord | <Lantos> https://forum.nim-lang.org/t/5459#34123 |
21:41:47 | FromDiscord | <Lantos> |
21:41:48 | FromDiscord | <Lantos> This is what I was thinking 30 mins ago |
21:44:26 | * | Jjp137 quit (Ping timeout: 276 seconds) |
21:44:27 | FromDiscord | <krab4t> @itmuckel it happens all the time, that plugin almost useless |
21:45:16 | FromDiscord | <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:58 | FromDiscord | <exelotl> worst thing with Nim vscode completion is when you type "proc foo() =" then when you hit return, it autocompletes the "=" to "`-=`" |
22:57:44 | FromDiscord | <itmuckel> Yes! That's the other thing annoying thing I forgot. 🙄 |
22:59:07 | FromDiscord | <ZeeQyu> What would be the minimum viable feature list for a IntelliJ plugin, for your use case? |
22:59:22 | FromDiscord | <ZeeQyu> @itmuckel |
23:00:33 | FromDiscord | <itmuckel> @ZeeQyu Syntax Highlighting, useful code completion, import suggestions(!) |
23:00:47 | FromDiscord | <itmuckel> Refactoring support for renaming |
23:00:58 | FromDiscord | <ZeeQyu> How about go to definition/usages? |
23:01:07 | FromDiscord | <ZeeQyu> Not essential? |
23:01:14 | FromDiscord | <itmuckel> Yes, that too |
23:02:09 | FromDiscord | <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:58 | FromDiscord | <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:29 | FromDiscord | <krab4t> working code completion not that default feature that works in any editor "complete what you already typed" :\ |
23:04:28 | FromDiscord | <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:29 | FromDiscord | <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:48 | FromDiscord | <itmuckel> @ZeeQyu Did you start writing a plugin specifically for nim? |
23:07:40 | FromDiscord | <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:40 | FromDiscord | <ZeeQyu> |
23:07:40 | FromDiscord | <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:51 | FromDiscord | <ZeeQyu> What code would be reusable from your plugin? |
23:08:46 | FromDiscord | <ZeeQyu> As I see it, the difficult part is the language-specific part. The interfacing part seems straight-forward. |
23:09:50 | dom96 | zedeus, I thought we already knew this was the cause? :) |
23:10:07 | FromDiscord | <ZeeQyu> ( I need sleep, but I'll respond later @itmuckel . ) |
23:10:31 | FromDiscord | <itmuckel> Yeah, I'll see what I can salvage from my other plugin tomorrow. See ya! |
23:11:15 | FromDiscord | <krab4t> @ZeeQyu https://i.imgur.com/Jhxt8gf.png |
23:11:27 | FromDiscord | <itmuckel> xD |
23:12:12 | FromDiscord | <itmuckel> But even this the vscode-nim plugin should figure out |
23:12:27 | FromDiscord | <itmuckel> The suggestions aren't always that far off |
23:14:05 | zedeus | dom96: 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:22 | dom96 | zedeus, 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 |