00:10:45 | * | endragor joined #nim |
00:15:27 | * | endragor quit (Ping timeout: 265 seconds) |
00:38:09 | disruptek | sheep are fine but goats are a little tight. |
00:38:24 | FromDiscord | <Rika> :ThonkDumb: |
00:38:47 | disruptek | rika: |
00:39:10 | * | JustASlacker quit (Ping timeout: 246 seconds) |
00:41:06 | disruptek | do we need to talk about this? |
00:43:03 | FromDiscord | <Rika> no |
00:43:12 | disruptek | okay. |
00:43:24 | disruptek | please don't let it happen again. |
00:47:05 | disruptek | no. |
00:47:11 | Yardanico | yes |
00:48:48 | disruptek | rika: i won't suffer this attitude. |
00:49:23 | FromDiscord | <Rika> lol |
00:49:23 | * | gogoprog quit (Read error: Connection reset by peer) |
00:50:56 | * | gogoprog joined #nim |
00:56:45 | * | waleee-cl quit (Quit: Connection closed for inactivity) |
01:15:49 | * | endragor joined #nim |
01:57:52 | * | apahl quit (Ping timeout: 260 seconds) |
01:59:27 | * | apahl joined #nim |
02:19:16 | * | endragor quit (Ping timeout: 246 seconds) |
02:22:45 | * | theelous3 quit (Read error: Connection reset by peer) |
02:26:41 | bung | is https://play.nim-lang.org/ server down ? |
02:27:36 | leorize | seems like it |
02:27:45 | leorize | dom96: can you take a look at that? |
02:38:42 | * | muffindrake quit (Ping timeout: 260 seconds) |
02:40:52 | * | endragor joined #nim |
02:40:55 | * | muffindrake joined #nim |
02:55:23 | FromDiscord | <Yardanico> It's been down for ~10 hours |
02:55:31 | FromDiscord | <Yardanico> Or more |
02:56:57 | * | bunbunbunbunny joined #nim |
03:04:49 | * | arecacea1 quit (Remote host closed the connection) |
03:05:58 | * | arecacea1 joined #nim |
03:29:28 | * | endragor quit (Quit: Leaving...) |
03:31:11 | * | endragor joined #nim |
03:38:49 | * | zen9 joined #nim |
03:45:39 | zen9 | hello |
03:45:55 | leorize | hi |
03:46:13 | zen9 | can you clear my doubt ? |
03:46:22 | leorize | it depends |
03:46:27 | zen9 | Kk |
03:46:37 | leorize | so what's your question? |
03:47:13 | zen9 | can nim be used for android development ? |
03:47:50 | leorize | yes, but the tooling is premature and not many have written guides on this |
03:48:14 | zen9 | so what is the main(interesting) use of nim ? |
03:49:04 | * | vicfred joined #nim |
03:50:44 | leorize | it's a system programming language that gears torwards general usage, so... you can use nim for basically anything |
03:50:46 | * | zen9 quit (Remote host closed the connection) |
03:50:59 | FromDiscord | <Elegant Beef> As a C/C++ replacement with a more expressive and debately cleaner syntax |
03:51:02 | leorize | oh lol they're gone :p |
03:51:26 | FromDiscord | <Elegant Beef> I dont understand people |
03:52:08 | bung | https://travis-ci.org/github/tulayang/asyncmysql/jobs/717469192 |
03:52:31 | bung | anyone experience with osx travis-ci mysql |
03:53:02 | bung | it alwasy stuck with `cd Nim` dont know why |
03:53:13 | leorize | it's travis, it doesn't work |
03:53:32 | leorize | which is probably why the author left it in "Allowed failures" |
03:54:47 | bung | so it will not work on travis-ci, I may choose github ci |
03:57:01 | FromDiscord | <flywind> maybe change config because its config may be too old. |
03:57:56 | FromDiscord | <flywind> https://travis-ci.org/github/planety/prologue/jobs/717252477/config |
04:00:23 | leorize | no matter how old the config is, it's kinda weird that it crashes on a `cd` |
04:02:53 | bung | I checked RMySQL package's travis-ci it just works.. |
04:05:33 | bung | let me commented `fast_finish: true` |
04:05:58 | leorize | fast finish just means that the task will stop executing once something fails |
04:06:01 | * | supakeen quit (Quit: WeeChat 2.8) |
04:06:12 | leorize | (something that's not "allowed to fail" fail) |
04:06:37 | * | supakeen joined #nim |
04:07:15 | * | rockcavera quit (Remote host closed the connection) |
04:10:47 | bung | hmm, ok let me try build nim another way |
04:11:19 | leorize | you can just switch to github ci, someone made a workflow that builds nim |
04:14:26 | bung | haven't seen example with mysql on osx, I'll check it later |
04:15:12 | leorize | there isn't any easy way to get mariadb/mysql working on github actions afaict |
04:17:38 | bung | :( |
04:18:29 | FromDiscord | <flywind> `testament all` will test something like `tests/*/t_a.nim` and `tests/t_a.nim` won't be tested. `testament cat .` will test anything with `t` prefix in the tests directory. Which way is better? |
04:19:22 | leorize | give tests proper categories |
04:19:31 | leorize | alternatively you can use status' testutils |
04:19:35 | leorize | !repo testutils |
04:19:36 | disbot | https://github.com/status-im/nim-testutils -- 9nim-testutils: 11testrunner et al 15 8⭐ 3🍴 7& 1 more... |
04:19:54 | * | endragor quit (Remote host closed the connection) |
04:20:29 | * | endragor joined #nim |
04:22:03 | Yardanico | og nice |
04:22:05 | Yardanico | oh nice* |
04:22:09 | Yardanico | they have fuzzer support |
04:22:10 | Yardanico | that's really cool |
04:22:33 | FromDiscord | <flywind> Thanks. I use `testament` heavily. It works fine and very fast. |
04:24:45 | * | endragor quit (Ping timeout: 240 seconds) |
04:35:28 | * | zen9 joined #nim |
04:35:56 | * | zen9 quit (Remote host closed the connection) |
04:38:15 | * | endragor joined #nim |
04:59:00 | * | arecacea1 quit (Remote host closed the connection) |
04:59:01 | * | gogoprog quit (Read error: Connection reset by peer) |
04:59:24 | * | arecacea1 joined #nim |
05:00:07 | * | gogoprog joined #nim |
05:26:48 | * | Jesin quit (Quit: Leaving) |
05:55:48 | * | arecacea1 quit (Remote host closed the connection) |
05:56:00 | * | solitudesf joined #nim |
05:56:32 | * | vicfred quit (Quit: Leaving) |
05:57:05 | * | arecacea1 joined #nim |
05:59:22 | * | apahl quit (Ping timeout: 260 seconds) |
06:00:13 | * | apahl joined #nim |
06:08:40 | * | vegai joined #nim |
06:11:54 | * | vqrs quit (Ping timeout: 244 seconds) |
06:13:08 | * | vqrs joined #nim |
06:43:52 | ForumUpdaterBot | New thread by Mollusk: Tux - A good first project for learning Nim (or any language), see https://forum.nim-lang.org/t/6674 |
06:47:37 | * | bunbunbunbunny quit (Ping timeout: 264 seconds) |
06:48:24 | FromDiscord | <iWonderAboutTuatara> hi everyone |
06:48:52 | FromDiscord | <iWonderAboutTuatara> I can't parse this error |
06:48:57 | FromDiscord | <iWonderAboutTuatara> sent a long message, see http://ix.io/2u24 |
06:49:09 | FromDiscord | <iWonderAboutTuatara> throws both:↵d:\Scripts\Nim\necklaceCounting.nim(14, 22) template/generic instantiation of `generateAlphabet` from here↵d:\Scripts\Nim\necklaceCounting.nim(2, 23) Error: no generic parameters allowed for seq |
06:49:25 | FromDiscord | <iWonderAboutTuatara> can someone help me understand whats happening? |
06:51:23 | silvernode[m] | I think it might have to do with how you are creating your seq |
06:51:44 | silvernode[m] | I' not expert yet but that seems to be what the error is complaining about. |
06:52:04 | silvernode[m] | hopefully that gives you a useful clue |
06:52:57 | silvernode[m] | If I didn't have to go to work right now I'd try helping more, but I am sure someone else will show up and help some more. ttyl |
06:53:44 | * | PMunch joined #nim |
07:02:05 | FromDiscord | <iWonderAboutTuatara> I don't know how to create an seq lol |
07:02:17 | FromDiscord | <iWonderAboutTuatara> I've tried everything I could think of |
07:02:40 | FromDiscord | <iWonderAboutTuatara> ie without the =, with the =, without the type specification, etc |
07:09:00 | FromDiscord | <pointystick> I pasted your code into a new .nim file and it compiled without any warnings or errors. Is this exactly the code you're running or have you tweaked it for Discord? |
07:09:53 | FromDiscord | <Yardanico> your code is incorrect |
07:10:05 | FromDiscord | <Yardanico> @iWonderAboutTuatara you didn't specify a return type properly |
07:10:39 | FromDiscord | <Yardanico> but even then there's a few problems |
07:11:22 | FromDiscord | <InventorMatt> sent a code paste, see https://play.nim-lang.org/#ix=2u2c |
07:11:37 | FromDiscord | <InventorMatt> that should solve your problem @iWonderAboutTuatara |
07:12:06 | * | JustASlacker joined #nim |
07:12:06 | FromDiscord | <Yardanico> oh wait @iWonderAboutTuatara maybe you just want to make a random string or something? |
07:12:41 | PMunch | Hmm, the playground is still not up? |
07:12:44 | Yardanico | no |
07:12:57 | Yardanico | it's been down for like 16 hours now :( |
07:13:05 | PMunch | Yeah I know.. |
07:13:21 | FromDiscord | <iWonderAboutTuatara> @pointystick you may have missed the very last line |
07:13:29 | PMunch | It had run out of disk space, so I did some cleanup of the docker cache, installed some updates, and rebooted the machine |
07:13:33 | PMunch | But it never came back up |
07:13:33 | FromDiscord | <pointystick> nah, I just need to add a 'when isMainModule:' |
07:13:39 | FromDiscord | <pointystick> silly oversight on my part |
07:13:46 | FromDiscord | <Yardanico> @iWonderAboutTuatara what do you want to do exactly with the code? |
07:13:49 | PMunch | And only dom96 has access to do anything with it when it's in this state.. |
07:13:50 | FromDiscord | <Yardanico> generate a k number of alphabets? |
07:13:56 | PMunch | Well I think he's the only one |
07:14:01 | FromDiscord | <Yardanico> or generate a part of the alphabet? |
07:14:12 | Yardanico | @dom96 then |
07:14:25 | FromDiscord | <iWonderAboutTuatara> @InventorMatt thanks for that, does result have a type based on what the peoc returns? |
07:14:34 | FromDiscord | <Yardanico> result is an implicit variable |
07:14:43 | FromDiscord | <Yardanico> which is the return value of the proc |
07:14:48 | FromDiscord | <Yardanico> it's always there for all procs which return a value |
07:14:56 | FromDiscord | <iWonderAboutTuatara> Yeah, I didn't really think that through |
07:15:35 | FromDiscord | <Yardanico> basically errors in your code were: seq instead of string, using strings for a range (when you want from letter a to z - you need 'a' .. 'z') |
07:15:41 | FromDiscord | <iWonderAboutTuatara> can people on the IRC see the discord messages? |
07:15:47 | FromDiscord | <Yardanico> yes |
07:15:53 | FromDiscord | <iWonderAboutTuatara> ah ok |
07:16:12 | FromDiscord | <Yardanico> sent a code paste, see https://play.nim-lang.org/#ix=2u2e |
07:16:35 | FromDiscord | <Yardanico> but there's a more efficient way - use constants |
07:16:45 | FromDiscord | <Yardanico> so you compute at compile time, not at runtime |
07:17:35 | FromDiscord | <Elegant Beef> sent a code paste, see https://play.nim-lang.org/#ix=2u2f |
07:17:54 | FromDiscord | <Yardanico> > toSeq 😛 |
07:18:05 | FromDiscord | <Elegant Beef> wut? |
07:19:40 | FromDiscord | <iWonderAboutTuatara> ok i got a new, weirder error |
07:19:43 | FromDiscord | <iWonderAboutTuatara> sent a long message, see http://ix.io/2u2g |
07:19:50 | FromDiscord | <Yardanico> yes |
07:19:54 | FromDiscord | <Yardanico> that's because you should use chars |
07:19:57 | FromDiscord | <Yardanico> not strings |
07:19:57 | FromDiscord | <iWonderAboutTuatara> using |
07:20:02 | FromDiscord | <iWonderAboutTuatara> sent a code paste, see https://play.nim-lang.org/#ix=2u2h |
07:20:03 | FromDiscord | <Yardanico> that's incorrect |
07:20:12 | FromDiscord | <Yardanico> "a" and "z" here are strings, not chars |
07:20:14 | FromDiscord | <iWonderAboutTuatara> oh is `` chars? |
07:20:17 | FromDiscord | <Yardanico> you should do 'a' .. 'z' |
07:20:26 | FromDiscord | <Yardanico> not the backquote, just a normal single quote |
07:20:42 | FromDiscord | <iWonderAboutTuatara> '' |
07:20:50 | FromDiscord | <Yardanico> also can you tell what would you use generateAlphabet for? |
07:20:51 | FromDiscord | <Elegant Beef> Yea as is standard in most languages single quote is char, double string, and backquote in nim is for symbol stropping |
07:20:57 | FromDiscord | <Yardanico> it seems strange that you use seq[char] and stuff |
07:21:17 | FromDiscord | <iWonderAboutTuatara> theoretically if I change it to : seq[string] that should work? |
07:21:29 | FromDiscord | <iWonderAboutTuatara> I need to make a seq of the first x alphabets in the alphabet |
07:21:35 | FromDiscord | <Yardanico> letters? |
07:21:39 | FromDiscord | <Yardanico> no, it won't work |
07:21:53 | FromDiscord | <Yardanico> because there's no .. for two string arguments |
07:21:57 | FromDiscord | <Yardanico> not sure what would that do |
07:22:14 | FromDiscord | <Elegant Beef> it'd be silly and use a lot of ram |
07:22:21 | FromDiscord | <iWonderAboutTuatara> oh right |
07:22:26 | FromDiscord | <iWonderAboutTuatara> that would not make sense yeah |
07:22:33 | FromDiscord | <Yardanico> @iWonderAboutTuatara you can do all that at compile-time |
07:22:45 | FromDiscord | <Yardanico> except if your number is determined at runtime |
07:22:58 | FromDiscord | <iWonderAboutTuatara> ideally its userinput |
07:23:04 | FromDiscord | <iWonderAboutTuatara> but it doesn't necessarily have to be |
07:23:12 | FromDiscord | <iWonderAboutTuatara> I just want to use procs to get a better feel for nim |
07:23:19 | FromDiscord | <iWonderAboutTuatara> how would I do this in compile time? |
07:23:25 | FromDiscord | <Yardanico> so I still didn't understand |
07:23:32 | FromDiscord | <Yardanico> you want to generate the full alphabet X times? |
07:25:18 | FromDiscord | <iWonderAboutTuatara> that is what would happen because of a logic error |
07:25:29 | FromDiscord | <iWonderAboutTuatara> but the goal is generate first x letters of the alphabet |
07:25:48 | Yardanico | so max number can be the full alphabet? |
07:25:52 | * | Vladar joined #nim |
07:26:00 | FromDiscord | <iWonderAboutTuatara> this is probably doable at compile time by defining an array with chars a to z |
07:26:02 | FromDiscord | <iWonderAboutTuatara> yeah |
07:27:31 | FromDiscord | <Elegant Beef> yea this can then just be `alphabet[0..input]` |
07:27:40 | FromDiscord | <Elegant Beef> after my previous code of course |
07:28:02 | FromDiscord | <iWonderAboutTuatara> what does that do? |
07:28:05 | FromDiscord | <Elegant Beef> Guys crack the whip so dom fixes the plaayground! |
07:28:10 | Yardanico | that's a slice |
07:28:16 | FromDiscord | <iWonderAboutTuatara> yes the playground was down yesterday as well |
07:28:18 | FromDiscord | <iWonderAboutTuatara> not sure whats going on |
07:28:28 | FromDiscord | <iWonderAboutTuatara> slicing what? |
07:28:33 | FromDiscord | <iWonderAboutTuatara> seems to be shorthand for something |
07:28:44 | FromDiscord | <Elegant Beef> Yea im slicing the constant alphabet char sequence i previously generated |
07:28:49 | FromDiscord | <iWonderAboutTuatara> (edit) 'something' => 'something,' |
07:28:51 | Yardanico | @iWonderAboutTuatara slicing a string |
07:28:59 | Yardanico | if you come from python, slices are almost the same, but they're inclusive |
07:29:01 | FromDiscord | <iWonderAboutTuatara> oh its dependant on that |
07:29:05 | Yardanico | well it doesn't have to be a string |
07:29:10 | Yardanico | you can slice arrays, sequences |
07:29:15 | FromDiscord | <iWonderAboutTuatara> I learned a bit about slicing when i used rust for a while |
07:29:15 | Yardanico | or make a slice operator for your own type |
07:29:25 | FromDiscord | <iWonderAboutTuatara> but I mostly come from python yea |
07:29:35 | Yardanico | well python has slices, they're used a lot |
07:29:43 | FromDiscord | <iWonderAboutTuatara> yeah |
07:30:36 | FromDiscord | <iWonderAboutTuatara> what does alphabet in ```alphabet[0..input]``` mean? |
07:30:53 | FromDiscord | <iWonderAboutTuatara> wait you can tag me from IRC? |
07:30:55 | FromDiscord | <iWonderAboutTuatara> huh |
07:31:13 | FromDiscord | <iWonderAboutTuatara> the bridge bot is super well implemented i guess |
07:31:43 | FromDiscord | <iWonderAboutTuatara> semes to be a variable which i would have defined elsewhere |
07:31:55 | FromDiscord | <Elegant Beef> alphabet in that case is my previous code which says it's a sequence of chars which is `('a'..'z').toSeq` |
07:31:57 | FromDiscord | <Yardanico> irc bridge is https://github.com/Yardanico/ircord/ 🙂 |
07:32:14 | * | krux02 joined #nim |
07:32:15 | FromDiscord | <Yardanico> and it's specifically made for nim channels |
07:32:25 | FromDiscord | <iWonderAboutTuatara> oh I did not see your previous code |
07:32:30 | FromDiscord | <iWonderAboutTuatara> that makes much more sense |
07:33:12 | PMunch | @Elegant Beef, I'm afraid he might be on vacation :( |
07:33:18 | FromDiscord | <Elegant Beef> Damn |
07:33:23 | FromDiscord | <Elegant Beef> Going to need a bigger whip |
07:34:48 | PMunch | A trans-continental whip |
07:35:10 | PMunch | Well, I don't know where he is on vacation :P Probably not too far away because of Corona.. |
07:35:40 | FromDiscord | <Elegant Beef> Well i'll donate for you to go do it, the UK is bad enough they probably will let you in |
07:36:03 | PMunch | Do what? Track down dom? |
07:36:10 | FromDiscord | <Elegant Beef> It's a small island how hard can it be |
07:37:54 | FromDiscord | <iWonderAboutTuatara> how do you get the number of elements in a sequence? |
07:37:55 | FromDiscord | <Elegant Beef> You're doing a rewrite of your calculator thing right? |
07:38:00 | FromDiscord | <Elegant Beef> .len |
07:38:14 | PMunch | Yup |
07:38:22 | FromDiscord | <iWonderAboutTuatara> thanks |
07:38:42 | FromDiscord | <iWonderAboutTuatara> I am yeah |
07:38:42 | FromDiscord | <Elegant Beef> So for your custom calculators are you going to use nimscript to allow easy expansion without recompilation? |
07:39:09 | FromDiscord | <Yardanico> @iWonderAboutTuatara you might like https://narimiran.github.io/nim-basics/ |
07:39:20 | PMunch | Heh, I wasn't planning on it |
07:39:30 | PMunch | But my calculator is already programmable in it's own language |
07:39:56 | FromDiscord | <Elegant Beef> Ah, i forgot about that part |
07:41:55 | FromDiscord | <iWonderAboutTuatara> I've been using the official tutorial and nim by example |
07:42:11 | FromDiscord | <iWonderAboutTuatara> I think the main issue im running into is that I don't really understand what the compiler is telling me yet |
07:42:18 | FromDiscord | <iWonderAboutTuatara> which as i get more used to nim, should go away |
07:42:31 | FromDiscord | <iWonderAboutTuatara> but I'll keep that link in mind as a resource for sure @Yardanico |
07:44:09 | PMunch | Please share if you find any error messages that seem cryptic |
07:44:14 | PMunch | Might be an easy fix :) |
07:45:03 | FromDiscord | <Elegant Beef> The `buildMyProduct` proc just doesnt work, says something about an undeclared identified |
07:45:13 | FromDiscord | <Elegant Beef> (edit) 'identified' => 'identifier' |
07:45:23 | FromDiscord | <iWonderAboutTuatara> they're not super cryptic, they're just not worded the way I'm used to |
07:45:43 | FromDiscord | <iWonderAboutTuatara> so I misunderstand them |
07:46:03 | FromDiscord | <iWonderAboutTuatara> just one of the things you have to get used to when you learn a new language it seems, but I will be sure to let you know if it happens |
07:46:21 | FromDiscord | <iWonderAboutTuatara> do we use and keyword in nim instead of &&? |
07:46:26 | Yardanico | yes |
07:46:27 | FromDiscord | <Elegant Beef> yes |
07:46:29 | FromDiscord | <iWonderAboutTuatara> seems like && is a string concatenator? |
07:46:32 | PMunch | Yeah, getting used to a languages error messages is just one of those things |
07:46:39 | Yardanico | @iWonder no |
07:46:40 | Yardanico | & is |
07:46:45 | FromDiscord | <iWonderAboutTuatara> oh I see |
07:46:48 | FromDiscord | <iWonderAboutTuatara> is && anything? |
07:46:52 | Yardanico | no |
07:46:56 | FromDiscord | <Elegant Beef> It *could* be though |
07:46:56 | PMunch | Yardanico, does that actually work to highlight him? |
07:46:57 | Yardanico | but you can always make it an operator :) |
07:47:02 | FromDiscord | <Elegant Beef> We can make our own opeprators! |
07:47:05 | Yardanico | PMunch: yes |
07:47:06 | FromDiscord | <iWonderAboutTuatara> also I assume we use or and not right, instead of ||(bleh) and ! |
07:47:09 | Yardanico | yes |
07:47:23 | FromDiscord | <iWonderAboutTuatara> thanks |
07:47:33 | FromDiscord | <Elegant Beef> Yea but if you're a dumb dumb like me it posts my name then `beef` since i have a space in my name |
07:48:02 | PMunch | Yardanico, neat! |
07:48:13 | FromDiscord | <Elegant Beef> `!=` is shorthand for `not a == b` though |
07:48:16 | PMunch | I thought you had to type the entire nick! |
07:48:25 | Yardanico | well sometimes it can have bad effects, but yes :P |
07:48:27 | Yardanico | startsWith |
07:48:32 | PMunch | @Elegant, but you still get tagged? |
07:48:44 | FromDiscord | <Elegant Beef> Yea |
07:48:51 | FromDiscord | <Elegant Beef> Assuming you just did Elegant? |
07:48:56 | PMunch | Yardanico, what does it do if you have multiple people starting with the same thing? |
07:49:05 | Yardanico | it'll ping the first one it finds :D |
07:49:06 | PMunch | Yup, that's exactly what I did |
07:49:21 | PMunch | Yardanico, and they're sorted how? |
07:49:23 | FromDiscord | <Elegant Beef> Yea i could tell it didnt have beef after it 😄 |
07:49:35 | PMunch | Alphabetically, or in talking order like the tab-completion of nicks on IRC |
07:49:43 | PMunch | (at least in my client) |
07:50:06 | Yardanico | I don't exactly know about sorting |
07:50:13 | Yardanico | it comes from discord and then Dimscord does some stuff |
07:50:18 | Yardanico | and I just iterate over dimscord's cache |
07:50:27 | PMunch | Oh, so it just converts "Elegant" to a tag, so if someone does <at>Elegant Beef it will turn Elegant into a tag and leave Beef? |
07:50:40 | PMunch | Yardanico, I see |
07:50:47 | PMunch | So it's "undefined" then :P |
07:50:48 | Yardanico | yes, it just captures the string after @ before the first space |
07:50:56 | Yardanico | because otherwise it'd be much harder to properly do |
07:51:10 | FromDiscord | <Elegant Beef> Yard just likes making me see Elegant Beef Beef |
07:52:03 | FromDiscord | <Elegant Beef> In his defence he has told me to put an underscore in my name, and my response was to put an underscore in his suggestion |
07:53:28 | FromDiscord | <Varriount> Does it work in the other direction? |
07:53:36 | Yardanico | no |
07:53:44 | Yardanico | only from the start of the nickname |
07:53:52 | PMunch | Sent dom an e-mail about the playground server, in case he's on vacation and not checking IRC :P |
07:54:08 | FromDiscord | <Elegant Beef> Who would do such a thing, they'd miss me terribly |
07:54:10 | FromDiscord | <Varriount> No, I mean, from Discord to IRC |
07:54:17 | FromDiscord | <Elegant Beef> I mean IRC has it's own ping rules |
07:54:19 | PMunch | Don't think so |
07:54:24 | Yardanico | well you seem to be rusty @Varriount :P |
07:54:33 | Yardanico | have you not been to IRC in a few last years? :P |
07:54:38 | Yardanico | IRC doesn't have server-side pings |
07:54:47 | Yardanico | it's the clients which do notifications |
07:54:48 | PMunch | IRC itself doesn't have a concept of pinging IIRC. It's just clients highlight your name if it appears anywhere in the text |
07:54:57 | FromDiscord | <Elegant Beef> Well you can also highlight keywords |
07:55:02 | FromDiscord | <Varriount> I'm aware of that, but clients default to highlighting nicknames |
07:55:07 | Yardanico | yes |
07:55:14 | FromDiscord | <Varriount> Most clients, anyway |
07:55:20 | Yardanico | well, so what's the problem? |
07:55:24 | PMunch | I guess the bot could try do expand nicknames |
07:55:36 | PMunch | But that could go horribly wrong :P |
07:55:48 | Yardanico | on discord people have the quote thing |
07:55:56 | PMunch | If I was out in my yardanico watering the flowers for example |
07:55:59 | FromDiscord | <Varriount> Quote thing? |
07:56:06 | FromDiscord | <Yardanico> > Quote thing?↵@Varriount quote |
07:56:09 | FromDiscord | <Elegant Beef> Dont call what discord does quoting |
07:56:18 | FromDiscord | <Elegant Beef> That's fucking atrocious is what that is |
07:56:26 | Yardanico | well but it's still there and some people use it |
07:56:36 | FromDiscord | <Elegant Beef> I use it but i refuse to acknowledge it as quoting |
07:56:40 | FromDiscord | <Varriount> PMunch: Just expand on '@' signs or something |
07:56:46 | FromDiscord | <lqdev> it's really primitive |
07:56:52 | Yardanico | @Varriount I doubt anyone would use that |
07:56:57 | Yardanico | discord people are usually much lazier :P |
07:57:04 | Yardanico | in typing nicknames |
07:57:09 | FromDiscord | <lqdev> like they couldn't implement proper message metadata so they just used what they had at hand |
07:57:12 | FromDiscord | <Elegant Beef> Element has better quote rendering |
07:57:21 | FromDiscord | <Varriount> I would. It's annoying having to manually type out all your nicknames on my phone |
07:57:40 | FromDiscord | <Elegant Beef> Just call everyone a cunt, problem solved |
07:58:14 | FromDiscord | <Elegant Beef> Either everyone will read what you type, or everyone will ignore what you type, you got a 50:50 split on hitting the jackpot |
07:58:59 | PMunch | Haha, great solution :P |
08:00:31 | * | sky73 joined #nim |
08:01:38 | sky73 | Error: argument for command line option expected: '-d' <- i am getting this error while compiling if anyone knows how to fix then please help me out! |
08:01:51 | Yardanico | what's your full command? |
08:02:05 | Yardanico | "-d" should be used together with the symbol you want to define |
08:02:06 | sky73 | nim compile -d:ssl --run discordBot.nim |
08:02:44 | Yardanico | it should work just fine |
08:02:50 | Yardanico | nim c -d:ssl -r discordBot.nim |
08:02:57 | Yardanico | or nim compile --define:ssl --run discordBot.nim |
08:02:59 | Yardanico | or your command |
08:03:08 | Yardanico | maybe you have some invalid switches in your config files? |
08:03:49 | sky73 | sorry but i am new here just started learning nim yesterday so idk about that config file but thanks for help! |
08:04:01 | Yardanico | well did you create any .cfg or .nims files yourself? |
08:04:06 | sky73 | no |
08:04:10 | Yardanico | then it should work |
08:04:13 | Yardanico | what's your nim version? |
08:04:15 | Yardanico | nim -v |
08:04:30 | sky73 | yes i executed this command! |
08:04:44 | sky73 | Nim Compiler Version 1.2.6 [Windows: amd64] |
08:04:52 | Yardanico | that should be fine |
08:07:05 | sky73 | thanks |
08:07:10 | sky73 | now its working :) |
08:07:55 | FromDiscord | <Elegant Beef> just cause i like typing less `nim c -d:ssl -r discordBot.nim` does the exact same 😄 |
08:08:10 | FromDiscord | <Elegant Beef> *can even drop the .nim* afaik |
08:08:15 | Yardanico | yes |
08:28:30 | * | Trustable joined #nim |
08:42:33 | sky73 | where i put all these new Compiler dependencies (dlls.zip,mingw64)? |
08:43:05 | * | Guest32962 quit (Ping timeout: 240 seconds) |
08:43:32 | PMunch | dlls.zip needs to be unpacked, you probably don't need them for most things. But some parts of the standard library requires them and in that case you can pick the ones you need and ship with your application. |
08:43:47 | PMunch | mingw just needs to be installed somewhere Nim can call it |
08:44:35 | sky73 | ok thanks1 |
08:51:39 | PMunch | Did someone mess up when they wrote this error message? Error: unhandled exception: 'num' is not accessible using discriminant 'kind' of type 'Element' [FieldDefect] |
08:51:52 | Yardanico | ? |
08:51:58 | PMunch | I have a feeling that the 'kind' part is supposed to be the value it got |
08:52:07 | PMunch | Instead of the name of the field |
08:52:37 | PMunch | Like I would expect the error to be something like: Error: unhandled exception: 'num' is not accessible using discriminant 'String' of type 'Element' [FieldDefect] |
08:56:26 | * | Vladar quit (Remote host closed the connection) |
08:58:13 | * | hnOsmium0001 quit (Quit: Connection closed for inactivity) |
09:00:30 | * | Vladar joined #nim |
09:10:19 | FromDiscord | <--HA--> How can I check if a type is one of a number of possible types? Instead of `when v isnot int and v isnot string and v is not float:` I'd like something more like `when v isnot [int, string, float]:` |
09:12:53 | PMunch | when v notin [int, string, float]? |
09:13:37 | FromDiscord | <lqdev> i think it'd be `when typeof(v) notin [int, string, float]` |
09:14:12 | PMunch | Hmm, neither worked.. |
09:14:37 | sky73 | i download dlls.zip added dlls files path where nimble.exe exits but nothing working for me still getting this error : (libcrypto-1_1-x64|libeay64).dll |
09:14:44 | PMunch | typeof returns "type byte" but the array is of type "typedesc" |
09:14:48 | FromDiscord | <flywind> sent a code paste, see https://play.nim-lang.org/#ix=2u2C |
09:15:06 | PMunch | sky73, those are loaded dynamically by your program, not the compiler |
09:15:14 | PMunch | So you need to place them somewhere the program can reach them |
09:15:19 | PMunch | e.g. in the same folder |
09:15:48 | sky73 | so i need to add in my workspace/ |
09:16:32 | PMunch | @flywind, even easier: http://ix.io/2u2D/nim |
09:16:54 | PMunch | And @--HA--, this works ^ |
09:17:06 | PMunch | sky73, well you don't have to |
09:17:25 | PMunch | It just has to be in your library path somewhere |
09:17:31 | PMunch | Not quite sure how Windows handles it |
09:17:46 | PMunch | But on Linux you could also set LD_LIBRARY_PATH to point to them |
09:18:17 | sky73 | yeah its same as windown evt variables path |
09:18:19 | FromDiscord | <--HA--> PMunch, perfect! Thank you |
09:26:52 | * | sky73 quit (Remote host closed the connection) |
09:43:00 | ForumUpdaterBot | New thread by ElAfalw: Object destroyed after editing enum property?, see https://forum.nim-lang.org/t/6676 |
09:49:16 | dom96 | PMunch: the droplet didn't start? |
09:58:28 | * | abm joined #nim |
10:03:54 | * | bunbunbunbunny joined #nim |
10:09:13 | * | bunbunbunbunny quit (Ping timeout: 264 seconds) |
10:21:48 | FromDiscord | <Rika> PMunch: "Error: unhandled exception: 'num' is not accessible using discriminant **field** 'kind' of type 'Element' [FieldDefect]" i assume is what it means |
10:37:38 | PMunch | dom96, not sure what happened. My SSH connection attempts after the `restart` command just timed out.. But I see it's back up now :) |
10:38:02 | dom96 | yeah, I couldn't even ping it |
10:38:08 | dom96 | Had to restart in Digital Ocean |
10:38:26 | PMunch | That is strange, I guess something must've borked the reboot |
10:39:04 | PMunch | But I still get a 502 when trying to compile anything, so something is still not quite right.. |
10:40:02 | PMunch | Ah, my purge deleted all the containers, including the tagged versions |
10:40:09 | PMunch | Guess I have to rebuild them all |
11:08:09 | * | dddddd_ joined #nim |
11:09:54 | * | dddddd__ joined #nim |
11:10:13 | * | dddddd quit (Ping timeout: 246 seconds) |
11:12:25 | * | dddddd_ quit (Ping timeout: 240 seconds) |
11:14:31 | * | tsujp quit (Read error: Connection reset by peer) |
11:14:48 | * | tsujp joined #nim |
11:23:45 | * | def- quit (Quit: -) |
11:24:45 | bung | 0.01s$ nimble install -d -y |
11:24:45 | bung | could not import: X509_check_host |
11:24:47 | bung | The command "nimble install -d -y" failed and exited with 1 during . |
11:25:26 | bung | how to handle this ? |
11:30:17 | PMunch | Are you missing OpenSSL or something like that? |
11:31:54 | bung | it's in travis ci , I checked the version `OpenSSL 1.0.1f 6 Jan 2014` |
11:33:48 | PMunch | Might be too old |
11:34:00 | PMunch | I think 1.1 is the newest subversion |
11:38:43 | PMunch | Hmm formatFloat(ffDefault, precision = -1) will output floats without decimals up to a certain size, then it switches to scientific notation. If I do formatFloat(ffDecimal, precision = -1) it seems to ignore the precision bit and prints 6 points after the decimal point.. |
11:41:38 | bung | yeah, old version ubuntu will cause this, but newer version not work well with mariadb :( |
11:45:58 | * | dddddd_ joined #nim |
11:46:46 | * | lritter joined #nim |
11:48:45 | * | dddddd__ quit (Ping timeout: 240 seconds) |
11:50:32 | * | bunbunbunbunny joined #nim |
12:03:30 | * | rockcavera joined #nim |
12:06:01 | * | supakeen quit (Quit: WeeChat 2.8) |
12:06:42 | * | supakeen joined #nim |
12:25:28 | * | JustASlacker quit (Ping timeout: 256 seconds) |
12:31:46 | * | endragor quit (Remote host closed the connection) |
12:39:15 | FromGitter | <ynfle> https://nim-lang.org/docs/macros.html#statements-when-statement Can `when` have `elif`? Is there an equivalent? Or only `else? |
12:43:37 | PMunch | Yes, it can have elif |
12:44:06 | PMunch | It looks a bit weird but it is `when <condition>: body; elif <condition>: body` |
12:46:09 | FromDiscord | <Recruit_main707> welcome back PMunch btw |
12:47:50 | FromGitter | <ynfle> Thanks @PMunch!!! |
12:48:06 | FromGitter | <ynfle> It should be `elwhen` or something like that |
12:48:48 | PMunch | Yeah, it's a bit weird that it's elif, but you get used to it |
12:48:56 | PMunch | @Recruit thanks :) |
12:49:31 | FromDiscord | <--HA--> there isn't a `to_snake_case` in the std lib, is there? |
12:50:45 | PMunch | Don't think so |
12:51:42 | FromGitter | <ynfle> @--HA--, what's the use case? String or Idents? |
13:00:45 | * | endragor joined #nim |
13:01:08 | * | endragor quit (Remote host closed the connection) |
13:01:17 | * | endragor joined #nim |
13:01:20 | * | Trustable quit (Remote host closed the connection) |
13:02:10 | PMunch | Okay, the playground should be completely back up and running now |
13:03:51 | FromDiscord | <--HA--> I'm writing objects into a database and the object keys become column names, but for the db they are supposed to be snake case. It's not so important for now though, so far I control the objects so I just write their keys as I want them in the type definition. |
13:04:26 | FromDiscord | <--HA--> And if I need it I'll write something for snake case. Just thought there might be something since I also saw normalize, although that is a bit different idea. |
13:06:28 | FromDiscord | <--HA--> Can I have a type that allows only a certain integer range like 0 to 100? |
13:07:28 | FromDiscord | <exelotl> @--HA-- yeah! See this thread where someone was asking about it recently :) https://forum.nim-lang.org/t/6664 |
13:09:03 | FromDiscord | <--HA--> Ooh nice, range. I was looking in the wrong place, at enums. Cool, thanks |
13:14:42 | PMunch | Hmm |
13:14:47 | PMunch | !eval echo 1/0 |
13:14:49 | NimBot | inf |
13:14:56 | PMunch | Shouldn't that rather throw an exception? |
13:17:05 | * | gogoprog quit (Read error: Connection reset by peer) |
13:18:18 | * | gogoprog joined #nim |
13:21:45 | * | drewr quit (Quit: brb) |
13:25:41 | * | def- joined #nim |
13:33:29 | * | drewr joined #nim |
13:33:48 | Oddmonger | !eval echo 0/0 |
13:33:51 | NimBot | nan |
13:33:59 | Oddmonger | yay |
13:36:05 | Zevv | !eval echo 0.2 + 1e15 - 1e15 |
13:36:07 | NimBot | 0.25 |
13:36:16 | Zevv | how broken is that! |
13:36:25 | superbia | it's not broken |
13:36:31 | Zevv | it's *sooo* broken |
13:37:07 | Zevv | echo 3 + 1e16 - 1e16 |
13:37:12 | Zevv | !eval echo 3 + 1e16 - 1e16 |
13:37:15 | NimBot | 4.0 |
13:37:47 | Zevv | this nim language must be useless. do you even math |
13:38:32 | Zevv | it would be great if I get these kind of rounding errors when doing my bookkeeping though |
13:38:51 | PMunch | Ouch, those aren't great.. |
13:38:58 | Zevv | given that I would own 1e15 of money |
13:40:03 | FromDiscord | <Recruit_main707> does nimbot run on latests stable version? |
13:52:09 | * | PMunch quit (Quit: Leaving) |
14:05:58 | Zevv | !eval echo system.NimVersion |
14:06:00 | NimBot | 1.2.6 |
14:07:20 | * | bunbunbunbunny quit (Quit: Lost terminal) |
14:15:38 | Zevv | i would like to own 1e15 money tho |
14:16:12 | leorize | specify currency or it can be really small :P |
14:16:31 | Zevv | even zamibian zlotys would be fine with me |
14:26:55 | * | awe00 joined #nim |
14:49:16 | * | superbia quit (Quit: WeeChat 2.9) |
14:57:51 | FromDiscord | <lqdev> @--HA-- there's a nimble package for that: https://github.com/lamartire/anycase |
15:07:49 | FromDiscord | <benash> Is there a way to express a non-empty seq type? Along the same lines as subranges, but restricting the size of the seq. |
15:09:02 | * | superbia joined #nim |
15:12:10 | disruptek | ~concepts |
15:12:10 | disbot | concepts: 11user-defined type classes; documented in the experimental section of the manual: https://nim-lang.org/docs/manual_experimental.html#concepts -- disruptek |
15:12:38 | FromDiscord | <--HA--> thanks @lqdev 👍 |
15:15:48 | * | vicfred joined #nim |
15:17:25 | FromDiscord | <Kiloneie> https://youtu.be/bhH3Y6dTAPI |
15:18:50 | FromDiscord | <Kiloneie> With this video i have changed a bit how i record my videos, typing sections and talking sections are now separate(typing is -10 dB lowered and 400% sped up). |
15:19:14 | FromDiscord | <Kiloneie> Please tell me if you like this, want it more sped up, less, higher volume on the typing section etc. |
15:22:20 | FromDiscord | <lqdev> lookin' good |
15:22:59 | FromDiscord | <Kiloneie> Thanks 😛 |
15:24:47 | FromDiscord | <benash> oh, interesting @disruptek |
15:26:50 | FromDiscord | <Kiloneie> Nintendo is not gonna copyright me for using Mario and Koopa right ? |
15:27:04 | FromDiscord | <Kiloneie> <.<, i heard a lot of stories... |
15:35:01 | FromGitter | <jorjun_twitter> If I wanted to GPIO / SPI with nim using the new linux ioctl calls do I need to rely on a c library for this? |
15:35:40 | FromGitter | <jorjun_twitter> https://www.acmesystems.it/libgpiod |
15:36:13 | * | waleee-cl joined #nim |
15:40:41 | FromDiscord | <Recruit_main707> nim profiler isnt writing anything to the profile_results.txt for some reason |
15:42:18 | FromDiscord | <Kiloneie> https://media.discordapp.net/attachments/371759389889003532/743494647518855168/wut.png |
15:43:48 | FromDiscord | <tomck> does nim have support for custom allocators? (i'm using the normal GC if that matters) |
15:44:14 | FromDiscord | <Recruit_main707> i think so, ye, you will have to deallocate yourself obv though |
15:45:12 | disruptek | yes. |
15:45:51 | disruptek | i mean, you can't suddenly have the default allocator replaced. |
15:45:51 | disruptek | but you can perform your own alloc of whatever. |
15:45:55 | FromDiscord | <tomck> what if i just wanted to allocate a certain type inside a memory arena (like, implement my own heap with malloc/free), but i still wanted to use the nim gc? |
15:46:18 | FromDiscord | <Recruit_main707> you should be fine |
15:46:21 | FromDiscord | <tomck> so, i have a tree node type, can i just get nim to allocate all new instances of that through my own 'alloc/free' functions? |
15:46:24 | FromDiscord | <tomck> (if so, how?) |
15:46:38 | FromDiscord | <tomck> i do still want it to be GCed though |
15:46:39 | FromDiscord | <Recruit_main707> that probably wont work |
15:46:53 | FromDiscord | <tomck> i see, so if i want custom alloc i'll need manual alloc/free? |
15:47:08 | disruptek | sure. |
15:47:20 | disruptek | the language can support scope-based allocators that /do/ replace the default allocator. it's just not implemented yet. |
15:48:39 | FromDiscord | <tomck> not scope based, it's still per-type |
15:49:02 | FromDiscord | <tomck> i just want it to allocate all entities of a certain type close together, since i typically walk the whole tree & tree nodes are small |
15:49:18 | FromDiscord | <tomck> (for good cache performance & fast copying of the whole tree) |
15:49:48 | FromDiscord | <tomck> definitely not possible whilst still using the gc? |
15:50:43 | FromDiscord | <lqdev> using a seq does exactly that |
16:04:04 | disruptek | definitely /is/ possible, as i indicated. |
16:04:07 | disruptek | people do it, and probably someone will chime in to provide an example. |
16:04:22 | disruptek | sorry, my internet is dogshit. |
16:09:27 | leorize | !repo fusion |
16:09:27 | disbot | https://github.com/nim-lang/fusion -- 9fusion: 11Fusion is for now an idea about how to grow Nim's ecosystem without the pain points of more traditional approaches. 15 54⭐ 4🍴 7& 1 more... |
16:09:33 | leorize | checkout fusion.pools |
16:31:29 | * | NimBot joined #nim |
16:33:30 | federico3 | what's the benefit over stdlib? |
16:33:49 | leorize | stdlib staging |
16:33:58 | federico3 | what's the benefit? |
16:34:08 | leorize | staging ground? |
16:34:16 | disruptek | it's more exclusive because fewer people know about it. |
16:34:26 | disruptek | you get to entertain bugs that others only dream of. |
16:34:39 | leorize | things got merged under laxer terms and can be tested before introduction into the stdlib? |
16:35:04 | FromDiscord | <Clyybber> its not what it was originally intended/advertised to be |
16:35:06 | disruptek | it's first and foremost, a terrible idea. the implementation has proven to be even worse. |
16:35:23 | federico3 | leorize: how is it better than a branch? |
16:35:37 | * | Sembei quit (Ping timeout: 264 seconds) |
16:35:40 | * | MyMind joined #nim |
16:36:02 | leorize | it's a nimble package, it can be updated out-of-bound |
16:36:10 | federico3 | https://github.com/nim-lang/RFCs/issues/173 is dead then :( |
16:36:10 | disbot | ➥ Developing Nim's stdlib and a Nim distribution |
16:36:30 | disruptek | fusion is araq's pet. |
16:37:35 | FromDiscord | <Clyybber> it should not be called fusion IMO |
16:37:44 | FromDiscord | <Clyybber> rather, experiments or something like that |
16:37:58 | dom96 | it really shouldn't exist |
16:38:11 | FromDiscord | <Clyybber> and fusion should be the name for the list of packages that get bundled with the installer |
16:38:13 | dom96 | just distribute a list of pinned packages if you really want |
16:38:16 | dom96 | this fusion thing is strange |
16:38:17 | FromDiscord | <Clyybber> yeah |
16:38:36 | FromDiscord | <Clyybber> fusion should just be a preinit .nimble |
16:39:17 | federico3 | Nim still does not solve the problem of having batteries included |
16:39:28 | disruptek | no, it's worse. |
16:39:37 | disruptek | now we are testing software in the distribution. |
16:43:30 | FromDiscord | <Clyybber> IMO on the website there should be two download options, one that comes with a bunch of packages, and one that comes with nothing |
16:43:50 | FromDiscord | <Clyybber> the packages that should come with it could be the ones that the playground already provides |
16:46:17 | * | hnOsmium0001 joined #nim |
16:57:14 | * | superbia1 joined #nim |
16:58:00 | * | s4mu3lbk joined #nim |
16:58:05 | dom96 | IMO we are not at that stage yet |
16:58:18 | dom96 | and I'm skeptical about we ever will be |
16:58:28 | dom96 | Our package manager should simply be good enough to make this unnecessary |
16:59:33 | dom96 | s/about/about whether/ |
17:00:32 | * | superbia quit (Ping timeout: 256 seconds) |
17:00:59 | FromDiscord | <Clyybber> it doesn't hurt to ship a few pkgs with nim by default though |
17:01:06 | disruptek | that's not the problem araq is trying to solve. |
17:01:17 | dom96 | it does hurt |
17:01:28 | FromDiscord | <Clyybber> how so? |
17:01:29 | dom96 | each release takes twice as long |
17:01:36 | FromDiscord | <Clyybber> hmm ok |
17:01:39 | disruptek | he's trying to satisfy those who can only use previously-sanctioned files. |
17:02:12 | FromDiscord | <Clyybber> so fusion is basically an semi-alive version of the graveyard |
17:02:13 | FromDiscord | <Clyybber> :p |
17:10:21 | FromDiscord | <Admin> hi |
17:10:27 | FromDiscord | <Admin> how do i get the users screen size ? |
17:10:33 | FromDiscord | <Admin> (edit) 'screen' => 'display' |
17:12:43 | dom96 | depends on the platform |
17:13:05 | FromDiscord | <Admin> i need for both mac and windows |
17:15:07 | FromDiscord | <lqdev> you may be able to get the display info using GLFW or SDL |
17:15:17 | FromDiscord | <lqdev> it supports many platforms |
17:15:26 | FromDiscord | <lqdev> (edit) 'it supports' => 'they support' |
17:16:07 | dom96 | yep, otherwise you'll need to use the WinAPI and macOS APIs |
17:16:20 | dom96 | don't think we've got any Nim library that offers this functionality yet |
17:16:38 | FromDiscord | <Admin> any documentation url ? |
17:17:32 | FromDiscord | <lqdev> @Admin for GLFW: https://www.glfw.org/docs/latest/monitor_guide.html#monitor_modes↵for SDL: https://wiki.libsdl.org/SDL_GetDisplayMode?highlight=%28%5CbCategoryVideo%5Cb%29%7C%28CategoryEnum%29%7C%28CategoryStruct%29 |
17:17:41 | FromDiscord | <lqdev> there are plenty of wrappers on nimble for both libs |
17:18:02 | FromDiscord | <lqdev> personally i can recommend nimgl or staticglfw for GLFW, and sdl2_nim for SDL2 |
17:18:12 | FromDiscord | <lqdev> GLFW is more lightweight by the way |
17:26:06 | * | gogoprog quit (Read error: Connection reset by peer) |
17:27:32 | * | gogoprog joined #nim |
17:30:20 | FromDiscord | <Admin> @lqdev ok did that but geting an error that i need a pointer |
17:30:25 | FromDiscord | <Admin> and im kinda new to nim so dont understand how to fix |
17:30:36 | FromDiscord | <Admin> sent a code paste, see https://play.nim-lang.org/#ix=2u4x |
17:30:48 | FromDiscord | <Admin> sent a code paste, see https://play.nim-lang.org/#ix=2u4y |
17:30:49 | FromDiscord | <lqdev> `addr w, addr h` |
17:31:19 | disruptek | !repo frosty |
17:31:20 | disbot | https://github.com/disruptek/frosty -- 9frosty: 11marshal native Nim objects via streams, sockets 15 9⭐ 0🍴 |
17:31:23 | disruptek | now supports case objs. |
17:43:13 | FromDiscord | <Clyybber> nice |
17:43:44 | FromDiscord | <kodkuce> anyone know how to fold all in vscode |
17:44:38 | FromDiscord | <kodkuce> what a dumb keybing CTRL+K+0 |
17:46:00 | FromDiscord | <Kiloneie> Can you even fold in vs code? I havent found that yet. |
17:46:33 | * | abm quit (Quit: Leaving) |
17:51:36 | FromDiscord | <kodkuce> yep |
17:52:02 | FromDiscord | <kodkuce> i used mouse to click on > but now i can fold like pro with CTRL+K+0 xD |
17:52:08 | FromDiscord | <kodkuce> need to change this kaybing for sure |
17:53:03 | FromDiscord | <lqdev> damn chord keybinds in vscode are so annoying |
17:53:14 | FromDiscord | <lqdev> vim solves it wayy better |
17:53:23 | FromDiscord | <lqdev> you can release the initial keybind |
17:53:41 | FromDiscord | <lqdev> eg. ctrl+w [release ctrl and w] = |
17:58:27 | * | arecacea1 quit (Remote host closed the connection) |
17:58:56 | * | arecacea1 joined #nim |
18:03:16 | * | bung quit (Ping timeout: 256 seconds) |
18:03:55 | FromDiscord | <Clyybber> that sounds worse to me |
18:04:33 | FromDiscord | <lqdev> it's better |
18:04:38 | FromDiscord | <lqdev> because you don't have to hold ctrl |
18:06:20 | FromDiscord | <Clyybber> so you release ctrl and then within a certain time frame press w? |
18:06:26 | FromDiscord | <Clyybber> or you hold down w and release ctrl? |
18:07:06 | FromDiscord | <lqdev> no |
18:07:09 | FromDiscord | <lqdev> you press ctrl+w |
18:07:12 | FromDiscord | <lqdev> then you press = |
18:07:14 | FromDiscord | <lqdev> no timeframe |
18:07:18 | FromDiscord | <lqdev> it's just how vim works |
18:07:26 | FromDiscord | <lqdev> it adds ctrl+w to a buffer of sorts |
18:07:40 | FromDiscord | <lqdev> and awaits for a sub-command or something like that |
18:07:46 | FromDiscord | <lqdev> not sure about the exact terminology |
18:07:56 | FromDiscord | <Clyybber> oh, I see what you mean, I thought you were referring to ctrl+w itself |
18:08:02 | * | bung joined #nim |
18:08:02 | FromDiscord | <Clyybber> yeah, that makes sense |
18:11:28 | * | rockcavera quit (Remote host closed the connection) |
18:15:47 | * | bung quit (Ping timeout: 240 seconds) |
18:29:53 | * | bung joined #nim |
18:34:01 | * | bung quit (Ping timeout: 246 seconds) |
18:36:38 | * | bung joined #nim |
18:37:49 | * | Trustable joined #nim |
18:41:01 | * | bung quit (Ping timeout: 246 seconds) |
18:46:47 | * | bung joined #nim |
18:49:48 | * | endragor quit (Remote host closed the connection) |
18:51:10 | * | bung quit (Ping timeout: 246 seconds) |
18:51:40 | * | endragor joined #nim |
18:54:51 | * | bung joined #nim |
18:56:52 | shashlick | disruptek: just saw your meow changes - don't need to check in the docs into the main branch |
18:57:02 | * | endragor quit (Ping timeout: 260 seconds) |
18:57:08 | shashlick | just run `nimble docs --publish` and it will update the gh-pages branch |
18:57:44 | shashlick | you need `pip install ghp-import` though |
18:59:37 | * | bung quit (Ping timeout: 264 seconds) |
19:04:09 | * | bung joined #nim |
19:09:28 | FromDiscord | <--HA--> I'm compiling for windows on linux using mingw. On my local pc it works as expected on a ubuntu 18.04 image where I want to setup automatic building the resulting file is missing its .exe extension. Easy to work around of course but I'm wondering why this happens. |
19:10:35 | FromDiscord | <--HA--> Can I pass the -o flag for output filename to the compiler through nimble? |
19:12:50 | * | gogoprog quit (Quit: WeeChat 2.8) |
19:13:13 | * | bung quit (Ping timeout: 246 seconds) |
19:16:57 | Zevv | disruptek: dude your productiveness is making me jealous as hell |
19:17:58 | * | bung joined #nim |
19:22:53 | * | bung quit (Ping timeout: 265 seconds) |
19:25:16 | FromDiscord | <benash> sent a code paste, see https://play.nim-lang.org/#ix=2u52 |
19:25:30 | disruptek | shashlick: eh i'm unlikely to fuck with python just to accomplish what i can do with the compiler. |
19:25:36 | disruptek | Zevv: what did i do? |
19:25:56 | FromDiscord | <benash> sent a code paste, see https://play.nim-lang.org/#ix=2u53 |
19:26:05 | disruptek | i've been watching john oliver for two days straight. |
19:26:33 | disruptek | and i deleted dust. 😣 |
19:26:43 | * | bung joined #nim |
19:27:10 | Zevv | you fixed object variants in frosty |
19:27:17 | FromDiscord | <Clyybber> what was dust? |
19:27:21 | FromDiscord | <Clyybber> a minimizer? |
19:27:28 | disruptek | yeah. i'm starting over on it. |
19:27:41 | Zevv | for you are dust, and to dust you shall return |
19:27:58 | disruptek | object variants had a couple really dump macro bugs. |
19:28:05 | disruptek | i guess i've learned something since i wrote it. |
19:28:12 | disruptek | dumb, too. |
19:28:19 | Zevv | I just use msgpack4nim |
19:28:34 | disruptek | i was using it in golden but... it's not for me. |
19:28:43 | disruptek | apparently, frosty is not for me, either. i don't use it yet. |
19:28:47 | Zevv | haha |
19:28:49 | disruptek | but zedeus says it works. |
19:28:58 | FromDiscord | <XxDiCaprioxX> How do I use choosenim? I installed and ran the bat. How do I place the nimble bin in the folder it should be? |
19:29:03 | Zevv | I was checking out frosty to see if I can make something channelish with it |
19:29:24 | disruptek | you don't want frosty for that. |
19:29:29 | disruptek | our channels are going to be zero-copy. |
19:30:03 | disruptek | frosty's goal is 1-copy, ie. to the write or from the read. |
19:30:27 | Zevv | sure; but not sure of zero-copy is always feasible |
19:30:39 | shashlick | disruptek: you just have to type two commands |
19:30:44 | Zevv | if there are real threads under the hood |
19:30:46 | disruptek | that's too many. |
19:30:53 | FromDiscord | <Clyybber> either way, frosty is serializing, why would you serialize something from in memory to in memory? |
19:30:55 | disruptek | Zevv: it is, that's the whole point of what we're doing. |
19:31:02 | disruptek | lol |
19:31:25 | * | bung quit (Ping timeout: 264 seconds) |
19:31:35 | * | endragor joined #nim |
19:31:35 | FromDiscord | <XxDiCaprioxX> > How do I use choosenim? I installed and ran the bat. How do I place the nimble bin in the folder it should be?↵@XxDiCaprioxX |
19:31:38 | FromDiscord | <Clyybber> if you would want to do that you could skip the serializing and memcopy |
19:31:46 | disruptek | of course. |
19:31:49 | disruptek | that's what channels does. |
19:31:49 | Zevv | disruptek: sure, when you only keep your stuff in closures |
19:32:03 | Zevv | but I want to be able to throw other stuff to other threads as well probably |
19:32:08 | Zevv | anyway, just looking around |
19:32:22 | disruptek | we have this today with channels. |
19:32:35 | Zevv | sure. but these are kind of suckish. |
19:32:56 | disruptek | how do you figure they are any different from what you're suggesting? |
19:33:08 | Zevv | I'm not suggesting anything, just looking around :) |
19:33:33 | disruptek | frosty is serialization for the uncommon man. |
19:33:53 | disruptek | but i have this idea about how, uh, /tubes/ are going to work with cps/csp. |
19:34:00 | Zevv | sure, because the common man would just serialize type T and deserializd it into type Q |
19:34:07 | Zevv | /tubes/ is cool. we keep that |
19:34:29 | Zevv | and I will consistently mistype them as /tubers/ |
19:34:55 | disruptek | tubers? |
19:34:57 | Zevv | no, really, tubes is a pretty cool name |
19:35:09 | Zevv | yeah I had this friend with a company he called "tubers". |
19:35:09 | disruptek | it's that, or.. /pubes/ |
19:35:18 | * | bung joined #nim |
19:35:32 | Zevv | because "the internet is made of tubes", or something |
19:35:45 | disruptek | it's "just a series of tubes". |
19:35:58 | * | endragor quit (Ping timeout: 246 seconds) |
19:36:00 | Zevv | yeah right that one |
19:36:35 | disruptek | i'm not sure tubes is the right idea, because i'm pretty sure we'll have multi-producer multi-consumer naturally. |
19:36:39 | Zevv | he forgot to just look up "tubers" on google and get all the images of nasty underground growth |
19:37:02 | FromDiscord | <Doof Doof> So I knew there was 'var', 'ref', 'let', but what is this thing that is neither of those? for example `proc example(value:int)`?↵I want to use an object's field inside of a procedure that takes a var but nim aint having that right now . . . |
19:37:18 | disruptek | why not? |
19:37:53 | FromDiscord | <Doof Doof> I would prefer not having to use `var ` right before calling a procedure that takes a var value |
19:38:09 | disruptek | what? |
19:38:50 | FromDiscord | <Doof Doof> sent a code paste, see https://play.nim-lang.org/#ix=2u5b |
19:38:52 | disruptek | don't have your procedure return anything if you don't want to retain a value somewhere? |
19:39:11 | FromDiscord | <Doof Doof> That's not what I meant |
19:39:16 | disruptek | procedureThatTakesAVar(someObj.val) |
19:39:24 | FromDiscord | <Doof Doof> ooh |
19:40:14 | FromDiscord | <Doof Doof> No it still thinks they're different types |
19:40:27 | FromDiscord | <Doof Doof> procedure type is 'var Type' and object type is just 'Type' |
19:40:49 | disruptek | either change your procedure or change your value. |
19:40:57 | disruptek | by design, one cannot mutate immutable values. |
19:41:00 | disruptek | this is a nice feature. |
19:41:35 | FromDiscord | <Doof Doof> It's not immutable, it's just a field of a mutable object? |
19:42:02 | disruptek | show me the real procdef. |
19:42:13 | * | bung quit (Ping timeout: 264 seconds) |
19:42:20 | FromDiscord | <Doof Doof> Sure |
19:43:43 | disruptek | i don't need the body; just paste the prototype here. |
19:43:54 | disruptek | so i can tell you to remove the `var` from the argument... |
19:44:14 | FromDiscord | <Doof Doof> sent a code paste, see https://play.nim-lang.org/#ix=2u5e |
19:44:23 | disruptek | remove the `var` from the argument. |
19:44:54 | FromDiscord | <Doof Doof> Okay, then what does that do? Because I assumed I'll be copying the shader if I remove var? |
19:45:20 | FromDiscord | <Clyybber> dont use var to elide copies |
19:45:20 | disruptek | it'll be passed by reference if it's any larger than 3 pointers. |
19:45:55 | FromDiscord | <Doof Doof> So I have to return the result huh |
19:46:18 | * | bung joined #nim |
19:47:17 | disruptek | you don't have to. |
19:48:07 | FromDiscord | <Doof Doof> You're saying it's conditionally passed by reference, therefore I'd be working on a different structure unless I change the value I'm passing in to be a var again or something like a reference I guess |
19:48:39 | disruptek | is the structure a ref/ptr? |
19:48:45 | disruptek | is it larger than 3 ptrs? |
19:49:09 | disruptek | if not, why isn't it a mutable value? |
19:49:16 | disruptek | ...if you want to mutate it... |
19:49:18 | FromDiscord | <Clyybber> you can also enforce it by using {.byref.} on the type |
19:49:32 | * | tane joined #nim |
19:49:58 | FromDiscord | <Doof Doof> disruptek I want it to be a mutable value, but how can I make it a mutable value directly on the object definition without making it a ref/ptr? |
19:50:12 | FromDiscord | <Doof Doof> Thanks, clybber. That'll be nice to know in the future |
19:50:29 | disruptek | the object itself must be mutable. then all fields are mutable as well. |
19:50:40 | * | bung quit (Ping timeout: 246 seconds) |
19:50:48 | FromDiscord | <Clyybber> he wants to have a `type = var object ...` |
19:51:05 | FromDiscord | <Clyybber> but why would you want that |
19:51:08 | FromDiscord | <Doof Doof> Sounds right |
19:51:09 | * | awe001 joined #nim |
19:51:20 | FromDiscord | <Recruit_main707> var == ptr in disguise |
19:51:23 | FromDiscord | <Clyybber> mutability is not attached to the type itself |
19:51:27 | disruptek | mutability is a property of the instance, not the type. |
19:51:37 | FromDiscord | <Clyybber> @Doof Doof I guess you want that to not have to wrtie var everytime right? |
19:51:53 | disruptek | use a concept. |
19:51:56 | disruptek | ~concepts |
19:51:56 | disbot | concepts: 11user-defined type classes; documented in the experimental section of the manual: https://nim-lang.org/docs/manual_experimental.html#concepts -- disruptek |
19:52:02 | FromDiscord | <Clyybber> nah |
19:52:05 | FromDiscord | <Clyybber> use using |
19:52:12 | FromDiscord | <Recruit_main707> i think he wants to work on the stack exclusively |
19:52:29 | disruptek | ugh, prefer explicit typechecking to implicit syntax. |
19:53:01 | * | awe00 quit (Ping timeout: 264 seconds) |
19:53:22 | * | bung joined #nim |
19:53:25 | disruptek | Zevv: where are we with cps? |
19:53:52 | FromDiscord | <Doof Doof> Well, what's really happening is I was just testing things out and had a lot of `var field:..` at the top of the main file. I'm in the progress of shifting those into objects instead and noticed I have to start changing the procedures I wrote earlier because they're not 'var' anymore. |
19:53:54 | disruptek | is "internal error: environment misses: i" what you get? |
19:54:26 | FromDiscord | <Clyybber> @Recruit_main707 var is not needed for that |
19:54:34 | FromDiscord | <Clyybber> in fact its completely unrelated |
19:54:43 | disruptek | clyybber: how come your compiler is so broken? |
19:54:47 | FromDiscord | <Clyybber> with or without var, an object is on the stack |
19:54:59 | disruptek | HOW COME |
19:54:59 | FromDiscord | <Clyybber> disruptek: *mine*?? |
19:55:03 | FromDiscord | <Clyybber> HOW COME |
19:55:22 | disruptek | all i see is clyyber all over my screen. |
19:55:29 | FromDiscord | <Clyybber> lol |
19:55:38 | FromDiscord | <Clyybber> clyybber commits be ballin |
19:55:51 | FromDiscord | <Clyybber> clyybber variables |
19:55:53 | FromDiscord | <Clyybber> clyybber bugs |
19:56:46 | FromDiscord | <--HA--> @dom96 when I run a nimble build with -d:mingw on my debian machine I get a .exe but on ubuntu it compiles fine but the .exe extension is missing. Have you run into this before? |
19:57:05 | Zevv | disruptek: i'm about to go on holidays for two weeks |
19:57:11 | disruptek | wut |
19:57:18 | Zevv | ill be sitting on a little island on the north of the netherlands |
19:57:25 | FromDiscord | <Clyybber> nice |
19:57:30 | FromDiscord | <Clyybber> watching the netherlands flood |
19:57:30 | disruptek | you're kidding me. |
19:57:36 | Zevv | nope |
19:57:46 | FromDiscord | <Clyybber> he calls it holydays but really he's escaping |
19:57:46 | disruptek | have i mentioned lately that i hate you? |
19:57:48 | Zevv | so I'll have a lot of time to work on this stuff |
19:57:49 | FromDiscord | <Recruit_main707> > var is not needed for that↵i know, i just felt that might have been relevant for him (turns out it wasnt though :P ) |
19:57:53 | Zevv | wait, what? |
19:57:56 | FromDiscord | <Clyybber> Zevv: Oooh |
19:57:56 | Zevv | what did I do? |
19:58:02 | disruptek | lol you can't work while on holiday. |
19:58:04 | FromDiscord | <Clyybber> he thought cps holidays |
19:58:15 | disruptek | the whole point is to get away from this garbage. |
19:58:20 | Zevv | well maybe I should, in the light of these new revelations |
19:58:34 | disruptek | new revelations? |
19:58:46 | Zevv | well, with you hating me, and all |
19:58:51 | disruptek | oh, right. |
19:58:56 | Zevv | i thought we had somethin special going on, you and me |
19:58:57 | Zevv | but here we are |
19:59:05 | disruptek | you're in good company; i hate most humans. |
19:59:19 | Zevv | one should. its the sanest thing to do |
19:59:23 | disruptek | part of being an incel is not letting anyone close to you. |
19:59:37 | Zevv | anyway, Im not sure what the status is, I packed my laptop already |
19:59:57 | disruptek | i think clyybber is probably blocking us, as ever. |
20:00:03 | FromDiscord | <Clyybber> https://i.redd.it/tf7wvy7yjaa51.jpg |
20:00:21 | disruptek | lol |
20:00:29 | FromDiscord | <Clyybber> they even renamed our genes |
20:00:35 | disruptek | i know, i love that. |
20:01:52 | Zevv | i must say the transition to typed was less painful than i thought it to be |
20:02:05 | * | bung quit (Ping timeout: 240 seconds) |
20:02:11 | FromDiscord | <Clyybber> oh btw typed |
20:02:16 | Zevv | but i also must say the transition to typed was more painful than i thought it to be |
20:02:21 | FromDiscord | <Clyybber> I think we might not actually need attach symbols |
20:02:35 | Zevv | elaborate |
20:02:52 | FromDiscord | <Clyybber> because when the ast gets typed stuff like when random: should already be eliminated |
20:02:53 | FromDiscord | <Clyybber> I think |
20:04:00 | FromDiscord | <Clyybber> And explicitly attaching symbols might be too coarse grained, since the user could just chip chop the typed ast and pick whatever he wants and put it in the output |
20:04:41 | FromDiscord | <Clyybber> Zevv: To fix the redefinition bug |
20:05:53 | * | bung joined #nim |
20:06:02 | Zevv | right! |
20:06:13 | disruptek | Zevv: you are the guy to write the rewrite machinery. i am happy to use it to impl all the rewrites. |
20:06:16 | FromDiscord | <Clyybber> now I gotta think about static blocks |
20:06:35 | disruptek | it's probably a state machine. |
20:08:36 | disruptek | you know why we have the current bug? |
20:09:02 | disruptek | because we redefine `i` but we need to go through and zotz out all of the `i` symbols and turn them into idents. |
20:09:56 | disruptek | this is one of our rewrite stages. |
20:10:55 | FromDiscord | <Clyybber> heh |
20:10:56 | FromDiscord | <Clyybber> it just works |
20:11:01 | Zevv | huh why me |
20:11:06 | FromDiscord | <Clyybber> static blocks get turned into discard |
20:11:11 | Zevv | i thought i just complain and you write? |
20:11:18 | disruptek | you have an intuition when it comes to elegance. |
20:11:24 | Zevv | bwaaha |
20:11:30 | Zevv | thats what she said |
20:11:42 | disruptek | she was right. |
20:11:45 | Zevv | wasnt it me who gave up on this |
20:12:17 | disruptek | it was you who started it. |
20:12:35 | Zevv | just to spark your interest |
20:13:09 | * | superbia1 quit (Quit: WeeChat 2.9) |
20:13:19 | Zevv | anyway, i was hoping to get the rewriting done with some pattern matching mechanism |
20:13:26 | Zevv | i tried that a few times, but failed |
20:13:36 | FromDiscord | <Clyybber> pattern matching, fancy words |
20:13:41 | Zevv | the cpc paperuses these virtual gotos |
20:13:45 | Zevv | but actually that kind of sucks |
20:13:46 | * | bung quit (Ping timeout: 246 seconds) |
20:14:01 | FromDiscord | <Clyybber> the current impl is about 1000 lines right? |
20:14:08 | FromDiscord | <Clyybber> seems good to me |
20:14:08 | Zevv | so i tried to go there recursively, but that failed. if it was that simple, the cpc people probablywould have used that |
20:14:21 | Zevv | our guess is that we should be able to do it with half of that |
20:14:22 | disruptek | we can use whatever we want; inside this process, the ast is just data to us. |
20:14:43 | FromDiscord | <Clyybber> btw, you talked yesterday about not being able to jield ? |
20:14:45 | FromDiscord | <Clyybber> why not? |
20:14:59 | disruptek | we can jield. |
20:15:01 | Zevv | a true disruptek never jields |
20:15:10 | FromDiscord | <Clyybber> with typed I mean |
20:15:10 | Zevv | disruptek: you still didnt show me how |
20:15:19 | disruptek | we're already jielding in typed. |
20:15:29 | Zevv | are you passing the continuation then? |
20:15:45 | disruptek | oh i forgot. |
20:15:45 | Zevv | last time i looked we didnt detect it as a cpc cal |
20:15:48 | disruptek | yeah. |
20:15:50 | disruptek | you're right. |
20:15:51 | Zevv | and just called the fake jield |
20:16:05 | Zevv | anyway, im again off to bed early. worm and stuff |
20:16:11 | disruptek | aight, peace. |
20:16:18 | FromDiscord | <Clyybber> what do you guys have with worms |
20:16:22 | FromDiscord | <Clyybber> gn8 |
20:16:26 | Zevv | dont go there |
20:16:49 | disruptek | we can tag cps stuff using cpsMagic and cps so that subsequent typed interp can grok it as cps. |
20:16:52 | FromDiscord | <Clyybber> i'm gonna find the gobi worm |
20:19:04 | * | bung joined #nim |
20:19:53 | FromDiscord | <Clyybber> lol |
20:20:00 | FromDiscord | <Clyybber> disruptek: Wonna see something fun |
20:20:04 | FromDiscord | <Clyybber> ? |
20:20:13 | disruptek | is it x-rated? |
20:20:17 | FromDiscord | <Clyybber> nah |
20:20:23 | FromDiscord | <Clyybber> unless you get off compiler bugs |
20:20:33 | disruptek | of course. |
20:20:52 | FromDiscord | <Clyybber> !eval echo static: 1 or 0 |
20:20:55 | NimBot | static1 |
20:20:58 | FromDiscord | <Doof Doof> Clyybber if mutability isn't a part of an object definition then what option is there for transitioning a whole bunch of things that were once used as var into an object? Do I need to make the fields all ref now, or make the object itself a ref, or am I stuck just having to set a var to the object field when I want to use it like one? |
20:21:11 | disruptek | ugh. |
20:21:18 | FromDiscord | <Clyybber> you never set var to an object field |
20:21:22 | FromDiscord | <Clyybber> disruptek: Fun right? |
20:21:43 | disruptek | i don't even. |
20:21:49 | FromDiscord | <Doof Doof> I mean var a = obj.a - never do that? |
20:22:02 | FromDiscord | <Clyybber> I don't understand what you want to do |
20:22:06 | FromDiscord | <Doof Doof> Alright |
20:22:09 | disruptek | it's $static[bool](1) i guess. |
20:22:28 | * | liblq-dev joined #nim |
20:22:40 | disruptek | somehow not $bool.1 though. what about 2 or 0? 0 or 2? |
20:22:59 | FromDiscord | <Doof Doof> I mean if I have a number of procedures that take a var of a specific type I literally can't directly use a class field with it. I want to though. |
20:23:15 | disruptek | you can. |
20:23:28 | disruptek | look, chucklehead, if you have the object instance in a var, it's a var. |
20:23:33 | disruptek | if it's in a let variable, it's not. |
20:23:44 | * | bung quit (Ping timeout: 256 seconds) |
20:23:53 | FromDiscord | <Doof Doof> Then something's broken and I'm doing nothing wrong |
20:23:54 | disruptek | also, nim doesn't have classes. 😉 |
20:24:02 | FromDiscord | <Doof Doof> Sure |
20:24:06 | disruptek | show us. |
20:24:26 | * | Jjp137 quit (Quit: Leaving) |
20:24:35 | disruptek | i promise you that you aren't doing anything novel here. |
20:25:26 | FromDiscord | <Doof Doof> So is your answer to set a var to an instance's field? |
20:25:34 | disruptek | nope. |
20:25:37 | FromDiscord | <Clyybber> why would you want that |
20:25:43 | FromDiscord | <Clyybber> if you modify the variable then |
20:25:48 | FromDiscord | <Clyybber> its not gonna modify the object |
20:26:28 | * | Trustable quit (Remote host closed the connection) |
20:26:37 | disruptek | var x = MyObjectType(fieldA: 1); someProcThatTakesVar(x.fieldA) |
20:27:18 | FromDiscord | <Doof Doof> Okay yeah there's what I'm doing and it didn't work. I'll be a second to give a better example. |
20:27:40 | disruptek | well, it works for the rest of us, so i'd like to see your example. |
20:28:02 | * | bung joined #nim |
20:30:06 | * | rockcavera joined #nim |
20:35:43 | FromDiscord | <Doof Doof> lmao please don't continue to call me chucklehead but you're right |
20:35:55 | disruptek | weird. |
20:37:56 | FromDiscord | <Doof Doof> I didn't realize my issue was propagating from one level above what I was thinking was the problem - but what you wrote above made me realize maybe it's not the procedure I was using after all |
20:38:05 | disruptek | indeed. |
20:39:06 | disruptek | it's a little tricky at first, but it'll click for you. |
20:39:39 | disruptek | if it doesn't, well, there's always bagging groceries down at Safeway. |
20:39:59 | disruptek | i've applied twice and i'm hoping to hear before the end of the month. |
20:40:40 | * | audiofile joined #nim |
20:41:06 | * | bung quit (Ping timeout: 260 seconds) |
20:41:21 | FromDiscord | <Doof Doof> Lol sorry for the confusion everyone but thanks for the help! |
20:41:30 | disruptek | glad you got it working. |
20:41:31 | FromDiscord | <Doof Doof> I'll skip Safeway for now 🤣 |
20:43:15 | * | bung joined #nim |
20:47:23 | * | bung quit (Ping timeout: 240 seconds) |
20:53:05 | * | bung joined #nim |
20:57:44 | * | bung quit (Ping timeout: 256 seconds) |
21:00:13 | FromDiscord | <dom96> > @dom96 when I run a nimble build with -d:mingw on my debian machine I get a .exe but on ubuntu it compiles fine but the .exe extension is missing. Have you run into this before?↵@--HA-- `nim` decides whether to apply the extension or not AFAIK |
21:00:20 | * | bung joined #nim |
21:01:47 | FromDiscord | <--HA--> @dom96 I see, thank you. I just put a `mv` in there for now 😉 |
21:10:40 | * | Vladar quit (Ping timeout: 265 seconds) |
21:11:17 | * | Vladar joined #nim |
21:12:20 | * | Vladar quit (Client Quit) |
21:20:59 | * | awe001 quit (Ping timeout: 240 seconds) |
21:44:09 | * | lritter quit (Remote host closed the connection) |
21:49:03 | * | awe001 joined #nim |
22:04:02 | * | bung quit (Ping timeout: 256 seconds) |
22:04:19 | * | liblq-dev quit (Quit: WeeChat 2.9) |
22:05:21 | * | tane quit (Quit: Leaving) |
22:09:41 | * | bung joined #nim |
22:11:58 | disruptek | wearing pants doesn't make it any faster. |
22:12:49 | disruptek | actually, i think going commando is quickest. |
22:14:28 | * | bung quit (Ping timeout: 256 seconds) |
22:14:57 | * | krux02 quit (Remote host closed the connection) |
22:19:39 | * | bung joined #nim |
22:23:20 | FromDiscord | <Recruit_main707> Lmfao is it also called going commando there? |
22:24:14 | * | bung quit (Ping timeout: 260 seconds) |
22:26:51 | * | bung joined #nim |
22:34:45 | * | bung quit (Ping timeout: 240 seconds) |
22:36:10 | * | bung joined #nim |
22:38:09 | bung | hey |
22:41:39 | * | Jjp137 joined #nim |
22:59:48 | * | solitudesf quit (Ping timeout: 256 seconds) |
23:07:05 | * | s4mu3lbk quit (Ping timeout: 240 seconds) |
23:15:30 | FromDiscord | <benash> sent a code paste, see https://play.nim-lang.org/#ix=2u66 |
23:16:33 | FromDiscord | <benash> When I installed the C library, I noticed it generated a `.a` file (but no `.dylib` file) in `/usr/local/lib` |
23:16:53 | * | tiorock joined #nim |
23:16:54 | * | tiorock quit (Changing host) |
23:16:54 | * | tiorock joined #nim |
23:16:54 | * | rockcavera quit (Killed (orwell.freenode.net (Nickname regained by services))) |
23:16:54 | * | tiorock is now known as rockcavera |
23:18:24 | FromDiscord | <Rika> .a means that it's statically compiled into the binary so there wouldnt be a dylib |
23:24:49 | * | awe001 quit (Quit: WeeChat 2.9) |
23:32:19 | * | Jjp137 quit (Quit: Leaving) |
23:38:02 | FromDiscord | <benash> @Rika OK, so I should be ok specifying `header` and not `dynlib`? |
23:38:25 | FromDiscord | <Yardanico> yes, and you should link to that .a file |
23:38:42 | FromDiscord | <Yardanico> actually you don't really to specify the header then |
23:43:27 | FromDiscord | <SeanOMik> Is there a way that I could convert a 16 digit number to string with padding? |
23:43:46 | FromDiscord | <SeanOMik> I know I could do it like this in C++:```cpp↵std::stringstream stream;↵stream << std::setw(16) << std::setfill('0') << std::hex << in[0];``` |
23:43:55 | FromDiscord | <SeanOMik> (edit) 'number' => 'hexadecimal' |
23:44:04 | FromDiscord | <SeanOMik> But I don't know how to in Nim |
23:44:06 | disruptek | see the align proc in the strutils module. |
23:44:25 | FromDiscord | <SeanOMik> Okay I'll take a look at that thanks |
23:45:19 | FromDiscord | <SeanOMik> How could I convert a hexadecimal to a string? |
23:45:31 | FromDiscord | <SeanOMik> I want it in hex format |
23:45:59 | disruptek | see the toHex proc in the strutils module. |
23:46:03 | FromDiscord | <SeanOMik> Oh |
23:46:22 | FromDiscord | <SeanOMik> I should of had just scrolled down |
23:46:25 | FromDiscord | <SeanOMik> Well thanks! |
23:46:30 | disruptek | sure thing. |
23:47:02 | Yardanico | you don't even need align with toHex btw |
23:47:14 | FromDiscord | <SeanOMik> Yeah I just saw that |
23:47:21 | Yardanico | toHex itself has an overload with len for specifying length of the str |
23:47:40 | FromDiscord | <SeanOMik> Okay cool |
23:47:49 | FromDiscord | <SeanOMik> I was gonna ask questions about it |
23:47:54 | FromDiscord | <SeanOMik> Thanks |
23:51:26 | FromDiscord | <benash> I think I got it: `nim c --passL:/path/to/lib.a . . .` |