00:00:17 | FromDiscord | <clyybber> yeah |
00:00:27 | FromDiscord | <clyybber> disruptek: This is getting ridiculus: https://www.diffchecker.com/GsWkt8au |
00:00:31 | FromDiscord | <clyybber> right side fails |
00:00:33 | FromDiscord | <clyybber> left side workds |
00:00:35 | FromDiscord | <clyybber> wtf |
00:03:43 | * | Hideki_ joined #nim |
00:07:51 | * | dadada_ quit (Ping timeout: 268 seconds) |
00:08:19 | * | Hideki_ quit (Ping timeout: 260 seconds) |
00:09:07 | * | dadada_ joined #nim |
00:13:14 | * | abm quit (Quit: Leaving) |
00:17:05 | * | disrupteq joined #nim |
00:22:50 | * | dadada_ quit (Ping timeout: 240 seconds) |
00:24:10 | * | dadada_ joined #nim |
00:25:51 | * | zielmicha__ quit (Read error: Connection reset by peer) |
00:25:59 | * | zielmicha__ joined #nim |
00:28:03 | * | opal quit (Ping timeout: 240 seconds) |
00:29:15 | * | opal joined #nim |
00:31:54 | FromDiscord | <clyybber> ah damnit |
00:32:02 | FromDiscord | <clyybber> a stupid fucking precedence error |
00:32:03 | FromDiscord | <clyybber> I knew it |
00:35:06 | dom96 | ahh, how fun. Emscripten doesn't seem to like the @ in the .c files that Nim now generates |
00:35:35 | disrupteq | clyybber: i thought it was working? |
00:38:17 | * | dadada_ quit (Ping timeout: 272 seconds) |
00:38:43 | FromDiscord | <clyybber> now it works |
00:38:52 | FromDiscord | <clyybber> disruptek: It was working when I manually patched the C |
00:38:56 | FromDiscord | <clyybber> now it works everywhere |
00:39:01 | disrupteq | yay |
00:39:10 | * | dadada joined #nim |
00:39:33 | * | dadada is now known as Guest82873 |
00:39:38 | FromDiscord | <clyybber> I accidentally translated (uint64_t)some * other to uint64_t(some * other) |
00:39:52 | FromDiscord | <clyybber> which should be uint64_t(some) * other |
00:39:59 | disrupteq | ah yep. |
00:40:46 | FromDiscord | <clyybber> now I'm gonna try d2s |
00:40:51 | FromDiscord | <clyybber> did you already do it? |
00:41:18 | disrupteq | i dunno. probably. |
00:41:35 | FromDiscord | <clyybber> does it work? |
00:41:51 | disrupteq | i haven't tested it since krux's fix. |
00:42:25 | FromDiscord | <clyybber> krux' fix is live |
00:42:31 | disrupteq | but there are only a couple tests broken by it. i think it's likely fixed. |
00:43:00 | disrupteq | i'm watching a car accident victim right now. cannot be bothered. |
00:43:22 | FromDiscord | <clyybber> oh shit what happened? |
00:43:33 | disrupteq | kinda cute in a puppy-with-a-crushed-head way. |
00:43:57 | FromDiscord | <clyybber> aww no |
00:44:16 | FromDiscord | <clyybber> disruptek: Pet him from me will ya? |
00:46:18 | disrupteq | it's a journalist on telly. |
00:46:44 | disrupteq | i'll wave at her for you. |
00:49:31 | disrupteq | actually, i think it wasn't a car. |
00:53:23 | * | Guest82873 quit (Ping timeout: 265 seconds) |
00:54:04 | * | dadada_ joined #nim |
00:58:51 | FromDiscord | <clyybber> oh |
01:08:17 | * | dadada_ quit (Ping timeout: 268 seconds) |
01:09:07 | * | dadada_ joined #nim |
01:10:31 | FromDiscord | <Hippo> Does the stdlib still work if you turn off the nim gc? |
01:10:48 | * | Zectbumo quit (Remote host closed the connection) |
01:11:28 | FromDiscord | <Rika> Some, not all |
01:12:40 | dom96 | It's 1am, but I'm so close to getting my game to compile with emscripten |
01:14:58 | FromDiscord | <Hippo> So I guess I need the soft realtime gc to make sure everything is working? Is that faster than go? |
01:15:55 | FromDiscord | <Rika> From old benchmarks it is |
01:16:02 | FromDiscord | <Rika> But it's best if you test it yourself |
01:16:11 | FromDiscord | <Rika> My experience says yes |
01:16:49 | FromDiscord | <Rika> And also ar(a)q is developing a move based gc or smth |
01:16:54 | FromDiscord | <Rika> Which should be even quicker |
01:17:05 | FromDiscord | <Rika> I think. |
01:17:15 | * | actuallybatman left #nim (#nim) |
01:18:23 | FromDiscord | <Hippo> gotcha |
01:19:04 | FromDiscord | <Hippo> would do you think of using nim for game dev specifically mobile |
01:19:35 | FromDiscord | <clyybber> @Hippo You can use --gc:arc |
01:19:41 | FromDiscord | <Hippo> my plan was to compile to c and then use some c toolchain to generate mobile binaries |
01:19:42 | FromDiscord | <clyybber> Its no GC |
01:19:49 | FromDiscord | <clyybber> its more like RAII |
01:19:59 | FromDiscord | <clyybber> plus pure refcounting |
01:20:01 | FromDiscord | <Hippo> ooh cool |
01:20:12 | FromDiscord | <clyybber> its what we are currently working on a lot |
01:20:26 | FromDiscord | <clyybber> so when you intend to use it you should use #devel |
01:20:27 | FromDiscord | <Rika> It's the one I mentioned |
01:20:36 | FromDiscord | <Rika> Just vaguely |
01:21:09 | FromDiscord | <Hippo> so what about game dev, is nim suited for this? |
01:21:45 | FromGitter | <Varriount> Undefined behavior? |
01:22:26 | * | dadada_ quit (Ping timeout: 240 seconds) |
01:24:06 | * | dadada_ joined #nim |
01:24:09 | FromDiscord | <Elegant Beef> Nim doesnt include interfaces, which i tend to use a lot for gamedev, but it seems like it's good for gamedev to me |
01:24:12 | FromDiscord | <Elegant Beef> just need an engine ๐ |
01:24:31 | Tanger | There's bindinggs for the godot engine: https://github.com/pragmagic/godot-nim |
01:24:38 | FromDiscord | <Elegant Beef> I mean a good engine |
01:24:43 | Tanger | Haha XD |
01:26:04 | FromDiscord | <Hippo> yea i dont mind not having a game engine just hoping there are more success stories. I saw one blog post that shipped a game to ios/android |
01:27:45 | FromDiscord | <Hippo> also nim can probably interop with c/c++ im guessing just dont know if there is a performance hit |
01:27:48 | FromDiscord | <Elegant Beef> I've been sitting on making a nim engine |
01:28:13 | FromDiscord | <Elegant Beef> Using bgfx for graphics, sdl for window making, and then an ECS backend system with a relatively minimalistic UI engine ๐ |
01:28:28 | FromDiscord | <Elegant Beef> Using bgfx for graphics, sdl for window making, and then an ECS backend system with a relatively minimalistic UI editor ๐ |
01:28:38 | FromDiscord | <Hippo> I found a nice c lib called sokol recently that does most of that |
01:28:53 | FromDiscord | <Hippo> its pretty lit |
01:29:05 | FromDiscord | <Hippo> has a bunch of target backends |
01:29:39 | FromDiscord | <Elegant Beef> i mean bgfx is probably good enough |
01:29:49 | FromDiscord | <Elegant Beef> It's more a matter of me getting around to making this |
01:32:23 | FromDiscord | <clyybber> @Hippo Yeah, its good |
01:32:23 | FromDiscord | <Elegant Beef> Someone already has bindings for it |
01:32:35 | FromDiscord | <clyybber> There is no performance hit for c/c++ interop |
01:32:36 | FromDiscord | <Elegant Beef> cllybber arent you working on a nim engine? |
01:32:44 | FromDiscord | <clyybber> @Elegant Beef godot isn't bad |
01:32:47 | FromDiscord | <clyybber> @Elegant Beef Yeah |
01:32:53 | FromDiscord | <Elegant Beef> look at gles then say that again ๐ |
01:32:59 | FromDiscord | <clyybber> well |
01:33:04 | FromDiscord | <clyybber> its getting a vulkan renderer |
01:33:12 | FromDiscord | <Elegant Beef> still gles based shader language |
01:33:22 | FromDiscord | <clyybber> but yeah, I don't like some of their decisions |
01:33:26 | FromDiscord | <Elegant Beef> Im an hlsl/CG man because of unity ๐ |
01:33:29 | FromDiscord | <clyybber> or directions |
01:33:49 | FromDiscord | <clyybber> @Elegant Beef I'm an do what you want, if you can compiler it to SPIR-V :p |
01:33:54 | FromDiscord | <clyybber> guy |
01:34:01 | FromDiscord | <Elegant Beef> ah a man of wisdom aswell i see |
01:34:07 | FromDiscord | <Elegant Beef> VK or broke in 220 |
01:34:08 | FromDiscord | <Elegant Beef> VK or broke in 2020 |
01:34:14 | FromDiscord | <clyybber> but in theory I prefer hlsl over glsl too |
01:34:40 | FromDiscord | <clyybber> in practice I want to use nim tho |
01:34:51 | FromDiscord | <clyybber> which is possible btw |
01:35:12 | FromDiscord | <Elegant Beef> For shaders? |
01:35:17 | FromDiscord | <clyybber> Yeah |
01:35:18 | FromDiscord | <clyybber> https://github.com/yglukhov/nimsl |
01:35:22 | FromDiscord | <Elegant Beef> I mean just convert it to GLSL or HLSL |
01:35:26 | FromDiscord | <Elegant Beef> it's not difficult i guess |
01:35:45 | FromDiscord | <clyybber> Yeah |
01:35:49 | FromDiscord | <clyybber> thats what the above does |
01:35:52 | FromDiscord | <clyybber> https://github.com/krux02/opengl-sandbox |
01:36:00 | FromDiscord | <clyybber> is for everything around opengl |
01:37:08 | FromDiscord | <Elegant Beef> There are bgfx bindings but they seem semi old |
01:37:51 | * | dadada_ quit (Ping timeout: 265 seconds) |
01:38:19 | FromDiscord | <clyybber> @Elegant Beef Use these: https://github.com/zacharycarter/bgfx.nim |
01:38:42 | FromDiscord | <Elegant Beef> Hey i said i was contemplating |
01:38:52 | FromDiscord | <Elegant Beef> *Let's make it together* ๐ |
01:39:02 | FromDiscord | <clyybber> An engine? |
01:39:06 | * | dadada joined #nim |
01:39:07 | FromDiscord | <Elegant Beef> yea |
01:39:19 | FromDiscord | <clyybber> sure |
01:39:25 | FromDiscord | <clyybber> I'm using vulkan tho |
01:39:30 | * | dadada is now known as Guest75381 |
01:39:52 | FromDiscord | <Elegant Beef> I was mostly kidding |
01:40:04 | FromDiscord | <clyybber> he |
01:40:31 | FromDiscord | <clyybber> @Elegant Beef zachary is working on his own game/engine: https://github.com/zacharycarter/zeal |
01:40:51 | FromDiscord | <clyybber> I think hes not pushed his recent changes tho |
01:41:07 | FromDiscord | <clyybber> hes around sometimes |
01:42:55 | disruptek | oh, i was wondering if it was published. |
01:43:40 | FromDiscord | <clyybber> disruptek: Yeah he seemed to have some pretty cool progress |
01:44:08 | disruptek | yeah, it's awesome to see it evolving. |
01:44:34 | disruptek | i would love to get into game programming. |
01:46:19 | disruptek | so i don't see krux's patch in the commits. |
01:46:21 | FromDiscord | <Elegant Beef> I've primarly done game programming so i barely know how to do anything outside it |
01:47:37 | FromDiscord | <clyybber> disruptek: I meant live as in PRed |
01:49:43 | disruptek | yeah, i get #nim delivered straight into my brain. krux and i spoke of it. |
01:49:44 | * | ptdel joined #nim |
01:50:32 | disruptek | i'm thinking about a tiny app that works kinda like my irc window, actually. |
01:51:09 | disruptek | the bot emotes notifications to wayland, i summon irc with a key and cast it away with another. |
01:51:47 | disruptek | this other app would watch kitty windows and then i could summon them with a code-grep. |
01:52:02 | * | Guest75381 quit (Ping timeout: 240 seconds) |
01:52:07 | disruptek | like skim or ripgrep or fzf or whatever. |
01:53:02 | disruptek | i think either i watch vim or i watch kitty; shouldn't be a problem to use either as input. or even both. |
01:54:10 | * | dadada_ joined #nim |
01:55:59 | disruptek | maybe i just want that for all windows. fzf'ing their memory would be neat, too. |
01:57:08 | FromDiscord | <clyybber> wait |
01:57:14 | FromDiscord | <clyybber> you do not have vim inside kitty? |
01:57:21 | FromDiscord | <clyybber> you use gvim???? |
01:57:45 | disruptek | nope. |
01:59:58 | * | silvernode joined #nim |
02:00:13 | FromDiscord | <clyybber> aight |
02:00:22 | disruptek | scrollback is easy to get, so i'll start with that. but i think i want vim buffer data too. |
02:00:52 | FromDiscord | <clyybber> kitty seems very cool to me |
02:01:15 | FromDiscord | <clyybber> but the combination of python and C just screams for nitty |
02:01:19 | silvernode | when specifying a type and trying to assign a variable of type array or seq I get a context error |
02:01:21 | disruptek | honestly, i've been waiting a long time for software that doesn't piss me right the fuck off. |
02:01:54 | FromDiscord | <clyybber> silvernode: Hmm, can you make a snippet to repro? |
02:01:58 | disruptek | kitty has been among the worst of the software i use. but, that said, it's pretty great compared to software i've used in the past. |
02:02:04 | FromDiscord | <clyybber> oh |
02:02:10 | FromDiscord | <clyybber> I never used it |
02:02:14 | FromDiscord | <clyybber> but it *seems* cool |
02:02:22 | FromDiscord | <clyybber> alacritty is fine for me rn tho |
02:02:29 | FromDiscord | <clyybber> but kitty seems a bit cooler |
02:02:45 | FromDiscord | <clyybber> except for the fact that its written in python + c |
02:03:03 | disruptek | i think alacritty will win, and should win, but a year ago it was kitty's game. |
02:03:23 | FromDiscord | <clyybber> alacritty is pretty dead |
02:03:43 | FromDiscord | <clyybber> it has no real active development |
02:03:44 | disruptek | really? i thought there was a recent release. |
02:03:51 | FromDiscord | <clyybber> yeah |
02:04:00 | FromDiscord | <clyybber> but its mostly bugfixes |
02:04:10 | disruptek | what's bad about that? |
02:04:14 | FromDiscord | <clyybber> nothing |
02:04:19 | silvernode | working on a gist |
02:04:21 | FromDiscord | <clyybber> I mean its in maintenance mode |
02:04:40 | disruptek | maybe a 1.0 release is expected. |
02:04:43 | FromDiscord | <clyybber> but some work on the pinned issues would be nice |
02:04:54 | FromDiscord | <clyybber> I should do it sometimes |
02:04:58 | disruptek | man, they only have 355 tickets. |
02:05:56 | disruptek | this project has 20,000 stars. |
02:06:02 | disruptek | !repo alacritty |
02:06:04 | disbot | https://github.com/alacritty/alacritty -- 9alacritty: 11A cross-platform, GPU-accelerated terminal emulator 15 20545โญ 973๐ด 7& 29 more... |
02:06:11 | disruptek | and quite a bit of cutlery. |
02:07:35 | * | dadada_ quit (Ping timeout: 272 seconds) |
02:07:57 | madprops | would nim having something built-in to "substring" a seq or string, like (0, 100) would work in something with 8 items, would be too high level and thus not included |
02:08:23 | FromDiscord | <clyybber> Huh? |
02:08:27 | disruptek | lol |
02:08:30 | FromDiscord | <clyybber> You can do [0..100] |
02:08:30 | FromDiscord | <Kingherring> please defend nim from this "influencer" https://www.youtube.com/watch?v=DCfDLWfPqiA |
02:08:40 | FromDiscord | <clyybber> oh god |
02:08:46 | FromDiscord | <clyybber> influencer is a virus |
02:09:04 | FromDiscord | <clyybber> this whole influencer thing should just die |
02:09:05 | * | dadada_ joined #nim |
02:09:52 | FromDiscord | <clyybber> not to mention the article on medium is complete bullshit |
02:09:59 | FromDiscord | <clyybber> so sad |
02:10:00 | silvernode | https://gist.github.com/silvernode/003571ac561211212fecd35208762f72 |
02:10:08 | madprops | clyyber: https://play.nim-lang.org/#ix=2bAZ |
02:10:42 | FromDiscord | <clyybber> madprops: Well of course it does?? |
02:10:46 | FromDiscord | <clyybber> Its out of bounds |
02:10:49 | silvernode | I am really new to types and seqs |
02:11:07 | madprops | yeah, im wondering if there's something that would just use the lower index number if the second arugment is too big |
02:11:21 | madprops | like how js uses substring |
02:12:05 | madprops | also this video is a python tutorial |
02:12:41 | FromDiscord | <clyybber> madprops: Ah |
02:12:46 | FromDiscord | <clyybber> You can make your own |
02:13:00 | FromDiscord | <clyybber> you mean wrap around right? |
02:13:09 | madprops | is something like this not standard because it's too slow? |
02:13:17 | silvernode | invalid type: 'T' in this context: 'Ship' for var |
02:13:24 | silvernode | that's what I get in that gist |
02:13:51 | FromDiscord | <clyybber> silvernode: Your cargo has to be seq[SomeType] |
02:14:08 | silvernode | ah ok that makes a lot of sense |
02:14:17 | silvernode | I am just missing the type there |
02:14:22 | FromDiscord | <Rika> People be like โeh?? Nim? What the fuck is that?โ until 2 years from now where either Nim flourishes or dies out |
02:15:05 | FromDiscord | <Rika> Honestly think we just need more people to know of Nim |
02:15:10 | disruptek | this guy is an idiot. |
02:15:13 | FromDiscord | <clyybber> no |
02:15:21 | FromDiscord | <clyybber> Nim doesn't flourish or die |
02:15:27 | FromDiscord | <clyybber> thats not how this works |
02:16:29 | FromDiscord | <clyybber> how would it "die"? |
02:17:03 | disruptek | there are too many new programmers being minted every day. |
02:17:09 | FromDiscord | <clyybber> yeah |
02:17:12 | FromDiscord | <Rika> Well, if somehow everyone just loses interest, but of course thatโs practically impossible |
02:17:27 | FromDiscord | <Rika> Itโs not an impossibility though is what Iโm saying |
02:17:35 | FromDiscord | <clyybber> tbh, I fear some people |
02:17:35 | madprops | nim gets mentioned ocasionally on 4chan |
02:17:42 | FromDiscord | <Rika> I donโt like saying something that concrete about the future |
02:17:54 | FromDiscord | <clyybber> madprops: ha, prolly cuz of solitude |
02:19:01 | FromDiscord | <clyybber> @Rika Yeah, but in the same way C or C++ dieing is a "possibility" |
02:19:15 | FromDiscord | <clyybber> if humanity dies |
02:19:18 | FromDiscord | <Rika> Thatโs what I did say yes |
02:19:47 | FromDiscord | <Kingherring> click that dislike button ๐ |
02:19:53 | FromDiscord | <Rika> I donโt know, I have an odd thought process |
02:20:18 | FromDiscord | <clyybber> heh |
02:20:26 | madprops | look at D, it has been barely existing for years |
02:20:28 | FromDiscord | <clyybber> good night peeps |
02:20:41 | FromDiscord | <clyybber> madprops: It exists pretty persistent tho |
02:20:44 | disruptek | this guy has 150,000 subscribers and this video only has 4000 views. |
02:20:47 | * | chemist69_ quit (Ping timeout: 240 seconds) |
02:20:48 | FromDiscord | <clyybber> even gcc |
02:21:03 | FromDiscord | <Rika> Still, I think the dude in the video forgot that basically all programming languages started out small too |
02:21:24 | FromDiscord | <clyybber> eh, these people. They don't create anything |
02:21:26 | FromDiscord | <Rika> Not basically all, literally all, sorry |
02:22:31 | FromDiscord | <clyybber> they are busy influencing |
02:22:43 | FromDiscord | <Kingherring> make pro nim comments |
02:22:47 | FromDiscord | <Kingherring> nim gang uprising |
02:22:48 | * | dadada_ quit (Ping timeout: 265 seconds) |
02:23:00 | * | chemist69 joined #nim |
02:24:06 | * | dadada_ joined #nim |
02:25:22 | FromDiscord | <Rika> Ugh the comment section is also annoying to read in that video |
02:25:44 | disruptek | is this really what us old guys look like? |
02:31:31 | blueberrypie | most nim references on 4chan is from one very persistent shill (yeah I know who it is). not a good metric |
02:38:16 | * | dadada_ quit (Ping timeout: 265 seconds) |
02:39:10 | * | dadada joined #nim |
02:39:33 | * | dadada is now known as Guest51853 |
02:43:28 | silvernode | What would I use if I wanted to print out the contents of a seq from index 0 to the end? I just want to format the cargo on the ship so it prints out nice in an echo statement |
02:44:25 | leorize | for i in seq_goes_here: <do your formatting here> |
02:44:40 | FromGitter | <gogolxdong> nlvm `Error: internal error: compiler proc not found: nlvmRaise` |
02:48:24 | disruptek | but seriously. we need some more software that could only have been built in nim. |
02:48:48 | * | theelous3 quit (Ping timeout: 268 seconds) |
02:49:18 | leorize | anyone wanna make function multi versioning in Nim? |
02:49:43 | leorize | basically it's that the function can dispatch on runtime to a version optimized for the current processor |
02:50:17 | leorize | (ie. you wrote sse code, but you only want that to be used when the code is running on an sse-capable processor) |
02:50:22 | * | theelous3 joined #nim |
02:50:58 | disruptek | ugh. |
02:51:16 | disruptek | that's a neat feature but irrelevant to my oss world. |
02:52:21 | silvernode | leorize: I tried a for loop but I don't want my formatting to be in that scope. |
02:52:27 | leorize | the biggest use case would be to let us easily write optimized code in our stdlib for example |
02:52:43 | leorize | silvernode: well I'm not sure what you're trying to do then |
02:53:07 | leorize | the olde index < seq.len while loop still exists for the more complicated cases |
02:53:15 | silvernode | leorize: basically have the echo lines outside of the scope of the for loop and still be able to access the interation |
02:53:15 | * | Guest51853 quit (Ping timeout: 265 seconds) |
02:54:03 | * | dadada_ joined #nim |
02:54:03 | silvernode | or just not use a for loop at all |
02:54:28 | silvernode | I can print out just index 1 which works fine but I want to print out the whole list without a loop |
02:54:41 | leorize | that's impossible |
02:54:52 | silvernode | just wanted to make sure it is impossible |
02:55:04 | disruptek | why is it impossible? |
02:55:05 | silvernode | figured as much |
02:55:29 | leorize | disruptek: how can you print a seq of arbitary size without looping through the elements? |
02:55:36 | silvernode | I thought there was a function that can print from the beginning to the end of the index |
02:56:07 | leorize | !eval echo @["like", "this?"] |
02:56:10 | NimBot | @["like", "this?"] |
02:56:51 | silvernode | I just don't want the symbols to be printed out with the contents of the seq |
02:57:34 | leorize | !eval for i in @["like", "this?"]: stdout.write i, " " |
02:57:37 | NimBot | like this? |
02:57:59 | silvernode | yeah |
02:58:06 | disruptek | how many ships do you know with arbitrary cargo size? |
02:59:11 | silvernode | echo(fmt"{player.name} has the following items in cargo: {ship1.cargo}) which will print all the symbols in the cargo which I just want the names of the items in cargo printed. |
02:59:29 | silvernode | disruptek: so far just one ship is created |
02:59:40 | leorize | silvernode: make your own `$`? |
02:59:56 | leorize | or whatever it is that's used for strformat |
03:00:21 | silvernode | Not sure I understand exactly |
03:00:36 | leorize | or just: ship1.cargo.join(", ") |
03:00:41 | leorize | assuming all strings |
03:00:53 | silvernode | yeah all strings in the cargo |
03:00:55 | silvernode | at least for now |
03:01:05 | leorize | !eval import strutils; echo @["item1", "item2"].join(", ") |
03:01:09 | NimBot | item1, item2 |
03:01:38 | silvernode | I am eventually going to try figuring out how to have a proper inventory of items where I can have a stack of fuel or something. |
03:03:06 | silvernode | I figure a small text game will help me learn since I can't hold my attention span just reading the book and learn from that |
03:05:37 | shashlick | @leorize - https://github.com/nim-lang/Nim/issues/9419#issuecomment-585527016 |
03:05:39 | disbot | โฅ httpclient -d:ssl and db_postgres incompatible and cause SIGSEGV! (MacOSX) ; snippet at 12https://play.nim-lang.org/#ix=2bwr |
03:06:40 | leorize | shashlick: do you have libssl.so in /usr/lib? |
03:06:52 | shashlick | yes libssl.dylib |
03:07:10 | shashlick | get this though - Undefined symbols for architecture x86_64 |
03:07:22 | shashlick | wondering if those dylib are 32bit or something |
03:07:37 | leorize | maybe, do you have those in /usr/lib64? |
03:07:59 | * | dadada_ quit (Ping timeout: 260 seconds) |
03:08:47 | shashlick | there's no such dir on the mac |
03:09:01 | * | dadada_ joined #nim |
03:09:14 | * | theelous3 quit (Ping timeout: 240 seconds) |
03:09:23 | leorize | then I'm not so sure, maybe try searching online? |
03:09:28 | leorize | I've never worked with a mac |
03:09:46 | leorize | my knowledge is pretty theoretical there |
03:10:04 | shashlick | ya people struggle with openssl on it |
03:10:07 | shashlick | cmake cannot find it |
03:10:23 | shashlick | anyway, i have a fix for choosenim so |
03:22:26 | * | dadada_ quit (Ping timeout: 240 seconds) |
03:23:38 | FromGitter | <gogolxdong> nlvm `Error: internal error: compiler proc not found: nlvmRaise` |
03:24:13 | * | dadada_ joined #nim |
03:25:08 | leorize | gogolxdong: you'd need to ping nlvm author for this, I believe they are on gitter |
03:32:04 | leorize | so I spent 2 days reading ryu paper + a lot of wikipedia pages |
03:32:29 | leorize | it results in only 13 lines of code |
03:32:48 | leorize | and I still haven't finish implementing the basic converter in that paper |
03:33:16 | leorize | I don't know what to expect when I actually implements ryu |
03:34:59 | * | muffindrake quit (Ping timeout: 272 seconds) |
03:37:03 | * | muffindrake joined #nim |
03:37:51 | * | dadada_ quit (Ping timeout: 260 seconds) |
03:39:15 | * | dadada joined #nim |
03:39:38 | * | dadada is now known as Guest83626 |
03:40:02 | disruptek | leorize: i have a pretty good idea of what to expect. |
03:40:45 | leorize | you finally cracked the c-ryu? :P |
03:42:22 | disruptek | no, i got to the point where it failed and so did clyybber. |
03:42:39 | disruptek | you have a pretty good shot at failure. |
03:43:00 | disruptek | 13 lines sounds good so far, though. |
03:43:34 | leorize | !repo alaviss/nim-ryu |
03:43:35 | disbot | https://github.com/alaviss/nim-ryu -- 9nim-ryu: 11An implementation of the ryลซ float-to-string conversion algorithm. This version is written from scratch based on the paper. 15 0โญ 0๐ด |
03:44:01 | leorize | it's basically empty atm |
03:44:22 | leorize | but at least you can see my progress of deciphering that paper :P |
03:45:46 | leorize | I'm also learning how float works as it goes too |
03:52:42 | * | Guest83626 quit (Ping timeout: 265 seconds) |
03:54:10 | * | dadada_ joined #nim |
03:54:14 | * | Zectbumo joined #nim |
04:07:41 | * | dadada_ quit (Ping timeout: 265 seconds) |
04:09:10 | * | dadada_ joined #nim |
04:22:17 | * | chemist69 quit (Ping timeout: 246 seconds) |
04:23:07 | * | dadada_ quit (Ping timeout: 272 seconds) |
04:23:18 | * | chemist69 joined #nim |
04:24:10 | * | dadada_ joined #nim |
04:26:34 | disruptek | leorize: i think we should support sign more naturally. |
04:28:12 | * | Zectbumo quit (Remote host closed the connection) |
04:28:23 | leorize | disruptek: not sure how you'd do that though |
04:30:31 | disruptek | for example, why are -inf and inf peers of -0 and 0? |
04:30:52 | shashlick | disruptek: https://github.com/nim-lang/nimble/issues/760 |
04:30:53 | disbot | โฅ Nimble ignores nim.cfg? |
04:31:59 | * | sagax quit (Ping timeout: 272 seconds) |
04:38:37 | * | dadada_ quit (Ping timeout: 265 seconds) |
04:39:09 | * | dadada joined #nim |
04:39:32 | * | dadada is now known as Guest38190 |
04:45:34 | leorize | disruptek: I still don't know what you mean :P |
04:46:35 | * | hax-scramper quit (Ping timeout: 268 seconds) |
04:47:08 | * | hax-scramper joined #nim |
04:48:01 | * | nsf joined #nim |
04:48:47 | * | dddddd quit (Ping timeout: 260 seconds) |
04:49:58 | disruptek | i'd rather have a set of {inf, negative} than negInf. |
04:52:32 | leorize | ah, I thought about that |
04:53:31 | * | Guest38190 quit (Ping timeout: 272 seconds) |
04:53:38 | leorize | but then there's {inf, nan} |
04:53:41 | leorize | not a fan |
04:53:51 | leorize | or I can just use isNegative and remove all Neg variants |
04:54:07 | * | dadada_ joined #nim |
04:55:06 | disruptek | why would that be something you'd want to use? |
04:55:33 | disruptek | x.isNegative can be a template for `neg in x.flags`. |
04:56:48 | disruptek | the point isn't to compose a float as {inf, nan}; that can be denied if it's important. the point is to actually use the values naturally. |
04:57:55 | leorize | or I can just overload `< 0` :P |
04:58:02 | leorize | do I even have to actually :P |
04:59:56 | disruptek | there's obviously value in not throwing away the type, so i'd say yes. |
05:00:28 | disruptek | looks good so far, even if it's > 13 lines. ๐ |
05:01:56 | disruptek | shashlick: i dunno anything about that nimble issue. |
05:02:42 | * | ptdel quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) |
05:07:38 | * | dadada_ quit (Ping timeout: 240 seconds) |
05:09:08 | * | dadada_ joined #nim |
05:15:09 | * | sagax joined #nim |
05:22:51 | * | dadada_ quit (Ping timeout: 260 seconds) |
05:24:10 | * | dadada_ joined #nim |
05:25:25 | * | fanta1 joined #nim |
05:35:38 | shashlick | disruptek: it was a conversation between you and dom96 |
05:35:55 | shashlick | Regardless, I could nimble install nimph with zero issues |
05:37:06 | * | Lord_Nightmare quit (Ping timeout: 265 seconds) |
05:37:25 | * | Lord_Nightmare joined #nim |
05:38:04 | * | dadada_ quit (Ping timeout: 265 seconds) |
05:39:06 | * | dadada joined #nim |
05:39:30 | * | dadada is now known as Guest75065 |
05:40:04 | * | krux02 joined #nim |
05:53:11 | * | Guest75065 quit (Ping timeout: 268 seconds) |
05:54:05 | * | dadada_ joined #nim |
05:58:10 | FromDiscord | <Elegant Beef> You can override any operator in nim right? |
06:00:15 | krux02 | you can declare arbitrary oparator names |
06:00:31 | krux02 | something like +-+ is possible |
06:00:41 | krux02 | or ^-^ |
06:00:45 | FromDiscord | <Elegant Beef> oh, that's awesome |
06:01:10 | krux02 | just call your proc `+-+` and you are ready to go |
06:02:26 | krux02 | I go back to bed |
06:02:32 | * | krux02 quit (Remote host closed the connection) |
06:02:49 | FromDiscord | <Elegant Beef> buh bye |
06:03:25 | FromDiscord | <Elegant Beef> Is anyone using nim in a professional setting? Since it's relatively new im interested in seeing it's current applications professionally |
06:03:43 | FromDiscord | <Elegant Beef> Is anyone using nim in a professional setting? Since it's relatively newly released im interested in seeing it's current applications professionally |
06:04:29 | shashlick | Status is the default answer |
06:04:37 | * | marmotini_ joined #nim |
06:04:42 | FromDiscord | <Elegant Beef> huh? |
06:05:19 | shashlick | https://status.im/ |
06:07:37 | * | dadada_ quit (Ping timeout: 272 seconds) |
06:09:10 | * | dadada_ joined #nim |
06:10:52 | * | narimiran joined #nim |
06:22:32 | * | dadada_ quit (Ping timeout: 265 seconds) |
06:24:08 | * | dadada_ joined #nim |
06:37:31 | * | dadada_ quit (Ping timeout: 260 seconds) |
06:39:08 | * | dadada joined #nim |
06:39:31 | * | dadada is now known as Guest67897 |
06:53:23 | * | Guest67897 quit (Ping timeout: 260 seconds) |
06:54:03 | * | dadada_ joined #nim |
06:59:42 | * | Zectbumo joined #nim |
07:02:45 | * | Hideki_ joined #nim |
07:08:19 | * | dadada_ quit (Ping timeout: 260 seconds) |
07:09:08 | * | dadada_ joined #nim |
07:23:13 | * | dadada_ quit (Ping timeout: 268 seconds) |
07:24:15 | * | dadada_ joined #nim |
07:37:56 | * | dadada_ quit (Ping timeout: 265 seconds) |
07:39:05 | * | dadada joined #nim |
07:39:28 | * | dadada is now known as Guest57163 |
07:45:11 | * | Vladar joined #nim |
07:47:56 | * | solitudesf joined #nim |
07:52:55 | * | Guest57163 quit (Ping timeout: 265 seconds) |
07:54:11 | * | dadada joined #nim |
07:54:35 | * | dadada is now known as Guest14603 |
08:00:00 | * | gmpreussner quit (Quit: kthxbye) |
08:00:39 | * | marmotini_ quit (Read error: Connection reset by peer) |
08:01:14 | * | marmotini_ joined #nim |
08:04:31 | * | Hideki_ quit (Ping timeout: 265 seconds) |
08:04:56 | * | gmpreussner joined #nim |
08:06:03 | * | marmotini_ quit (Ping timeout: 272 seconds) |
08:07:14 | * | Guest14603 quit (Ping timeout: 240 seconds) |
08:09:11 | * | dadada_ joined #nim |
08:12:24 | * | ng0 joined #nim |
08:29:34 | * | jjido joined #nim |
08:41:23 | * | fanta1 quit (Quit: fanta1) |
08:46:41 | * | solitudesf quit (Remote host closed the connection) |
08:53:05 | * | solitudesf joined #nim |
08:54:02 | * | solitudesf quit (Remote host closed the connection) |
08:54:25 | * | solitudesf joined #nim |
09:01:16 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzzโฆ) |
09:10:15 | * | dadada_ quit (Read error: Connection reset by peer) |
09:10:33 | * | marmotini_ joined #nim |
09:10:39 | * | floppydh joined #nim |
09:14:06 | * | dadada joined #nim |
09:14:30 | * | dadada is now known as Guest99582 |
09:36:38 | * | NimBot joined #nim |
09:41:55 | * | fanta1 joined #nim |
09:43:34 | * | ftsf joined #nim |
09:43:34 | * | ftsf quit (Remote host closed the connection) |
09:44:35 | * | ftsf joined #nim |
09:53:24 | * | marmotini_ quit (Remote host closed the connection) |
09:53:50 | * | marmotini_ joined #nim |
09:58:37 | * | marmotini_ quit (Ping timeout: 268 seconds) |
10:01:11 | FromGitter | <Varriount> Araq: "naming is one of the hardest things in programming" |
10:02:04 | * | krux02 joined #nim |
10:04:47 | Araq | only if you care about quality. You can also simply use 'kill/man/cp' instead and turn it into a religious cult, it's been proven to work. |
10:05:47 | livcd | anyone managed to compile nimpcre on windows? |
10:06:11 | * | abm joined #nim |
10:09:43 | * | fanta1 quit (Quit: fanta1) |
10:11:07 | * | abm quit (Quit: Leaving) |
10:11:31 | * | abm joined #nim |
10:27:39 | * | marmotini_ joined #nim |
10:37:44 | * | lain joined #nim |
10:43:31 | * | couven92 joined #nim |
10:45:32 | * | awe00 joined #nim |
10:56:22 | FromDiscord | <clyybber> disruptek: Hey, I got to the point where it works |
10:57:24 | * | marmotini_ quit (Remote host closed the connection) |
10:57:32 | * | marmotini_ joined #nim |
10:57:48 | FromDiscord | <clyybber> @Elegant Beef There is also a company from mainland china using it |
10:58:11 | * | marmotini_ quit (Read error: Connection reset by peer) |
10:58:12 | FromDiscord | <clyybber> I think they make something like a raspberry pi |
10:58:19 | * | marmotini_ joined #nim |
10:58:59 | FromDiscord | <clyybber> @timotheecour In you PoEval PR use cmd? |
10:59:15 | FromDiscord | <clyybber> Depending on sh on windows is just stupid |
11:02:16 | * | jjido joined #nim |
11:23:18 | * | Guest99582 is now known as dadada |
11:23:39 | dadada | is nim's documentation available in the form of man pages? |
11:24:30 | * | Zectbumo quit (Read error: Connection reset by peer) |
11:32:23 | FromDiscord | <clyybber> I dont think so |
11:44:42 | * | a_b_m joined #nim |
11:48:27 | * | abm quit (Ping timeout: 240 seconds) |
11:56:25 | * | LER0ever joined #nim |
12:01:09 | * | Hideki_ joined #nim |
12:01:58 | livcd | https://ybin.me/p/80cc4728a773b61e#ud8jwjn25NxbkwECcFo0nNoPxP+f5M3vyJmQAcmpp9M= |
12:05:09 | FromDiscord | <clyybber> livcd: looks like space in path bug |
12:06:05 | * | Hideki_ quit (Ping timeout: 272 seconds) |
12:06:21 | livcd | dont know where the bin/sh is coming from...i am on windows |
12:06:58 | FromDiscord | <clyybber> Wth |
12:07:37 | FromDiscord | <clyybber> does make try to execute bin/sh ? |
12:07:42 | FromDiscord | <clyybber> or is it a nim bug |
12:08:21 | livcd | more like the Makefile for nimpcre and some env settings |
12:09:29 | * | luis_ joined #nim |
12:12:12 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzzโฆ) |
12:14:29 | * | jjido joined #nim |
12:20:58 | * | marmotini_ quit (Read error: Connection reset by peer) |
12:21:18 | * | marmotini_ joined #nim |
12:21:56 | * | luis_ quit (Quit: luis_) |
12:22:19 | * | luis_ joined #nim |
12:26:27 | * | luis_ quit (Client Quit) |
12:26:54 | * | luis_ joined #nim |
12:30:29 | * | rockcavera joined #nim |
12:30:30 | * | marmotini_ quit (Remote host closed the connection) |
12:30:58 | * | marmotini_ joined #nim |
12:32:10 | * | marmotini_ quit (Remote host closed the connection) |
12:32:17 | * | marmotini_ joined #nim |
12:32:57 | * | a_b_m is now known as abm |
12:33:05 | Zevv | Did something recently change regarding detection of unused declarations? |
12:33:24 | Zevv | I have a .XDeclaredButNotUsed. that used to work but now I still get warnings |
12:38:55 | * | nsf quit (Quit: WeeChat 2.7) |
12:44:47 | dadada | what was the reason for creating unsigned operators like +% and /% |
12:45:58 | dadada | and against using something like unsigned(a) + unsigned(b) or unsigned(a + b) or unsigned(a) / unsigned(b) |
12:48:10 | * | pbb quit (Remote host closed the connection) |
12:49:24 | * | pbb joined #nim |
12:52:26 | stefantalpalaru | Why is this invalid in a config.nims? `switch("warning[CaseTransition]", "off")` |
12:52:42 | FromDiscord | <Rika> For when you have `lenientops` imported I'm guessing (dadada) |
12:52:48 | * | marmotini_ quit (Read error: Connection reset by peer) |
12:52:59 | stefantalpalaru | config.nims(1, 2) Error: invalid command line option: '--warning[CaseTransition]' |
12:52:59 | * | marmotini_ joined #nim |
12:53:11 | * | marmotini_ quit (Remote host closed the connection) |
12:53:37 | * | marmotini_ joined #nim |
12:55:03 | * | silvernode quit (Ping timeout: 260 seconds) |
12:55:24 | * | marmotini_ quit (Remote host closed the connection) |
12:55:30 | * | marmotini_ joined #nim |
12:55:35 | * | silvernode joined #nim |
12:56:37 | FromGitter | <alehander92> hmm |
12:56:51 | * | marmotini_ quit (Remote host closed the connection) |
12:56:55 | FromGitter | <alehander92> does it make sense to make `$` func-s |
12:57:43 | FromGitter | <alehander92> hm, not func-s but functions with `{.raises: [].}` |
12:58:01 | FromGitter | <alehander92> because like now you would expect an error from each &"" and $ |
12:58:08 | FromGitter | <alehander92> which is just not really useful |
12:59:02 | FromGitter | <alehander92> and imho `$` should be written in a way that it doesnt raise (except i guess in "defect" cases like no memory left etc) |
12:59:19 | FromDiscord | <clyybber> dadada: Legacy |
12:59:20 | dadada | alehander92: I agree |
12:59:20 | Zevv | that makes sense |
13:00:17 | Zevv | but that should enforce *any* implementation of $ to adhere to that I guess, since now I cna still write one that does throw |
13:00:36 | FromGitter | <alehander92> yep, but on the other hand thats probably not a big deal, or is it |
13:00:48 | Zevv | '$' is nothing special from the languages perspective |
13:00:57 | FromGitter | <alehander92> like, if `raises` happens after overloads are resolved |
13:00:58 | * | marmotin_ joined #nim |
13:01:10 | lqdev[m] | how can a ref object change its address? is it even possible? |
13:01:12 | FromGitter | <alehander92> it would only fail the check for such custom overloaded `$`-s |
13:01:38 | Zevv | lqdev[m]: why do you ask? |
13:01:55 | FromGitter | <alehander92> so if that happens like i would i imagine, it should require mostly annotation to default `$`-s |
13:02:03 | FromGitter | <alehander92> without compiler hardcoding then |
13:02:07 | Zevv | alehandr92: right |
13:02:17 | FromDiscord | <clyybber> lqdev[m]: If you point it to another object |
13:02:32 | Zevv | clyybber: that's cheating :) |
13:02:44 | lqdev[m] | I'm figuring out a veeeery strange quirk with ref objects and sequences. for some reason, when I allocate an object in one proc, it's copied into a new object for some reason and does not preserve its old properties |
13:02:45 | FromDiscord | <clyybber> other than that there is no way tho |
13:03:06 | lqdev[m] | I might have to upload the code into a new repo |
13:03:11 | FromDiscord | <clyybber> lqdev[m]: Yeah |
13:03:17 | lqdev[m] | because it's hard to explain |
13:03:21 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzzโฆ) |
13:03:44 | Zevv | you know the drill. Minimize your problem to a small sharable example |
13:03:54 | Zevv | and while minmimizng, realize what you did wrong |
13:03:59 | Zevv | so you don't need to share after all |
13:04:10 | lqdev[m] | in this case, it's not so simple |
13:04:27 | Zevv | *there* is your problem :) |
13:05:05 | lqdev[m] | so I tried but this is how far I got https://play.nim-lang.org/#ix=2bD5 |
13:05:07 | livcd | arrrgh i cant compile nimpcre |
13:05:10 | lqdev[m] | and it does not reproduce the issue |
13:05:15 | * | marmotin_ quit (Ping timeout: 240 seconds) |
13:07:13 | * | marmotini_ joined #nim |
13:08:11 | lqdev[m] | all right, so I have these Views: https://github.com/liquid600pgm/nadio/blob/master/src/gui.nim#L47 and later in the file you can see I'm assigning some keybinds to them |
13:08:33 | * | hax-scramper quit (Read error: Connection reset by peer) |
13:08:37 | lqdev[m] | however, later in the code when I actually need to reference these keybinds, the address of a given View changes and it does not have the assigned keybinds https://github.com/liquid600pgm/nadio/blob/master/src/gui/view.nim#L36 |
13:08:51 | * | hax-scramper joined #nim |
13:08:57 | lqdev[m] | and I can't pinpoint to where the issue lies |
13:10:09 | * | marmotini_ quit (Read error: Connection reset by peer) |
13:10:28 | * | marmotini_ joined #nim |
13:10:30 | lqdev[m] | the address is fine in the main module, but it's changed in method onEvent |
13:11:08 | lqdev[m] | I know that the event handler does not run on a separate thread or anything |
13:11:22 | lqdev[m] | unless GLFW is playing tricks on me |
13:11:52 | stefantalpalaru | I found a workaround, after reading commits pointing to https://github.com/nim-lang/Nim/issues/8739: `switch("warning", "CaseTransition:off")` |
13:11:54 | disbot | โฅ [cmdline] [minor] `--hint.foo:on` as alias for `--hint[foo]:on`: avoids edge cases with `[` that needs to be escaped on cmd line + other places ; snippet at 12https://play.nim-lang.org/#ix=2bD6 |
13:15:49 | * | marmotin_ joined #nim |
13:15:55 | * | marmotini_ quit (Read error: Connection reset by peer) |
13:16:55 | * | luis_ quit (Quit: luis_) |
13:17:01 | dadada | https://nim-lang.org/docs/manual.html#types-array-and-sequence-types ... why is @[ needed for assigning to y, shouldn't the compiler be able to figure out that y was declared as a sequence and hence deal with the details implicitly? |
13:18:11 | lqdev[m] | dadada: no, because `[]` is an array, and `@` turns a thing into a sequence. that's how types work. |
13:19:48 | * | Hideki_ joined #nim |
13:21:59 | lqdev[m] | from my understanding, an operation like this https://github.com/liquid600pgm/rdgui/blob/master/src/rdgui/windows.nim#L38 should not deep copy the ref object, right? |
13:23:55 | dadada | lqdev[m]: I know what types are, but there's also implicit type conversion, it's a design decision |
13:24:27 | * | Hideki_ quit (Ping timeout: 260 seconds) |
13:25:12 | lqdev[m] | dadada: Nim prefers explicit type conversion where two types are incompatible with each other |
13:25:16 | lqdev[m] | array and seq are not the same |
13:26:37 | dadada | lqdev[m]: I know they're not the same ... Int16 and Int64 are also not the same |
13:26:55 | FromDiscord | <clyybber> dadada: Yeah, you could make yourself a converter |
13:27:17 | FromDiscord | <clyybber> And then there would be no need for `@` |
13:28:01 | dadada | clyybber: that's good |
13:29:39 | * | hax-scramper quit (Ping timeout: 240 seconds) |
13:30:50 | * | hax-scramper joined #nim |
13:31:56 | * | marmotin_ quit (Remote host closed the connection) |
13:32:20 | lqdev[m] | I'm such an idiot |
13:32:23 | * | marmotini_ joined #nim |
13:32:28 | lqdev[m] | I just found the problem |
13:32:50 | lqdev[m] | the events were getting received by the statusBar instead of the songView |
13:32:57 | FromDiscord | <clyybber> lol |
13:33:19 | lqdev[m] | and I didn't override onEvent for bars |
13:33:19 | lqdev[m] | because Bars inherit from Views |
13:34:00 | * | luis_ joined #nim |
13:36:22 | * | dddddd joined #nim |
13:37:03 | Zevv | and while minmimizng, realize what you did wrong |
13:37:03 | * | marmotini_ quit (Ping timeout: 265 seconds) |
13:37:04 | Zevv | so you don't need to share after all |
13:37:11 | Zevv | story of my life |
13:37:38 | Zevv | congrats though, on finding the culprit! :) |
13:40:04 | dadada | https://nim-lang.org/docs/manual.html#types-varargs |
13:40:52 | dadada | for s in items(a): # wouldn't for s in a: be nicer? |
13:41:57 | FromDiscord | <clyybber> Yeah |
13:41:59 | FromDiscord | <clyybber> And it is done |
13:42:02 | * | couven92 quit (Quit: Client Disconnecting) |
13:42:13 | FromDiscord | <clyybber> items is inserted automatically when you do `for s in a:` |
13:44:38 | dadada | great |
13:44:52 | livcd | shashlick: can anyone kind try to install nimpcre on windows ?: D |
13:45:46 | livcd | oops did not want to highlight him |
13:49:23 | * | marmotini_ joined #nim |
13:49:52 | livcd | works fine on linux :F as expected |
13:51:31 | * | luis__ joined #nim |
13:54:44 | livcd | ok so the /bin/sh problem was caused by Git in the path |
13:55:07 | * | luis_ quit (Ping timeout: 260 seconds) |
13:57:30 | * | Hideki_ joined #nim |
13:57:57 | * | abm quit (Quit: Leaving) |
13:58:16 | * | abm joined #nim |
13:59:47 | * | theelous3 joined #nim |
14:01:13 | * | luis__ quit (Quit: luis__) |
14:05:02 | FromDiscord | <clyybber> hmm, but is the issue stemming from nim? |
14:05:03 | shashlick | Hey livcd |
14:05:06 | FromDiscord | <clyybber> if so please report it |
14:05:09 | * | luis__ joined #nim |
14:05:09 | shashlick | Is it not working? |
14:06:13 | livcd | clybber: i dont think so (well dont know yet) |
14:06:22 | livcd | shashlick: i cant install nimpcre on Windows |
14:06:49 | livcd | sec |
14:07:10 | * | Hideki_ quit (Remote host closed the connection) |
14:08:48 | * | marmotini_ quit (Read error: Connection reset by peer) |
14:09:04 | * | marmotini_ joined #nim |
14:10:54 | livcd | https://paste.ubuntu.com/p/dqgy2WVxmY/ |
14:11:31 | livcd | i have the pcretest.exe in C:/Users/mscasny/nimcache/nimterop/nimpcre and also in the path |
14:13:52 | shashlick | Are you cross compiling? |
14:16:31 | livcd | nope |
14:16:34 | livcd | i am just on windows |
14:17:37 | * | marmotini_ quit (Remote host closed the connection) |
14:18:03 | * | marmotini_ joined #nim |
14:18:28 | shashlick | CI is working fine |
14:18:30 | shashlick | https://travis-ci.org/genotrance/nimpcre/builds/649004790 |
14:18:44 | shashlick | Do you have git in path? |
14:18:52 | shashlick | It should have a working bash |
14:19:03 | livcd | that was causing me some other issues |
14:19:06 | * | ftsf quit (Ping timeout: 265 seconds) |
14:19:33 | livcd | https://ybin.me/p/80cc4728a773b61e#ud8jwjn25NxbkwECcFo0nNoPxP+f5M3vyJmQAcmpp9M= |
14:19:41 | livcd | so i removed it |
14:20:20 | shashlick | Yes that's a cmake issue |
14:20:28 | shashlick | Cannot have spaces in the path |
14:20:35 | * | marmotini_ quit (Remote host closed the connection) |
14:20:42 | * | marmotini_ joined #nim |
14:20:51 | shashlick | Which is why I reinstall git in another location |
14:21:27 | shashlick | Just have bash in another location without spaces in the full path |
14:21:33 | livcd | ah ok roger that |
14:21:55 | * | luis__ quit (Quit: luis__) |
14:22:23 | * | luis__ joined #nim |
14:23:40 | shashlick | https://gist.github.com/genotrance/fb53504a4fba88bc5201d3783df5c522 |
14:23:52 | shashlick | See travis.sh |
14:24:09 | shashlick | I'll probably need to document this somewhere in nimpcre |
14:26:21 | disruptek | nah, keep it as an easter egg. |
14:26:27 | * | luis__ quit (Client Quit) |
14:26:42 | disruptek | it'll be fun to figure it out again every few months. |
14:26:53 | * | luis__ joined #nim |
14:31:18 | * | luis__ quit (Ping timeout: 246 seconds) |
14:35:06 | livcd | /usr/bin/bash: ./libtool: No such file or directory what the heck |
14:48:02 | FromGitter | <xflywind> Hi, Whether exists a *cryptographic* random generator in Nim Std like Python? โ โ ```$ python -c 'import os; print(os.urandom(16))' โ b'_5#y2L"F4Q8z\n\xec]/'``` [https://gitter.im/nim-lang/Nim?at=5e4561a2c900d747ab01be7c] |
14:48:35 | * | hax-scramper quit (Ping timeout: 265 seconds) |
14:48:55 | * | hax-scramper joined #nim |
14:54:55 | FromDiscord | <clyybber> xflywind: Sure https://nimble.directory/search?query=random and https://nimble.directory/search?query=crypto |
14:54:55 | * | qwertfisch quit (Read error: Connection reset by peer) |
14:55:33 | FromDiscord | <clyybber> Also checkout https://github.com/cheatfate/nimcrypto |
14:55:45 | FromDiscord | <clyybber> It is used at status for their ethereum client |
14:56:00 | * | zickzackv joined #nim |
14:56:35 | * | Kaivo quit (Quit: WeeChat 2.7) |
14:56:53 | FromGitter | <xflywind> @Clyybber Thanks.I will look at them later. |
14:56:54 | * | qwertfisch joined #nim |
14:56:55 | * | Kaivo joined #nim |
14:57:13 | FromDiscord | <clyybber> np |
14:58:21 | * | awe00 quit (Ping timeout: 272 seconds) |
14:59:27 | * | nsf joined #nim |
15:01:41 | FromDiscord | <Rika> @clyybber but technically they asked for something in the stdlib |
15:01:51 | FromDiscord | <clyybber> oh |
15:02:03 | FromDiscord | <clyybber> well, the answer is no then |
15:02:20 | * | zickzackv quit (Quit: Using Circe, the loveliest of all IRC clients) |
15:03:27 | * | zickzackv joined #nim |
15:05:42 | * | dadada quit (Ping timeout: 260 seconds) |
15:10:54 | shashlick | livcd: still doesn't work? |
15:12:10 | * | awe00 joined #nim |
15:15:51 | * | Vladar quit (Quit: Leaving) |
15:16:18 | disruptek | no is a lovely answer. |
15:26:28 | disruptek | today we make something ar4q doesn't want. |
15:31:26 | * | LER0ever quit (Quit: My MacBook has gone to sleep. ZZZzzzโฆ) |
15:32:13 | FromGitter | <Varriount> clubber: I used nimcrypto in my AWS signing code. It's nice |
15:33:17 | FromDiscord | <mratsim> clubber xD |
15:52:42 | * | zickzackv quit (Remote host closed the connection) |
15:53:46 | * | zickzackv joined #nim |
15:57:20 | disruptek | ~motd |
15:57:21 | disbot | motd: 11Who wants to try JSON parsing modes via set[JMode] for a couple years? -- disruptek |
15:57:52 | disruptek | ~motd is Opinions on the utility of a meowhash port? https://mollyrocket.com/meowhash |
15:57:52 | disbot | motd: 11Opinions on the utility of a meowhash port? https://mollyrocket.com/meowhash |
15:59:32 | FromDiscord | <clyybber> Varriount: Ah, cool |
15:59:55 | FromDiscord | <clyybber> I'll club you tho if you call me that again :p |
16:00:11 | FromDiscord | <clyybber> disruptek: I say do it! |
16:01:15 | * | silvernode quit (Ping timeout: 240 seconds) |
16:01:47 | * | silvernode joined #nim |
16:01:57 | disruptek | i started to decided it would be too platform-centric. now i'm not so sure. |
16:02:43 | disruptek | s/to /to, but / |
16:07:15 | * | luis__ joined #nim |
16:07:54 | disruptek | ie. i think it's only worth it if we can use it for tables. |
16:08:09 | disruptek | not sure it won't be a liability for js. |
16:10:58 | FromGitter | <Varriount> clyybber: I blame autocorrect and the fact that you have 2 y's in your nickname |
16:11:10 | * | marmotini_ quit (Remote host closed the connection) |
16:11:31 | * | awe00 quit (Ping timeout: 260 seconds) |
16:11:38 | * | marmotini_ joined #nim |
16:12:08 | * | marmotini_ quit (Remote host closed the connection) |
16:12:15 | * | marmotini_ joined #nim |
16:19:52 | * | marmotini_ quit (Remote host closed the connection) |
16:20:20 | * | marmotini_ joined #nim |
16:24:16 | * | dadada joined #nim |
16:24:24 | Zevv | Why do I still get a "declared but not used" warning here? https://play.nim-lang.org/#ix=2bDF |
16:24:38 | * | dadada is now known as Guest8273 |
16:24:50 | * | floppydh quit (Quit: WeeChat 2.7) |
16:24:51 | * | marmotini_ quit (Ping timeout: 240 seconds) |
16:29:46 | * | awe00 joined #nim |
16:36:44 | * | luis__ quit (Quit: luis__) |
16:37:10 | * | luis__ joined #nim |
16:41:23 | * | silvernode quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) |
16:42:42 | Araq | because you should use .used |
16:42:57 | * | luis__ quit (Quit: luis__) |
16:43:56 | Zevv | well, they are *not* used, technically |
16:44:05 | disruptek | a random finally: block parses okay among other statements input to a macro, but a random else: does not. |
16:44:10 | disruptek | is this a feature? |
16:44:17 | * | paxis quit (Ping timeout: 260 seconds) |
16:44:36 | Zevv | yeah |
16:45:09 | disruptek | else is part of if but finally is not part of try? |
16:45:35 | disruptek | finally, or except not. there is no try? |
16:46:28 | Zevv | I say it's a bug, it should not parse indeed |
16:47:00 | Zevv | grammar says nooo |
16:47:40 | * | luis__ joined #nim |
16:53:37 | * | luis__ quit (Ping timeout: 272 seconds) |
16:58:42 | FromDiscord | <clyybber> disruptek: HHHAHAHAHAHHAAA |
16:58:46 | FromDiscord | <clyybber> d2s finished |
16:58:48 | FromDiscord | <clyybber> all tests pass |
16:58:51 | FromDiscord | <clyybber> first try |
16:59:06 | FromDiscord | <clyybber> Varriount: Fair enough ๐ |
16:59:59 | * | marmotini_ joined #nim |
17:01:21 | disruptek | afaict, there's no way to add for/else or while/else without modifying the compiler. ๐ข |
17:01:35 | disruptek | i mean, to add them "properly." |
17:01:44 | * | marmotini_ quit (Remote host closed the connection) |
17:01:46 | disruptek | you win this time, araqlogic. |
17:01:50 | * | marmotini_ joined #nim |
17:02:13 | disruptek | clyybber: you spent too much time on that. |
17:02:23 | disruptek | merge krux's pr please. |
17:03:10 | FromDiscord | <clyybber> disruptek: eh, it was pretty easy |
17:03:24 | FromDiscord | <clyybber> after I fixed the two dumb precedence errors |
17:03:48 | FromDiscord | <clyybber> disruptek: Tell Araq, hes the merger. |
17:04:01 | disruptek | > I ... cannot ... /dies/ |
17:04:18 | FromDiscord | <clyybber> lol |
17:05:29 | disruptek | who cares about a const in a test? |
17:05:47 | FromDiscord | <clyybber> thats the blocker? |
17:06:01 | FromDiscord | <clyybber> I could fix it real quick |
17:06:06 | disruptek | i dunno. i suffered a parse error on line 1 of ar4q's comment. |
17:06:28 | FromDiscord | <clyybber> semantic error here |
17:06:53 | FromDiscord | <clyybber> Araq show us the *meaning* |
17:07:42 | FromDiscord | <clyybber> (he's a busy god) |
17:07:59 | FromGitter | <Varriount> I*could* merge it in |
17:08:26 | disruptek | no one was ever fired for fixing arithmetic errors. |
17:08:31 | FromGitter | <Varriount> But compiler code is usually under the this |
17:08:32 | disruptek | oh wait |
17:08:48 | FromGitter | <Varriount> under the aegis of Araq |
17:09:01 | disruptek | maybe araq died while reading the commit. |
17:09:43 | disruptek | "the grail is in the tower of ... aaahrhrhrgggguhrggg" |
17:13:48 | * | marmotini_ quit (Remote host closed the connection) |
17:14:16 | * | marmotini_ joined #nim |
17:19:35 | * | marmotini_ quit (Ping timeout: 272 seconds) |
17:22:56 | * | luis__ joined #nim |
17:28:40 | * | Trustable joined #nim |
17:38:13 | FromDiscord | <treeform> lqdev, are you still having issue with Cairo? Your error almost sounds like you have another cairo.nim somewhere on your path? |
17:38:22 | * | Kaivo quit (Quit: WeeChat 2.7) |
17:39:35 | FromDiscord | <treeform> Oh looks like you figured it out, some with with old version of cairo. Anyways if you have issues feel free to ping. |
17:39:41 | * | awe00 quit (Ping timeout: 265 seconds) |
17:44:34 | * | nsf quit (Quit: WeeChat 2.7) |
17:46:23 | shashlick | @treeform can you please review the updates in https://github.com/nim-lang/Nim/issues/9419 |
17:46:25 | disbot | โฅ httpclient -d:ssl and db_postgres incompatible and cause SIGSEGV! (MacOSX) ; snippet at 12https://play.nim-lang.org/#ix=2bwr |
17:50:51 | Araq | I died because there is yet another bug in int128 |
17:57:02 | * | marmotini_ joined #nim |
17:57:11 | Zevv | you type well for a dead man |
17:58:28 | Zevv | clyybber: where your ryu code at? |
18:06:23 | disruptek | what's the other bug? |
18:07:32 | disruptek | and is there a good reason not to merge this fix? |
18:09:52 | FromDiscord | <treeform> shashlick, yeah I saw the updates. I don't have much to add. |
18:10:46 | FromDiscord | <treeform> I added a thing `-d:sslVersion=x.x.x` I though I closed the issue as well... |
18:11:10 | FromDiscord | <treeform> openSSL just sucks |
18:11:32 | FromGitter | <Varriount> Araq: Bikeshedding over naming aside, I really like your proposal for the chaining/outplace macros |
18:12:17 | * | abm quit (Quit: Leaving) |
18:12:20 | FromGitter | <Varriount> As in, I can't remember when I was this interested in a new feature/addition |
18:25:03 | Araq | woa |
18:25:14 | livcd | shashlick: need to find the libtool |
18:26:19 | shashlick | do you have cmake |
18:26:29 | shashlick | if not you will end up having to install all autoconf tools on windows |
18:26:32 | shashlick | nimble install cmake |
18:28:58 | FromDiscord | <treeform> shashlick: I have added my thoughts: https://github.com/nim-lang/Nim/issues/9419#issuecomment-585902219 |
18:29:00 | disbot | โฅ httpclient -d:ssl and db_postgres incompatible and cause SIGSEGV! (MacOSX) ; snippet at 12https://play.nim-lang.org/#ix=2bwr |
18:30:52 | shashlick | thanks treeform |
18:41:05 | disruptek | is cpp --gc:arc expected to worth without regard to exceptions? |
18:44:27 | disruptek | s/worth/work/ |
18:44:41 | Zevv | I believe it is |
18:44:50 | Zevv | you have problems I assume? |
18:45:29 | disruptek | yeah, gittyup ci failing on cpp. |
18:45:49 | Zevv | Ar4q has been doing work on that lately |
18:46:12 | disruptek | i know; i saw a couple prs in the pipeline and it's a little confusing on what to expect. |
18:53:52 | * | Trustable quit (Remote host closed the connection) |
18:54:13 | * | paxis joined #nim |
19:02:57 | FromDiscord | <clyybber> Zevv: Its up |
19:03:09 | FromDiscord | <clyybber> https://github.com/Clyybber/nimryu |
19:03:32 | FromDiscord | <clyybber> I gotta commit the nim translation of the tests |
19:03:40 | Zevv | Yeah I thought you and disruptek were working in the same repo |
19:03:45 | Zevv | so i was looking at the wrong one |
19:04:06 | Zevv | I was just looking through your code |
19:04:32 | FromDiscord | <clyybber> I only translated stuff necessary for d2s and f2 |
19:04:33 | FromDiscord | <clyybber> s |
19:04:39 | FromDiscord | <clyybber> the other stuff is still C |
19:04:52 | FromDiscord | <clyybber> also, its very raw |
19:04:59 | FromDiscord | <clyybber> as in not nimified yet at all |
19:05:27 | FromDiscord | <clyybber> but at least it works :p |
19:05:47 | Zevv | It seems to be almost twice as fast as printf, is that right? |
19:05:56 | Zevv | on linux/glibc |
19:05:58 | FromDiscord | <clyybber> think so yeah |
19:06:04 | FromDiscord | <clyybber> almost 4 times I think |
19:06:10 | Zevv | sweet |
19:06:22 | FromDiscord | <clyybber> not sure how my port fares in that regard tho |
19:06:31 | FromDiscord | <clyybber> probably a bit slower, since I use a strip |
19:06:41 | FromDiscord | <clyybber> but without it it should be just as fast |
19:07:06 | livcd | shashlick: still having an issue with libtool |
19:07:39 | shashlick | Use cmake |
19:07:44 | shashlick | Did you see that message? |
19:10:07 | livcd | hmm nope |
19:12:16 | shashlick | nimble install cmake |
19:12:27 | livcd | ok let me try |
19:13:44 | disruptek | clyybber: if you want a fun ast bug just ask. |
19:14:29 | livcd | shashlick: the cmake did run but when i want to compile a program that imports nimpcre it is trying to run make |
19:15:21 | FromDiscord | <clyybber> disruptek: Yes please |
19:15:24 | FromDiscord | <clyybber> gimme |
19:19:29 | disruptek | are you sure? |
19:19:35 | disruptek | you might not like it once you get it. |
19:20:17 | Araq | disruptek: it doesn't work (nim cpp --gc:arc exceptions) |
19:20:37 | Araq | I might merge my improvements though and deal with the failing test later |
19:21:10 | shashlick | livcd: it will build pcre the first time |
19:21:42 | disruptek | Araq: be that as it may, i don't have any exceptions in my codebase and i still get a codegen failure in ci. |
19:22:15 | livcd | shashlick: i cant proceed |
19:22:29 | livcd | btw i get it...i've got the libtool but it's a sh script |
19:23:03 | livcd | the makefile calls it like this /usr/bin/bash: ./libtool: No such file or directory which is wrong |
19:23:17 | * | Guest8273 is now known as dadada |
19:24:40 | FromGitter | <Nickiel12> Hi, is there a way to read and write mp3 file metadata (album, artist, etc) I have been looking for 30 mins through the os module and google, and can't find anything |
19:25:02 | * | luis__ quit (Quit: luis__) |
19:25:03 | shashlick | Unless you install msys and the whole shebang, no idea on that |
19:25:09 | disruptek | clyybber: https://github.com/disruptek/criterion.nim/issues/1 |
19:25:10 | disbot | โฅ it does not bench fib5 from tfib example |
19:25:14 | shashlick | Plus I've not ever tested that |
19:25:28 | * | luis__ joined #nim |
19:25:30 | FromDiscord | <Elegant Beef> @clyybber you mispelled west taiwan ๐ |
19:25:41 | FromDiscord | <clyybber> lol |
19:25:41 | disruptek | a pragma with no arguments is completely missing from the macro input. give it an arg like `pragmaMacro: []` and it works. |
19:27:05 | livcd | shashlick: wait i am symlinking in nimpcre libtool |
19:27:24 | FromDiscord | <clyybber> disruptek: You mean it doesn't pop up in customPragmas? |
19:27:37 | FromDiscord | <clyybber> or do you mean it doesn't get called? |
19:27:48 | disruptek | the procdef ast is completely absent from the ast passed to the macro. |
19:28:06 | disruptek | elided. gone. vanished. mia. |
19:28:16 | disruptek | awol; you feel me? |
19:28:21 | FromGitter | <Nickiel12> shashlick, were you talking to me when you mentioned mysys? |
19:28:51 | disruptek | i think maybe it's replaced with Empty. ๐ |
19:29:33 | * | luis__ quit (Client Quit) |
19:29:48 | shashlick | Sorry Nickiel12, was talking to livcd |
19:29:57 | * | luis__ joined #nim |
19:29:58 | FromGitter | <Nickiel12> ok, it confused me |
19:30:25 | shashlick | livcd: why is it still using libtool if you have cmake |
19:30:42 | livcd | no idea..you detect that automatically? |
19:32:13 | livcd | I try with -f |
19:32:17 | shashlick | Yes, delete the nimpcre cache and try again ya |
19:32:55 | livcd | that seems to work ..at least for picking the cmake |
19:34:46 | disruptek | clyybber: fun, right? |
19:36:19 | livcd | excuse my colorful language |
19:36:25 | livcd | but f...ing finally |
19:37:08 | FromDiscord | <clyybber> disruptek: Umm |
19:37:10 | FromDiscord | <clyybber> lol? |
19:37:38 | FromDiscord | <clyybber> livcd: -f...ing -finally |
19:38:24 | FromDiscord | <clyybber> Zevv: Lol, I fucked up the license |
19:38:31 | FromDiscord | <clyybber> replaced the `//` with `#` |
19:38:33 | FromDiscord | <clyybber> haha |
19:38:48 | livcd | clybber: i was not able to make the nimpcre compile on windows :F |
19:39:03 | livcd | shashlick: thanks a lot! |
19:39:05 | FromDiscord | <clyybber> : ? |
19:39:14 | FromDiscord | <clyybber> livcd: That is sad |
19:39:19 | FromDiscord | <clyybber> But it ships with nim? |
19:39:30 | FromDiscord | <clyybber> I though |
19:39:31 | FromDiscord | <clyybber> t |
19:39:33 | livcd | no |
19:40:37 | shashlick | so it worked for you finally? |
19:40:45 | shashlick | I'm adding some text to the nimpcre site |
19:42:04 | livcd | yes it worked with cmake |
19:42:24 | livcd | and when i used -f it picked up cmake finally |
19:45:38 | FromDiscord | <clyybber> so it worked? |
19:45:47 | FromDiscord | <clyybber> I thought you werent able to compile it? |
19:46:06 | FromDiscord | <clyybber> or did you build it in a unix environment? |
19:50:30 | * | jjido joined #nim |
19:52:44 | livcd | I was not able to compile it first with just make |
19:52:53 | livcd | then it finally worked with cmake |
19:53:39 | * | zickzackv quit (Ping timeout: 260 seconds) |
19:54:50 | FromDiscord | <clyybber> ah |
19:54:59 | FromDiscord | <clyybber> Zevv: Tests are up now |
19:55:23 | Araq | scope based destruction is a beast :-( |
19:57:35 | Araq | at least I made your 'handleNested' much simpler |
19:58:52 | dadada | are there hooks to inject custom C code into the generated C? |
19:59:04 | disruptek | sure. |
19:59:04 | Yardanico | emit pragma? |
19:59:26 | Yardanico | also you can do some really strange magic with importcpp (that's for C++ though) |
19:59:41 | dadada | okay |
19:59:48 | Yardanico | https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-emit-pragma |
20:00:07 | dadada | well I just learned about https://github.com/google/tcmalloc |
20:00:18 | dadada | which is google's highly optimized malloc/new implementation |
20:00:26 | * | awe00 joined #nim |
20:00:47 | dadada | and then I wondered how you would integrate this with a Nim application, hence my question |
20:01:12 | dadada | I've no need for tcmalloc (yet) though :D |
20:01:15 | FromDiscord | <clyybber> Araq: Nice! |
20:01:21 | shashlick | livcd thanks for persisting, will update the site |
20:01:25 | FromDiscord | <clyybber> Araq: Do you have it on a public branch? |
20:01:45 | FromDiscord | <clyybber> dadada: Very easy |
20:01:53 | FromDiscord | <clyybber> compile with --os:any |
20:02:50 | FromDiscord | <clyybber> dadada: https://nim-lang.github.io/Nim/nimc#nim-for-embedded-systems |
20:03:01 | FromDiscord | <clyybber> dadada: Btw, you ought to make something in nim |
20:03:16 | FromDiscord | <clyybber> : ) |
20:03:28 | dadada | clyybber: I most definitely will |
20:03:41 | FromDiscord | <clyybber> nice! |
20:03:48 | dadada | I've multiple project ideas, but first I need to learn as much as possible |
20:03:56 | * | awe00 quit (Excess Flood) |
20:04:32 | dadada | also I'm waiting for C++ library integration to get a little more comfortable |
20:04:58 | dadada | I want to port a Qt application over to nim |
20:05:24 | Yardanico | well AFAIK Qt does some really weird stuff when compiling itself, etc, so pure Qt bindings would probably be quite hard to do |
20:05:40 | Yardanico | like they have their use a meta compiler and stuff like that |
20:05:42 | dadada | Yardanico: while you're right a number of languages have overcome this hurdle |
20:05:55 | dadada | Yardanico: |
20:06:00 | dadada | https://wiki.qt.io/Language_Bindings |
20:06:59 | livcd | shashlick: <3 thanks for making it |
20:07:00 | * | awe00 joined #nim |
20:07:01 | dadada | among them Rust, Go, Java, Python and D |
20:07:06 | Yardanico | well yeah, although if you look at rust link, that org also has a "ritual" repo in it, so they had to create a whole lib to wrap Qt :P |
20:07:33 | Yardanico | also is QML not enough for you? :( |
20:07:40 | dadada | most definitely NOT |
20:08:30 | dadada | |
20:08:39 | Yardanico | what are these empty messages? :D |
20:08:43 | livcd | I am right now looking on github for applications written in Go+QT |
20:09:06 | disruptek | wut |
20:09:32 | * | awe00 quit (Excess Flood) |
20:10:36 | livcd | https://raw.githubusercontent.com/rashwell/neochessqt/master/screenshots/EarlyProtoType.png |
20:11:50 | * | awe00 joined #nim |
20:12:03 | FromDiscord | <Rika> i thought you were showcasing a nim app |
20:12:06 | * | awe00 quit (Client Quit) |
20:12:26 | dadada | Yardanico: the regular non-QML Qt is what I'm used to using, and last time I checked in on QML there was all sorts of functionality missing that I needed, and I want to port a Qt application, not a QML application |
20:21:56 | livcd | Rika: sorry :X |
20:34:53 | shashlick | dadada: as much as I agree, qt will be a full time job |
20:45:34 | FromDiscord | <demotomohiro> Qt is large library and includes qstring or qvector. |
20:46:02 | FromDiscord | <demotomohiro> It looks like Qt is trying to replace standard C++ library. |
20:46:09 | dom96 | All GUIs suck in one way or another. Better focus on implementing something like Electron IMO |
20:46:44 | FromDiscord | <clyybber> dom96: hahaha what? |
20:47:29 | FromDiscord | <clyybber> electron sucks the most |
20:47:35 | Yardanico | yes i'd have to agree on electron |
20:47:39 | dom96 | Seriously. If you want a native GUI then just use the native toolkits |
20:47:47 | dom96 | Qt/Gtk both suck |
20:48:15 | dadada | demotomohiro: when Qt started the C++ standard library had a lot to be desired, they made programming in C++ a lot easier, recently sdtc++ got somewhat better, and you can use both the standard c++ types and the Qt types with their libraries |
20:48:34 | dadada | s/had a lot/had a lot left |
20:48:39 | Yardanico | what about nim types? :P |
20:48:57 | lqdev[m] | how does `slurp` work? does it create a .h file with an array containing a file's bytes, insert the file into an executable's .data section, or what? |
20:49:09 | FromDiscord | <clyybber> no |
20:49:19 | FromDiscord | <clyybber> it simply makes a constant |
20:49:31 | FromDiscord | <clyybber> it will be a literaly in the generated C code |
20:49:40 | FromDiscord | <clyybber> so basically yeah. But not in a seperate .h file |
20:49:55 | lqdev[m] | so it's not really viable for large files, right? |
20:50:26 | lqdev[m] | because gcc shits your memory when it deals with really big arrays |
20:50:41 | dadada | dom96: Qt didn't suck in my experience, many big companies using Qt disagree with you |
20:50:50 | FromDiscord | <clyybber> lqdev[m]: I think its fine |
20:50:58 | FromDiscord | <clyybber> I slurp images |
20:51:06 | FromDiscord | <clyybber> And shaders |
20:51:10 | FromDiscord | <clyybber> like binary |
20:51:10 | FromDiscord | <clyybber> SPIR-V |
20:51:46 | dadada | I wouldn't be against having something like electron for nim either, having options is good |
20:51:53 | lqdev[m] | yeah, but they don't weigh 500 MB ;P |
20:52:03 | Yardanico | there's https://github.com/jangko/nimCEF :P |
20:52:17 | Yardanico | also fidget wip |
20:52:18 | lqdev[m] | my friend recently tried to embed a 500 MB file using this method into an executable, and it literally filled his memory within seconds |
20:52:47 | * | narimiran quit (Quit: leaving) |
20:53:45 | shashlick | lqdev - you trying something like nimdeps? |
20:53:48 | shashlick | !repo nimdeps |
20:53:49 | disbot | https://github.com/genotrance/nimdeps -- 9nimdeps: 11Nim library to bundle dependency files into executable 15 14โญ 2๐ด |
20:55:38 | lqdev[m] | nimdeps isn't bad, but it still has to unpack these files somewhere and load them into memory. that effectively loads the dependencies twice, once for the actual executable, and then another time when they're unpacked into a temp dir |
20:56:32 | shashlick | agreed, only thing is nimdeps only extracts once, after that it doesn't have to every time |
20:56:43 | shashlick | but it's still not a sensible way to distribute files |
20:56:52 | FromDiscord | <clyybber> dadada: Theres https://github.com/treeform/fidget which is better than electron |
20:57:25 | FromDiscord | <clyybber> and is not a frickin embedded web browser |
20:57:43 | dom96 | dadada, sure, but the point is in relation to Nim |
20:57:50 | dom96 | Wrapping Qt for Nim would be a PITA |
20:58:08 | dom96 | you're much better spending that effort implementing a nice Electron-like library |
20:58:30 | lqdev[m] | I'm also working on https://github.com/liquid600pgm/rdgui, but it's nowhere near complete and it's better suited for games |
20:58:55 | lqdev[m] | i.e. it doesn't have auto-layout tools (yet) |
20:59:18 | lqdev[m] | I might need to implement them because I'm working on an app right now |
20:59:49 | FromDiscord | <clyybber> lqdev[m]: I wanted to build a daw with keyboard focussed interface too |
20:59:57 | FromDiscord | <clyybber> Nice that you do it tho |
21:00:17 | FromDiscord | <clyybber> because I've recently gone very attracted to touchscreens |
21:00:19 | * | krux02 is now known as krux02_ |
21:01:42 | dadada | dom96: we need a automagical way to port regular C++ libraries first, and then build on that for Qt later |
21:01:52 | krux02_ | alehander92: generally `$` should not raise |
21:01:53 | dadada | s/port/bind to |
21:02:02 | krux02_ | sorry out of context post again |
21:02:22 | lqdev[m] | @clyybber not sure how I'm going to implement the node-based instruments I'm going for, but yeah I'll figure it out somehow |
21:02:33 | krux02_ | sometimes when I enter the chat I am totally in a weird position and post somthing that was relevant half a day ago |
21:02:39 | * | superbia joined #nim |
21:02:57 | * | krux02 joined #nim |
21:03:34 | Yardanico | well yeah, that's a bad thing about real-time chats :P |
21:04:25 | FromDiscord | <Elegant Beef> think it's the bad thing about 3 different chat clients communicating together, no universal way to say "look here for context" |
21:05:10 | dom96 | krux02: sounds like your IRC client is bad at presenting info :) |
21:06:17 | superbia | I'm trying to make a "typeracer" game, and I'm wondering how does one generally detect what are the heights and widths of each letter in font, because I'd like to dynamically highlight every character you pressed correctly (and wrongly) |
21:06:58 | Yardanico | maybe https://github.com/treeform/typography can help? |
21:08:07 | superbia | Yardanico: https://raw.githubusercontent.com/treeform/typography/master/tests/layoutNoText.png exactly this am I looking to explain ! |
21:09:00 | Yardanico | well you can check the docs - https://treeform.github.io/typography/index.html every Glyph has quite a few parameters |
21:09:09 | Yardanico | although you'd have to use a .svg font (or convert an existing font to .svg) |
21:09:46 | lqdev[m] | typography supports ttf tho |
21:09:48 | Yardanico | oh |
21:09:53 | lqdev[m] | superbia: you'd probably want getGlyphSize here |
21:10:10 | dom96 | Check out https://github.com/treeform/typography/pull/9. Some discussion about this exact thing :) |
21:10:11 | disbot | โฅ Implements ability to specify a color for getGlyphImage. |
21:10:14 | superbia | Now I know the terminology |
21:10:26 | superbia | so I got my anwsers, I can google out the details ! |
21:10:30 | superbia | thanks y'all !!!!! |
21:11:21 | lqdev[m] | if you're using a library that supports tinting textures with a color, it should be relatively easy to implement even without knowing the glyph's bounds |
21:11:50 | lqdev[m] | eg. in rapid you'd just set `ctx.color = rgb(255, 255, 0)` before drawing a rectangle but I don't know what you're using |
21:13:14 | lqdev[m] | man, it would be so cool to let the user alter text rendering character by character in rapid. |
21:13:24 | lqdev[m] | guess I know what I'm gonna implement next. |
21:15:34 | superbia | well.. i guess i didn't really know how fonts work |
21:17:53 | disruptek | if i want to render some text on a surface in wayland... what's an easy way to do that? something an idiot with one hand could code? |
21:18:09 | disruptek | no, think a 7 year old with one hand. |
21:18:22 | lqdev[m] | superbia: every font family specifies a set of fonts. every font specifies a set of glyphs. a single glyph is a character like `a`, `.`, or `ฯ` |
21:19:01 | superbia | yup, I wanted to get it's bounding box |
21:19:03 | lqdev[m] | disruptek: open a transparent window and render the text there? don't really know what do you wanna do |
21:19:11 | disruptek | yeah, that works. |
21:19:40 | disruptek | what do i use? |
21:21:40 | FromDiscord | <clyybber> lqdev[m]: You mean something like modular synthesis? |
21:21:59 | lqdev[m] | disruptek: ik shameless self plug, but rapid supports windows with alpha |
21:22:08 | FromDiscord | <clyybber> lqdev[m]: Do you know VCVRack? |
21:22:14 | * | ptdel joined #nim |
21:22:22 | disruptek | okay, i'll try it; thanks. |
21:22:28 | lqdev[m] | @clyybber: kind of, basically a hybrid between Reason's rack and Blender/DaVinci Resolve's node editor |
21:22:53 | lqdev[m] | (referring to my idea here, I don't know VCVRack) |
21:23:01 | FromDiscord | <clyybber> lqdev[m]: Ha, I started implementing something like that too |
21:23:15 | * | superbia left #nim ("WeeChat 2.4") |
21:23:33 | FromDiscord | <clyybber> lqdev[m]: Something like this: https://warmplace.ru/soft/sunvox/#vid |
21:24:16 | lqdev[m] | yeah, something akin to that |
21:24:18 | dom96 | Love it when libraries `quit` my app https://github.com/CORDEA/oauth/pull/18 |
21:24:19 | disbot | โฅ Fixes this package quitting my program when SSL not available. |
21:26:17 | FromDiscord | <clyybber> lqdev[m]: You gotta try VCVRack. Its really amazing |
21:26:38 | disruptek | yeah, it's pretty cool. |
21:26:41 | lqdev[m] | @clyybber I'm looking at VCVRack right now, looks really interesting. I wonder how do they generate these simulated analog waveforms |
21:26:42 | FromDiscord | <clyybber> Reason for making my own is that I would love to press a key or something and then look "into the module" |
21:26:54 | FromDiscord | <clyybber> like circuit bending |
21:27:24 | kungtotte | dom96: I think you're being overly picky here. I think it's a cool feature, libraries should also be liberally sprinkled with echo statements with terminal escape sequences in them, because why not? |
21:27:37 | FromDiscord | <clyybber> lqdev[m]: Whats also kinda cool about VCVRack is that many of these modules get made as hardware when they are successfull |
21:27:45 | lqdev[m] | dang it, it needs JACK :( |
21:27:50 | FromDiscord | <clyybber> Nope |
21:27:53 | FromDiscord | <clyybber> It doesn't |
21:27:55 | lqdev[m] | I only have PulseAudio |
21:28:05 | FromDiscord | <clyybber> It works with pulseaudio |
21:28:06 | FromDiscord | <clyybber> or alsa |
21:28:09 | FromDiscord | <clyybber> or anything |
21:28:19 | FromDiscord | <clyybber> I think it uses RTaudio behind the scenes or something like that |
21:28:29 | lqdev[m] | how does it not, it gives me a "jack server is not running" error |
21:28:38 | FromDiscord | <clyybber> lqdev[m]: Huh |
21:28:51 | dom96 | kungtotte, makes me wonder whether I can trust this dependency at all :( |
21:28:59 | FromDiscord | <clyybber> lqdev[m]: Thats not an error tho |
21:29:02 | FromDiscord | <clyybber> it just tells you that |
21:29:05 | FromDiscord | <clyybber> but it should run fine |
21:29:10 | FromDiscord | <clyybber> does it not? |
21:29:31 | lqdev[m] | aw god the stuttering |
21:29:39 | lqdev[m] | just found the alsa thing on the rack |
21:29:49 | FromDiscord | <clyybber> lqdev[m]: argh |
21:29:52 | FromDiscord | <clyybber> I had that stuttering too |
21:29:56 | FromDiscord | <clyybber> after switching to void |
21:29:59 | FromDiscord | <Elegant Beef> Do like all the linux users in the nim chat ๐ |
21:30:00 | FromDiscord | <clyybber> somehow not on arch |
21:30:02 | * | luis__ quit (Quit: luis__) |
21:30:04 | FromDiscord | <clyybber> and I fixed it somehow |
21:30:28 | FromDiscord | <clyybber> lqdev[m]: Try setting your sample rate |
21:30:31 | FromDiscord | <clyybber> in Engine |
21:30:47 | FromDiscord | <clyybber> Or maybe the framerate is set really low |
21:30:49 | FromDiscord | <clyybber> in View |
21:32:24 | lqdev[m] | @clyybber no, my sample rate is 48kHz and the buffer size seems to affect the stuttering frequency |
21:32:28 | FromDiscord | <clyybber> lqdev[m]: I discovered it through this dude: https://www.youtube.com/channel/UCuWKHSHTHMV_nVSeNH4gYAg/videos |
21:32:33 | FromDiscord | <clyybber> lqdev[m]: Ah yeah |
21:32:52 | FromDiscord | <clyybber> Make it bigger |
21:32:52 | FromGitter | <timotheecour> hi @Clyybber Iโm here (i PMโd you) |
21:32:57 | FromDiscord | <clyybber> is probably what you want |
21:33:04 | FromDiscord | <clyybber> timotheecour: Hi! |
21:33:16 | FromDiscord | <clyybber> I didn't check gitter so I didn't read your PM |
21:33:17 | dom96 | https://i.imgur.com/Zg9QmeN.png |
21:33:30 | dom96 | It lives, sorta :) |
21:35:12 | lqdev[m] | @clyybber it only makes the stuttering less frequent |
21:35:28 | lqdev[m] | it constantly reports underruns in the terminal |
21:35:35 | FromDiscord | <clyybber> lqdev[m]: Weird. |
21:35:47 | FromDiscord | <clyybber> What audio driver do you have selected? |
21:35:49 | dom96 | 5.1MB WASM file :D |
21:35:59 | lqdev[m] | ALSA |
21:36:04 | FromDiscord | <clyybber> Hmm |
21:36:50 | dom96 | lqdev[m], clyybber: is this discussion more appropriate for #nim-offtopic? :) |
21:37:28 | FromDiscord | <clyybber> the offtopic bridge died one-side only : ( |
21:37:49 | * | nisstyre quit (Remote host closed the connection) |
21:38:20 | lqdev[m] | @Yardanico you're the discordโirc bridge maintainer, right? could you look into this? |
21:38:43 | * | nisstyre joined #nim |
21:39:56 | FromGitter | <Clyybber> I think he did, but it was tricky |
21:42:17 | FromDiscord | <Elegant Beef> Quick insult everyone! |
21:42:30 | FromDiscord | <clyybber> ? |
21:42:45 | FromDiscord | <Elegant Beef> `the offtopic bridge died one-side only : (` |
21:42:48 | FromDiscord | <clyybber> lqdev[m]: Not sure if you are on offtopic but when you press F3 it shows the CPU usage per module |
21:42:58 | FromDiscord | <clyybber> @Elegant Beef fuck everyone |
21:43:01 | FromDiscord | <clyybber> there you go |
21:43:04 | FromDiscord | <clyybber> :p |
21:43:30 | lqdev[m] | @clyybber the CPU usage is p low except on the output module |
21:43:33 | FromDiscord | <Elegant Beef> I'd like to report an admin |
21:44:05 | FromDiscord | <clyybber> @Elegant Beef Please file a report and send it to an admin. |
21:44:33 | FromDiscord | <Elegant Beef> @clyybber, @clyybber said and i quote "Fuck everyone" |
21:44:43 | FromDiscord | <clyybber> What a dumbass.. |
21:44:49 | FromDiscord | <clyybber> I think this deserves a ban |
21:45:22 | FromDiscord | <[banned]> this is so sad |
21:45:48 | FromDiscord | <exelotl> /ban clyybber |
21:45:57 | FromDiscord | <[banned]> ๐ฆ |
21:46:03 | FromDiscord | <exelotl> wow it worked |
21:47:24 | FromGitter | <iffy> How soon after calling AsyncSocket.close() is the socket closed? I'm running into "Address already in use" errors when trying to listen on a port I just closed. I'm using `socket.setSockOpt(OptReuseAddr, true)` |
21:49:15 | dom96 | iffy: that's up to the OS, but if you've set OptReuseAddr then it should be immediate IIRC |
21:49:29 | dom96 | maybe you have a socket that didn't have that set still alive |
21:49:31 | FromGitter | <iffy> that's what I would have guessed |
21:49:49 | FromGitter | <iffy> I only make sockets with OptReuseAddr (in this code) |
21:50:30 | FromGitter | <iffy> I'll do more testing to see if I can repro in a simpler setup -- thank you for validating my assumptions |
21:50:32 | FromDiscord | <clyybber> lqdev[m]: Try if it still happens when nothing else is running |
21:51:04 | FromDiscord | <clyybber> unfortunately I really can't remember how I fixed it ๐ฆ |
22:00:21 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzzโฆ) |
22:00:33 | FromGitter | <Varriount> Hm, anyone know how expensive calling a (non-closure) function via global is, compared to a regular function call? |
22:01:26 | disruptek | via global? |
22:01:26 | lqdev[m] | @clyybber I set the buffer size to 64, and then something clicked into place and it magically started working |
22:01:47 | lqdev[m] | quite cool to play around with, but not quite the thing I want |
22:02:10 | lqdev[m] | maybe it's because I'm not into audio, or something |
22:03:25 | FromGitter | <Varriount> disruptek: Yeah |
22:03:34 | disruptek | what does that mean? |
22:03:55 | FromGitter | <Varriount> A global variable? |
22:04:24 | disruptek | oh, you mean passing a global to a function? |
22:04:41 | lqdev[m] | disruptek: calling a function stored in a variable |
22:04:55 | FromDiscord | <clyybber> lqdev[m]: You want more modular right? |
22:05:01 | FromDiscord | <clyybber> At least thats what I want |
22:05:02 | disruptek | deref'ing a pointer is not an expensing operation. |
22:05:06 | disruptek | expensive, either. |
22:05:06 | FromGitter | <Varriount> No, |
22:05:08 | FromGitter | <Varriount> https://play.nim-lang.org/#ix=2bF2 |
22:05:27 | disruptek | why would that be slow? |
22:05:28 | lqdev[m] | @clyybber: you'll see what I want once I get nadio to a usable state :) |
22:05:44 | FromDiscord | <clyybber> lqdev[m]: I'll check it out then : ) |
22:05:56 | FromDiscord | <clyybber> Maybe by the time I also got something half working .. |
22:06:01 | FromDiscord | <clyybber> unlikely |
22:06:42 | disruptek | !repo disruptek/criterion |
22:06:43 | disbot | no results ๐ข |
22:06:49 | disruptek | ๐ |
22:07:15 | FromDiscord | <clyybber> heh |
22:07:22 | FromDiscord | <clyybber> because its a fork prolly |
22:07:31 | disruptek | of course. |
22:08:21 | disruptek | ah, that reminds me. i need to switch to tr33form's jwt. |
22:08:27 | disruptek | sorry, yuri. |
22:10:33 | dadada | too bad the partiql code under the apache license |
22:10:53 | dom96 | disruptek: how come? |
22:11:02 | FromDiscord | <clyybber> disruptek: What you do, kills us both |
22:11:09 | disruptek | nope. |
22:11:23 | dadada | I've considered porting the kotlin code to nim, but then it won't be possible to fit with the liberally licensed MIT code of the nim world |
22:11:28 | disruptek | because yuri's now pulling in bearssl and i don't really want that weight in gcplat. |
22:11:36 | * | luis__ joined #nim |
22:12:05 | disruptek | the source alone is 73mb and the repo is 185mb. |
22:12:17 | disruptek | bearssl is like 200mb, i'm told. |
22:12:24 | deepend | is there a way to use the math exponent operator ^ with a negative integer exponent? |
22:12:38 | disruptek | great question. |
22:12:48 | deepend | it works fine if i cast ints to float and use math.pow |
22:12:51 | deepend | just tedious |
22:12:56 | disruptek | we need ^- ๐ |
22:13:07 | disruptek | you should pr it. |
22:13:28 | deepend | ok let me take a look at the math source |
22:13:54 | lqdev[m] | damn, ever since I tried doing something in Rust I find myself using Options more |
22:13:56 | disruptek | awesome, let us know if any questions. |
22:14:14 | disruptek | options are great and results are better. i'm about to rename my results lib. |
22:14:25 | * | jjido joined #nim |
22:14:26 | * | paxis quit (Remote host closed the connection) |
22:14:34 | dom96 | disruptek, true, it does build a lot of .c files from bearssl |
22:14:43 | disruptek | badaskes is the same as the status results but it relaxes some requirements. |
22:15:11 | FromDiscord | <clyybber> disruptek: What do you define as the difference between results and options? |
22:15:17 | FromDiscord | <clyybber> that results store an error code? |
22:15:43 | disruptek | results is two values and options is one. |
22:16:04 | FromDiscord | <clyybber> where one value is the error? |
22:16:13 | FromDiscord | <clyybber> or "result" code |
22:16:15 | disruptek | two types, i should say. |
22:16:34 | disruptek | you get one type on success, another on failure. |
22:16:35 | FromDiscord | <clyybber> techincally |
22:16:40 | FromDiscord | <clyybber> ahhh |
22:16:50 | lqdev[m] | too bad Nim's stdlib doesn't have results |
22:16:52 | FromDiscord | <clyybber> you mean like at runtime? |
22:16:54 | disruptek | but it's a union, of course. so, only one at a time. |
22:17:12 | FromDiscord | <clyybber> so how do you know what it is? |
22:17:15 | FromDiscord | <clyybber> case object? |
22:17:26 | disruptek | i guess you could technically cheat if you wanted to be crazy. |
22:17:36 | disruptek | that's the kinda shit that i love you can do in nim. |
22:17:47 | disruptek | yes, case object. |
22:18:31 | FromDiscord | <clyybber> nice |
22:18:47 | disruptek | see gittyup for how i use them. |
22:19:09 | * | solitudesf quit (Ping timeout: 272 seconds) |
22:19:49 | deepend | howcome Natural isn't covered in the language manual? |
22:20:28 | lqdev[m] | deepend: because Natural is an stdlib type |
22:20:46 | lqdev[m] | we shouldn't pollute the language manual with things from the standard library |
22:20:55 | * | marmotini_ quit (Remote host closed the connection) |
22:20:59 | deepend | hmmmm |
22:21:12 | lqdev[m] | and range types are covered here: https://nim-lang.org/docs/manual.html#types-subrange-types |
22:21:27 | * | marmotini_ joined #nim |
22:22:35 | deepend | so you don't consider system to be part of the language? |
22:22:51 | disruptek | ~motd is Join a non-Nim project with the goal of exposing that community to Nim. Do it now! |
22:22:52 | disbot | motd: 11Join a non-Nim project with the goal of exposing that community to Nim. Do it now! |
22:26:15 | * | marmotini_ quit (Ping timeout: 260 seconds) |
22:27:58 | * | Jesin quit (Quit: Leaving) |
22:28:07 | * | crem quit (Ping timeout: 240 seconds) |
22:30:23 | * | crem joined #nim |
22:31:04 | lqdev[m] | deepend: maybe I phrased that wrong, I meant core language |
22:31:16 | lqdev[m] | ie. syntax, semantics |
22:31:43 | * | Jesin joined #nim |
22:32:13 | deepend | it's just a bit confusing |
22:32:26 | disruptek | you know what i'm realizing? |
22:32:28 | deepend | and makes grepping for answers more difficult as a noob |
22:32:52 | disruptek | we need to birth these projects and cut the fucking cord. |
22:33:11 | disruptek | you get the thing to 1.0, or whatever that is, and you just walk away. |
22:33:24 | disruptek | if others pick it up, it lives. else, it's only weighing you down. |
22:33:43 | disruptek | no point in supporting tons of software that only one person uses. |
22:34:53 | disruptek | i really think that would improve the rate of innovation. |
22:35:14 | disruptek | what we want is rapid prototyping and shedding of bad patterns. |
22:35:57 | disruptek | we should be iterating like crazy on this stuff. |
22:40:18 | FromDiscord | <Elegant Beef> @clyybber got any vulkan tutorials? ๐ |
22:40:38 | FromDiscord | <clyybber> @Elegant Beef made by me? |
22:40:39 | FromDiscord | <clyybber> nah |
22:40:45 | FromDiscord | <Elegant Beef> nah i just mean in general |
22:40:58 | FromDiscord | <clyybber> SashaWillems |
22:41:00 | FromDiscord | <Elegant Beef> im looking at one right now that is 100% written english with 0 code |
22:41:10 | FromDiscord | <clyybber> lol |
22:41:10 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzzโฆ) |
22:41:26 | FromDiscord | <clyybber> theres also vulkan-tutorial.com |
22:41:31 | FromDiscord | <clyybber> I think its called that |
22:41:36 | FromDiscord | <Elegant Beef> That's the one i was talking about |
22:41:41 | FromDiscord | <clyybber> ah, it has code |
22:41:50 | FromDiscord | <clyybber> its at the bottom |
22:42:25 | FromDiscord | <clyybber> what is kinda hard to grok with vulkan is how the components really related |
22:42:29 | FromDiscord | <clyybber> *relate |
22:42:42 | FromDiscord | <clyybber> so I suggest googling vulkan API diagram |
22:42:44 | FromDiscord | <clyybber> or something like that |
22:42:46 | FromDiscord | <Elegant Beef> oh it's on another page ๐ |
22:42:58 | FromDiscord | <clyybber> and hanging it on your wall while looking at tutorials |
22:43:41 | FromDiscord | <Elegant Beef> Well i mean i know a majority of the shader stuff already |
22:43:55 | FromDiscord | <Elegant Beef> Well probably all of the principle of shaders |
22:46:39 | * | krux02 quit (Remote host closed the connection) |
22:47:22 | * | krux02_ quit (Remote host closed the connection) |
22:47:33 | FromDiscord | <Elegant Beef> The big issue is nim to C++ calls i think |
22:47:37 | FromDiscord | <clyybber> yeah, I'm not really talking about shaders |
22:47:40 | FromDiscord | <Elegant Beef> i know |
22:47:43 | FromDiscord | <clyybber> @Elegant Beef Not at all |
22:47:47 | FromDiscord | <clyybber> vulkan has a C api |
22:47:51 | FromDiscord | <clyybber> and I made a wrapper |
22:47:58 | FromDiscord | <Elegant Beef> same shit for me ๐ |
22:48:02 | FromDiscord | <clyybber> https://github.com/Clyybber/vulkanim |
22:48:10 | FromDiscord | <clyybber> no need to touch C |
22:48:27 | FromDiscord | <Elegant Beef> i meant the names dont align always |
22:48:31 | FromDiscord | <Elegant Beef> Or types dont make sense |
22:48:38 | FromDiscord | <Elegant Beef> Atleast when i was using opengl |
22:48:38 | FromDiscord | <clyybber> Yeah, its just delete underscore |
22:49:00 | FromDiscord | <Elegant Beef> OGL has some weird shit |
22:49:07 | FromDiscord | <Elegant Beef> like colour3B using signed bytes |
22:49:10 | FromDiscord | <Elegant Beef> like tf ๐ |
22:49:13 | FromDiscord | <clyybber> yeah |
22:49:33 | FromDiscord | <clyybber> good thing it dies |
22:49:47 | FromDiscord | <Elegant Beef> indeed |
22:49:49 | disruptek | yay, krux02 fixed me. |
22:50:00 | FromDiscord | <Elegant Beef> Oh no distuptek jrs.? |
22:50:01 | FromDiscord | <Elegant Beef> Nice |
22:50:05 | FromDiscord | <Elegant Beef> ๐ |
22:50:24 | FromDiscord | <Elegant Beef> @clyybber how dare you not make that a nimble package |
22:50:27 | FromDiscord | <Elegant Beef> 0/10 |
22:50:34 | FromDiscord | <clyybber> ah |
22:50:39 | disruptek | hah, i still beat you. |
22:50:42 | FromDiscord | <clyybber> prolly cauze I don't use nimble heh |
22:50:53 | FromDiscord | <clyybber> disruptek: Nope |
22:50:57 | FromDiscord | <Elegant Beef> what you just wget everything? |
22:51:05 | FromDiscord | <clyybber> git submodules |
22:51:09 | FromDiscord | <clyybber> the past is the future |
22:51:09 | FromDiscord | <Elegant Beef> ah |
22:51:20 | disruptek | everything old will be new again. |
22:51:21 | FromDiscord | <Elegant Beef> idk man packages are cleaner |
22:51:39 | FromDiscord | <clyybber> I think exactly the other way around |
22:51:40 | FromDiscord | <clyybber> lol |
22:51:40 | disruptek | elegant: you use nimph? |
22:51:49 | FromDiscord | <clyybber> but yeah I should probably publish it on nimble |
22:51:52 | FromDiscord | <Elegant Beef> Nope i dont |
22:51:59 | FromDiscord | <Elegant Beef> i dont even know what nimph is |
22:52:08 | FromDiscord | <clyybber> disrupteks pkg manager for nim |
22:52:19 | disruptek | hmm, it's like the radio ads aren't working. |
22:52:27 | disruptek | might need to go back to paper mailers. |
22:52:33 | FromDiscord | <Elegant Beef> what's a radio? |
22:52:33 | FromDiscord | <clyybber> disbot enable ad broadcast |
22:52:39 | FromDiscord | <clyybber> what are frogs? |
22:52:40 | FromDiscord | <Elegant Beef> Is that something you old people used? |
22:52:49 | FromDiscord | <clyybber> HEY! |
22:52:58 | FromDiscord | <clyybber> no no no you cannot joke about that |
22:52:59 | disruptek | it was popularized by the phonograph. |
22:53:29 | FromDiscord | <clyybber> its still amazing what you discover with RTLSDR |
22:54:37 | FromDiscord | <Elegant Beef> Yea im too small brain to setup vulkan |
22:54:52 | FromDiscord | <Elegant Beef> Reading is tedious |
22:55:02 | FromDiscord | <Elegant Beef> I prefer ramming my head against the wall until something sticks |
22:55:12 | disruptek | to the wall? |
22:55:32 | FromDiscord | <Elegant Beef> Or to my now mishapened head |
22:56:19 | FromDiscord | <clyybber> bgfx calls for you I guess |
22:56:36 | FromDiscord | <Elegant Beef> Probably |
22:56:41 | FromDiscord | <clyybber> or rapid |
22:56:56 | FromDiscord | <clyybber> which is a game engine |
22:56:58 | FromDiscord | <clyybber> by lqdev |
22:58:15 | FromDiscord | <Elegant Beef> Eh rapid only has ogl |
22:58:34 | lqdev[m] | I don't plan on supporting anything else |
22:58:40 | lqdev[m] | for the time being |
22:58:43 | FromDiscord | <Elegant Beef> Lies i see webgl! |
22:58:51 | lqdev[m] | ah, webgl |
22:59:22 | lqdev[m] | that might come at some point. I'd need to create a robust high-level OpenGL wrapper first, though |
22:59:54 | FromDiscord | <Elegant Beef> The big issue with me not using vk or ogl directory is im not going to learn graphics programming, but im very uninterested in reading these walls of text, so im not going to learn graphics programming ๐ |
23:00:26 | FromDiscord | <Elegant Beef> directly* |
23:01:41 | disruptek | what? |
23:02:35 | FromDiscord | <Elegant Beef> That's about as nonsensical as it was written |
23:02:57 | disruptek | in that case, it's clear as mud. |
23:03:25 | FromDiscord | <exelotl> I've been using three.js at work and it's nice, would be cool if Nim had something like that |
23:04:01 | FromDiscord | <Elegant Beef> couldnt you use nim to talk to the threejs library?> |
23:04:02 | FromDiscord | <Elegant Beef> couldnt you use nim to talk to the threejs library? |
23:04:49 | FromDiscord | <exelotl> oh yeah but you'd have to write a full set of bindings and keep them up to date |
23:05:07 | FromDiscord | <Elegant Beef> Easier then making a threejs duplicate ๐ |
23:05:32 | FromDiscord | <exelotl> maybe there could be something like c2nim but for typescript definitions |
23:05:43 | FromDiscord | <exelotl> that would make JS bindings a breeze |
23:06:35 | * | sammich quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) |
23:07:12 | FromDiscord | <exelotl> but also I was thinking something for the desktop primarily |
23:08:09 | * | sammich joined #nim |
23:20:37 | * | ng0 quit (Quit: leaving) |
23:25:07 | FromDiscord | <clyybber> disruptek: Did you port generic_128? |
23:25:29 | disruptek | no, and i'm not sure i even finished it, honestly. |
23:25:48 | disruptek | dealing with a nigel thing. |
23:26:32 | * | NimBot joined #nim |
23:33:42 | FromDiscord | <clyybber> disruptek: agressive approval lol |
23:34:25 | FromDiscord | <clyybber> lemme join you just for funzies |
23:34:50 | disruptek | wut |
23:35:00 | FromDiscord | <clyybber> the int128 pr |
23:35:56 | disruptek | yeah, well, i'm not sure what we're waiting for. |
23:54:34 | * | luis__ quit (Quit: luis__) |
23:55:01 | * | luis__ joined #nim |
23:59:33 | * | luis__ quit (Client Quit) |