00:00:01 | * | junland quit (Quit: %ZNC Disconnected%) |
00:00:49 | * | junland joined #nim |
00:02:15 | * | laaron quit (Quit: ZNC 1.7.4 - https://znc.in) |
00:02:51 | * | laaron joined #nim |
00:04:52 | * | laaron quit (Remote host closed the connection) |
00:05:22 | * | laaron joined #nim |
00:06:18 | * | laaron quit (Client Quit) |
00:07:04 | * | laaron joined #nim |
00:13:09 | * | laaron quit (Remote host closed the connection) |
00:16:05 | * | nsf quit (Quit: WeeChat 2.6) |
00:16:16 | FromGitter | <aboisvert> if one were to want to try out --newruntime, what modules of the std library are known to work (read: compile) today? |
00:23:07 | * | Hideki joined #nim |
00:24:47 | shashlick | @disruptek there's already nimssh2 based on nimgen so it might be relatively easy |
00:26:55 | * | laaron joined #nim |
00:30:10 | disruptek | everything's a challenge for me, so i defer to your expertise. đ |
00:31:50 | shashlick | Ok then I'll do two if one ends up too easy |
00:32:52 | disruptek | i figured the archive libs should be pretty easy since they are fairly modern and narrowly scoped. |
00:33:45 | disruptek | zstd depends on lz4, so... |
00:33:49 | shashlick | True that |
00:34:01 | shashlick | I just wonder who will use all this stuff |
00:34:06 | disruptek | pigz depends on zlib and ncompress. |
00:34:32 | disruptek | oh i thought you were mostly trying to document stuff. |
00:35:30 | shashlick | Yes that is true but if I wrap nimarchive related stuff I won't be able to resist going all the way :) |
00:36:11 | disruptek | i should put nimarchive into my benchmark testsuite. |
00:36:29 | shashlick | Anyway, I agree it is for docs so will try keep focused |
00:37:33 | * | laaron quit (Quit: ZNC 1.7.4 - https://znc.in) |
00:38:26 | * | laaron joined #nim |
00:39:31 | * | laaron quit (Client Quit) |
00:40:09 | * | laaron joined #nim |
00:41:27 | * | laaron quit (Client Quit) |
00:42:04 | * | laaron joined #nim |
01:04:37 | * | thomasross quit (Ping timeout: 240 seconds) |
01:11:27 | * | thomasross joined #nim |
01:17:14 | * | NicQ joined #nim |
01:18:30 | NicQ | Mic check |
01:28:47 | * | NicQ quit (Ping timeout: 276 seconds) |
01:29:55 | * | NicQ joined #nim |
01:31:17 | * | laaron quit (Quit: ZNC 1.7.4 - https://znc.in) |
01:31:40 | * | lritter joined #nim |
01:31:40 | * | NicQ quit (Read error: Connection reset by peer) |
01:32:46 | * | laaron joined #nim |
01:33:47 | * | NicQ joined #nim |
01:37:53 | * | NicQ quit (Read error: Connection reset by peer) |
01:39:04 | * | NicQ joined #nim |
01:42:19 | * | laaron quit (Quit: ZNC 1.7.4 - https://znc.in) |
01:42:31 | * | NicQ quit (Read error: Connection reset by peer) |
01:43:10 | * | NicQ joined #nim |
01:44:23 | * | laaron joined #nim |
01:47:01 | * | laaron quit (Client Quit) |
01:47:49 | * | laaron joined #nim |
01:48:17 | * | NicQ quit (Ping timeout: 240 seconds) |
01:49:57 | * | minierolls quit (Ping timeout: 240 seconds) |
01:50:31 | * | NicQ joined #nim |
01:53:28 | * | laaron quit (Ping timeout: 260 seconds) |
01:54:05 | * | laaron joined #nim |
01:54:10 | * | theelous3 joined #nim |
01:54:14 | * | krux02_ quit (Remote host closed the connection) |
02:00:20 | * | laaron quit (Quit: ZNC 1.7.4 - https://znc.in) |
02:00:56 | * | laaron joined #nim |
02:01:11 | * | NicQ quit (Read error: Connection reset by peer) |
02:01:24 | * | NicQ joined #nim |
02:14:17 | * | NicQ quit (Ping timeout: 276 seconds) |
02:14:41 | * | NicQ joined #nim |
02:15:09 | * | laaron quit (Quit: ZNC 1.7.4 - https://znc.in) |
02:15:45 | * | laaron joined #nim |
02:28:35 | * | NicQ quit (Read error: Connection reset by peer) |
02:29:38 | * | NicQ joined #nim |
02:32:45 | * | NicQ quit (Read error: Connection reset by peer) |
02:33:27 | * | NicQ joined #nim |
02:50:12 | FromDiscord | <Lunar> The mic works on text :P |
02:50:28 | FromDiscord | <Lunar> Just curious, is there encryption support for Nim yet? |
02:52:10 | * | theelous3 quit (Ping timeout: 265 seconds) |
02:52:26 | * | lritter quit (Ping timeout: 240 seconds) |
02:52:30 | disruptek | lunar: there are a number of crypto packages for nim. |
02:53:00 | FromDiscord | <Lunar> Ah, that's good. I was just curious :P |
02:53:10 | * | lritter joined #nim |
02:57:24 | disruptek | nim-crypto has the best support. |
02:57:38 | * | NicQ quit (Ping timeout: 246 seconds) |
02:58:33 | * | NicQ joined #nim |
03:00:14 | * | Traviss__ quit (Quit: Leaving) |
03:00:36 | * | traviss joined #nim |
03:03:19 | * | NicQ quit (Read error: Connection reset by peer) |
03:07:17 | * | NicQ joined #nim |
03:10:21 | jken | Anyone here any good with opengl? |
03:10:31 | disruptek | yep. |
03:12:12 | jken | I've been trying to get started with sdl2 and opengl in nim, I can render things fine with legacy gl functions, but I am trying to learn modern opengl |
03:12:32 | jken | I've pulled out all the opengl bits from my project into a minimal example |
03:12:51 | jken | Any chance you could give it a once over? |
03:13:02 | disruptek | well, i myself know nothing about opengl. |
03:13:32 | disruptek | but there are a lot of folks in here who are familiar with it. |
03:13:54 | disruptek | krux02, a nim maintainer, did the sdl2 port. |
03:14:08 | disruptek | then there are a number of game creators who have extensive familiarity... |
03:14:20 | jken | https://paste.debian.net/plain/1106243 |
03:14:47 | jken | Thats my code, its pretty much in line with every modern opengl tutorial I've found |
03:14:57 | leorize | krux02 also made a opengl shader dsl for nim iirc |
03:15:20 | jken | I get my background clear color, but it does not draw my triangle |
03:15:56 | * | NicQ quit (Ping timeout: 240 seconds) |
03:16:14 | jken | Some stack overflow posts led me to checking GL_CCW vs GL_CW and face culling, but no combination seems to work |
03:16:31 | disruptek | have you looked at any nim-specific examples? |
03:16:53 | * | NicQ joined #nim |
03:17:32 | jken | I've looked through all of the nim opengl code I could find in the examples folders for the opengl, nimgl, nim-glfw, and nim-image repos to try to find what I was doing wrong |
03:17:40 | leorize | not a opengl master, but afaict you're trying to use a opengl 4.4 shader on 3.1 core context |
03:18:06 | jken | leorize, I've tried using different versions (and matching shader version to gl version) |
03:18:13 | disruptek | if you can get other examples working, that would help increase your confidence in where the problem may lie. |
03:20:04 | jken | The examples in the opengl repo do work when I build them locally |
03:20:04 | * | NicQ quit (Read error: Connection reset by peer) |
03:20:22 | * | NicQ joined #nim |
03:20:31 | disruptek | that's a good sign. |
03:20:33 | jken | so I am likely making a noob mistake that I've failed to spot so far |
03:21:21 | disruptek | i have no idea what i'm looking at, but is sizeof(float) 8 or 4? do you think it matters? |
03:21:32 | disruptek | floats are likely 8 on your platform. |
03:22:53 | jken | Look like 8 |
03:23:30 | disruptek | just seems like the sort of thing that could be wrong if you ported it from C. |
03:24:12 | * | NicQ quit (Read error: Connection reset by peer) |
03:24:28 | * | NicQ joined #nim |
03:24:36 | jken | According to the docs, that param is: Specifies the size in bytes of the buffer object's new data store. |
03:25:10 | jken | and is a GLsizeiptr |
03:25:54 | disruptek | i can guess that much, it's just that this might be twice as big as it should be. but again, i don't know opengl. |
03:30:09 | jken | I changed the calculation to 4 * positions.length, but still no luck |
03:30:59 | * | NicQ quit (Ping timeout: 250 seconds) |
03:33:33 | * | NicQ joined #nim |
03:34:46 | * | doesntgolf joined #nim |
03:34:52 | jken | glGetError returns 0, so opengl says all my calls were vali |
03:34:54 | jken | valid* |
03:36:27 | disruptek | sounds like my debugging effort with libgit2. couldn't figure out why my error was empty. turns out it was 'cause it was working. đ |
03:37:16 | leorize | jken: if you have a opengl sample of the same program that works, maybe try cross-referencing with it? |
03:37:37 | jken | i have been, but will continue |
03:38:00 | jken | been at this issue for a while now |
03:38:03 | leorize | maybe I can take a look, can I have that sample? |
03:38:05 | * | NicQ quit (Read error: Connection reset by peer) |
03:38:40 | * | NicQ joined #nim |
03:39:01 | jken | sure |
03:39:38 | jken | https://paste.debian.net/plain/1106244 |
03:39:52 | leorize | i kinda found your bug |
03:39:59 | * | chemist69 quit (Ping timeout: 246 seconds) |
03:40:07 | jken | do tell! |
03:40:13 | leorize | the positions array |
03:40:33 | leorize | add this suffix to the first element `f32` |
03:41:08 | jken | ooooof |
03:41:19 | disruptek | 4 byte floats. đ |
03:42:12 | * | chemist69 joined #nim |
03:43:42 | leorize | better yet, turn it into .Glfloat |
03:43:54 | leorize | if you're working with opengl, you gotta play by it's rule :P |
03:44:13 | disruptek | good job, leorize. |
03:46:17 | jken | Thank you for finding that |
03:47:44 | leorize | you're welcome :) |
03:48:17 | * | NicQ quit (Read error: Connection reset by peer) |
03:50:43 | * | NicQ joined #nim |
03:54:04 | * | laaron quit (Quit: ZNC 1.7.4 - https://znc.in) |
03:55:16 | * | laaron joined #nim |
03:57:17 | * | NicQ quit (Ping timeout: 240 seconds) |
03:58:33 | * | NicQ joined #nim |
04:03:13 | * | NicQ quit (Ping timeout: 265 seconds) |
04:03:26 | * | NicQ joined #nim |
04:22:38 | * | laaron quit (Quit: ZNC 1.7.4 - https://znc.in) |
04:24:03 | * | NicQ quit (Read error: Connection reset by peer) |
04:24:14 | * | NicQ joined #nim |
04:52:02 | * | doesntgolf quit (Ping timeout: 240 seconds) |
05:47:47 | * | radsoc joined #nim |
06:01:55 | * | solitudesf joined #nim |
06:07:39 | * | narimiran joined #nim |
06:15:55 | * | traviss quit (Quit: Leaving) |
06:22:54 | * | NicQ quit (Ping timeout: 265 seconds) |
06:23:12 | * | NicQ joined #nim |
06:26:52 | * | solitudesf quit (Ping timeout: 268 seconds) |
06:35:50 | leorize | is there anyway to serialize nim's native set[T]? |
06:41:59 | * | nsf joined #nim |
06:42:29 | Zevv | serialize to what? |
06:42:46 | Zevv | you want to parse it back in later presumable? |
06:47:11 | leorize | yea, I want to store it in a sqlite db |
06:47:51 | Zevv | I guess you need to take them out or repr, and then put it back together yourself. |
06:50:08 | leorize | doesn't sound like a good way |
06:50:23 | Zevv | I never said that :) |
06:50:34 | leorize | maybe I can try to build an integer value out of the set :P |
06:51:02 | Zevv | under the hood sets are array[char] I believe |
06:51:07 | Zevv | you might be able to cast it out and back in |
06:53:00 | Zevv | yep |
06:53:57 | Zevv | http://ix.io/1Ytu |
06:56:10 | * | skoude joined #nim |
06:57:57 | Zevv | but then do it with uint8 instead of 64 to make it more generic |
06:59:24 | Zevv | too bad: http://ix.io/1Ytx |
07:00:00 | * | gmpreussner quit (Quit: kthxbye) |
07:00:33 | leorize | looks like a set can be as big as 32 bytes |
07:00:53 | Zevv | and as small as 1 |
07:01:14 | * | skoude quit (Ping timeout: 240 seconds) |
07:01:31 | Zevv | oh the generic works with a proc instead of a template! |
07:02:10 | leorize | do you think that a set is a good way to store permissions? |
07:02:28 | Zevv | what kind of permissions? |
07:03:21 | leorize | can edit this/that, can create stuff, can read others stuff, etc. |
07:03:43 | Zevv | well, in the end it's just a bitmap, so I think this should be pretty ok |
07:04:27 | Zevv | but your serialization has no info in itself, so you can never change the meaning of your enum values |
07:04:55 | * | gmpreussner joined #nim |
07:06:09 | FromGitter | <zacharycarter> I feel so out of it, I haven't been active in chat for more than a week |
07:06:21 | Zevv | Hola zacharycarter! |
07:06:25 | leorize | keeping my enums static is no big deal |
07:06:31 | FromGitter | <zacharycarter> Hello! |
07:06:37 | Zevv | I saw you dude, in your suit and all |
07:06:43 | FromGitter | <zacharycarter> lol |
07:06:43 | leorize | and I can always rebuild the db if I want to modify it |
07:06:55 | FromGitter | <zacharycarter> lies! I don't wear suits! |
07:06:59 | Zevv | leorize: well, than you should be fine I guess |
07:07:15 | Zevv | zacharycarter: I didn't recognize you at first, without the bird |
07:07:20 | FromGitter | <zacharycarter> :P |
07:07:34 | FromGitter | <zacharycarter> I haven't even been to your office yet though! |
07:07:42 | FromGitter | <zacharycarter> Unless you were watching the video chat |
07:07:44 | Zevv | oh, are you planning to? |
07:07:54 | Zevv | I hopped in for 5 secs to pick up something |
07:07:54 | FromGitter | <zacharycarter> I got invited to, but I just accepted an offer yesterday morning |
07:08:00 | FromGitter | <zacharycarter> ah okay haha |
07:08:14 | Zevv | Oh, great man! |
07:08:16 | FromGitter | <zacharycarter> I'm going to work on these guys games - http://frogmind.com/ |
07:08:21 | FromGitter | <zacharycarter> thanks! |
07:08:55 | Zevv | sweet, games again! |
07:09:09 | FromGitter | <zacharycarter> yeah :D they're funded by supercell and I get to stay in Helsinki |
07:09:15 | FromGitter | <zacharycarter> so it's a cool situation |
07:09:31 | Zevv | you'll work from home then? |
07:09:52 | FromGitter | <zacharycarter> I could - but they have an office so I'll probably just go in there, especially at first |
07:10:04 | FromGitter | <zacharycarter> it's like 15 mins away from my apartment |
07:10:08 | FromGitter | <zacharycarter> metro + walking |
07:10:51 | Zevv | sounds like a great find |
07:11:11 | Zevv | oooh, it's the Badand guys! |
07:11:20 | FromGitter | <zacharycarter> yeah! |
07:11:57 | Zevv | *loved* that; very much like limbo and the other one with the little kid and the spiders |
07:12:13 | FromGitter | <zacharycarter> mmhmm, yeah it was a cool game |
07:12:31 | FromGitter | <zacharycarter> their newer games are f2p pvp mobile games, but they're still heavy in physics and IMO pretty fun |
07:13:08 | FromGitter | <zacharycarter> I'm going to be writing server code so it should be good game networking experience :D |
07:13:27 | Zevv | leorize: http://ix.io/1YtD |
07:14:25 | Zevv | zacharycarter: and bring some Nim in the house there! |
07:15:10 | FromGitter | <zacharycarter> definitely working on it :) I mentioned it a few times already and the other server guy showed some interest since he comes from a Python background |
07:19:36 | Zevv | And when do you start? |
07:27:49 | FromGitter | <zacharycarter> Not sure yet - figuring all of that out on Tuesday |
07:36:32 | * | laaron joined #nim |
07:36:49 | * | asymptotically joined #nim |
07:37:26 | FromGitter | <Varriount> @zacharycarter All I can say for game networking: use length prefixed strings on the wire, and don't use a thread-per-client model for the server |
07:38:41 | * | alexander92 joined #nim |
07:40:02 | * | laaron quit (Client Quit) |
07:42:43 | * | laaron joined #nim |
07:47:07 | * | fanta1 joined #nim |
07:47:50 | FromGitter | <zacharycarter> I will remember those two things :) |
07:48:54 | * | NicQ quit (Read error: Connection reset by peer) |
07:49:54 | * | laaron quit (Quit: ZNC 1.7.4 - https://znc.in) |
07:50:59 | * | laaron joined #nim |
07:51:40 | * | thomasross_ joined #nim |
07:51:41 | * | thomasross is now known as Guest63814 |
07:51:41 | * | thomasross_ is now known as thomasross |
07:52:26 | * | Guest63814 quit (Ping timeout: 240 seconds) |
07:52:58 | * | NimBot joined #nim |
07:53:59 | * | laaron quit (Client Quit) |
07:54:30 | * | laaron joined #nim |
07:58:11 | * | laaron quit (Client Quit) |
07:59:44 | * | laaron joined #nim |
08:03:14 | * | gmpreussner quit (Quit: kthxbye) |
08:03:32 | * | gmpreussner joined #nim |
08:06:11 | * | laaron quit (Remote host closed the connection) |
08:21:03 | * | laaron joined #nim |
08:21:55 | * | laaron quit (Client Quit) |
08:22:20 | * | laaron joined #nim |
08:28:29 | * | laaron quit (Remote host closed the connection) |
08:34:22 | * | radsoc quit (Ping timeout: 265 seconds) |
08:44:22 | * | laaron joined #nim |
08:53:39 | * | sealmove joined #nim |
08:59:39 | * | Ven`` joined #nim |
09:02:59 | * | laaron quit (Quit: ZNC 1.7.4 - https://znc.in) |
09:03:51 | * | laaron joined #nim |
09:05:07 | * | laaron quit (Client Quit) |
09:06:26 | * | laaron joined #nim |
09:14:27 | * | laaron quit (Quit: ZNC 1.7.4 - https://znc.in) |
09:14:49 | * | laaron joined #nim |
09:23:34 | * | fredrik92 joined #nim |
09:24:01 | * | couven92 quit (Disconnected by services) |
09:24:06 | * | fredrik92 is now known as couven92 |
09:24:26 | * | fredrik92 joined #nim |
09:29:37 | * | alexander92 quit (Read error: Connection reset by peer) |
09:35:56 | * | laaron quit (Ping timeout: 260 seconds) |
09:39:42 | * | krux02 joined #nim |
09:54:55 | * | radsoc joined #nim |
10:21:23 | * | radsoc quit (Quit: radsoc) |
10:33:41 | * | gangstacat quit (Ping timeout: 246 seconds) |
10:34:06 | * | gangstacat joined #nim |
10:47:44 | * | laaron joined #nim |
10:49:13 | * | narimiran quit (Ping timeout: 265 seconds) |
10:50:14 | * | laaron quit (Client Quit) |
10:50:41 | * | laaron joined #nim |
10:53:35 | FromGitter | <Lecale> Has anyone ever used the package nimsvg ? just tried to install and it failed |
10:55:33 | * | laaron quit (Client Quit) |
11:15:01 | * | laaron joined #nim |
11:19:36 | FromDiscord | <juan_carlos> I used it long time ago, I use `<>` from std lib xml. |
11:25:25 | * | fanta1 quit (Quit: fanta1) |
11:30:48 | * | fanta1 joined #nim |
11:31:21 | * | laaron quit (Remote host closed the connection) |
11:31:32 | * | laaron- joined #nim |
11:33:21 | * | zahary joined #nim |
11:33:35 | * | henriko joined #nim |
11:34:25 | * | dddddd quit (Remote host closed the connection) |
11:34:54 | * | laaron- quit (Client Quit) |
11:35:36 | * | henriko left #nim (#nim) |
11:36:22 | * | laaron joined #nim |
11:37:16 | * | laaron quit (Client Quit) |
11:37:33 | * | laaron joined #nim |
11:39:47 | * | laaron quit (Client Quit) |
11:39:53 | * | henriko_ joined #nim |
11:40:30 | FromGitter | <Lecale> seems to compiles locally, although can't find the ospaths module mentioned in its examples |
11:41:03 | * | henriko_ quit (Client Quit) |
11:41:10 | FromDiscord | <juan_carlos> `ospaths` is `os` |
11:48:37 | FromGitter | <Lecale> ah okay :) |
11:48:54 | * | couven92 quit (Remote host closed the connection) |
11:49:17 | * | couven92 joined #nim |
11:53:11 | * | fanta1 quit (Quit: fanta1) |
11:58:12 | * | fanta1 joined #nim |
12:00:11 | FromGitter | <Lecale> Animation examples always return "Invalid parameter - 5" ho hum. |
12:01:06 | FromDiscord | <juan_carlos> Report the bug to the developer. |
12:16:17 | * | lritter quit (Ping timeout: 240 seconds) |
12:21:57 | FromGitter | <Lecale> could just be a magick error actually, seems x11 lissing |
12:34:26 | FromDiscord | <juan_carlos> On `macro` how to remove keys from a `tuple`?, I try to get the value inside the `macro` and got `key: "value"` then thats invalid. |
12:35:14 | FromDiscord | <juan_carlos> `value[1]` wont work, is like 1 single thing. |
12:37:46 | * | couven92 quit (Read error: Connection reset by peer) |
12:38:10 | * | couven92 joined #nim |
12:53:14 | * | gangstacat quit (Ping timeout: 276 seconds) |
12:53:21 | * | couven92 quit (Read error: Connection reset by peer) |
12:53:48 | * | couven92 joined #nim |
12:54:14 | * | gangstacat joined #nim |
12:55:43 | * | couven92 quit (Read error: Connection reset by peer) |
12:56:29 | * | couven92 joined #nim |
13:02:04 | FromGitter | <dumjyl> just index it again. |
13:06:27 | * | asymptotically quit (Remote host closed the connection) |
13:06:50 | * | asymptotically joined #nim |
13:28:20 | * | gangstacat quit (Ping timeout: 246 seconds) |
13:31:40 | * | gangstacat joined #nim |
13:49:24 | * | gangstacat quit (Ping timeout: 252 seconds) |
14:01:06 | * | isaac[m] quit (*.net *.split) |
14:01:06 | * | lqdev[m] quit (*.net *.split) |
14:01:06 | * | macsek1911[m] quit (*.net *.split) |
14:01:07 | * | LEdoian[m] quit (*.net *.split) |
14:01:07 | * | k0mpjut0r quit (*.net *.split) |
14:01:07 | * | Demos[m] quit (*.net *.split) |
14:03:29 | * | Ven`` quit (Quit: Textual IRC Client: www.textualapp.com) |
14:04:02 | * | dom96 quit (Ping timeout: 240 seconds) |
14:06:54 | * | k0mpjut0r joined #nim |
14:07:20 | * | Demos[m] joined #nim |
14:07:23 | * | macsek1911[m] joined #nim |
14:08:04 | * | LEdoian[m] joined #nim |
14:08:04 | * | isaac[m] joined #nim |
14:08:22 | * | dom96 joined #nim |
14:08:22 | * | dom96 quit (Changing host) |
14:08:22 | * | dom96 joined #nim |
14:09:37 | * | lqdev[m] joined #nim |
14:11:01 | * | Vladar joined #nim |
14:17:04 | FromDiscord | <Rika> i dont understand the question |
14:19:07 | Zevv | but zacharycarter, I am a bit sad, tho |
14:29:05 | * | fanta1 quit (Quit: fanta1) |
14:30:57 | * | solitudesf joined #nim |
14:37:40 | * | couven92 quit (Read error: Connection reset by peer) |
14:38:08 | * | couven92 joined #nim |
14:40:27 | * | narimiran joined #nim |
14:57:05 | disruptek | !eval echo "đ" |
14:57:07 | NimBot | đ |
14:57:32 | disruptek | !eval let đ = "hi"; echo đ |
14:57:34 | NimBot | hi |
14:58:27 | Zevv | !eval echo readfile("/etc/passwd") |
14:58:29 | NimBot | root:x:0:0:root:/root:/bin/ashâ”bin:x:1:1:bin:/bin:/sbin/nologinâ”daemon:x:2:2:daemon:/sbin:/sbin/nologinâ”adm:x:3:4:adm:/var/adm:/sbin/nologinâ”lp:x:4:7:lp:/var/spool/lpd:/sbin/nologinâ”sync:x:5:0:sync:/sbin:/bin/syncâ”shutdown:x:6:0:shutdown:/sbin:/sbin/shutdownâ”halt:x:7:0:halt:/sbin:/sbin/haltâ”mail:x:8:12:mail:/var/spool/mail:/sbin/nologinâ”news:x:9:13:news:/usr/lib/news:/sbin/nologinâ”uucp:x:10:14:uucp:/var/spool/uucppublic:/sbin/n... |
15:01:27 | FromGitter | <chenbimo> hi |
15:02:12 | Zevv | hi chenbimo |
15:02:13 | * | couven92 quit (Read error: Connection reset by peer) |
15:02:37 | * | couven92 joined #nim |
15:04:32 | disruptek | !eval let â = "foo"; echo â |
15:04:34 | NimBot | foo |
15:04:40 | disruptek | AHA! |
15:04:50 | disruptek | LIARS! |
15:25:37 | Zevv | noo thats not an *operator* |
15:26:04 | disruptek | but it's also not <-. |
15:26:11 | FromDiscord | <kodkuce> i alwies froget how do i get last elemnt or array shorter myarray[-1] << its not -1 so what is it? |
15:26:17 | disruptek | ^1 |
15:26:21 | FromDiscord | <kodkuce> ty |
15:26:30 | FromDiscord | <kodkuce> should tatto it in my arm |
15:26:56 | Zevv | you dont have the nim cheat sheet coffee mug yet? |
15:26:56 | disruptek | i still don't understand what it means when used near a spawn. |
15:27:00 | disruptek | stupid. |
15:27:21 | disruptek | i mean, i never bothered to look it up. it's probably join. but why not just call it join. |
15:27:24 | disruptek | dumb. |
15:31:49 | FromDiscord | <kodkuce> guess will need to do a custom one |
15:32:14 | FromDiscord | <kodkuce> but oh noo i dont drink coffee đŠ |
15:33:46 | disruptek | i was thinking about inventing a second beverage, but... meh. no one should need more than coffee. |
15:39:41 | FromDiscord | <kodkuce> but hmm i dont drink Coca Cola too, hmm i dont drink anything from small mugs, but guess can buy some big ale one or a proper bottle and engrave it |
15:40:43 | * | dddddd joined #nim |
15:41:48 | disruptek | could use a chemical etch on metal; probably easier. |
15:42:00 | * | fanta1 joined #nim |
15:42:33 | FromDiscord | <kodkuce> lasers |
15:43:00 | disruptek | i almost gave my sister a mobile for her new baby with nim keywords and operators as the lil hanging doodads. |
15:52:40 | * | couven92 quit (Read error: Connection reset by peer) |
15:53:08 | * | couven92 joined #nim |
15:54:17 | * | fanta1 quit (Quit: fanta1) |
15:56:42 | * | couven92 quit (Read error: Connection reset by peer) |
15:57:05 | * | couven92 joined #nim |
16:06:42 | * | traviss joined #nim |
16:09:55 | * | fanta1 joined #nim |
16:13:59 | federico3 | is there an `or` operator for strings to return b in "a or b" if a is empty? |
16:16:33 | disruptek | i couldn't find one, either, and it annoys me. |
16:17:29 | FromDiscord | <Rika> you mean python-style? where strings can be truthy or falsy? |
16:17:41 | FromDiscord | <Rika> afaik nim doesnt use the truthy or falsy concept |
16:17:57 | FromDiscord | <Rika> has to be explicitly a bool for boolean or |
16:18:02 | FromGitter | <AiguyGary_twitter> I started getting this error when trying to put a function pointer in a variable. The code works in other places. Just not sure what it's telling me.. â Error: type mismatch: got <proc (): int{.closure, locks: 0.}> but expected 'proc (): int{.locks: 0.}' â â Line of code the Error Message points to is â ... [https://gitter.im/nim-lang/Nim?at=5da34e3a39e2ef28add66775] |
16:18:33 | FromDiscord | <Rika> please use a paste next time, its hard to read in irc/discord w/o going to gitter |
16:18:56 | FromGitter | <AiguyGary_twitter> Ok thanks! |
16:19:13 | FromDiscord | <Rika> one sec though, ill try understanding it |
16:20:53 | FromDiscord | <Rika> okay i think the anonymous proc `proc() = ....` is by default given the {.closure.} pragma (someone verify, im not too good with closure/nimcall/...) |
16:23:33 | leorize | @AiguyGary_twitter: it'd be easier for us to debug this with a proper code snippet |
16:25:54 | FromDiscord | <Rika> yeah i dont see why the extra statement is giving you that error, we'll need more info |
16:26:31 | FromDiscord | <Rika> if possible, make a Minimal, reproducible example |
16:29:58 | * | fanta1 quit (Quit: fanta1) |
16:39:50 | * | asymptotically quit (Quit: Leaving) |
16:40:59 | * | traviss quit (Quit: Leaving) |
16:53:29 | * | fanta1 joined #nim |
17:01:13 | * | sealmove quit (Quit: WeeChat 2.6) |
17:04:49 | * | doesntgolf joined #nim |
17:05:06 | * | doesntgolf left #nim (#nim) |
17:07:12 | * | fanta1 quit (Quit: fanta1) |
17:14:26 | * | couven92 quit (Ping timeout: 240 seconds) |
17:21:58 | FromDiscord | <kodkuce> https://play.nim-lang.org/#ix=1Ywx |
17:22:34 | FromDiscord | <Rika> @kodkuce what's the issue |
17:23:07 | FromDiscord | <kodkuce> issue is it gives me error, i just wanted to concat 2 strings and cast them as int and return that int |
17:23:12 | FromDiscord | <kodkuce> but it gives error |
17:23:21 | FromDiscord | <kodkuce> and i dont get why |
17:23:51 | FromDiscord | <kodkuce> i even put ( ) to be sure order of operations is not troling me |
17:24:01 | FromDiscord | <Rika> did you try "string".parseInt (import strutils first) |
17:24:46 | FromDiscord | <kodkuce> did not |
17:24:58 | FromDiscord | <kodkuce> thinked this would work |
17:25:26 | FromDiscord | <Rika> https://play.nim-lang.org/#ix=1YwC |
17:26:25 | FromDiscord | <kodkuce> ($(int(input[0])) & $(int(input[1])) ).parseInt() << woks |
17:26:38 | FromDiscord | <Rika> okay what's the issue now |
17:27:10 | FromDiscord | <kodkuce> or like that, no issue, just dident get why my way didet work, guess i need strutils to pars string to int cant just cast it |
17:27:26 | FromDiscord | <Rika> yeah you cant pass a string to int() like in python |
17:39:03 | leorize | this is just highly inefficent though... |
17:39:53 | * | symgryph joined #nim |
17:47:18 | * | symgryph quit (Remote host closed the connection) |
17:51:10 | * | npgm joined #nim |
17:54:28 | * | zahary quit (Quit: Leaving.) |
17:54:39 | * | zahary joined #nim |
17:55:15 | * | zahary quit (Client Quit) |
17:56:37 | * | asymptotically joined #nim |
18:08:03 | * | gangstacat joined #nim |
18:23:52 | FromDiscord | <kodkuce> what what |
18:28:01 | leorize | you're allocating strings, concatenating them (which allocates an another string), then parse that to get an int |
18:28:39 | leorize | if that's not inefficient I don't know what is :P |
18:54:20 | * | couven92 joined #nim |
19:02:07 | Zevv | "if it works, it's not stupid" |
19:03:38 | FromDiscord | <kodkuce> am just soliving exercism stuff not writing perfomant code |
19:04:00 | FromDiscord | <kodkuce> but duno how else to connect 2 numbers together anyway |
19:04:27 | FromDiscord | <Chiqqum_Ngbata> Exorcise those demons |
19:06:37 | * | Tyresc joined #nim |
19:07:46 | federico3 | is there no way to scan an OrderedTable in reverse? |
19:10:41 | nixfreak_ | ls |
19:20:55 | * | abm joined #nim |
19:28:26 | * | Trustable joined #nim |
19:30:45 | * | gangstacat quit (Ping timeout: 252 seconds) |
19:40:47 | * | ng0 joined #nim |
19:47:54 | * | Trustable quit (Remote host closed the connection) |
19:51:32 | * | nif quit (Quit: ...) |
19:51:42 | * | nif_ joined #nim |
19:55:53 | * | couven92 quit (Read error: Connection reset by peer) |
19:56:16 | * | couven92 joined #nim |
20:04:37 | * | minierolls joined #nim |
20:05:08 | * | couven92 quit (Read error: Connection reset by peer) |
20:05:32 | * | couven92 joined #nim |
20:18:22 | FromGitter | <AiguyGary_twitter> Is there a way with a Macro to count how many times a particular variable name is referenced in the AST (Abstract Syntax Tree)? I have a section of repetitive tests that each reference the variable once in that test. It occurs to me that if I can count the variable reference in the AST with a Macro then I don't need to count and increment a variable counter for each section of code at runtime when it runs. |
20:22:08 | * | couven92 quit (Read error: Connection reset by peer) |
20:22:19 | * | narimiran quit (Remote host closed the connection) |
20:22:32 | * | couven92 joined #nim |
20:26:38 | * | couven92 quit (Read error: Connection reset by peer) |
20:27:05 | * | couven92 joined #nim |
20:41:25 | * | minierolls quit (Quit: WeeChat 2.4) |
20:59:22 | * | nsf quit (Quit: WeeChat 2.6) |
21:04:39 | * | traviss joined #nim |
21:08:56 | * | luis_ joined #nim |
21:15:40 | * | luis_ quit (Remote host closed the connection) |
21:16:52 | * | asymptotically quit (Quit: Leaving) |
21:28:06 | * | ng0 quit (Quit: Alexa, when is the end of world?) |
21:29:36 | * | couven92 quit (Read error: Connection reset by peer) |
21:30:03 | * | couven92 joined #nim |
21:41:53 | * | rockcavera joined #nim |
21:43:09 | * | salotz[m] joined #nim |
21:46:17 | * | solitudesf quit (Ping timeout: 240 seconds) |
21:50:30 | * | Vladar quit (Remote host closed the connection) |
21:57:32 | * | zahary joined #nim |
22:06:29 | * | couven92 quit (Quit: Client Disconnecting) |
22:07:53 | * | zahary quit (Quit: Leaving.) |
22:13:36 | * | NimBot joined #nim |
22:35:18 | * | pbb quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
22:35:31 | * | pbb joined #nim |
22:41:17 | * | noonien joined #nim |
22:56:04 | * | PrimHelios joined #nim |
22:56:59 | PrimHelios | I noticed the POSIX module was lacking a lot of documentation. Anyone think there would be interest in a PR for that? |
22:57:50 | disruptek | yep. |
22:58:06 | PrimHelios | Just figured I'd check before putting the time in lol |
22:58:51 | disruptek | not only are docs almost always appreciated, they are almost always merged quickly. đ |
23:08:54 | dom96 | tbh writing POSIX docs manually shouldn't be done |
23:09:09 | dom96 | posix module in Nim is just a wrapper, it's better to just read the official posix docs |
23:09:29 | dom96 | if you want Nim to have these docs then you should figure out a way to grab them from POSIX's docs automatically |
23:11:09 | PrimHelios | I just thought it would be nice to not have to constantly jump back and forth from the posix functions' C man pages to nim's wrapper, but I definitely agree with you |
23:11:36 | * | krux02 quit (Remote host closed the connection) |
23:16:27 | PrimHelios | if I *were* to write some code to try and grab the docs from man pages, would that go in tools/kochdocs.nim? |
23:26:32 | * | Tyresc quit (Quit: WeeChat 2.7-dev) |
23:43:30 | * | abm quit (Quit: Leaving) |