<< 14-10-2019 >>

00:50:58*PrimHelios quit (Quit: Leaving)
00:53:06*zahary joined #nim
01:08:49FromDiscord<krab4t> any ideas how to parse stuff like this https://pastebin.com/Zpc8xSgp in nim? it could be done with npeg? never did any parsing on any language
01:16:18*zahary quit (Quit: Leaving.)
01:44:27*zahary joined #nim
01:56:30FromGitter<zetashift> krab4t You could always take a stab at it with npeg, personally I don't see a reason why it wouldn't
02:03:43FromGitter<Varriount> PrimHelios: Possibly.
02:21:04*zahary quit (Quit: Leaving.)
02:21:12*zahary joined #nim
02:21:48*zahary quit (Client Quit)
02:35:51*WilhelmVonWeiner quit (Remote host closed the connection)
02:41:02*nif_ quit (Quit: ...)
02:41:12*nif joined #nim
02:55:04*nif quit (Quit: ...)
02:55:13*nif joined #nim
03:09:57*dddddd quit (Remote host closed the connection)
03:29:09*theelous3 joined #nim
03:30:17*rockcavera quit (Remote host closed the connection)
03:39:12*chemist69 quit (Ping timeout: 246 seconds)
03:41:25*chemist69 joined #nim
03:55:45*lritter joined #nim
04:00:37*theelous3 quit (Ping timeout: 240 seconds)
04:32:10*pbb quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
04:32:28*pbb joined #nim
04:36:13*pbb quit (Client Quit)
04:36:27*pbb joined #nim
04:48:31*skoude joined #nim
04:50:47*nsf joined #nim
05:16:40*narimiran joined #nim
05:26:58*skoude quit (Ping timeout: 268 seconds)
05:37:44*laaron joined #nim
05:39:51*laaron quit (Client Quit)
05:40:11*laaron joined #nim
05:42:06*laaron quit (Client Quit)
05:42:49*laaron joined #nim
05:44:22*alexander92 joined #nim
05:46:21*laaron quit (Client Quit)
05:47:01*laaron joined #nim
05:49:02*laaron quit (Client Quit)
05:50:06*laaron joined #nim
05:54:08*laaron quit (Client Quit)
05:54:28*laaron joined #nim
05:55:55*laaron quit (Client Quit)
05:56:25*laaron joined #nim
05:58:15*laaron quit (Client Quit)
05:59:15*laaron joined #nim
06:01:42*solitudesf joined #nim
06:03:17*alexander92 quit (Ping timeout: 240 seconds)
06:04:05*laaron quit (Client Quit)
06:04:30*laaron joined #nim
06:07:54*fanta1 joined #nim
06:08:19*laaron quit (Client Quit)
06:10:07*laaron joined #nim
06:10:51*laaron quit (Client Quit)
06:11:08Zevvkrav4t: should be pretty trivial to do
06:11:14*laaron joined #nim
06:14:03FromDiscord<djazz> Sometimes I wish I could disable nim's underscore and case sensitivity "Identifier 'GstBufferList_autoptr' is a stylistic duplicate of identifier 'GstBuffer_listautoptr'"
06:14:19*skoude joined #nim
06:14:55leorizeyou should never name things like that :P
06:15:14FromDiscord<djazz> no, im using nimterop to change the symbols of the lib
06:15:24leorize--styleCheck:error will force everything to one style
06:15:39leorizealso, does gstreamer not have an gintrospection interface?
06:15:57*skoude quit (Client Quit)
06:16:21FromDiscord<djazz> it does but i wasn't able to make it work easily with gintro
06:16:35*laaron quit (Quit: ZNC 1.7.4 - https://znc.in)
06:16:46leorizejust make an issue in the repo
06:16:46FromDiscord<djazz> so im doing plain ffi
06:17:00leorizegintro dev is really responsive
06:17:13*laaron joined #nim
06:23:33*couven92 joined #nim
06:24:36*zahary joined #nim
06:25:40*laaron quit (Quit: ZNC 1.7.4 - https://znc.in)
06:34:53*zahary quit (Quit: Leaving.)
06:39:51*Hideki quit (Disconnected by services)
06:40:25*Hideki_ joined #nim
06:40:59FromDiscord<Corax> hmmm, this crashes: https://play.nim-lang.org/#ix=1YBt (with -d:ssl)
06:41:03FromDiscord<Corax> is it a known problem?
06:41:34FromDiscord<Corax> I'm trying to use dom96's WebDriver, which I was having trouble with, so I went a bit lower level with http_client and I can't get it to work either
06:41:49FromDiscord<Corax> hmmm, this doesn't compile: https://play.nim-lang.org/#ix=1YBt (with -d:ssl)
06:42:04FromDiscord<Corax> I get some type mismatch deep in asyncnet
06:42:29leorizeit's working fine here
06:42:35leorizewhat version of nim are you running?
06:47:37FromDiscord<Corax> 1.0.0
06:47:53*solitudesf quit (Remote host closed the connection)
06:47:55FromDiscord<Corax> compiled with "nim c -d:ssl"
06:48:22*solitudesf joined #nim
06:48:24FromDiscord<djazz> works fine here too
06:48:57FromDiscord<Corax> not sure what I'm missing then
06:49:06leorizemaybe try reinstalling nim?
06:49:34FromDiscord<Corax> On arch linux, what's the best way to install it? Somehow I end up with shadowed packages between what I got from choosenim and nimble
06:50:04FromDiscord<Corax> e.g. " Warning: Binary 'nim' is shadowed by '/home/corax/.choosenim/toolchains/nim-1.0.0/bin/nim'." when doing "choosenim update stable"
06:50:29leorizenag the maintainer of nim package until that person update nim to 1.0
06:51:39leorizeor if the maintainer no longer wants to maintain the nim package
06:51:51leorizetell them to release it to AUR so that the community can update it
06:52:44FromDiscord<Corax> so yeah I'm pretty stumped by this, since I got started with nim in 1.0.0, so it's unlikely I have odd version mismatches
06:53:07FromDiscord<Corax> unless my stdlib is on a different version somehow? not sure how I'd even check that
06:55:04leorizewhat's your PATH?
06:55:39FromDiscord<Corax> (before I answer that, it looks like my stdlib is under nim-1.0.0 so it should be OK)
06:55:41FromDiscord<Corax> as for my path
06:55:59FromDiscord<Corax> the relevant parts would be:
06:56:03FromDiscord<Corax> ```
06:56:03FromDiscord<Corax> /home/corax/.choosenim/toolchains/nim-1.0.0/bin:/home/corax/.nimble/bin/
06:56:03FromDiscord<Corax> ```
06:57:09leorizeremove choosenim from your PATH
06:57:34leorizechoosenim by default inject binaries into .nimble/bin
06:57:43leorizeso you don't need to have the binaries in your PATH
06:57:56FromDiscord<Corax> ah got it
06:57:58FromDiscord<Corax> done
06:58:10leorizealright, now what's your complination error?
06:58:32FromDiscord<Corax> should I paste it here or get a pastebin up?
06:58:37FromDiscord<Corax> it's about 15 lines long
06:58:42leorizepastebin please
06:58:47FromDiscord<Corax> kk
06:59:11FromDiscord<Corax> https://pastebin.com/LBkA2ETw
07:00:00*gmpreussner quit (Quit: kthxbye)
07:00:41leorizetry switching to devel?
07:01:39FromDiscord<Corax> let's see
07:03:34*alexander92 joined #nim
07:04:53*gmpreussner joined #nim
07:07:04*krux02 joined #nim
07:10:01FromDiscord<Corax> yeah compiles fine on devel
07:10:05FromDiscord<Corax> thanks!
07:11:05FromDiscord<Corax> no wait
07:11:21FromDiscord<Corax> it still doesn't, the moment I use a https schema
07:12:54FromDiscord<Corax> nevermind, I'm profoundly stupid. I had two terminals open and I hadn't realized I was using the one that hasn't picked up the change in nim binary
07:13:12leorize:P
07:13:33*PMunch joined #nim
07:13:52leorizedoes choosenim allow you to test custom branches of the compiler?
07:14:27PMunchYes
07:14:38PMunchCheck them out locally, and then choosenim <path>
07:16:50*alexander92 quit (Ping timeout: 240 seconds)
07:21:24*salewski joined #nim
07:21:59FromDiscord<moigagoo> @dom96 Hi Dominik! Please share admin permissions in the Telegram channel to Miran, we're getting flooded with spam and need to add an anti spam bot.
07:22:13salewskihttps://irclogs.nim-lang.org/14-10-2019.html#06:16:21
07:22:18*dddddd joined #nim
07:22:22salewski> <djazz> it does but i wasn't able to make it work easily with gintro
07:22:58salewskiWell djazz, you never asked about gstreamer, so I never added it :-)
07:23:40salewskiAdding is generally easy, but then I have to test it -- and I don't know what
07:23:54salewskiexactly gstreamer is at all.
07:24:13salewskiBut I can try aading it.
07:25:02*alexander92 joined #nim
07:25:06salewskiBye.
07:25:32*Vladar joined #nim
07:26:04PMunchmogagoo, Miran already is an Admin in the Telegram group
07:26:33narimiranPMunch: but i don't have all the permisions that dom96 has, so i cannot add these spam-fighting bots
07:27:00FromGitter<alehander42> PMunch do you get nim submissions already
07:27:11PMunchAaah, there is more to Admin than just being admin?
07:27:22PMunchalehander42, just a sec. I'll check
07:28:12PMunchNah, so far only 1 talk proposed
07:28:24PMunchSo submit away :)
07:28:51*salewski quit (Quit: WeeChat 2.5)
07:29:53FromGitter<alehander42> i dont know if ill submit
07:30:01FromGitter<alehander42> just asking as a user :P
07:31:16PMunchDamn it, I toyed around with the web-framework stuff but forgot to bring the updated code with me..
07:31:31PMunchI should really start creating more git repos on my server for this stuff
07:31:44PMunchInstead of the old USB stick transfer method
07:33:40FromGitter<alehander42> yep, git repos for all
07:34:47*sealmove joined #nim
07:40:12*xet7 quit (Quit: Leaving)
07:42:50*xet7 joined #nim
07:52:24*asymptotically joined #nim
07:53:10*couven92 quit (Read error: Connection reset by peer)
07:53:37*couven92 joined #nim
07:58:05*freddy92 joined #nim
08:02:22*couven92 quit (Ping timeout: 268 seconds)
08:03:06sealmoveUpdated README.md describing the idea of the project, take a look ;] https://github.com/sealmove/hex
08:03:46*gmpreussner_ joined #nim
08:04:27*gmpreussner quit (Ping timeout: 240 seconds)
08:16:38*WilhelmVonWeiner joined #nim
08:17:40*zahary joined #nim
08:31:04*filcuc joined #nim
08:31:39*freddy92 quit (Read error: Connection reset by peer)
08:32:03*freddy92 joined #nim
08:33:08*freddy92 quit (Read error: Connection reset by peer)
08:33:32*freddy92 joined #nim
08:39:24*floppydh joined #nim
08:41:53*couven92 joined #nim
08:43:19*couven92 quit (Read error: Connection reset by peer)
08:46:38*couven92 joined #nim
08:59:57*alexander92 quit (Ping timeout: 240 seconds)
09:02:21*alexander92 joined #nim
09:12:06*traviss quit (Quit: Leaving)
09:17:24*filcuc quit (Read error: Connection reset by peer)
09:28:21*solitudesf quit (Ping timeout: 265 seconds)
09:47:13Zevvnice sealmove
09:47:48sealmoveI am thinking of changing the name though, any ideas? :>
09:52:26*alexander92 quit (Ping timeout: 240 seconds)
09:54:28Zevvxim
09:54:44Zevvbut you'd have to give it vim-like keybindings though, to avoid confusion
09:54:49*alexander92 joined #nim
09:56:52*asymptotically quit (Quit: Leaving)
09:57:21sealmovethe final goal is nimx GUI
09:58:28Zevvthat was tongue-in-cheek
09:58:55Zevvxim would still work. Short, hexlike and nimlike
09:59:15*alexander92 quit (Ping timeout: 240 seconds)
09:59:18Zevvand not take in debian :)
10:00:12narimiranand 'x' is pronounced like it is in LaTeX (greek letter chi)
10:00:56narimiranso you can call it xexi (hexi) :)
10:01:37sealmoveboth could work! nice suggestions
10:01:39narimiranand some might read/pronounce it as 'sexy' :)
10:01:52sealmoveyes, depending on appetit
10:07:37sealmovexexi reminds me of https://github.com/xi-editor/xi-editor
10:10:01narimiranwell, both are editors, and yours is heX-Editor :)
10:10:45narimiran(i proposed Xexi (semi-)jokingly, but now i start to like it, lol)
10:12:11Zevvit clearly wins from xim :)
10:15:36*couven92 quit (Quit: Disconnecting)
10:15:37sealmovehed and bed already taken lol: https://github.com/fr0zn/hed https://github.com/itchyny/bed
10:34:30FromDiscord<krab4t> how you check in nim if line startsWith ` " `
10:34:35FromDiscord<krab4t> quote
10:35:10narimiranyou escape the quote with a backslash?
10:35:17narimiran`"\""`
10:35:35FromDiscord<krab4t> i see
10:43:07ZevvHmmm, can I take a procvar ref to an operator?
10:46:48FromDiscord<krab4t> i can't just call ` sline.strip.removePrefix("some prefix") ` because sline.strip is immutable? O_o
10:47:38*freddy92 quit (Read error: Connection reset by peer)
10:48:07*freddy92 joined #nim
10:50:32PMunchHmm, damn it.. I wanted to add some options to the playground editor. And deciding on where to put it I landed on a floating box in the top right corner over the editor..
10:50:49PMunchBut for some reason the clicks pass through to the editor instead of hitting the buttons
11:02:42lqdev[m]@krab4t create a `var s = sline.strip` and then call `s.removePrefix("some prefix")`
11:05:00Zevvkrab4t: you still need a parser?
11:18:25FromGitter<sheerluck> is there compile-time stripMargin macro for string literals? like ⏎ ⏎ ``` f.write("""One ⏎ |Two ⏎ |Three""".strip_margin)``` [https://gitter.im/nim-lang/Nim?at=5da4598139d0c70757a94964]
11:19:31Zevvkrab4t: This parses your language: http://ix.io/1YCy
11:23:52*njoseph quit (Ping timeout: 265 seconds)
11:24:38FromGitter<dumjyl> @sheerluck not that i'm aware of. You can enforce static eval though. ```template stripMargin(s: string): string = static(strutils.unindent(s))```
11:24:59*njoseph joined #nim
11:29:31FromDiscord<juan_carlos> `strutils.unindent`
11:29:44FromDiscord<juan_carlos> Whole strutils works at CT
11:46:51*fanta1 quit (Quit: fanta1)
11:48:28FromGitter<sheerluck> @dumjyl @juan_carlos thank you
11:59:32FromDiscord<juan_carlos> I use like `const foo = """ """.unindent` it works.
12:02:16*rockcavera joined #nim
12:08:38*freddy92 quit (Read error: Connection reset by peer)
12:09:02*freddy92 joined #nim
12:15:00PMunchMan, CSS is the worst!
12:32:11Zevvno, it isn't
12:35:51*asymptotically joined #nim
12:37:30FromDiscord<krab4t> Zevv what parser?
12:37:47FromDiscord<krab4t> WTF
12:38:04FromDiscord<krab4t> you just made it in 2 minutes?
12:40:15Zevv15 I guess :)
12:52:54Zevvbump: can I take a procvar ref to an operator?
13:00:03*freddy92 is now known as couven92
13:00:50PMunchHmm, is there a way in Nimble to get the install reason for a package?
13:01:05PMunchLike if it was explicit or not
13:03:48FromDiscord<juan_carlos> All dependencies are explicit on Nimble I think.
13:04:00FromDiscord<juan_carlos> Not sure I understand the question, sorry.
13:07:35FromGitter<nixfreakz_twitter> Good morning, can someone tell me how do I call other cli programs from nim? I would like to call say s3cmd and replace my automated bash script with nim or at least try , since i can cross compile on different arch's
13:08:01PMunchWell I guess what I acutally want is a tree of which nimble packages depends on which other package
13:08:31PMunchI guess I could make a dot file generator for this..
13:10:02*NimBot joined #nim
13:21:11sealmoveZevv: "datumacy" or "datamacy"? any good?
13:21:40Zevvuhm no :/
13:21:54sealmove>_<
13:22:36*gangstacat joined #nim
13:22:52Zevvalmost as bad as octetitorial, byteeologue or hexanumeristrator
13:23:18sealmovelol
13:25:50sealmovebinloom? byteloom?
13:25:54Zevvfixabit? krautput?
13:26:29sealmovefixabit :D good one
13:28:55*asymptotically quit (Quit: Leaving)
13:29:48sealmovecutnsew?
13:30:16Zevvstitx
13:30:32Zevvbitbang
13:30:53shashlick@PMunch it can be found out during install cause it is depth first I think
13:30:54Zevvbitbro
13:30:57shashlickWhy do you need it
13:32:00sealmovebytesew
13:33:28shashlickNex
13:35:18sealmovenex? explanation?
13:36:20sealmoveBytch (byte-stitch)
13:36:23sealmovexD
13:36:36sealmovehttps://www.urbandictionary.com/define.php?term=Bytch
13:37:21livcdhmm what do I need to do to modify this for it to work with Nim 1.0 ? https://github.com/coffeepots/odbc/blob/293ae7406bfa3440f8b5b84f2a49345e55e29ef3/odbc/odbcparams.nim#L13
13:37:29livcdthe unchecked pragma was removed
13:39:46shashlickNim + hex = nex
13:45:07PMunchlivcd, use UncheckedArray instead
13:45:37PMunchOr wait, it might be called something else
13:45:44PMunchBut essentially there is now a type for it
13:46:51PMunchhttps://nim-lang.org/docs/system.html#UncheckedArray
13:50:05lqdev[m]shashlick: does getHeader support headers placed at directories? eg. `<SDL2/SDL.h>`
13:51:53livcd PMunch: i removed it but i dont know what the lib does. I am getting another error afterwards
13:53:26sealmovebitailor
13:55:25sealmovebyted
13:55:50lqdev[m]sealmove: `bed`
13:56:14sealmovelqdev: already taken... https://github.com/itchyny/bed
13:56:35lqdev[m]ah
13:59:05sealmoveded (data editor)
13:59:43lqdev[m]bind
14:00:00lqdev[m]binary editor
14:04:20sealmovei think "xexi" will beats every attempt lol
14:04:48shashlick@lqdev It does, need to specify header as you would for include
14:05:15shashlickSo "SDL2/SDL2.h"
14:05:37lqdev[m]shashlick: so `getHeader("SDL2/SDL.h")` would work?
14:05:40lqdev[m](ofc excluding any additional params)
14:05:46shashlickYep should
14:05:57lqdev[m]right
14:06:14*PMunch quit (Remote host closed the connection)
14:07:47lqdev[m]I just realized, what if it tries to use DL and `SDL.h` is not located in the `SDL2` directory but rather `include`?
14:08:26shashlickWell hopefully it is consistent
14:08:36jkenWhat is the cleanest way to convert a seq of float (float64 on my arch) to an array of float32?
14:08:46lqdev[m]shashlick: it's not
14:08:59shashlickWell that's unfortunate
14:09:25lqdev[m]the regular include path is `/usr/include/SDL2/SDL.h`, but in the repo it's `/include/SDL.h`
14:09:47sealmovejken: x.mapIt(it.float32)
14:09:57shashlickThen you will have to ifDefined and have multiple getHeader calls with the right path
14:10:08lqdev[m]damn
14:10:20shashlickOr header = ifDefined xyz and then use that in getHeader
14:10:25lqdev[m]or, just change the first parameter
14:10:31lqdev[m]yeah
14:10:52jkensealmove, thanks
14:12:18sealmovejken: If your seq is a literal (for example @[1.2, 3.4]) then there are other ways. For example @[1.2'f32, 3.4] works (only have to annotate the first element).
14:13:18jkenIt is a literal but I have reasons for the literal to remain as the systems float type, then converted later based on the chosen backend in my code
14:14:02shashlick@lqdev let me know how it works out
14:14:14sealmoveI see
14:21:52*zahary quit (Quit: Leaving.)
14:22:01*zahary joined #nim
14:22:30lqdev[m]shashlick: I'm getting this error: `# Build configuration failed - No build files found in /home/daknus/.cache/nim/nimterop/rapid_sdl2`
14:22:39*zahary quit (Client Quit)
14:23:04lqdev[m]https://termbin.com/lm6p
14:26:41shashlickDid you set any -d:sdlXX vars ?
14:32:43*lritter quit (Quit: Leaving)
14:32:49*Zevv quit (Quit: Lost terminal)
14:33:05*Zevv joined #nim
14:36:20jkenIs it possible to turn a seq into an array?
14:40:05*solitudesf joined #nim
14:40:59sealmovearrays have fixed size
14:41:46sealmovewhy do you need to convert it to array?
14:42:36FromGitter<Vindaar> @jken: you can write a macro to do that for you: https://play.nim-lang.org/#ix=1YD5
14:42:56jkenI am passing seqs of verticies around, and then when i want to pass them to opengl its easier if its an array
14:44:08*couven92 quit (Read error: Connection reset by peer)
14:44:35*couven92 joined #nim
14:44:43sealmoveguys I found the ultimate name, "Hexalepis".
14:45:49FromDiscord<juan_carlos> Wow, the Playground has options and all now. πŸ¦„
14:45:59disruptekhexalopter
14:47:04FromDiscord<juan_carlos> Hexacopter then a ROFLcopter made of hexadecimal ascii art as logo.
14:48:02disruptekhexasaurus
14:48:58FromDiscord<juan_carlos> Then a Velociraptor made of hexadecimal ascii art as logo.
14:49:17*zahary joined #nim
14:51:50FromDiscord<Rika> woah compilation target in playground
14:56:33sealmovedisruptek: hexalepis is an actual/existing animal :P
14:56:46FromDiscord<juan_carlos> Thats cool
14:56:54disruptekthat's inconvenient.
14:57:03FromDiscord<juan_carlos> But cool
14:57:21jkenHow do seqs and arrays compare, are they the same size in memory?
15:04:21Zevvarrays are fixed size, seqs grow when needed. The layout of the actual data is the same though
15:06:39jkenPerfect, thanks
15:15:27Zevvif you need to do memory stuff with pointers, just remember to always use elem[0].add, both on arrays and on seqs, and you'll be good
15:19:44*zahary quit (Quit: Leaving.)
15:32:54FromDiscord<Lunar> How can I open up the CD tray?
15:33:28lqdev[m]shashlick: I added a `-d:sdl2Std` and I'm still getting the same error
15:33:36lqdev[m]using setDefines
15:36:08lqdev[m]huh, SDLStd did the trick.
15:37:05*lbart joined #nim
15:37:09lbarthi
15:38:34lqdev[m]hello
15:40:50sealmovehi
15:40:52shashlickLooks like defines are case sensitive
15:41:26shashlickOh first letter rule
15:41:33*Trustable joined #nim
15:41:36*Trustable quit (Remote host closed the connection)
15:42:51*Trustable joined #nim
15:44:56lqdev[m]defines are not case sensitive, afaik
15:45:03lqdev[m]also, this: `Error: unhandled exception: getters.nim(404, 12) `fileExists(pdll)` No plugin binary generated for /home/daknus/.cache/nim/nimterop/cPlugins/nimterop_1244348383.nim [AssertionError] [AssertionError]`
15:45:51sealmoveis it possible to do https://play.nim-lang.org/#ix=1YDr instead of https://play.nim-lang.org/#ix=1YDq ?
15:51:08lqdev[m]sealmove: indeed
15:55:45shashlick@lqdev looks like compile failed
15:55:52shashlickWhat does your plugin look like
15:56:06shashlickhttps://github.com/nimterop/nimterop/blob/master/nimterop/getters.nim#L404
15:57:03FromDiscord<Lunar> Can Nim eject the cd drive?
15:58:21FromDiscord<juan_carlos> On Linux is there a command for eject CD that you can call. Mac I dunno but probably has it too. Windows no idea.
15:59:21sealmoveis it possible to have conditional object field?
16:02:40sealmovehmm maybe https://play.nim-lang.org/#ix=1YDy ? is this good solution?
16:10:22lqdev[m]shashlick: https://termbin.com/f12t
16:10:36lqdev[m]sealmove: Option[T]?
16:11:41sealmovenot sure :S I am making a tree and the leaves don't have pointers to other nodes
16:12:02sealmovemaybe just nil?
16:13:37lqdev[m]create a `type NodeKind = nkLeaf, nkBranch` and make a case over that
16:13:48FromDiscord<krab4t> how to force nim compiler output to be in english? (windows)
16:13:54sealmovehttps://play.nim-lang.org/#ix=1YDC
16:13:56lqdev[m]s/NodeKind =/NodeKind = enum /
16:14:03lqdev[m]@krab4t it should be?
16:15:13shashlickLooks okay to me, why don't you change discard execAction to echo the nim compilation output
16:15:16shashlickIn getters
16:17:16*asymptotically joined #nim
16:17:17shashlickIt's amusing, if compilation fails, it should die right there
16:17:30FromDiscord<krab4t> well if i do let say with npeg ` echo p.matchFile("C:\\Users\\krab\\Documents\\FilterBlade.filter").ok ` file reads
16:18:48disruptekare you building a PoE tool?
16:18:59FromDiscord<krab4t> but when i change it to ` echo p.matchFile("C:\\Users\\krab\\Documents\\test.txt").ok ` im getting `oserr.nim(94) raiseOSError
16:19:00FromDiscord<krab4t> Error: unhandled exception: (syntax error in filename, folder or drive) (this is translated) [OSError] `
16:19:10FromDiscord<krab4t> but both file exist they both the same!
16:19:51FromDiscord<krab4t> disruptek: yeah kinda "tool"
16:20:50lqdev[m]shashlick: `# Including library /usr/lib64/libSDL-1.2.so.0` why is it trying to include SDL 1.2?
16:21:57FromDiscord<krab4t> https://github.com/zevv/npeg/blob/master/src/npeg.nim#L146
16:24:28FromDiscord<krab4t> oops error probably was multiline message - Error: unhandled exception
16:25:58lqdev[m]shashlick: compiling the generated plugin fine on its own doesn't yield any errors.
16:28:26shashlick@lqdev I'll have to see why that check is failing
16:28:33shashlickMakes no sense, maybe timing issue
16:28:43shashlickDoes it work after one failure?
16:28:54lqdev[m]no
16:32:20FromDiscord<krab4t> well forced rebuild with ` -f ` works
16:34:08*couven92 quit (Read error: Connection reset by peer)
16:34:31*couven92 joined #nim
16:48:34FromDiscord<krab4t> looks like this bug fixed in 1.0.2
16:55:18shashlick@lqdev - you on linux right?
16:55:35lqdev[m]yes
17:01:46sealmoveif you have an array[5, int], then array.len will always be 5?
17:02:47shashlick@lqdev - your plugin code is wrong
17:03:15*stefantalpalaru joined #nim
17:03:15lqdev[m]shashlick: what's wrong with it?
17:03:47shashlickhttp://ix.io/1YDS
17:04:04shashlickstrip expects a string
17:04:11lqdev[m]oh.
17:04:39shashlickoh actually, it expects chars = {'_'}
17:05:11shashlickstrip(chars = {'_'})
17:06:24FromGitter<zacharycarter> looking at steamworks bindings, seems now they have `steam_api_flat.h` which has a comment at the top: ```Purpose: Header for flatted SteamAPI. Use this for binding to other languages.```
17:06:36FromGitter<zacharycarter> however all the types it uses seem to be in C++ header files
17:09:48shashlick@lqdev - stupid bug in execAction where it never fails
17:10:18shashlickanyway, once you fix that, the bigger issue is that it is finding libSDL instead of libSDL2
17:14:03shashlickright now, getHeader always searches for SDL.h as the base and then tries altNames
17:17:08*ng0 joined #nim
17:18:12stefantalpalaruA nice overview of Rust's MxN, work-stealing task scheduler: https://tokio.rs/blog/2019-10-scheduler/
17:18:36disruptekneat, thanks for the link.
17:18:42stefantalpalaruHeavily inspired by Go's scheduler, of course.
17:19:04sealmovezacharycarter hey
17:20:13FromGitter<zacharycarter> hi sealmove
17:20:17sealmoveYou can track KS progress here: https://ci.kaitai.io/ There is a Nim 1.0.0 column now.
17:20:24FromGitter<zacharycarter> cool :D
17:20:24Zevvzacharycarter: Daaaamn you boy, I just heard I would have got a bonus if you had come in :)
17:20:39FromGitter<zacharycarter> damn really! I'm sorry Zevv :(
17:20:44Zevvhaha
17:21:15lqdev[m]dang, I'm so fed up writing this wrapper I'll probably end up using sdl2_nim
17:22:00shashlickWhere are you now
17:22:24FromGitter<zacharycarter> those referral bonuses can be sweet though - I've never gotten one before, but I've seen others get them
17:22:31lqdev[m]https://termbin.com/7lbs
17:22:38lqdev[m]I'm getting an error that has way too many lines for me to check
17:24:15*paxis joined #nim
17:24:57shashlickWhat's the error
17:25:44disruptekit's the message you get when it doesn't work.
17:25:48disruptekbut, that's not important right now.
17:25:51lqdev[m]https://termbin.com/qjc7
17:26:14*paxis quit (Max SendQ exceeded)
17:27:09*paxis joined #nim
17:27:16lqdev[m]it appears as if nimterop's trying to escape valid characters, eg. '&' gets turned to ' and '
17:27:59shashlickyes it does that for enums
17:28:19Zevvlqdev[m]: would you care to give me some feedback on my stuff?
17:28:57Zevvwhen you have the time, of course
17:31:05*gangstacat quit (Quit: Ĝis!)
17:37:10*couven92 quit (Read error: Connection reset by peer)
17:37:33FromDiscord<krptr> hi guys, newbie question: why can't I do something like:
17:37:33FromDiscord<krptr>
17:37:34FromDiscord<krptr> ```
17:37:34FromDiscord<krptr> const RANGE = 0 .. 20
17:37:34FromDiscord<krptr>
17:37:34FromDiscord<krptr> proc get_value(x: int): string =
17:37:34FromDiscord<krptr> case x:
17:37:35*couven92 joined #nim
17:37:35FromDiscord<krptr> of RANGE:
17:37:36FromDiscord<krptr> return "yay"
17:37:38FromDiscord<krptr> else:
17:37:39FromDiscord<krptr> return "nope"
17:37:40FromDiscord<krptr> ```
17:37:42FromDiscord<krptr>
17:37:43FromDiscord<krptr> But I can:
17:37:44FromDiscord<krptr> ```
17:37:46FromDiscord<krptr> const RANGE = 0 .. 20
17:37:47FromDiscord<krptr>
17:37:48FromDiscord<krptr> proc get_value(x: int): string =
17:37:50FromDiscord<krptr> case x:
17:37:51FromDiscord<krptr> of 0 .. 20:
17:37:52FromDiscord<krptr> return "yay"
17:37:54FromDiscord<krptr> else:
17:37:55FromDiscord<krptr> return "nope"
17:37:56FromDiscord<krptr> ```
17:37:58FromDiscord<krptr>
17:38:00FromDiscord<krptr> Why aren't HSlices aliased to be used in a case, when it is marked as const?
17:39:19Zevvkrptr: please don't dump in the chat but use a pastebin instead
17:39:43leorizebecause HSlice are value types
17:39:45FromDiscord<krptr> ooops, sorry I'l do from now on
17:39:59narimiran...and by pastebin, Zevv means https://play.nim-lang.org/ ;)
17:40:02leorizethey don't have any special meaning, while the 0..20 is the syntax for range
17:40:35*nif quit (Quit: ...)
17:40:45*nif joined #nim
17:43:02FromDiscord<krptr> I know HSlices vs. ranges.. but same syntax makes this confusing for newcomers as me :S
17:45:19leorizeyea, but that's something you gotta learn
17:46:24FromDiscord<juan_carlos> You put the range in a `const` to kinda optimize it to CT?, I think the compiler will get the range statically on that case anyway.
17:47:09leorizeto be fair it's not a range
17:47:22leorizewhat is used in `case` statements are sets iirc
17:47:31FromDiscord<krptr> yeah, in the second example I forgot to remove the const blah...
17:47:37*couven92 quit (Read error: Connection reset by peer)
17:48:02*couven92 joined #nim
17:48:03FromDiscord<krptr> let me try <leorize>, one sec
17:48:06leorizealso case branches are const iirc
17:48:22leorizehttps://play.nim-lang.org/#ix=1YEd
17:52:06FromDiscord<krptr> so... a set aliases to a range in a case, despite the syntax is the same as an HSlice... funny, but ok, I just wanted to declare many different ranges I use for an interpreter in several places and reuse on different cases... ok, good, thanks <leorize>
17:52:31FromDiscord<krptr> so... a set aliases to a range in a case, despite the range syntax is the same as an HSlice... funny, but ok, I just wanted to declare many different ranges I use for an interpreter in several places and reuse on different cases... ok, good, thanks <leorize>
17:52:45leorizeplease don't edit messages on discord
17:52:54leorizeit repeats the same message to irc
17:53:03narimiranpoor @krptr, he can't do anything :P
17:53:32FromDiscord<krptr> no worries, first time and didn't read the rules, fair enough
18:00:54shashlick@lqdev - the enums need some work - https://github.com/nimterop/nimterop/blob/master/nimterop/getters.nim#L335
18:01:04shashlickworks fine mostly but shouldn't touch '&' for example
18:01:13shashlicki can only think regexes, any other suggestions to fix that?
18:01:25shashlickreplace & with " and " unless in quotes?
18:02:18lqdev[m]likely
18:04:00shashlickthis is cause you could have `1&2` which needs to be changed into `1 and 2` for the enum value to work correctly
18:14:44*gangstacat joined #nim
18:15:58*gangstacat quit (Client Quit)
18:16:47*floppydh quit (Quit: WeeChat 2.6)
18:21:44*gangstacat joined #nim
18:22:55FromDiscord<Kiloneie> Is this a bug that i can declare an empty constant and VS Code shows no errors, but then if type any code in any further lines, it will show me that line as a problem ?
18:23:44FromDiscord<Kiloneie> when i compile an empty constant, it errors, but nothing is shown by VS Code.
18:24:51*traviss joined #nim
18:25:55shashlick@lqdev - i think i'll have to go char by char and modify that way
18:28:04leorize@Kiloneie: maybe
18:35:50*sealmove quit (Quit: WeeChat 2.6)
18:41:21*krux02 quit (Remote host closed the connection)
18:44:03disruptekdo the nim releases include their git commit hashes in `--version`?
18:47:17disrupteklooks like yes.
18:51:41*letto joined #nim
18:55:38leorizenot always I think
19:12:31FromGitter<deech> Is there a way to assign the result of an expression? eg. something like `let x = if ... : thing else: otherThing.`.
19:12:38disruptekyes.
19:15:25FromGitter<deech> thanks
19:16:01FromGitter<Vindaar> @deech you can use a `block` on the RHS. The last line is returned from the block
19:22:02disruptekerm, it may be easier to realize that statements are expressions.
19:22:19disruptek!eval echo if true: 4 else: 5
19:22:21NimBot4
19:22:25disruptek!eval discard if true: 4 else: 5
19:22:28NimBot<no output>
19:22:31disruptek!eval if true: 4 else: 5
19:22:33NimBotCompile failed: /usercode/in.nim(1, 18) Error: expression '5' is of type 'int literal(4)' and has to be discarded
19:24:38FromGitter<Vindaar> I just mentioned `block`, because it's very convenient and people tend to forget about that use case of it ;)
19:50:10*alexander92 joined #nim
19:55:15*PMunch joined #nim
19:56:57Zevvlqdev[m]: your rod implementation inspired me, Pratt was a nice solution for me as well
19:57:00Zevvhttps://github.com/zevv/npeg/blob/master/tests/precedence.nim
20:00:41lqdev[m]glad to hear that! :)
20:02:52shashlick@lqdev I'll fix the enum issue
20:02:58shashlickThere's another one in there
20:03:30shashlickIf you use onSymbol to change names, they don't change in enums
20:03:44shashlickSo that's being worked too
20:04:26FromDiscord<Kiloneie> #17 is live at: https://youtu.be/BakkfzsDulM
20:18:07*Trustable quit (Remote host closed the connection)
20:30:19*ng0 quit (Quit: Alexa, when is the end of world?)
20:35:39*narimiran quit (Ping timeout: 240 seconds)
20:36:11*PMunch quit (Remote host closed the connection)
20:39:24*nsf quit (Quit: WeeChat 2.6)
21:03:09*traviss quit (Read error: Connection reset by peer)
21:03:32*traviss joined #nim
21:12:11FromGitter<zacharycarter> cooool my steamworks bindings are working - at least initially
21:12:16FromGitter<zacharycarter> was able to retrieve my steam user ID
21:12:52FromGitter<zacharycarter> the generation of them isn't fully automated but at least with nimterop breaking changes should be very obvious
21:15:57*solitudesf quit (Ping timeout: 240 seconds)
21:18:27*nif quit (Quit: ...)
21:18:36*nif joined #nim
21:32:21*asymptotically quit (Quit: Leaving)
21:32:22*alexander92 quit (Read error: Connection reset by peer)
21:46:55*stefantalpalaru quit (Quit: stefantalpalaru)
21:53:15*vesper11- joined #nim
21:53:17*vesper11 quit (Ping timeout: 240 seconds)
22:04:38*luis_ joined #nim
22:05:16shashlickWhat doesn't work yet @zacharycarter
22:05:25shashlickThat requires manual work
22:06:10*Vladar quit (Remote host closed the connection)
23:07:37*couven92 quit (Read error: Connection reset by peer)
23:12:29*Jjp137 quit (Quit: Leaving)
23:14:45*Jjp137 joined #nim
23:34:50FromDiscord<exelotl> losing my mind over the sudo bug
23:35:17FromDiscord<exelotl> how could that happen
23:47:11*sealmove joined #nim
23:50:40*noonien quit (Quit: Connection closed for inactivity)
23:50:53shashlickhttps://gist.github.com/genotrance/e1329aaf054ef72d1727ef6c46e3dde5