20 Mar 2023 |
4zv4l | the only external library I use is dimscord | 21:15:09 |
4zv4l | but yeah it's ok | 21:15:14 |
caravaggio | am i the only one that finds nim exercism challenges bad? | 21:15:16 |
Elegantbeef | -d:ssl says otherwise | 21:15:19 |
Elegantbeef | I think they can be bad depending if you solve them idiomatically | 21:15:53 |
4zv4l | yeah right I didn't see it that way xD | 21:24:42 |
Dudugz | I made a simple file to compile and test my binaries :v so i just debug run or debug build or debug for both. More practical than going to each one's directory, compiling with -d:ssl and then going back to the binaries directory and running each one | 21:34:37 |
Gumbercules | bad in what way? | 21:58:07 |
caravaggio | I've done quite a few exercism stuff, for some reasons the nim ones don't have instructions | 22:03:51 |
caravaggio | I like playing on exercism when am on a pc without a compiler and just turned off the nim track | 22:04:20 |
caravaggio | Most have step by step instructions | 22:04:29 |
Elegantbeef | What's the fun in that | 22:04:37 |
caravaggio | The nim ones I did. Felt like vague hints on what I needed to do | 22:05:08 |
caravaggio | I guess I was just looking for structure | 22:09:12 |
caravaggio | I dont want the answers handed to me ofc no learning in that | 22:09:43 |
caravaggio | But small step by step hints that lead in the right direction would be useful, no? | 22:10:08 |
| edf joined the room. | 22:17:04 |
| Raynei486 changed their display name from Raynei486 to Raynei486#3955. | 22:27:34 |
| Raynei486 changed their display name from Raynei486#3955 to Raynei486. | 22:27:42 |
Raynei486 |  Download image.png | 22:27:43 |
Raynei486 | If there was a function in sdl2/image.nim that is not exported in sdl2.nim , how do I access it? | 22:27:44 |
Elegantbeef | import std2/image | 22:27:58 |
Raynei486 | I tried importing sdl2/image but it still can't find the proc | 22:28:02 |
Elegantbeef | Is the proc exported in image? | 22:28:16 |
Raynei486 | yeah
proc load*(file: cstring): SurfacePtr {.importc: "IMG_Load".} | 22:28:46 |
Elegantbeef | Then it should be accesible when you do import std2/image | 22:29:11 |
Raynei486 | okay it somehow magically resolved itself when I aliased it as import sdl2/image as image | 22:33:13 |
Raynei486 | I guess it didn't know what I was referring to | 22:33:15 |
geekrelief#4078 | I used exercism to start learning Nim. It got my feet wet and see alternate implementations was educational. Beyond that, I think you'll learn more finding a goal and hacking towards it while reading the manual and api docs. | 22:33:22 |
not logged in | Anyone have a way to pretty print tree-like objects? | 22:51:14 |