00:01:29 | anddam | I cannot find where that is described in manual or tutorial, can you point to it? |
00:03:59 | rockcavera | anddam https://nim-lang.org/docs/manual_experimental.html#void-type |
00:25:25 | NimEventer | New thread by Nlits: Conversion between radicals and logs, see https://forum.nim-lang.org/t/11295 |
01:05:57 | * | fallback quit (Ping timeout: 272 seconds) |
01:15:30 | * | fallback joined #nim |
01:35:32 | * | xet7 joined #nim |
02:01:32 | * | krux02_ quit (Remote host closed the connection) |
02:12:07 | * | SEP quit (Ping timeout: 260 seconds) |
02:19:11 | * | SEP joined #nim |
02:22:53 | FromDiscord | <pri.ivy> Trying to compile a program usingdb_sqlite |
02:22:56 | FromDiscord | <pri.ivy> and I get this↵↵main.nim(11, 8) Error: cannot open file: db_sqlite |
02:23:00 | FromDiscord | <pri.ivy> I thought it was s tandard lib |
02:23:04 | FromDiscord | <pri.ivy> (edit) "usingdb_sqlite" => "using db_sqlite" |
02:23:35 | FromDiscord | <pri.ivy> nvm im sped |
02:23:51 | * | fallback quit (Ping timeout: 272 seconds) |
02:27:28 | * | fallback joined #nim |
02:31:26 | * | dtomato7 joined #nim |
02:32:22 | * | dtomato quit (Ping timeout: 246 seconds) |
02:32:22 | * | dtomato7 is now known as dtomato |
02:53:08 | * | rockcavera quit (Remote host closed the connection) |
03:24:27 | FromDiscord | <pri.ivy> sent a code paste, see https://play.nim-lang.org/#pasty=GzASsfgLGawO |
03:25:07 | FromDiscord | <Elegantbeef> What does the compiler say? |
03:25:15 | FromDiscord | <pri.ivy> it compiles okay |
03:25:23 | FromDiscord | <pri.ivy> but gives me an error runtime↵Error: unhandled exception: index out of bounds, the container is empty [IndexDefect] |
03:25:56 | FromDiscord | <Elegantbeef> It also gives you a line number |
03:26:12 | FromDiscord | <Elegantbeef> You issue is likely anwhere you index |
03:26:53 | FromDiscord | <pri.ivy> It's sql, another library I was using worked fine but the one that's "std" doesn't have a similar function to what I was using before |
03:27:15 | FromDiscord | <pri.ivy> row[5].fromDbValue(seq[byte]) |
03:27:29 | FromDiscord | <pri.ivy> In reply to @pri.ivy "row[5].fromDbValue(seq[byte])": ^ attempting to emulate this from tiny_sqlite |
03:29:51 | FromDiscord | <Elegantbeef> Uh huh, well one of those index operations are wrong or you're writing outside of a buffer |
03:29:54 | FromDiscord | <Elegantbeef> So ensure all the logic is sound |
03:32:09 | * | fallback quit (Ping timeout: 268 seconds) |
03:40:23 | * | xutaxkamay quit (Quit: ZNC 1.8.2+deb3.1 - https://znc.in) |
03:40:45 | FromDiscord | <pri.ivy> yeah im not the brightest |
03:40:48 | * | xutaxkamay joined #nim |
03:40:49 | FromDiscord | <pri.ivy> it wasnt the sqlite lib |
03:40:56 | FromDiscord | <pri.ivy> it was just me reading data that didnt exist |
03:54:56 | * | xutaxkamay quit (Ping timeout: 252 seconds) |
03:55:59 | * | xutaxkamay joined #nim |
03:59:06 | * | fallback joined #nim |
04:03:29 | * | rockcavera joined #nim |
04:14:34 | FromDiscord | <user2m> sent a code paste, see https://play.nim-lang.org/#pasty=KBxaEZDZwLJZ |
04:15:04 | FromDiscord | <user2m> (edit) "sent" => "how do I cast" | "code paste, see https://play.nim-lang.org/#pasty=dyIlhIXtktJk" => "string as an enum?" |
04:15:08 | FromDiscord | <user2m> sent a code paste, see https://play.nim-lang.org/#pasty=tKHakCvqzVqW |
04:17:11 | FromDiscord | <user2m> without doing a cae stmt of course |
04:17:18 | FromDiscord | <user2m> (edit) "cae" => "case" |
04:21:19 | FromDiscord | <Elegantbeef> strutils.parseEnum |
04:21:35 | FromDiscord | <Elegantbeef> Stop using the term cast for type conversions and parsing though 😄 |
04:35:52 | * | adium quit (Remote host closed the connection) |
04:38:51 | FromDiscord | <user2m> In reply to @Elegantbeef "Stop using the term": Lol fair enough and thank you! |
05:11:52 | * | adium joined #nim |
05:58:25 | * | SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev) |
05:58:50 | * | SchweinDeBurg joined #nim |
06:06:41 | * | advesperacit joined #nim |
06:33:45 | * | fallback quit (Ping timeout: 255 seconds) |
06:44:12 | * | fallback joined #nim |
07:26:34 | * | rockcavera quit (Remote host closed the connection) |
08:04:53 | * | cornfeedhobo quit (Read error: Connection reset by peer) |
08:05:14 | * | cornfeedhobo joined #nim |
09:30:25 | FromDiscord | <fosster> is there a way to explicitally panic on error in nim? |
09:52:56 | FromDiscord | <demotomohiro> https://nim-lang.org/docs/system.html#quit%2Cstring |
10:31:51 | FromDiscord | <kiloneie> Does anyone here have forum admin rights ? I was unable to change my password for years, but yesterday it worked... but the password i give it, does NOT match what i then retype at login, so i am LOCKED OUT. I tried reseting several times... |
10:33:53 | FromDiscord | <kiloneie> Wait i was able to get in now, it seems it HATES the # symbol |
10:41:43 | FromDiscord | <nnsee> In reply to @kiloneie "Wait i was able": hmmmmm |
10:41:47 | FromDiscord | <nnsee> hmmmmmmmmm |
10:42:28 | FromDiscord | <kiloneie> Literally all my passwords use that symbol... so it's annoying me like hell |
10:46:06 | FromDiscord | <kiloneie> Actually the password which i was unable to change for years did have the # symbol. But when i did the reset, i just though maybe it doesn't like symbols, so i didn't use it, and then it worked. I think that maybe the password reset form somehow is more limited than when you actually make your account. |
12:07:00 | * | madprops joined #nim |
12:07:43 | madprops | is there a way to get the current directory like getCurrentDir() but optionally resolving or not resolving symlinks? |
12:11:20 | FromDiscord | <Robyn [She/Her]> Wdym? |
12:11:49 | madprops | it's resolving the symlinks to their full path |
12:11:57 | madprops | but i want to add an option to disable that |
12:11:59 | madprops | in my program |
12:29:30 | FromDiscord | <odexine> i dont think symlinks make sense in the context of getcurrentdir |
12:30:07 | FromDiscord | <Robyn [She/Her]> ^^^ |
12:30:31 | FromDiscord | <odexine> you can "enter a symlink" but that isnt conceptually the same as entering a directory, kind of thing |
12:31:41 | FromDiscord | <odexine> https://unix.stackexchange.com/a/331346 |
12:33:17 | FromDiscord | <odexine> i guess more info on how to check https://unix.stackexchange.com/a/145481 |
12:45:52 | FromDiscord | <nnsee> this is true |
12:46:22 | FromDiscord | <nnsee> sent a code paste, see https://play.nim-lang.org/#pasty=jHftUpZwLXYe |
13:11:31 | * | advesperacit quit (Ping timeout: 260 seconds) |
13:11:46 | * | advesperacit joined #nim |
13:23:58 | madprops | well now im getting another issue |
13:24:08 | madprops | it can't seem to resolve symlinks this time |
13:24:16 | madprops | it fails to open a path that exists (but is symlinked) a file |
13:30:15 | madprops | using open() |
13:31:05 | madprops | seems i need readLink |
13:52:04 | madprops | strange thing is, it can open files in the root of the dir |
13:52:12 | madprops | but it's failing on a specific subdirectory |
13:56:07 | madprops | if i target the subdirectory it works |
13:56:12 | madprops | but if i target the root it doesn't |
13:56:18 | madprops | it's supposed to open files recursively |
14:05:01 | madprops | i kinda think it's a bug |
14:05:07 | madprops | or some sort of lock |
14:05:20 | madprops | because if i omit certain subdirectories, the file opens |
14:05:29 | madprops | but if i do a lot file opens, it fails to open |
14:09:04 | * | krux02 joined #nim |
14:10:10 | * | xet7 quit (Remote host closed the connection) |
14:12:02 | * | madprops left #nim (Leaving) |
14:44:55 | FromDiscord | <Neo Абвгдеев> Hello everyone How to change the color of the name |
14:53:42 | FromDiscord | <MDuardo> Color of what? |
14:56:50 | FromDiscord | <Neo Абвгдеев> In here.. The color of my name |
14:58:42 | FromDiscord | <Neo Абвгдеев> You're green, and I'm red! I want a different color |
15:01:12 | FromDiscord | <␀ Array 🇵🇸 🍉> the element client doesnt let you change it directly, but you can mess with its css or use schildi |
15:01:57 | FromDiscord | <Neo Абвгдеев> Ok |
15:02:52 | FromDiscord | <nnsee> you're all white to me |
15:03:03 | FromDiscord | <nnsee> https://media.discordapp.net/attachments/371759389889003532/1222199141791305748/image.png?ex=661558a6&is=6602e3a6&hm=7bcdb1b67c820b22ec6a05efade7831f5558860774c4df3b18ec1096cde968fb& |
15:05:17 | FromDiscord | <Neo Абвгдеев> Wow.. Didn't know |
15:06:10 | FromDiscord | <MDuardo> I think it depends on the client |
15:06:12 | FromDiscord | <Neo Абвгдеев> Screenshot\_20240326-180533.png https://media.discordapp.net/attachments/371759389889003532/1222199935257022484/Screenshot_20240326-180533.png?ex=66155963&is=6602e463&hm=c3142c48eb0ecba78e91e2f025bf5b89cecde0663a74ff99a0649cc9276529d2& |
15:07:12 | FromDiscord | <MDuardo> You are all green for me in SchildiChat, if that makes you feel better |
15:08:12 | FromDiscord | <Neo Абвгдеев> Lol |
15:26:32 | * | ntat joined #nim |
15:47:52 | * | Guest51 joined #nim |
15:48:11 | * | Guest51 quit (Client Quit) |
15:58:21 | * | KhazAkar quit (Read error: Connection reset by peer) |
16:01:31 | FromDiscord | <tsoj> Is there a way with nimble to pass a --run flag to a task? E.g. `nimble myTask --run MyProjwcz.nimble`, how you can do it with just nimscript. |
16:07:21 | FromDiscord | <tsoj> I can't put it in the task directly, because I want to be able to build a task without running it. |
16:11:49 | FromDiscord | <whisperecean> I just got an error like this and dont know where to check what's the problem: options.nim(202) get↵Error: unhandled exception: Can't obtain a value from a `none` [UnpackDefect] |
16:20:03 | FromDiscord | <A2> I'm battling the nim type system a little bit right now, trying to parse some json that could be one of several types.`{"kind": "type_one", "data": {"one": "foobar"}`↵`{"kind": "type_two", "data": {"two": "boofar", "something_else": "wow"}` |
16:20:03 | FromDiscord | <A2> Object variants don't really work for me, since the "data" field name is repeated for several variants |
16:20:04 | FromDiscord | <A2> What are my other options? I'm looking at `alaviss/union` right now, but to be frank I can't figure out how to branch on which union variant I get. |
16:20:33 | FromDiscord | <A2> I can also change the shape of the json that's arriving, but I'd prefer not to. |
16:28:50 | * | KhazAkar joined #nim |
16:29:08 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=qeSonbsuKYea |
16:29:12 | FromDiscord | <Robyn [She/Her]> Just an fyi |
16:30:01 | FromDiscord | <Robyn [She/Her]> When statements also work, not sure if nested case statements do, though |
16:35:00 | FromDiscord | <A2> that's cool if the type of `data` should always be the same. but what if `data` should be `string` when `kind` is `KindA`, and `data` should be `int` when `kind` is `KindB`? |
16:35:29 | FromDiscord | <odexine> will never be allowed |
16:35:33 | FromDiscord | <A2> This feels a bit x/y-question ish. Feel free to let me know if I'm should be asking a different question. |
16:35:49 | FromDiscord | <odexine> that means the type of a field would change on runtime info |
16:36:02 | FromDiscord | <A2> coolcool. Then what's the idiomatic way to parse a string, where the resulting type depends on the content of a string? |
16:36:12 | FromDiscord | <jviega> If the schema is that irregular, what's wrong w/ leaving it all in the JSon object and query that?? |
16:37:14 | FromDiscord | <A2> possible json access errors all over the place. I'd like to do parsing in just one step |
16:37:41 | FromDiscord | <A2> Is it that weird? It doesn't feel that strange in a parsing situation to have a string that could be parsed into two different types. |
16:37:51 | FromDiscord | <jviega> Huh? Use it to parse the JSON then walk the tree to unload into native data structures and validate the schema |
16:39:09 | FromDiscord | <A2> hmm but then what is the type of my parsing function? `parse_my_json_string(x: string): ObjA | ObjB` doesn't seem to be possible |
16:39:12 | FromDiscord | <A2> haha feel free to let me know if my json is dumb |
16:40:44 | FromDiscord | <A2> I'm just really used to working in languages that have sum types, I think... |
16:40:44 | FromDiscord | <jviega> Unload into whatever data structure is appropriate and return that data structure |
16:41:25 | FromDiscord | <A2> I'm trying to figure out what that data structure looks like, if object variants arent feasible and sum types aren't a thing |
16:41:46 | FromDiscord | <jviega> I mean, you can definitely use the Any type if you really want, or create types that are sum types if you really want (not as easily as with some languages) |
16:41:54 | * | rockcavera joined #nim |
16:42:15 | FromDiscord | <A2> What type would you parse something like `{"kind": "int", "data": 2}` or `{"kind": "str", "data": "foobar"}` into? |
16:42:56 | * | modev joined #nim |
16:43:00 | FromDiscord | <A2> sent a code paste, see https://play.nim-lang.org/#pasty=tkIZyxxbbKaY |
16:43:02 | FromDiscord | <A2> sent a code paste, see https://play.nim-lang.org/#pasty=XwFOVcpogcuk |
16:43:44 | FromDiscord | <jviega> Assuming the overarching object is something akin to a 'VALUE', I'd probably have a value type that has a 'kind' descriminator, and then rename the data field, or do something uglier for it |
16:43:46 | FromDiscord | <A2> I'd really prefer not to use the Any type 😅 |
16:44:05 | FromDiscord | <jviega> I'd prefer you didn't either |
16:44:14 | FromDiscord | <A2> ✨ |
16:44:19 | FromDiscord | <pri.ivy> Is there an sqlite lib that doesnt use dlls |
16:44:25 | FromDiscord | <A2> so this is the idiomatic way? |
16:44:31 | FromDiscord | <pri.ivy> db_sqlite and tiny_sqlite both use dlls |
16:44:33 | * | modev quit (Client Quit) |
16:44:33 | FromDiscord | <pri.ivy> I dont want that |
16:44:59 | FromDiscord | <jviega> That's what I was saying, unless you insist on always calling it 'data' in which case you have some options |
16:45:42 | FromDiscord | <jviega> Like a sub-object that's different per type, etc |
16:48:43 | FromDiscord | <pri.ivy> In reply to @pri.ivy "Is there an sqlite": . |
16:49:13 | FromDiscord | <A2> coolcool, I'll do that \:) |
16:52:24 | * | modev joined #nim |
16:52:45 | * | modev quit (Client Quit) |
16:54:29 | FromDiscord | <odexine> In reply to @pri.ivy ".": no |
16:54:34 | FromDiscord | <odexine> not that im aware of |
16:56:45 | FromDiscord | <pri.ivy> In reply to @odexine "not that im aware": bruh |
16:56:50 | FromDiscord | <solitudesf> In reply to @pri.ivy "Is there an sqlite": https://nim-lang.org/docs/nimc.html#dynliboverride |
17:00:44 | FromDiscord | <pri.ivy> where would I find the .lib for sqlite3_64? |
17:00:56 | FromDiscord | <pri.ivy> https://www.sqlite.org/2024/sqlite-tools-win-x64-3450200.zip Assuming here |
17:01:08 | FromDiscord | <demotomohiro> If you want to statically link C library, you need to build the library as static library. |
17:10:24 | FromDiscord | <pri.ivy> nim -d:mingw --opt:speed --dynlibOverride:sqlite3_64 --passL:sqlite3.lib c main |
17:10:39 | FromDiscord | <pri.ivy> https://media.discordapp.net/attachments/371759389889003532/1222231251562528788/image.png?ex=6615768e&is=6603018e&hm=e4450eb5daf8116377ce6a9acb7533c45670aa505e9c232bfa31a562c2058b1c& |
17:10:44 | FromDiscord | <pri.ivy> that still shows this runtime |
17:11:08 | FromDiscord | <pri.ivy> https://media.discordapp.net/attachments/371759389889003532/1222231374551973928/image.png?ex=661576ab&is=660301ab&hm=1b061ccbd573b221ca1509a595e2b7321670def19e50408fdbc203f4d5f04f69& |
17:11:26 | FromDiscord | <demotomohiro> On windows, both static library (contains library code and doesn't load dll) and import library (loads dll file) have .lib extension. |
17:12:11 | FromDiscord | <demotomohiro> https://internet-of-tomohiro.pages.dev/nim/clibrary.en |
18:17:33 | FromDiscord | <itr_> Been using scoop to install nim so far, but had some issues and read choosenim worked well for nim. Latest release is v0.8.4 from two years ago, anybody know if it's still good for installing nim? / is there something else I should be using instead? Or just install nim manually |
18:24:50 | FromDiscord | <itr_> nvm, looks like people are saying not to use choosenim. Guess i'll just use scoop again and manually add package folder to path or whatever |
18:25:05 | FromDiscord | <itr_> (edit) removed "Guess i'll just use scoop again and manually add package folder to path or whatever" |
18:25:13 | FromDiscord | <nnsee> i mean |
18:25:19 | FromDiscord | <nnsee> choosenim _works_ |
18:25:35 | FromDiscord | <jviega> Not really on MacOS |
18:25:40 | FromDiscord | <jviega> Works fine on Linux |
18:26:08 | FromDiscord | <itr_> linux doesn't have nim in the package manager directly? |
18:26:20 | FromDiscord | <nnsee> they mentioned scoop so i assumed windows? |
18:26:27 | FromDiscord | <itr_> yea, windows lol |
18:26:42 | FromDiscord | <nnsee> In reply to @itr_ "linux doesn't have nim": choosenim has the extra benefit of being able to quickly switch between nim versions |
18:26:52 | FromDiscord | <arnetheduck> In reply to @pri.ivy ".": https://github.com/arnetheduck/nim-sqlite3-abi automatically compiles `sqlite` together with your application so you don't need a DLL - the wrapper does not include a high-level Nim interface at this time however |
18:26:55 | FromDiscord | <nnsee> or quickly build straight from the latest commit |
18:27:18 | FromDiscord | <nnsee> honestly i have no idea what the choosenim situation on windows is |
18:27:21 | FromDiscord | <jviega> choosenim would be decent enough if it simply worked well everywhere 🙂 |
18:27:31 | FromDiscord | <nnsee> it's a bit |
18:27:32 | FromDiscord | <nnsee> eh |
18:27:33 | FromDiscord | <bung8954> suse can install via package manager |
18:27:33 | FromDiscord | <nnsee> yeah |
18:28:14 | FromDiscord | <itr_> I think I might just stick to scoop tbh, I can do that with scoop too. ↵Seemsl ike the only issue is that nim 2.0.2 has the wrong hash so it thinks it's a virus, and that nimble packages aren't added to path (anymore? I feel like it worked before) |
18:28:22 | FromDiscord | <itr_> but I'll just install 2.0.0 isntaed |
18:28:26 | FromDiscord | <itr_> (edit) "isntaed" => "instead" |
18:29:50 | FromDiscord | <itr_> aah, I'm guessing nim2 uses pkgs2 instead of pkgs, and only pkgs have been added or something? |
18:32:10 | Amun-Ra | iirc it's going to use pkg in the first place |
18:32:16 | Amun-Ra | pkgs* |
18:32:41 | FromDiscord | <itr_> I just installed astar with `nimble install astar`, and it's only in the pkg2 folder, not the pkg folder |
18:32:49 | FromDiscord | <itr_> (edit) "pkg2" => "pkgs2" | "pkg" => "pkgs" |
18:33:01 | Amun-Ra | right, nimble 2.x won't install to pkgs |
18:34:04 | FromDiscord | <itr_> adding ` nimblepath="$home/.nimble/pkgs2/"` to my nim.cfg under the other def seems to have done the trick |
19:09:02 | FromDiscord | <Robyn [She/Her]> In reply to @nnsee "choosenim has the extra": Choosenim also fucks up the langserver :P |
19:11:56 | FromDiscord | <Robyn [She/Her]> I should probably fork choosenim, it'd be an easy project |
19:20:48 | FromDiscord | <intervinn> In reply to @chronos.vitaqua "Choosenim also fucks up": about choosenim |
19:20:57 | FromDiscord | <intervinn> could it fuck up packages stuff |
19:21:02 | FromDiscord | <intervinn> because it sees no packages https://media.discordapp.net/attachments/371759389889003532/1222264066374893639/image.png?ex=6615951d&is=6603201d&hm=324230fe94e1c072d587bd41f254964e856e72725fa633536bb1dd8671d67027& |
19:21:45 | FromDiscord | <intervinn> (edit) "it" => "nimsuggest" |
19:21:53 | FromDiscord | <intervinn> (edit) "nimsuggest" => "nimsuggest/langserver" |
19:22:07 | FromDiscord | <Robyn [She/Her]> Import `os` for getEnv functionality |
19:22:12 | FromDiscord | <intervinn> oh lol |
19:22:37 | FromDiscord | <Robyn [She/Her]> Lol |
19:31:21 | FromDiscord | <Phil> Yknow I'd really like to poke at folks that do appdev, wondering what their take is on Elm Architecture |
19:31:48 | * | xet7 joined #nim |
19:32:02 | FromDiscord | <Phil> The longer I do my current job the more I feel like I'm gravitating towards it |
19:32:07 | FromDiscord | <Phil> (edit) "The longer I do my current job the more I feel like I'm gravitating towards it ... " added "in Angular" |
19:33:57 | FromDiscord | <Phil> Where you basically have some kind of central state object and your components/widgets take slices of that state and use that data to create rendered Widgets/Components.↵User interactions or changes just update the state, and state changes trigger rerendering |
19:35:20 | FromDiscord | <Phil> If you actually use ngrx properly in Angular it feels like you almost invariably end up with an Elm Architecture where everything that can change is Observables from the central store whose updates will trigger re-renders of the individual components that use those observables etc. etc. |
19:51:05 | FromDiscord | <ezquerra> sent a code paste, see https://play.nim-lang.org/#pasty=DrfkDeiTbNbr |
19:51:19 | * | ntat quit (Quit: Leaving) |
20:07:06 | FromDiscord | <3nes4932> Teen Porn and Onlyfan Leaks here :peach: :pizza: https://discord.gg/sexgirls @everyone |
20:08:30 | FromDiscord | <Phil> Apologies for the ping everybody, a spammer tried something, I was merely faster at banning him then y'all were at looking at the message |
20:08:57 | FromDiscord | <Elegantbeef> everyone ping should be disabled 😄 |
20:09:10 | FromDiscord | <Phil> I concur |
20:09:26 | FromDiscord | <Elegantbeef> I mean I don't think it's presently enabled |
20:09:44 | FromDiscord | <Phil> I honestly don't know, I just saw it in there |
20:09:54 | FromDiscord | <ta_efimova_19> I'm new here hope I'm welcome |
20:11:19 | FromDiscord | <Phil> In reply to @ta_efimova_19 "I'm new here hope": Heyho, sure! Welcome to the discord channel about the nim programming language.↵There's a couple other rooms/channels as well, for non-programming related chatting you might want to look for "Nim Offtopic". If you're programming for a more specific area (Appdev, Science, gamedev) there are specific channels for that.↵↵The matrix space for that I'll need to grab the link for, one sec |
20:12:01 | FromDiscord | <Elegantbeef> Phil given that they tried to start a matrix DM i'm scared that it's just a spammer |
20:12:55 | FromDiscord | <Phil> They tried to start a matrix DM? |
20:13:04 | FromDiscord | <Elegantbeef> Yea with me |
20:15:34 | FromDiscord | <ta_efimova_19> Just wanna make friends around the world 🌎 that's all, but if it's against the chat room, I'm definitely sorry |
20:16:47 | FromDiscord | <Phil> This server is specifically geared towards programming discussions related to the nim programming language and similar. If that's not your shtick then this might not be the community for you. |
20:17:11 | FromDiscord | <Phil> By server I mean the matrix room you're in and other Nim related channels |
20:20:27 | * | FromDiscord quit (Remote host closed the connection) |
20:20:41 | * | FromDiscord joined #nim |
20:28:56 | FromDiscord | <itr_> Is there any quick/easy way of finding out why a type doesn't match a concept? |
20:30:45 | FromDiscord | <Phil (he/him)> That sounds like a beefy question |
20:30:45 | FromDiscord | <Phil (he/him)> By which I mean Beef, I choose you! (To answer this question) |
20:31:11 | FromDiscord | <itr_> managed to solve my issue since the concept didn't have many constraints, but figured I should learn if there's an easier way than just going through all of them manually |
20:31:38 | FromDiscord | <Elegantbeef> Make a proc that accepts the concept call that it'll print out the entire stack of mismatch reasons |
20:32:51 | FromDiscord | <patitotective> Hi, I was wondering why the character á can't fit into a character literal? In the manual it says a character literal is a single byte, and if I'm not wrong ascii extended fits in a single byte.↵Actually I'm reading a CSV that is encoded in WIN-1252 and accented letters are not being decoded properly, I'm using datamancer `readCsv` proc that states that it expects an ascii text file where one letter = one character |
20:36:00 | FromDiscord | <patitotective> In reply to @patitotective "Hi, I was wondering": Seems like `std/encodings.convert` might work https://nim-lang.org/docs/encodings.html#convert%2Cstring%2Cstring%2Cstring |
20:36:47 | FromDiscord | <itr_> sent a long message, see https://pasty.ee/OMtzwPefPuUM |
20:39:47 | FromDiscord | <itr_> sent a code paste, see https://play.nim-lang.org/#pasty=JXCYEQHkpxic |
20:39:55 | FromDiscord | <itr_> (edit) "https://play.nim-lang.org/#pasty=zZxPYQftiIix" => "https://play.nim-lang.org/#pasty=MXybvucbHwPj" |
20:40:33 | FromDiscord | <Elegantbeef> Uhh |
20:40:37 | FromDiscord | <Elegantbeef> `let grid: Graph`? |
20:40:42 | FromDiscord | <Elegantbeef> Is `Graph` a concept or oop? |
20:41:29 | FromDiscord | <itr_> In reply to @Elegantbeef "Is `Graph` a concept": concept |
20:41:49 | FromDiscord | <itr_> ah, yeah, that was the issue |
20:42:01 | FromDiscord | <itr_> Strange that it let me compile that |
20:42:13 | FromDiscord | <Elegantbeef> Concept are not existential types so don't use them as such |
20:42:37 | FromDiscord | <itr_> Yeah, reason I did it was to figure out which of the 2 concepts were mismatched |
20:43:36 | FromDiscord | <itr_> Strange that the `invalid type: 'Graph' for let` only appeared when it didn't match the type |
20:43:41 | FromDiscord | <itr_> (edit) "Strange that the `invalid type: 'Graph' for let` only appeared when it didn't match the type ... " added "though" |
20:44:59 | FromDiscord | <itr_> that said now that all compile errors are fixed my program is actually working completely correctly on first run |
20:45:04 | FromDiscord | <itr_> I love static checking |
20:48:13 | * | xet7 quit (Ping timeout: 246 seconds) |
20:48:35 | FromDiscord | <whisperecean> I have a problem with nim confutils |
20:48:37 | FromDiscord | <whisperecean> https://play.nim-lang.org/#pasty=ZbNkYEnWZmBc |
20:50:20 | FromDiscord | <whisperecean> (edit) "https://play.nim-lang.org/#pasty=ZbNkYEnWZmBc" => "https://play.nim-lang.org/#pasty=dtlecoAWYkRH" |
20:50:39 | FromDiscord | <whisperecean> When the config file does not exist I get this segmentation fault. But I thought that should have been handled by the InputFile |
20:52:55 | FromDiscord | <whisperecean> I based it off of this https://github.com/waku-org/nwaku/blob/6d0f6d822c85fd8345597bb0ed4332950ef46974/waku/factory/external_config.nim#L704 |
20:55:11 | FromDiscord | <whisperecean> How can I debug this even? |
21:00:55 | * | xet7 joined #nim |
21:04:54 | FromDiscord | <whisperecean> Is that a bug? |
21:18:23 | FromDiscord | <patitotective> Hi, I wanted to know if there was any library that allowed the creation of docx files from Nim code |
21:20:42 | FromDiscord | <Robyn [She/Her]> In reply to @patitotective "Hi, I wanted to": Google doesn't reveal anything, maybe look for a C lib and bind to that? |
21:21:48 | FromDiscord | <Robyn [She/Her]> https://nimble.directory/pkg/foliant @patitotective don't know if it does what you want exactly |
21:21:52 | FromDiscord | <Robyn [She/Her]> Could check the docs? |
21:25:41 | FromDiscord | <flyx> that looks like a wrapper around pandoc.↵(@Robyn [She/Her]) |
21:26:31 | FromDiscord | <Robyn [She/Her]> 🤷♀️ |
21:27:56 | FromDiscord | <patitotective> In reply to @chronos.vitaqua "Google doesn't reveal anything,": I think I'll have to use a library from another language as you say, foliant doesn't seem to be able to change fonts or any details |
21:30:54 | FromDiscord | <Elegantbeef> Cmon it's only xml how hard could it be 😛 |
21:34:28 | FromDiscord | <Robyn [She/Her]> In reply to @patitotective "I think I'll have": Unfortunate |
21:34:33 | FromDiscord | <Robyn [She/Her]> In reply to @Elegantbeef "Cmon it's only xml": Microsoft touched it |
21:49:13 | * | advesperacit quit () |
22:37:17 | * | krux02_ joined #nim |
22:39:41 | * | krux02 quit (Ping timeout: 240 seconds) |
23:01:08 | * | jmdaemon joined #nim |