00:20:47 | * | redj joined #nim |
00:40:08 | * | redj quit (Read error: Connection reset by peer) |
00:40:18 | * | skippy8 quit (Quit: WeeChat 4.6.3) |
00:41:21 | * | redj joined #nim |
00:58:11 | * | redj quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
00:59:52 | * | redj joined #nim |
03:03:25 | * | rockcavera joined #nim |
05:58:43 | * | tiorock joined #nim |
05:58:43 | * | tiorock quit (Changing host) |
05:58:43 | * | tiorock joined #nim |
05:58:43 | * | rockcavera is now known as Guest3244 |
05:58:43 | * | Guest3244 quit (Killed (tantalum.libera.chat (Nickname regained by services))) |
05:58:43 | * | tiorock is now known as rockcavera |
06:00:50 | * | tiorock joined #nim |
06:00:50 | * | tiorock quit (Changing host) |
06:00:50 | * | tiorock joined #nim |
06:00:50 | * | rockcavera is now known as Guest2394 |
06:00:50 | * | tiorock is now known as rockcavera |
06:03:32 | * | Guest2394 quit (Ping timeout: 252 seconds) |
07:06:08 | * | skippy8 joined #nim |
07:26:47 | * | ntat joined #nim |
08:54:46 | * | CypherCat quit (Quit: IRCNow and Forever!) |
09:11:54 | * | anddam quit (Ping timeout: 260 seconds) |
09:42:48 | * | anddam joined #nim |
10:19:59 | FromDiscord | <haywiressc> is there a way to create a scope without making a proc or anything? |
10:29:39 | FromDiscord | <demotomohiro> In reply to @haywiressc "is there a way": block statement: https://nim-lang.org/docs/manual.html#statements-and-expressions-block-statement |
10:29:57 | FromDiscord | <haywiressc> thanks |
10:34:29 | * | amadaluzia joined #nim |
10:37:12 | * | amadaluzia quit (Client Quit) |
10:38:08 | * | amadaluzia joined #nim |
10:38:08 | * | amadaluzia quit (Client Quit) |
10:40:34 | * | amadaluzia joined #nim |
12:09:28 | * | beholders_eye joined #nim |
12:37:27 | * | amadaluzia quit (Quit: ZNC 1.10.1 - https://znc.in) |
12:38:39 | * | amadaluzia joined #nim |
13:01:53 | FromDiscord | <ollicron_53732> I love Nim |
13:36:50 | * | beholders_eye quit (Ping timeout: 248 seconds) |
14:50:53 | * | amadaluzia quit (Quit: ZNC 1.10.1 - https://znc.in) |
15:12:34 | FromDiscord | <grotesquemalfeasance> I love men |
15:15:14 | FromDiscord | <DetermiedNim1> I love one of those things |
15:15:21 | FromDiscord | <DetermiedNim1> (edit) "I love one of those things ... " added "more than the other" |
15:36:32 | FromDiscord | <beyonddd_.> sent a code paste, see https://play.nim-lang.org/#pasty=MCBKPQkB |
16:19:56 | * | beholders_eye joined #nim |
16:31:14 | * | tiorock joined #nim |
16:31:14 | * | rockcavera is now known as Guest7961 |
16:31:14 | * | Guest7961 quit (Killed (copper.libera.chat (Nickname regained by services))) |
16:31:14 | * | tiorock is now known as rockcavera |
16:33:19 | * | tiorock joined #nim |
16:33:19 | * | rockcavera is now known as Guest2877 |
16:33:19 | * | Guest2877 quit (Killed (silver.libera.chat (Nickname regained by services))) |
16:33:19 | * | tiorock is now known as rockcavera |
16:50:29 | FromDiscord | <blashyrk> sent a code paste, see https://play.nim-lang.org/#pasty=JHAXrhlq |
16:55:56 | FromDiscord | <blashyrk> In reply to @beyonddd_. "Hi, im new here.": Also I'm not sure what version of `naylib` you're using, but `loadTextureImpl` that works directly on the `cstring` seems to be private? There's a `proc loadTexture(fileName: string): Texture2D` that's public instead |
16:59:53 | FromDiscord | <beyonddd_.> In reply to @blashyrk "Have you checked what": i think its loadTextureImpl not returning `nil` because of this message :↵> INFO: FILEIO: [../assets/walk.png] File loaded successfully↵> INFO: IMAGE: Data loaded successfully (210x43 | R8G8B8A8 | 1 mipmaps) |
17:00:36 | * | FromDiscord quit (Remote host closed the connection) |
17:00:49 | * | FromDiscord joined #nim |
17:01:06 | FromDiscord | <blashyrk> Sry I missed the comment that the first proc is from the binding and not your code |
17:01:27 | FromDiscord | <beyonddd_.> In reply to @blashyrk "Sry I missed the": okay.. all good |
17:03:01 | FromDiscord | <beyonddd_.> sent a code paste, see https://play.nim-lang.org/#pasty=DRwOgevI |
17:06:10 | FromDiscord | <blashyrk> I just tried it too and it crashes the same way (mingw), can't even compile it with msvc/clang... |
17:07:20 | FromDiscord | <blashyrk> Ah, you need to init a window (it must initialize some system within raylib) |
17:07:30 | FromDiscord | <blashyrk> Add initWindow to your program and it works |
17:10:54 | FromDiscord | <beyonddd_.> In reply to @blashyrk "Add initWindow to your": i already have this.↵the program doing just fine when i comment out that proc. |
17:11:28 | FromDiscord | <beyonddd_.> so, is this compiler error ? |
17:11:33 | FromDiscord | <beyonddd_.> (edit) "error" => "bug" |
17:12:21 | FromDiscord | <blashyrk> sent a code paste, see https://play.nim-lang.org/#pasty=UMzJBbdY |
17:12:59 | FromDiscord | <blashyrk> In reply to @beyonddd_. "so, is this compiler": Almost certainly no, it has something to do with the bindings or raylib needs something to happen in a sequence otherwise something stays uninitialized (raylib is C code after all) |
17:13:29 | FromDiscord | <blashyrk> Maybe @planetis_m can help |
17:13:31 | FromDiscord | <beyonddd_.> In reply to @blashyrk "Not sure then... Here's": ahh i see |
17:13:35 | FromDiscord | <beyonddd_.> it already works |
17:13:44 | FromDiscord | <beyonddd_.> i should call the proc after the initWindow |
17:13:55 | FromDiscord | <blashyrk> Yep 🙂 |
17:14:10 | FromDiscord | <beyonddd_.> thanks for the help ! |
17:14:11 | FromDiscord | <blashyrk> So that's a raylib quirk, not a Nim quirk, in this instance at least 😄 |
17:14:16 | FromDiscord | <blashyrk> Np! Happy coding! |
17:14:33 | FromDiscord | <beyonddd_.> and one more thing.↵how to debugging this kinda thing properly ? |
17:14:39 | FromDiscord | <beyonddd_.> maybe debugger ? |
17:17:25 | FromDiscord | <blashyrk> sent a long message, see https://pasty.ee/nptNJPCd |
17:19:08 | FromDiscord | <blashyrk> However you should definitely read the Raylib docs, it was almost certainly documented that you have to call initWindow (or possibly some other headless init function) before loading textures etc |
17:20:07 | FromDiscord | <beyonddd_.> In reply to @blashyrk "Well since this crash": i got it. its seems no easy way to do it. |
17:20:17 | FromDiscord | <beyonddd_.> thanks again for the explanation ! |
17:20:32 | FromDiscord | <blashyrk> Np! That's kinda what you get when dealing with C directly 🙂 |
17:20:45 | FromDiscord | <beyonddd_.> In reply to @blashyrk "However you should definitely": yeah, ure right. i just checked it and it was there. a single comment tells about it |
17:21:20 | FromDiscord | <beyonddd_.> In reply to @blashyrk "Np! That's kinda what": yep 🙂 |
17:44:56 | * | perro quit (Quit: WeeChat 4.6.0) |
18:15:53 | FromDiscord | <albassort> https://media.discordapp.net/attachments/371759389889003532/1398730559685136488/image.png?ex=68866cd8&is=68851b58&hm=829da89d78887ef8c76bc34532e23ccd38e577471276601db6d0b095a377cec3& |
18:21:43 | FromDiscord | <Elegantbeef> Damn nice Nim @albassort 😄 |
18:22:34 | FromDiscord | <albassort> I DELETED IT |
18:22:54 | FromDiscord | <Elegantbeef> It just bridged over here |
18:29:26 | FromDiscord | <albassort> dear bridgers: this not an intentional thing, for whatever reason I wanted to post it in a different server and then clicked on nim |
18:29:45 | FromDiscord | <albassort> my bad, the delete didn't go to the bridge :) |
18:30:56 | FromDiscord | <albassort> for non bridgers: it was just a screenshot of a political reddit convo with meticulous downvotes and upvotes humorously referencing my opinions |
18:41:02 | FromDiscord | <leorize> you can flag a moderator to clean it up for you on this side |
18:47:20 | FromDiscord | <blashyrk> In reply to @albassort "for non bridgers: it": Damn NOW I'm curious lol, next time when you screw up, pls omit the explanation 😛 |
18:47:52 | FromDiscord | <albassort> i was hoping the explanation would make it less interesting |
18:50:27 | FromDiscord | <lainlaylie> it made it more interesting and made me look at the logs |
18:50:48 | FromDiscord | <Elegantbeef> Look what I've done, whoops |
19:42:34 | * | mahlon quit (Quit: PotatoTech) |
19:44:10 | * | mahlon joined #nim |
19:44:56 | * | mahlon quit (Client Quit) |
19:45:33 | * | mahlon joined #nim |
19:50:29 | * | beholders_eye quit (Ping timeout: 260 seconds) |
19:52:07 | * | beholders_eye joined #nim |
19:56:14 | FromDiscord | <albassort> literally the most boring shit ever |
19:56:24 | FromDiscord | <albassort> anyway how about that nim |
19:57:00 | * | ntat quit (Quit: Leaving) |
22:22:28 | * | beholders_eye quit (Ping timeout: 240 seconds) |
22:24:23 | * | beholders_eye joined #nim |
22:47:34 | FromDiscord | <DetermiedNim1> how would one rewrite rust in nim |
22:53:28 | * | skippy8 quit (Quit: WeeChat 4.6.3) |
23:47:10 | * | jn_ is now known as jn |