00:50:58 | * | PrimHelios quit (Quit: Leaving) |
00:53:06 | * | zahary joined #nim |
01:08:49 | FromDiscord | <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:30 | FromGitter | <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:43 | FromGitter | <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:08 | Zevv | krav4t: should be pretty trivial to do |
06:11:14 | * | laaron joined #nim |
06:14:03 | FromDiscord | <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:55 | leorize | you should never name things like that :P |
06:15:14 | FromDiscord | <djazz> no, im using nimterop to change the symbols of the lib |
06:15:24 | leorize | --styleCheck:error will force everything to one style |
06:15:39 | leorize | also, does gstreamer not have an gintrospection interface? |
06:15:57 | * | skoude quit (Client Quit) |
06:16:21 | FromDiscord | <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:46 | leorize | just make an issue in the repo |
06:16:46 | FromDiscord | <djazz> so im doing plain ffi |
06:17:00 | leorize | gintro 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:59 | FromDiscord | <Corax> hmmm, this crashes: https://play.nim-lang.org/#ix=1YBt (with -d:ssl) |
06:41:03 | FromDiscord | <Corax> is it a known problem? |
06:41:34 | FromDiscord | <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:49 | FromDiscord | <Corax> hmmm, this doesn't compile: https://play.nim-lang.org/#ix=1YBt (with -d:ssl) |
06:42:04 | FromDiscord | <Corax> I get some type mismatch deep in asyncnet |
06:42:29 | leorize | it's working fine here |
06:42:35 | leorize | what version of nim are you running? |
06:47:37 | FromDiscord | <Corax> 1.0.0 |
06:47:53 | * | solitudesf quit (Remote host closed the connection) |
06:47:55 | FromDiscord | <Corax> compiled with "nim c -d:ssl" |
06:48:22 | * | solitudesf joined #nim |
06:48:24 | FromDiscord | <djazz> works fine here too |
06:48:57 | FromDiscord | <Corax> not sure what I'm missing then |
06:49:06 | leorize | maybe try reinstalling nim? |
06:49:34 | FromDiscord | <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:04 | FromDiscord | <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:29 | leorize | nag the maintainer of nim package until that person update nim to 1.0 |
06:51:39 | leorize | or if the maintainer no longer wants to maintain the nim package |
06:51:51 | leorize | tell them to release it to AUR so that the community can update it |
06:52:44 | FromDiscord | <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:07 | FromDiscord | <Corax> unless my stdlib is on a different version somehow? not sure how I'd even check that |
06:55:04 | leorize | what's your PATH? |
06:55:39 | FromDiscord | <Corax> (before I answer that, it looks like my stdlib is under nim-1.0.0 so it should be OK) |
06:55:41 | FromDiscord | <Corax> as for my path |
06:55:59 | FromDiscord | <Corax> the relevant parts would be: |
06:56:03 | FromDiscord | <Corax> ``` |
06:56:03 | FromDiscord | <Corax> /home/corax/.choosenim/toolchains/nim-1.0.0/bin:/home/corax/.nimble/bin/ |
06:56:03 | FromDiscord | <Corax> ``` |
06:57:09 | leorize | remove choosenim from your PATH |
06:57:34 | leorize | choosenim by default inject binaries into .nimble/bin |
06:57:43 | leorize | so you don't need to have the binaries in your PATH |
06:57:56 | FromDiscord | <Corax> ah got it |
06:57:58 | FromDiscord | <Corax> done |
06:58:10 | leorize | alright, now what's your complination error? |
06:58:32 | FromDiscord | <Corax> should I paste it here or get a pastebin up? |
06:58:37 | FromDiscord | <Corax> it's about 15 lines long |
06:58:42 | leorize | pastebin please |
06:58:47 | FromDiscord | <Corax> kk |
06:59:11 | FromDiscord | <Corax> https://pastebin.com/LBkA2ETw |
07:00:00 | * | gmpreussner quit (Quit: kthxbye) |
07:00:41 | leorize | try switching to devel? |
07:01:39 | FromDiscord | <Corax> let's see |
07:03:34 | * | alexander92 joined #nim |
07:04:53 | * | gmpreussner joined #nim |
07:07:04 | * | krux02 joined #nim |
07:10:01 | FromDiscord | <Corax> yeah compiles fine on devel |
07:10:05 | FromDiscord | <Corax> thanks! |
07:11:05 | FromDiscord | <Corax> no wait |
07:11:21 | FromDiscord | <Corax> it still doesn't, the moment I use a https schema |
07:12:54 | FromDiscord | <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:12 | leorize | :P |
07:13:33 | * | PMunch joined #nim |
07:13:52 | leorize | does choosenim allow you to test custom branches of the compiler? |
07:14:27 | PMunch | Yes |
07:14:38 | PMunch | Check them out locally, and then choosenim <path> |
07:16:50 | * | alexander92 quit (Ping timeout: 240 seconds) |
07:21:24 | * | salewski joined #nim |
07:21:59 | FromDiscord | <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:13 | salewski | https://irclogs.nim-lang.org/14-10-2019.html#06:16:21 |
07:22:18 | * | dddddd joined #nim |
07:22:22 | salewski | > <djazz> it does but i wasn't able to make it work easily with gintro |
07:22:58 | salewski | Well djazz, you never asked about gstreamer, so I never added it :-) |
07:23:40 | salewski | Adding is generally easy, but then I have to test it -- and I don't know what |
07:23:54 | salewski | exactly gstreamer is at all. |
07:24:13 | salewski | But I can try aading it. |
07:25:02 | * | alexander92 joined #nim |
07:25:06 | salewski | Bye. |
07:25:32 | * | Vladar joined #nim |
07:26:04 | PMunch | mogagoo, Miran already is an Admin in the Telegram group |
07:26:33 | narimiran | PMunch: but i don't have all the permisions that dom96 has, so i cannot add these spam-fighting bots |
07:27:00 | FromGitter | <alehander42> PMunch do you get nim submissions already |
07:27:11 | PMunch | Aaah, there is more to Admin than just being admin? |
07:27:22 | PMunch | alehander42, just a sec. I'll check |
07:28:12 | PMunch | Nah, so far only 1 talk proposed |
07:28:24 | PMunch | So submit away :) |
07:28:51 | * | salewski quit (Quit: WeeChat 2.5) |
07:29:53 | FromGitter | <alehander42> i dont know if ill submit |
07:30:01 | FromGitter | <alehander42> just asking as a user :P |
07:31:16 | PMunch | Damn it, I toyed around with the web-framework stuff but forgot to bring the updated code with me.. |
07:31:31 | PMunch | I should really start creating more git repos on my server for this stuff |
07:31:44 | PMunch | Instead of the old USB stick transfer method |
07:33:40 | FromGitter | <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:06 | sealmove | Updated 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:13 | Zevv | nice sealmove |
09:47:48 | sealmove | I am thinking of changing the name though, any ideas? :> |
09:52:26 | * | alexander92 quit (Ping timeout: 240 seconds) |
09:54:28 | Zevv | xim |
09:54:44 | Zevv | but 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:21 | sealmove | the final goal is nimx GUI |
09:58:28 | Zevv | that was tongue-in-cheek |
09:58:55 | Zevv | xim would still work. Short, hexlike and nimlike |
09:59:15 | * | alexander92 quit (Ping timeout: 240 seconds) |
09:59:18 | Zevv | and not take in debian :) |
10:00:12 | narimiran | and 'x' is pronounced like it is in LaTeX (greek letter chi) |
10:00:56 | narimiran | so you can call it xexi (hexi) :) |
10:01:37 | sealmove | both could work! nice suggestions |
10:01:39 | narimiran | and some might read/pronounce it as 'sexy' :) |
10:01:52 | sealmove | yes, depending on appetit |
10:07:37 | sealmove | xexi reminds me of https://github.com/xi-editor/xi-editor |
10:10:01 | narimiran | well, both are editors, and yours is heX-Editor :) |
10:10:45 | narimiran | (i proposed Xexi (semi-)jokingly, but now i start to like it, lol) |
10:12:11 | Zevv | it clearly wins from xim :) |
10:15:36 | * | couven92 quit (Quit: Disconnecting) |
10:15:37 | sealmove | hed and bed already taken lol: https://github.com/fr0zn/hed https://github.com/itchyny/bed |
10:34:30 | FromDiscord | <krab4t> how you check in nim if line startsWith ` " ` |
10:34:35 | FromDiscord | <krab4t> quote |
10:35:10 | narimiran | you escape the quote with a backslash? |
10:35:17 | narimiran | `"\""` |
10:35:35 | FromDiscord | <krab4t> i see |
10:43:07 | Zevv | Hmmm, can I take a procvar ref to an operator? |
10:46:48 | FromDiscord | <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:32 | PMunch | Hmm, 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:49 | PMunch | But for some reason the clicks pass through to the editor instead of hitting the buttons |
11:02:42 | lqdev[m] | @krab4t create a `var s = sline.strip` and then call `s.removePrefix("some prefix")` |
11:05:00 | Zevv | krab4t: you still need a parser? |
11:18:25 | FromGitter | <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:31 | Zevv | krab4t: This parses your language: http://ix.io/1YCy |
11:23:52 | * | njoseph quit (Ping timeout: 265 seconds) |
11:24:38 | FromGitter | <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:31 | FromDiscord | <juan_carlos> `strutils.unindent` |
11:29:44 | FromDiscord | <juan_carlos> Whole strutils works at CT |
11:46:51 | * | fanta1 quit (Quit: fanta1) |
11:48:28 | FromGitter | <sheerluck> @dumjyl @juan_carlos thank you |
11:59:32 | FromDiscord | <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:00 | PMunch | Man, CSS is the worst! |
12:32:11 | Zevv | no, it isn't |
12:35:51 | * | asymptotically joined #nim |
12:37:30 | FromDiscord | <krab4t> Zevv what parser? |
12:37:47 | FromDiscord | <krab4t> WTF |
12:38:04 | FromDiscord | <krab4t> you just made it in 2 minutes? |
12:40:15 | Zevv | 15 I guess :) |
12:52:54 | Zevv | bump: can I take a procvar ref to an operator? |
13:00:03 | * | freddy92 is now known as couven92 |
13:00:50 | PMunch | Hmm, is there a way in Nimble to get the install reason for a package? |
13:01:05 | PMunch | Like if it was explicit or not |
13:03:48 | FromDiscord | <juan_carlos> All dependencies are explicit on Nimble I think. |
13:04:00 | FromDiscord | <juan_carlos> Not sure I understand the question, sorry. |
13:07:35 | FromGitter | <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:01 | PMunch | Well I guess what I acutally want is a tree of which nimble packages depends on which other package |
13:08:31 | PMunch | I guess I could make a dot file generator for this.. |
13:10:02 | * | NimBot joined #nim |
13:21:11 | sealmove | Zevv: "datumacy" or "datamacy"? any good? |
13:21:40 | Zevv | uhm no :/ |
13:21:54 | sealmove | >_< |
13:22:36 | * | gangstacat joined #nim |
13:22:52 | Zevv | almost as bad as octetitorial, byteeologue or hexanumeristrator |
13:23:18 | sealmove | lol |
13:25:50 | sealmove | binloom? byteloom? |
13:25:54 | Zevv | fixabit? krautput? |
13:26:29 | sealmove | fixabit :D good one |
13:28:55 | * | asymptotically quit (Quit: Leaving) |
13:29:48 | sealmove | cutnsew? |
13:30:16 | Zevv | stitx |
13:30:32 | Zevv | bitbang |
13:30:53 | shashlick | @PMunch it can be found out during install cause it is depth first I think |
13:30:54 | Zevv | bitbro |
13:30:57 | shashlick | Why do you need it |
13:32:00 | sealmove | bytesew |
13:33:28 | shashlick | Nex |
13:35:18 | sealmove | nex? explanation? |
13:36:20 | sealmove | Bytch (byte-stitch) |
13:36:23 | sealmove | xD |
13:36:36 | sealmove | https://www.urbandictionary.com/define.php?term=Bytch |
13:37:21 | livcd | hmm 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:29 | livcd | the unchecked pragma was removed |
13:39:46 | shashlick | Nim + hex = nex |
13:45:07 | PMunch | livcd, use UncheckedArray instead |
13:45:37 | PMunch | Or wait, it might be called something else |
13:45:44 | PMunch | But essentially there is now a type for it |
13:46:51 | PMunch | https://nim-lang.org/docs/system.html#UncheckedArray |
13:50:05 | lqdev[m] | shashlick: does getHeader support headers placed at directories? eg. `<SDL2/SDL.h>` |
13:51:53 | livcd | PMunch: i removed it but i dont know what the lib does. I am getting another error afterwards |
13:53:26 | sealmove | bitailor |
13:55:25 | sealmove | byted |
13:55:50 | lqdev[m] | sealmove: `bed` |
13:56:14 | sealmove | lqdev: already taken... https://github.com/itchyny/bed |
13:56:35 | lqdev[m] | ah |
13:59:05 | sealmove | ded (data editor) |
13:59:43 | lqdev[m] | bind |
14:00:00 | lqdev[m] | binary editor |
14:04:20 | sealmove | i think "xexi" will beats every attempt lol |
14:04:48 | shashlick | @lqdev It does, need to specify header as you would for include |
14:05:15 | shashlick | So "SDL2/SDL2.h" |
14:05:37 | lqdev[m] | shashlick: so `getHeader("SDL2/SDL.h")` would work? |
14:05:40 | lqdev[m] | (ofc excluding any additional params) |
14:05:46 | shashlick | Yep should |
14:05:57 | lqdev[m] | right |
14:06:14 | * | PMunch quit (Remote host closed the connection) |
14:07:47 | lqdev[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:26 | shashlick | Well hopefully it is consistent |
14:08:36 | jken | What is the cleanest way to convert a seq of float (float64 on my arch) to an array of float32? |
14:08:46 | lqdev[m] | shashlick: it's not |
14:08:59 | shashlick | Well that's unfortunate |
14:09:25 | lqdev[m] | the regular include path is `/usr/include/SDL2/SDL.h`, but in the repo it's `/include/SDL.h` |
14:09:47 | sealmove | jken: x.mapIt(it.float32) |
14:09:57 | shashlick | Then you will have to ifDefined and have multiple getHeader calls with the right path |
14:10:08 | lqdev[m] | damn |
14:10:20 | shashlick | Or header = ifDefined xyz and then use that in getHeader |
14:10:25 | lqdev[m] | or, just change the first parameter |
14:10:31 | lqdev[m] | yeah |
14:10:52 | jken | sealmove, thanks |
14:12:18 | sealmove | jken: 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:18 | jken | It 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:02 | shashlick | @lqdev let me know how it works out |
14:14:14 | sealmove | I see |
14:21:52 | * | zahary quit (Quit: Leaving.) |
14:22:01 | * | zahary joined #nim |
14:22:30 | lqdev[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:04 | lqdev[m] | https://termbin.com/lm6p |
14:26:41 | shashlick | Did 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:20 | jken | Is it possible to turn a seq into an array? |
14:40:05 | * | solitudesf joined #nim |
14:40:59 | sealmove | arrays have fixed size |
14:41:46 | sealmove | why do you need to convert it to array? |
14:42:36 | FromGitter | <Vindaar> @jken: you can write a macro to do that for you: https://play.nim-lang.org/#ix=1YD5 |
14:42:56 | jken | I 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:43 | sealmove | guys I found the ultimate name, "Hexalepis". |
14:45:49 | FromDiscord | <juan_carlos> Wow, the Playground has options and all now. π¦ |
14:45:59 | disruptek | hexalopter |
14:47:04 | FromDiscord | <juan_carlos> Hexacopter then a ROFLcopter made of hexadecimal ascii art as logo. |
14:48:02 | disruptek | hexasaurus |
14:48:58 | FromDiscord | <juan_carlos> Then a Velociraptor made of hexadecimal ascii art as logo. |
14:49:17 | * | zahary joined #nim |
14:51:50 | FromDiscord | <Rika> woah compilation target in playground |
14:56:33 | sealmove | disruptek: hexalepis is an actual/existing animal :P |
14:56:46 | FromDiscord | <juan_carlos> Thats cool |
14:56:54 | disruptek | that's inconvenient. |
14:57:03 | FromDiscord | <juan_carlos> But cool |
14:57:21 | jken | How do seqs and arrays compare, are they the same size in memory? |
15:04:21 | Zevv | arrays are fixed size, seqs grow when needed. The layout of the actual data is the same though |
15:06:39 | jken | Perfect, thanks |
15:15:27 | Zevv | if 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:54 | FromDiscord | <Lunar> How can I open up the CD tray? |
15:33:28 | lqdev[m] | shashlick: I added a `-d:sdl2Std` and I'm still getting the same error |
15:33:36 | lqdev[m] | using setDefines |
15:36:08 | lqdev[m] | huh, SDLStd did the trick. |
15:37:05 | * | lbart joined #nim |
15:37:09 | lbart | hi |
15:38:34 | lqdev[m] | hello |
15:40:50 | sealmove | hi |
15:40:52 | shashlick | Looks like defines are case sensitive |
15:41:26 | shashlick | Oh 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:56 | lqdev[m] | defines are not case sensitive, afaik |
15:45:03 | lqdev[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:51 | sealmove | is it possible to do https://play.nim-lang.org/#ix=1YDr instead of https://play.nim-lang.org/#ix=1YDq ? |
15:51:08 | lqdev[m] | sealmove: indeed |
15:55:45 | shashlick | @lqdev looks like compile failed |
15:55:52 | shashlick | What does your plugin look like |
15:56:06 | shashlick | https://github.com/nimterop/nimterop/blob/master/nimterop/getters.nim#L404 |
15:57:03 | FromDiscord | <Lunar> Can Nim eject the cd drive? |
15:58:21 | FromDiscord | <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:21 | sealmove | is it possible to have conditional object field? |
16:02:40 | sealmove | hmm maybe https://play.nim-lang.org/#ix=1YDy ? is this good solution? |
16:10:22 | lqdev[m] | shashlick: https://termbin.com/f12t |
16:10:36 | lqdev[m] | sealmove: Option[T]? |
16:11:41 | sealmove | not sure :S I am making a tree and the leaves don't have pointers to other nodes |
16:12:02 | sealmove | maybe just nil? |
16:13:37 | lqdev[m] | create a `type NodeKind = nkLeaf, nkBranch` and make a case over that |
16:13:48 | FromDiscord | <krab4t> how to force nim compiler output to be in english? (windows) |
16:13:54 | sealmove | https://play.nim-lang.org/#ix=1YDC |
16:13:56 | lqdev[m] | s/NodeKind =/NodeKind = enum / |
16:14:03 | lqdev[m] | @krab4t it should be? |
16:15:13 | shashlick | Looks okay to me, why don't you change discard execAction to echo the nim compilation output |
16:15:16 | shashlick | In getters |
16:17:16 | * | asymptotically joined #nim |
16:17:17 | shashlick | It's amusing, if compilation fails, it should die right there |
16:17:30 | FromDiscord | <krab4t> well if i do let say with npeg ` echo p.matchFile("C:\\Users\\krab\\Documents\\FilterBlade.filter").ok ` file reads |
16:18:48 | disruptek | are you building a PoE tool? |
16:18:59 | FromDiscord | <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:00 | FromDiscord | <krab4t> Error: unhandled exception: (syntax error in filename, folder or drive) (this is translated) [OSError] ` |
16:19:10 | FromDiscord | <krab4t> but both file exist they both the same! |
16:19:51 | FromDiscord | <krab4t> disruptek: yeah kinda "tool" |
16:20:50 | lqdev[m] | shashlick: `# Including library /usr/lib64/libSDL-1.2.so.0` why is it trying to include SDL 1.2? |
16:21:57 | FromDiscord | <krab4t> https://github.com/zevv/npeg/blob/master/src/npeg.nim#L146 |
16:24:28 | FromDiscord | <krab4t> oops error probably was multiline message - Error: unhandled exception |
16:25:58 | lqdev[m] | shashlick: compiling the generated plugin fine on its own doesn't yield any errors. |
16:28:26 | shashlick | @lqdev I'll have to see why that check is failing |
16:28:33 | shashlick | Makes no sense, maybe timing issue |
16:28:43 | shashlick | Does it work after one failure? |
16:28:54 | lqdev[m] | no |
16:32:20 | FromDiscord | <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:34 | FromDiscord | <krab4t> looks like this bug fixed in 1.0.2 |
16:55:18 | shashlick | @lqdev - you on linux right? |
16:55:35 | lqdev[m] | yes |
17:01:46 | sealmove | if you have an array[5, int], then array.len will always be 5? |
17:02:47 | shashlick | @lqdev - your plugin code is wrong |
17:03:15 | * | stefantalpalaru joined #nim |
17:03:15 | lqdev[m] | shashlick: what's wrong with it? |
17:03:47 | shashlick | http://ix.io/1YDS |
17:04:04 | shashlick | strip expects a string |
17:04:11 | lqdev[m] | oh. |
17:04:39 | shashlick | oh actually, it expects chars = {'_'} |
17:05:11 | shashlick | strip(chars = {'_'}) |
17:06:24 | FromGitter | <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:36 | FromGitter | <zacharycarter> however all the types it uses seem to be in C++ header files |
17:09:48 | shashlick | @lqdev - stupid bug in execAction where it never fails |
17:10:18 | shashlick | anyway, once you fix that, the bigger issue is that it is finding libSDL instead of libSDL2 |
17:14:03 | shashlick | right now, getHeader always searches for SDL.h as the base and then tries altNames |
17:17:08 | * | ng0 joined #nim |
17:18:12 | stefantalpalaru | A nice overview of Rust's MxN, work-stealing task scheduler: https://tokio.rs/blog/2019-10-scheduler/ |
17:18:36 | disruptek | neat, thanks for the link. |
17:18:42 | stefantalpalaru | Heavily inspired by Go's scheduler, of course. |
17:19:04 | sealmove | zacharycarter hey |
17:20:13 | FromGitter | <zacharycarter> hi sealmove |
17:20:17 | sealmove | You can track KS progress here: https://ci.kaitai.io/ There is a Nim 1.0.0 column now. |
17:20:24 | FromGitter | <zacharycarter> cool :D |
17:20:24 | Zevv | zacharycarter: Daaaamn you boy, I just heard I would have got a bonus if you had come in :) |
17:20:39 | FromGitter | <zacharycarter> damn really! I'm sorry Zevv :( |
17:20:44 | Zevv | haha |
17:21:15 | lqdev[m] | dang, I'm so fed up writing this wrapper I'll probably end up using sdl2_nim |
17:22:00 | shashlick | Where are you now |
17:22:24 | FromGitter | <zacharycarter> those referral bonuses can be sweet though - I've never gotten one before, but I've seen others get them |
17:22:31 | lqdev[m] | https://termbin.com/7lbs |
17:22:38 | lqdev[m] | I'm getting an error that has way too many lines for me to check |
17:24:15 | * | paxis joined #nim |
17:24:57 | shashlick | What's the error |
17:25:44 | disruptek | it's the message you get when it doesn't work. |
17:25:48 | disruptek | but, that's not important right now. |
17:25:51 | lqdev[m] | https://termbin.com/qjc7 |
17:26:14 | * | paxis quit (Max SendQ exceeded) |
17:27:09 | * | paxis joined #nim |
17:27:16 | lqdev[m] | it appears as if nimterop's trying to escape valid characters, eg. '&' gets turned to ' and ' |
17:27:59 | shashlick | yes it does that for enums |
17:28:19 | Zevv | lqdev[m]: would you care to give me some feedback on my stuff? |
17:28:57 | Zevv | when 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:33 | FromDiscord | <krptr> hi guys, newbie question: why can't I do something like: |
17:37:33 | FromDiscord | <krptr> |
17:37:34 | FromDiscord | <krptr> ``` |
17:37:34 | FromDiscord | <krptr> const RANGE = 0 .. 20 |
17:37:34 | FromDiscord | <krptr> |
17:37:34 | FromDiscord | <krptr> proc get_value(x: int): string = |
17:37:34 | FromDiscord | <krptr> case x: |
17:37:35 | * | couven92 joined #nim |
17:37:35 | FromDiscord | <krptr> of RANGE: |
17:37:36 | FromDiscord | <krptr> return "yay" |
17:37:38 | FromDiscord | <krptr> else: |
17:37:39 | FromDiscord | <krptr> return "nope" |
17:37:40 | FromDiscord | <krptr> ``` |
17:37:42 | FromDiscord | <krptr> |
17:37:43 | FromDiscord | <krptr> But I can: |
17:37:44 | FromDiscord | <krptr> ``` |
17:37:46 | FromDiscord | <krptr> const RANGE = 0 .. 20 |
17:37:47 | FromDiscord | <krptr> |
17:37:48 | FromDiscord | <krptr> proc get_value(x: int): string = |
17:37:50 | FromDiscord | <krptr> case x: |
17:37:51 | FromDiscord | <krptr> of 0 .. 20: |
17:37:52 | FromDiscord | <krptr> return "yay" |
17:37:54 | FromDiscord | <krptr> else: |
17:37:55 | FromDiscord | <krptr> return "nope" |
17:37:56 | FromDiscord | <krptr> ``` |
17:37:58 | FromDiscord | <krptr> |
17:38:00 | FromDiscord | <krptr> Why aren't HSlices aliased to be used in a case, when it is marked as const? |
17:39:19 | Zevv | krptr: please don't dump in the chat but use a pastebin instead |
17:39:43 | leorize | because HSlice are value types |
17:39:45 | FromDiscord | <krptr> ooops, sorry I'l do from now on |
17:39:59 | narimiran | ...and by pastebin, Zevv means https://play.nim-lang.org/ ;) |
17:40:02 | leorize | they 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:02 | FromDiscord | <krptr> I know HSlices vs. ranges.. but same syntax makes this confusing for newcomers as me :S |
17:45:19 | leorize | yea, but that's something you gotta learn |
17:46:24 | FromDiscord | <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:09 | leorize | to be fair it's not a range |
17:47:22 | leorize | what is used in `case` statements are sets iirc |
17:47:31 | FromDiscord | <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:03 | FromDiscord | <krptr> let me try <leorize>, one sec |
17:48:06 | leorize | also case branches are const iirc |
17:48:22 | leorize | https://play.nim-lang.org/#ix=1YEd |
17:52:06 | FromDiscord | <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:31 | FromDiscord | <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:45 | leorize | please don't edit messages on discord |
17:52:54 | leorize | it repeats the same message to irc |
17:53:03 | narimiran | poor @krptr, he can't do anything :P |
17:53:32 | FromDiscord | <krptr> no worries, first time and didn't read the rules, fair enough |
18:00:54 | shashlick | @lqdev - the enums need some work - https://github.com/nimterop/nimterop/blob/master/nimterop/getters.nim#L335 |
18:01:04 | shashlick | works fine mostly but shouldn't touch '&' for example |
18:01:13 | shashlick | i can only think regexes, any other suggestions to fix that? |
18:01:25 | shashlick | replace & with " and " unless in quotes? |
18:02:18 | lqdev[m] | likely |
18:04:00 | shashlick | this 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:55 | FromDiscord | <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:44 | FromDiscord | <Kiloneie> when i compile an empty constant, it errors, but nothing is shown by VS Code. |
18:24:51 | * | traviss joined #nim |
18:25:55 | shashlick | @lqdev - i think i'll have to go char by char and modify that way |
18:28:04 | leorize | @Kiloneie: maybe |
18:35:50 | * | sealmove quit (Quit: WeeChat 2.6) |
18:41:21 | * | krux02 quit (Remote host closed the connection) |
18:44:03 | disruptek | do the nim releases include their git commit hashes in `--version`? |
18:47:17 | disruptek | looks like yes. |
18:51:41 | * | letto joined #nim |
18:55:38 | leorize | not always I think |
19:12:31 | FromGitter | <deech> Is there a way to assign the result of an expression? eg. something like `let x = if ... : thing else: otherThing.`. |
19:12:38 | disruptek | yes. |
19:15:25 | FromGitter | <deech> thanks |
19:16:01 | FromGitter | <Vindaar> @deech you can use a `block` on the RHS. The last line is returned from the block |
19:22:02 | disruptek | erm, it may be easier to realize that statements are expressions. |
19:22:19 | disruptek | !eval echo if true: 4 else: 5 |
19:22:21 | NimBot | 4 |
19:22:25 | disruptek | !eval discard if true: 4 else: 5 |
19:22:28 | NimBot | <no output> |
19:22:31 | disruptek | !eval if true: 4 else: 5 |
19:22:33 | NimBot | Compile failed: /usercode/in.nim(1, 18) Error: expression '5' is of type 'int literal(4)' and has to be discarded |
19:24:38 | FromGitter | <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:57 | Zevv | lqdev[m]: your rod implementation inspired me, Pratt was a nice solution for me as well |
19:57:00 | Zevv | https://github.com/zevv/npeg/blob/master/tests/precedence.nim |
20:00:41 | lqdev[m] | glad to hear that! :) |
20:02:52 | shashlick | @lqdev I'll fix the enum issue |
20:02:58 | shashlick | There's another one in there |
20:03:30 | shashlick | If you use onSymbol to change names, they don't change in enums |
20:03:44 | shashlick | So that's being worked too |
20:04:26 | FromDiscord | <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:11 | FromGitter | <zacharycarter> cooool my steamworks bindings are working - at least initially |
21:12:16 | FromGitter | <zacharycarter> was able to retrieve my steam user ID |
21:12:52 | FromGitter | <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:16 | shashlick | What doesn't work yet @zacharycarter |
22:05:25 | shashlick | That 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:50 | FromDiscord | <exelotl> losing my mind over the sudo bug |
23:35:17 | FromDiscord | <exelotl> how could that happen |
23:47:11 | * | sealmove joined #nim |
23:50:40 | * | noonien quit (Quit: Connection closed for inactivity) |
23:50:53 | shashlick | https://gist.github.com/genotrance/e1329aaf054ef72d1727ef6c46e3dde5 |