00:18:24 | FromDiscord | <Hourglass [She/Her]> Anyone know of any Cassandra bindings for Nim? |
00:18:33 | FromDiscord | <Hourglass [She/Her]> Or maybe a better alternative to Cassandra that has Nim bindings? |
00:18:46 | FromDiscord | <Hourglass [She/Her]> (Using it for storing messages sent by users) |
01:19:08 | * | def- quit (Quit: -) |
01:20:02 | * | def- joined #nim |
01:23:03 | * | def- quit (Client Quit) |
01:23:30 | * | def- joined #nim |
02:02:38 | FromDiscord | <Gumbercules> Another distributed database? |
02:02:57 | FromDiscord | <Gumbercules> NoSQL as well? |
02:12:13 | * | lucasta quit (Remote host closed the connection) |
02:14:27 | * | lucasta joined #nim |
02:20:03 | FromDiscord | <Gumbercules> https://github.com/search?q=cassandra+language%3Anim&type=repositories |
02:26:51 | termer | today I learned the power of GC_FullCollect |
02:26:56 | termer | under ORC specifically |
02:27:18 | termer | apparently you can turn 45mb of memory in an async program into 350k :))))) |
02:28:33 | FromDiscord | <Gumbercules> sent a long message, see http://ix.io/4sQT |
02:30:10 | FromDiscord | <Gumbercules> In reply to @termer "apparently you can turn": I can turn it into zero |
02:30:17 | FromDiscord | <Gumbercules> Give me a hammer |
02:35:01 | termer | good job |
02:36:00 | * | lucas_ta joined #nim |
02:37:04 | * | lucasta quit (Ping timeout: 265 seconds) |
02:57:09 | FromDiscord | <ringabout> In reply to @termer "apparently you can turn": Yeah, ORC only triggers a full collect when the it exceeds the threshold. |
03:46:18 | * | arkurious quit (Quit: Leaving) |
03:48:48 | FromDiscord | <user2m> whats is the nim version of "file" in python? |
03:48:59 | FromDiscord | <user2m> \file |
03:49:35 | FromDiscord | <user2m> a built in variable that is path to the nim file its written in |
03:49:46 | * | def- quit (Quit: -) |
03:50:14 | * | def- joined #nim |
03:52:03 | FromDiscord | <user2m> found it ! getAppFilename() |
03:52:05 | FromDiscord | <user2m> aptly named |
03:52:26 | FromDiscord | <user2m> sent a code paste, see https://play.nim-lang.org/#ix=4sR7 |
03:53:16 | * | def- quit (Client Quit) |
03:54:12 | * | def- joined #nim |
04:28:03 | termer | ringabout, Interesting |
04:28:08 | termer | I never knew that |
04:35:00 | * | def- quit (Quit: -) |
04:35:23 | * | def- joined #nim |
05:11:24 | FromDiscord | <Hourglass [She/Her]> In reply to @Gumbercules "Which database you want": Ah, it's a chat application like discord, so I'd like a database that could handle a lot of writes very quickly |
05:11:47 | FromDiscord | <Hourglass [She/Her]> Reading is important too, but less so since clients will have messages cached and only old messages would need to be read, really |
06:11:36 | FromDiscord | <Hourglass [She/Her]> sent a code paste, see https://play.nim-lang.org/#ix=4sRx |
06:12:01 | FromDiscord | <Hourglass [She/Her]> Or is it just the fact that I'm doing overloading |
06:12:49 | FromDiscord | <Hourglass [She/Her]> Yeah it was how I was doing the overloading |
06:12:57 | FromDiscord | <Hourglass [She/Her]> This is probably horrible but it works™️ lol |
06:15:15 | NimEventer | New thread by termer: State of HTTP Servers in Nim, see https://forum.nim-lang.org/t/10080 |
06:23:23 | NimEventer | New post on r/nim by thindil: [Nim Blog] This Month with Nim: March 2023, see https://reddit.com/r/nim/comments/12ec3b8/nim_blog_this_month_with_nim_march_2023/ |
06:43:45 | * | kenran joined #nim |
07:11:31 | * | rockcavera quit (Remote host closed the connection) |
07:13:08 | * | lucas_ta quit (Remote host closed the connection) |
07:29:51 | FromDiscord | <basilajith> Does anyone know from where can I get "Mastering Nim" at a purchase parity (India) price? |
07:56:07 | * | koltrast quit (Read error: Connection reset by peer) |
08:38:55 | FromDiscord | <System64 ~ Flandre Scarlet> Does Nim have some kind of event listener or messagery system? |
08:47:43 | FromDiscord | <Rika> For what? |
08:52:58 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @Rika "For what?": for gamedev stuff↵Since I can't cycle imports, maybe it can be useful to trigger an event so another object that listens for this event can do something |
08:57:08 | * | koltrast joined #nim |
09:36:44 | * | junaid_ joined #nim |
09:38:22 | FromDiscord | <JukesBouver99> what's the smallest executable size for windows that nim is manage to produce? Can somebody try the MessageBox example from https://github.com/khchen/winim with nim? |
09:41:55 | FromDiscord | <demotomohiro> I tried long time ago:↵https://internet-of-tomohiro.netlify.app/nim/nim4k.en.html↵https://github.com/demotomohiro/nim-4k-intro-sample |
09:44:18 | FromDiscord | <JukesBouver99> awesome |
10:44:32 | FromDiscord | <whosent> https://youtu.be/uZgbKrDEzAs?t=602↵Thoughts? |
10:46:01 | FromDiscord | <System64 ~ Flandre Scarlet> Since when Nim have Requirements.txt? https://media.discordapp.net/attachments/371759389889003532/1093849148979171408/image.png |
10:50:23 | FromDiscord | <Rika> it doesnt |
10:50:33 | FromDiscord | <Rika> why do you believe gpt like it doesnt make mistakes |
10:56:49 | FromDiscord | <System64 ~ Flandre Scarlet> I didn't believe it↵I found his answer quite sussy |
10:57:29 | * | azimut quit (Ping timeout: 255 seconds) |
11:04:17 | FromDiscord | <Hourglass [She/Her]> https://hastebin.com/share/boqacuwile.nim horrid code, let's go! |
11:52:38 | FromDiscord | <qb> Is nim playground down? |
11:57:19 | FromDiscord | <demotomohiro> Seems so |
12:01:47 | FromDiscord | <qb> sent a long message, see http://ix.io/4sSI |
12:11:14 | FromDiscord | <demotomohiro> Linear memory access is faster.↵If pixel in (x + 1, y) is placed next to (x, y), increasing x coordinate in inner loop might faster. |
12:24:27 | * | azimut joined #nim |
12:47:21 | * | junaid_ quit (Remote host closed the connection) |
13:09:44 | * | xet7 quit (Remote host closed the connection) |
13:14:41 | FromDiscord | <Yardanico> In reply to @qb "https://www.logpasta.com/paste/7fd65db2-22db-4b36-9": can't you use winim to use that API? |
13:15:12 | FromDiscord | <Yardanico> or at least wrap it yourself with the help of winim |
13:22:55 | FromDiscord | <qb> Well for sure somehow. But I guess that api uses direct x. I even have struggle to understand the python code |
14:58:40 | * | oprypin quit (Remote host closed the connection) |
15:28:37 | FromDiscord | <Gumbercules> In reply to @Hourglass, When the Hour Strikes "Ah, it's a chat": I believe Discord migrated to ScyllaDB, but it would probably take your chat app becoming a huge success to face similar scaling issues as Discord |
15:28:48 | FromDiscord | <Gumbercules> (edit) removed "as Discord" |
15:31:22 | FromDiscord | <jmgomez> In reply to @Hourglass, When the Hour Strikes "Or maybe a better": Last time I checked but in terms of NoSql and Nim bindings I think Mongo are near complete and Redis has something officially supported (although it doesnt seem to include the json part which is what you would want to use I guess). ↵That said, not sure if something like Futhark could do something with the official C bindings of what you like (it would be a nice test th |
15:35:13 | * | arkurious joined #nim |
15:38:21 | * | def- quit (Quit: -) |
15:40:19 | * | def- joined #nim |
15:49:25 | * | oprypin joined #nim |
16:26:46 | * | kenran quit (Remote host closed the connection) |
16:30:15 | FromDiscord | <Gennadiy> How do I pass the path to a library in my src folder directory. I can do `{.passL: -lsomelib.}` but somelib has to be in the root project directory or a sytem directory. What if it is in a subfolder of my root directory? |
16:30:42 | FromDiscord | <Gennadiy> (edit) "How do I pass ... the" added "(in a file)" |
16:39:18 | FromDiscord | <djazz> `-L/path/to/my/libraries` |
16:39:30 | FromDiscord | <djazz> use passL too |
16:44:54 | FromDiscord | <ringabout> Is this valid rst syntax for definitions? |
16:45:09 | FromDiscord | <ringabout> sent a code paste, see https://play.nim-lang.org/#ix=4sU1 |
16:45:41 | FromDiscord | <Gennadiy> In reply to @djazz "`-L/path/to/my/libraries`": Thanks. |
16:46:10 | FromDiscord | <ringabout> sent a code paste, see https://play.nim-lang.org/#ix=4sU2 |
16:46:29 | FromDiscord | <ringabout> (edit) "valid" => "an official" |
16:53:58 | * | rockcavera joined #nim |
17:15:37 | * | lucasta joined #nim |
17:29:12 | * | lucasta quit (Remote host closed the connection) |
17:29:19 | FromDiscord | <miragearhitect> sent a code paste, see https://play.nim-lang.org/#ix=4sUe |
17:33:22 | FromDiscord | <jmgomez> sent a code paste, see https://play.nim-lang.org/#ix=4sUh |
17:40:00 | FromDiscord | <jmgomez> Also notice that the body is wrong, you have `p` it should be `pre` |
17:40:20 | FromDiscord | <jmgomez> The same with echo |
17:42:10 | FromDiscord | <miragearhitect> In reply to @jmgomez "you need to specify": thanks |
18:03:08 | NimEventer | New post on r/nim by deadkonsumer: Help: Simple wordrap, see https://reddit.com/r/nim/comments/12etr61/help_simple_wordrap/ |
18:04:41 | * | def- quit (Quit: -) |
18:05:59 | * | def- joined #nim |
18:16:18 | * | kenran joined #nim |
18:53:16 | * | Notxor joined #nim |
18:59:45 | * | xet7 joined #nim |
19:33:09 | FromDiscord | <Hourglass [She/Her]> In reply to @Gumbercules "I believe Discord migrated": Always good to future-proof lol |
19:43:49 | * | lucasta joined #nim |
19:51:55 | FromDiscord | <Phil> In reply to @Hourglass, When the Hour Strikes "Always good to future-proof": The best application is the one that exists.↵If you can more easily and quickly get that ship off the ground using whatever DB you plan, then that is perfectly fine.↵Swapping later as needed is an option. |
19:52:32 | FromDiscord | <Phil> (edit) "plan," => "have in mind," |
19:52:38 | FromDiscord | <Phil> (edit) "In reply to @Hourglass, When the Hour Strikes "Always good to future-proof": The best application is the one that exists.↵If you can more easily and quickly get that ship off the ground using whatever DB you have in mind, then that is perfectly fine.↵Swapping later as needed is ... an" added "always" |
19:52:44 | FromDiscord | <Phil> (edit) "fine.↵Swapping" => "fine.↵Migrating" |
19:57:25 | * | Notxor quit (Remote host closed the connection) |
20:28:05 | FromDiscord | <Hourglass [She/Her]> True, I'll likely stick to using MongoDB for now then |
20:32:12 | * | def- quit (Quit: -) |
20:33:30 | * | def- joined #nim |
21:09:47 | FromDiscord | <Dudugz> I experienced MongoDB in GoLang, it was horrible as I couldn't deserialize the documents but the database itself is great. |
21:09:48 | * | def- quit (Quit: -) |
21:14:53 | FromDiscord | <guttural666> Is there a best way to conditionally compile echo statements, so I can still use funcs? I've thought about adding a debug.nim file and including it everywhere with const debug = true in it and then wrapping echo in a dbg proc. Don't really want to compile in debug mode. |
21:15:34 | FromDiscord | <guttural666> (edit) "proc." => "proc with when debug == true." |
21:21:34 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4sVo |
21:21:36 | FromDiscord | <Elegantbeef> You can also just use `debugEcho` inside of `func` |
21:21:52 | FromDiscord | <Elegantbeef> It's a echo marked as no side effect for debugging purposes of course |
21:31:04 | FromDiscord | <guttural666> I will still have to wrap this if I don't want it to be compiled at all right, debugEcho will just tell the compiler it has no side effects? |
21:31:53 | FromDiscord | <Elegantbeef> Yes |
21:32:03 | FromDiscord | <guttural666> Yeah. Okay, thanks! |
21:32:41 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4sVs |
21:32:46 | * | def- joined #nim |
21:36:35 | FromDiscord | <guttural666> Yeah, that is what I was thinking, but then I could also just use echo in there right? |
21:36:43 | * | lucasta quit (Quit: Leaving) |
21:36:55 | FromDiscord | <guttural666> If I make that itself into a proc |
21:37:32 | FromDiscord | <guttural666> And do the when check before the proc definition |
21:38:09 | FromDiscord | <Elegantbeef> Well if you do `{.cast(noSideEffect).}` |
21:38:10 | FromDiscord | <Elegantbeef> "so you can still use funcs" |
21:39:39 | * | kenran quit (Remote host closed the connection) |
21:45:12 | FromDiscord | <guttural666> this is what I was thinking https://media.discordapp.net/attachments/371759389889003532/1094015039595360408/image.png |
22:06:17 | FromDiscord | <amadan> In reply to @ringabout "Is this an official": https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#definition-lists↵Looks like it matches the official syntax |
22:17:53 | NimEventer | New Nimble package! libpothole - Essential libraries for the Pothole server., see https://gt.tilambda.zone/o/pothole/libpothole |
22:49:27 | * | def- quit (Quit: -) |
22:50:43 | * | def- joined #nim |