<< 06-06-2020 >>

00:22:26nisstyreOption is useful if you have an error state you want to represent
00:22:40nisstyree.g. a function that is supposed to read 10 bytes from a buffer, but it only has 5 bytes
00:23:01nisstyreyou can return none(string) to indicate an "error"
00:23:49nisstyreit's not for exceptions
00:23:58nisstyreunless you catch an exception and return an optional
00:35:14*konvertex quit (Quit: quit)
00:39:04FromDiscord<Rika> nisstyre i miswrote
00:39:16FromDiscord<Rika> `Option` or `exceptions` for error states is what i mean
00:42:58*fredrikhr quit (Ping timeout: 260 seconds)
00:45:35nisstyreI would use Option
00:45:53nisstyrethat way it's right there in the return type that it can have an error state
00:48:47FromDiscord<Rika> there's {.raises.} though
00:48:59FromDiscord<Rika> same position as return type
00:49:06FromDiscord<Rika> almost, at least
00:56:53disruptek!repo badresults
00:56:55disbothttps://github.com/disruptek/badresults -- 9badresults: 11like results but worse 15 0⭐ 0🍴
00:57:00disruptekuse that instead.
00:57:28disruptekvoltist: use {.passC: "...".}
00:57:42disruptekexample use of badresults:
00:57:44disruptek!repo gittyup
00:57:46disbothttps://github.com/disruptek/gittyup -- 9gittyup: 11higher-level git bindings that build upon nimgit2 15 2⭐ 1🍴
00:57:56voltistdisruptek: Yeah I found it in the end
00:57:59voltistThanks though
01:09:57*chemist69 quit (Ping timeout: 272 seconds)
01:11:49*chemist69 joined #nim
01:46:28disruptek!repo disruptek/jason
01:46:28disbothttps://github.com/disruptek/jason -- 9jason: 11JSON done right 15 0⭐ 0🍴
01:46:36*gangstacat quit (Remote host closed the connection)
01:59:48*gangstacat joined #nim
02:12:18bungjsgen dosn't handle `ord` a `range`, how to solve this?
02:15:02Yardanicobung: ord of a range? can you show a concrete example?
02:15:09Yardanicoah nvm I found what you mean
02:16:17bungsee https://github.com/nim-lang/Nim/blob/devel/compiler/jsgen.nim#L1828
02:16:23Yardanicoyeah I know
02:16:30YardanicoI already got the compiler traceback :P
02:17:10bunghmm what it means ord a range ? idk how c version works
02:18:52Yardanicowell it most cases it's pretty useless, yeah
02:19:37*muffindrake quit (Ping timeout: 272 seconds)
02:19:47bungI see the code from compiler source
02:20:50Yardanicobung: well it compiles if I add tyRange to the first case branch
02:20:56Yardanicolike "of tyEnum, tyInt..tyUInt64, tyChar, tyRange: gen(p, n[1], r)"
02:21:00Yardaniconot sure if that's correct though
02:21:05Yardanicobut it compiles and runs :P
02:21:10Yardanicoand outputs a correct value
02:21:29*muffindrake joined #nim
02:21:49bungso you know how ord a range works
02:22:24bungif you can confirmed that value correct, why you said pretty useless...
02:22:51Yardanicobecause why would you need to run "ord" on a range type if range is mostly a checking thing?
02:23:17Yardanicoif you have "type A = range[15 .. 30]" you can have "let a: A = 18" and then just do "echo int(a)" or other stuff like that
02:24:09bungoh, it only do checking. that's fine.
02:24:27*Jjp137 joined #nim
02:25:31Yardanicoyou're free to open a PR with this fix
02:25:36Yardanicodon't forget to add a test-case though :P
02:25:40bungI think you can create a PR for it.
02:25:54bungI did nothing
02:28:25*disruptek quit (Ping timeout: 265 seconds)
02:29:28*disbot quit (Ping timeout: 272 seconds)
02:31:43*disruptek joined #nim
02:32:23bungfound I can just .int avoiding this for now
02:32:42*disbot joined #nim
02:32:46Yardanicoyes
02:34:11*Jjp137 quit (Read error: Connection reset by peer)
02:34:35*Jjp137 joined #nim
02:38:14Yardanicobung: https://github.com/nim-lang/Nim/pull/14571
02:38:15disbotFix #14570
02:39:11Yardanicoah right, need a test
02:47:16*zedeus quit (Ping timeout: 265 seconds)
02:48:55*zedeus joined #nim
02:49:16*endragor joined #nim
03:02:10voltistIs there a pretty way to cast data to a uint<n> without case/do for every possible n?
03:02:34disruptekwhat?
03:02:35Yardanicovoltist: how would that look like?
03:02:44disruptekcast[uint](data)
03:02:52disruptekdata.uint
03:02:57Yardanicothat's for uint32 or 64 depending on the arch
03:03:00disruptektry not to use cast.
03:03:05Yardaniconot for every possible n but ok
03:04:11voltistYeah I should have explained that better
03:05:01voltistI'm casting to a seq[uint<n>], so n matters to differentiate one number from the next right?
03:05:29Yardanicon here is about the size of uint
03:05:33Yardanicouint8/16/32/64
03:05:37voltistYep
03:05:37disruptekohh
03:05:49disruptekyes, there's a difference.
03:05:58Yardanicowell I don't know if there's a "pretty" way
03:06:02Yardanicosince casting itself is far from pretty :P
03:06:03voltistSorry I shouldn't have used <> because of Nim's syntax :P
03:06:26disruptekyou should use cast when you /must/ and at no other time.
03:07:19voltistI'm handling C's data types, so I unfortunately do have to cast for a lot of things
03:07:28Yardanicowell I don't think there's a "pretty" way
03:07:32voltistshashlick: Unless nimterop has some magic for this?
03:07:34voltistRight ok
03:07:41Yardanicoof course if you have 3-5 duplicated lines of code for each uint you can make a template
03:08:21voltistMay as well just stick with the case/of for readability
03:08:51Yardanicoactually hmm
03:08:53Yardanicothere might be a way
03:09:03disruptekthere are things you can do but i wouldn't do them.
03:09:11Yardanicowith a generic procedure and sizeof and stuff :P
03:09:17disruptekjust write it as clearly and simply as you can.
03:09:47voltistYeah will do
03:12:21shashlickYou could use a converter or write high level code to abstract the mess
03:12:47disruptekthe nice thing about choking php programmers is that they have such warm, if scrawny, necks.
03:13:15voltistshashlick: Yeah this is all going to be under the hood
03:13:28shashlickThere's some open issues for this in nimterop and some ideas
03:13:34shashlickhttps://github.com/nimterop/nimterop/issues/177
03:13:36disbot[Feature] Cached Postgenerative Macro ; snippet at 12https://play.nim-lang.org/#ix=2oon
03:14:03voltistshashlick: I'll have a look
03:14:48voltistRight now I need to decide if it's even worth trying to support a bitdepth of 2
03:15:04disruptekone bit outta be enough for anybody.
03:15:38voltistWell 1 is understandable, and 4+ is normal, but 2?
03:16:04shashlickIt's an open - the goal is to make more Nim friendly wrappers than raw ones but I am not too experienced in that
03:17:29voltistYeah that's what I'm aiming for with this project; I don't want it to feel like a wrapper, I want it to feel like Nim
03:17:33voltistNim-onic?
03:17:44disruptekbut why?
03:17:50disrupteknim gives me gas.
03:18:05Yardanicovoltist: https://forum.nim-lang.org/t/6323
03:18:12voltistI don't want to know about your personal problems :P
03:18:53voltistOoo 'nimsy' is good
03:19:00Yardaniconimish
03:19:05Yardanico:P
03:19:34disruptekthe problem i have lately is that what's idiomatic is not valid.
03:21:14Yardanicomaybe your definition of idiomatic is a bit wrong then :DD
03:22:07voltistGee idk how I could even go about decoding 2 bit ints
03:22:14Yardanicoint16
03:22:16Yardanico2 bit?
03:22:17Yardanicowat
03:22:29disrupteksounds like a real tough problem.
03:22:54Yardanicoyou can decode it with two bools :D
03:23:17Yardanicoah right bool is one byte too
03:23:28Yardanicocpus can't address stuff smaller than 1 byte anyway
03:23:45disruptekthe problem with concepts is nesting and "not" not working.
03:23:56Yardanicoconcepts are an experimental feature anyway
03:24:12disruptekthey need work but they aren't going away.
03:24:28Yardanicoconcepts will be much more popular if they get the promised vtables version :P
03:24:34voltistConcepts is a pretty cool name for a feature I haven't even heard of yet
03:24:44disruptek~experimental
03:24:44disbotexperimental: 11Features of Nim that are to be considered experimental are documented at https://nim-lang.org/docs/manual_experimental.html
03:25:00Yardanicovoltist: "Concepts, also known as "user-defined type classes", are used to specify an arbitrary set of requirements that the matched type must satisfy."
03:25:03disrupteki don't think vtables is important.
03:25:04Yardanicothey're a compile-time only construct
03:25:08Yardanicodisruptek: for some people it is
03:25:13voltistOh thats cool
03:25:19disruptekthose people can take a hike.
03:25:20Yardanicosince manually making interfaces with procs is not that pretty
03:26:44voltistIf cpu's cant address less than 1 byte, whats up with 1 and 2 bitdepth PNGs? Just not used any more?
03:27:00disruptekhas nothing to do with addressing.
03:27:17Yardanicovoltist: well you can always cast to some int type and access the lowest bit
03:27:39Yardanicowith bitwise operators
03:28:40disruptekx and 1 works, too.
03:29:26voltistHonestly I'm considering just not supporting them. If people want bit depths that tiny then they are probably better off using a format other than PNG
03:29:41voltistLike FITS if they are feeling fancy
03:30:06disruptekdo you think serial killers get a lot of donations on patreon?
03:31:38disrupteki'm feeling fancy but maybe not 2-bit fancy.
03:32:27*zedeus quit (Ping timeout: 272 seconds)
03:32:52*zedeus joined #nim
03:35:30*rockcavera quit (Remote host closed the connection)
03:36:43voltistThis is probably a silly question, but what is `int`? Like how many bits is it?
03:36:55disruptekvaries with the platform.
03:37:06disruptek32 on 32-bit machines, 64 on 64-bit machines.
03:37:16disruptekit's the size of your pointers.
03:37:59disruptekdo you think podiatrists smell like feet?
03:38:56*waleee-cl quit (Quit: Connection closed for inactivity)
03:39:07voltistOh right that makes sense
03:41:32shashlickYawn, what to work on? Nothing is interesting right now
03:42:14disrupteki have a lib that could be useful to wrap.
03:42:50disruptekhttps://liburcu.org/
03:43:20voltistshashlick: C++ support for Nimterop? :P
03:44:38disrupteki think i wanna get a job where i get to prepare food and watch people eat it.
03:44:46FromDiscord<Elegant Beef> Write and document how to setup/use pseudoterminals 😄
03:46:00disruptekwait lists at retirement communities are shorter than ever.
03:47:08*silvernode_ joined #nim
03:51:44zedeusdoes nim have rvo or just nrvo? are copies avoided for implicit and explicit returns, or only when you set the result variable?
03:53:46*dddddd quit (Ping timeout: 256 seconds)
03:54:16silvernode_Good morning
03:54:27FromDiscord<Elegant Beef> Good evening
03:54:30FromDiscord<Zachary Carter> good night
03:55:33FromDiscord<flywind> good afternoon
03:56:04silvernode_it's actually 2055 here but it's morning for me since I work night stock
03:56:19FromDiscord<Elegant Beef> Dude you're 35 years into the future
03:56:24FromDiscord<Elegant Beef> How long does it take to get a covid vaccine?
03:56:37disruptekwhy do you think guys with sexy neck beards are so camera-shy?
03:57:19Yardanicozedeus: relevant - https://github.com/nim-lang/RFCs/issues/230
03:57:21disbotNim's NRVO is C++'s inplace construction (placement new) ; snippet at 12https://play.nim-lang.org/#ix=2oor
03:57:31Yardanicoalso https://github.com/nim-lang/Nim/pull/14390
03:57:32disbotfixes #14126 [backport:1.2]
03:57:34silvernode_There was never a vaccine, just wrist bands with data on it.
03:57:40zedeusyeah that's why I'm asking
03:57:50disruptekwe're not supposed to talk about balls in this channel.
03:59:14FromDiscord<Elegant Beef> Ah chinese made i assume silver?
04:04:34FromDiscord<hvn> sent a code paste, see http://ix.io/2oot
04:05:59Yardanicoyes, I did
04:06:02*supakeen quit (Quit: WeeChat 2.8)
04:06:31Yardanico@hvn see https://github.com/nim-lang/nimforum/pull/244 for example
04:06:32disbotAdd ability to enable TLS for SMTP
04:06:40*supakeen joined #nim
04:06:45Yardanicobasically you need to call "await client.startTls()" after connecting
04:06:48Yardanicoand before auth
04:06:50FromDiscord<hvn> yes, exactly that, and I got same error
04:07:10Yardanicowell maybe the smtp server is wrong :P
04:08:43bungYardanico I add formating support using nimsuggest exe, that's the simple solution.
04:10:58disrupteki have a very bad feeling about this.
04:12:07silvernode_@Elegant Beef I am using your menu code in my project with credit to you in the files
04:12:15silvernode_hope that is ok
04:12:16FromDiscord<Elegant Beef> lol
04:12:19FromDiscord<Elegant Beef> Yea
04:12:21FromDiscord<Elegant Beef> Also yard
04:12:25FromDiscord<Elegant Beef> Whilst you here
04:12:35FromDiscord<Elegant Beef> Your mentioning is borked if the person have names with spaces
04:12:46FromDiscord<Elegant Beef> (edit) 'have' => 'has a'
04:13:00silvernode_I figured as much
04:14:54silvernode_I'm not sure how to use your event proc in practice btw
04:16:52Yardanicobung: I hope you didn't enable formatting on save by default? :P
04:16:52FromDiscord<mollusk> @Elegant Beef It looks like it only triggers if there is no input
04:17:15Yardanicoor maybe it's a vscode feature, right
04:17:17FromDiscord<Elegant Beef> Well it atted me but it doesnt replace the Beef part
04:17:20FromDiscord<Elegant Beef> Just the Elegant part
04:17:38Yardanico@Elegant I know
04:17:40Yardanicobut it's hard to solve
04:17:42bungah , no I dont, I have problem with that in my rails extension, many users argus about that
04:17:48Yardanicoso just don't have spaces in your username ok?
04:17:51FromDiscord<Elegant Beef> Ah that one worked... 😄
04:17:59Yardanicobecause I used "<at>Elegant"
04:18:01disrupteksilvernode: i tried to stick up for you, but they made some pretty reasonable points against you.
04:18:14Yardanicomentioning works if the username starts with something i entered after the "at" symbol
04:18:18Yardanicoeven if it's not a full username
04:18:22bungargues
04:18:31FromDiscord<Elegant Beef> Ah
04:18:50disruptek!last Elegant Beef
04:18:51disbotElegant Beef spoke in 12#nim 19 seconds ago 12https://irclogs.nim-lang.org/06-06-2020.html#04:18:31
04:18:57disruptek!last Pig Fucker
04:18:57FromDiscord<Elegant Beef> Cant you just see if the next word matches `name.split[-1]`
04:18:58disbotPig Fucker never seen.
04:19:03*zacharycarter quit (Ping timeout: 246 seconds)
04:19:03disruptekhmm.
04:19:06Yardanico@Elegant "word"
04:19:09Yardanico"Elegant Beef" is two words
04:19:12FromDiscord<Elegant Beef> Yes
04:19:31FromDiscord<Elegant Beef> But if the next word in the message after my name matches the last word of my name
04:19:34FromDiscord<Elegant Beef> Remove it
04:19:41bungbarely usefull IDE feature, that I added by acident
04:19:51Yardanico@Elegant well that's more complexity :P
04:19:57Yardanicojust dont have spaces in your usernames
04:19:58Yardanicoproblem solved
04:20:02FromDiscord<Elegant Beef> It also can have false positives
04:20:06Yardanicoi know
04:20:06FromDiscord<Elegant Beef> Well that's too much work
04:20:20YardanicoElegant_Beef
04:20:21Yardanicoproblem solved
04:20:28FromDiscord<Elegant Beef> Dude that's like 1 more key stroke
04:20:37Yardanicono?
04:20:41Yardanicothat's the same amount of key strokes lol
04:20:46FromDiscord<Elegant Beef> Underscore requires shift
04:20:49FromDiscord<mollusk> Or just don't use Discord
04:20:50FromDiscord<Elegant Beef> checkmate
04:21:11Yardanicoit's still 1 keystroke
04:21:13Yardanicoshift is a modifier
04:21:18Yardanicocheck mate
04:21:20FromDiscord<Elegant Beef> Lol
04:21:21Yardanico;)
04:21:28FromDiscord<Elegant Beef> Pedentry is a sign of last resort
04:21:30FromDiscord<mollusk> yep it's a modifier
04:21:48Yardanicoyou should've said "key presses"
04:21:52Yardaniconot keystrokes :D
04:22:05FromDiscord<Elegant Beef> Wow, can you like ban yourself
04:22:17YardanicoI can ban you from IRC
04:22:30YardanicoI mean I can ban you in discord while i'm in IRC
04:22:33FromDiscord<Elegant Beef> dont do that, where am i supposed to chat when i time travel to 1991
04:22:35FromDiscord<Elegant Beef> Ah
04:22:39FromDiscord<Elegant Beef> Well that's just rude
04:22:52FromDiscord<mollusk> @Elegant Beef https://play.nim-lang.org/#ix=2okF not sure how to use like 23 in practice but it seems to only be used if there is no user input.
04:22:57Yardanico!getdiscid Elegant Beef
04:22:58FromDiscordElegant Beef#5502 has Discord UID: 145405730571288577
04:23:03Yardanicoyour discord UID is 145405730571288577 btw
04:23:24Yardanicohttps://i.imgur.com/2DB9lCy.png
04:23:24FromDiscord<Elegant Beef> what about line 23?
04:23:38FromDiscord<Elegant Beef> You like me too much to ban me
04:23:43FromDiscord<Elegant Beef> Im a fun source of idiocy
04:23:59Yardanicorelevant code btw https://github.com/Yardanico/ircord/blob/master/src/ircord.nim#L101
04:24:02FromDiscord<Elegant Beef> *looks at my pty attempt, and feels like the worlds worst programmer
04:24:11Yardanico!getdiscid Person
04:24:11FromDiscordUnknown username
04:24:48Yardanicoalthough I don't need to use getUsers there, but I didn't update the commands part for a few months
04:25:23Yardanicoand of course it's whitelist-only
04:25:31FromDiscord<Elegant Beef> I cant believe you have commented out code on a git repo
04:25:34YardanicoXD
04:25:43Yardanicobecause I wanted to make it work agian
04:25:45Yardanicoagain*
04:25:51FromDiscord<Elegant Beef> Yea but you have version control
04:25:53Yardanicoand generally commenting old stuff is sometimes useful
04:26:04FromDiscord<Elegant Beef> Idk i just remove it
04:26:10FromDiscord<Elegant Beef> if i want to see it look at the changes of the file
04:26:11Yardanico@Elegant good luck finding that old commit which had that code
04:26:15*silvernode_ is now known as silvernode
04:26:30AvatarfighterYo yo yo what is up party people
04:26:39silvernode /msg NickServ identify guitar
04:26:39FromDiscord<Elegant Beef> I mean i tend to work in a more spread out codebase thanks to spending most my time in unity
04:26:48Yardanicowell nim compiler has stuff like that too btw
04:26:53*silvernode quit (Quit: Leaving)
04:28:06FromDiscord<Elegant Beef> Yea i know people do it, i just feel when using version control having commented out code is weird, fairly certain linus torvalds has a rant about it somewhere 😄
04:28:41FromDiscord<Elegant Beef> But again i work solo on small spread out projects
04:28:46FromDiscord<Elegant Beef> So... YMMV
04:29:27*Senketsu quit (Ping timeout: 272 seconds)
04:30:03*silvernode joined #nim
04:31:27*silvernode quit (Client Quit)
04:31:48*silvernode joined #nim
04:32:34silvernodewhelp, had to change my IRC password finally. it was a really bad password anyway.
04:32:57FromDiscord<Elegant Beef> use keepassxc today!
04:33:06FromDiscord<Elegant Beef> Or whatever passwordmanager today
04:33:10FromDiscord<Elegant Beef> (edit) 'passwordmanager' => 'password manager'
04:33:55FromDiscord<Elegant Beef> So seems i have my terminal properly creating a child bash process, but writting to the master file does not propogate down to the bash
04:34:46silvernodeI switched from Keepass to Bitwarden about 2 years ago
04:35:30FromDiscord<Elegant Beef> I just recently started using a password manager after finally converting to it
04:35:35silvernodeI had been managing keepass with git but decided after multiple years that it was not a practical way to sync a password database.
04:35:58FromDiscord<Elegant Beef> There is a keepass app that can get passwords from ssh
04:36:19FromDiscord<Elegant Beef> And i mean i only have two devices, so as long as i put it on my ntfs drive parition i have it everywhere
04:37:07silvernodeI went with Bitwarden since it was open source like Keepass and has great syncing abilities. I can also run a Bitwarden server if I wanted to since that is also open source.
04:37:59silvernodeI didn't want to be responsible for maintaining backups of Keepass and the risk of filesystem corruption, updates, etc
04:39:33silvernodeI was all about Keepass being local and whatnot but ultimately did not want to maintain my database on multiple machines since I have more than 2
04:48:39silvernodeTime to clock in, goodnight
04:52:14*jeko joined #nim
04:53:16*silvernode quit (Ping timeout: 256 seconds)
05:15:54*NimBot joined #nim
05:30:41*solitudesf- joined #nim
05:31:37voltistHmm, it seems I can't index a C array in Nim. Is that expected?
05:36:49*lritter joined #nim
05:38:34*NimBot joined #nim
05:42:05Prestigevoltist: can you show an example?
05:43:01voltistI think its a pointer. I've never used C all that much so idk about the relationship between arrays and pointers
05:43:08voltistYeah I will devise an example
05:45:34voltistWell it looks like nimterop wraps it as `ptr png_byte`
05:46:16voltistPrestige: So I suppose my question is just how do I index a pointer in the same way you could using square brackets in C
05:48:31PrestigeCast to a pointer to an unchecked array if I'm understanding you correctly
05:49:59Prestigeconst arr = cast[ptr UncheckedArray[SomeType]](procThatReturnsAPointer)
05:55:12voltist Error: expression cannot be cast to UncheckedArray[uint8]
05:55:26Prestigedid you miss the ptr part?
05:55:35voltistAh
05:55:37voltistYep
05:57:57voltistThat works, but it gets weirder now
05:58:14voltistAnother wrapped function returns a pointer pointer
05:59:14voltistMeant to kinda function as a 2D array, but I don't see how just casting it would let it know the dimensions
05:59:22voltistIdk if that makes sense :)
06:00:11PrestigeI think you'd cast each row you process
06:01:35voltistSo like cast the pointer pointer to UncheckedArray[ptr SomeType] and then for each row cast that to UncheckedArray[SomeType]?
06:01:55PrestigeRight
06:02:04PrestigeI'm not 100% but I think that would work
06:02:34voltistI'll have a go
06:04:42*jeko quit (Quit: Leaving)
06:05:43voltistPrestige: Gee I think it worked
06:05:52PrestigeAwesome!
06:05:55voltistI've been going at that for hours now, so I can't thank you enough
06:06:06PrestigeGlad it's working :)
06:07:16voltistIs there a reason I cant just cast the pointer pointer to `ptr UncheckedArray[ptr UncheckedArray[SomeType]]`?
06:07:40PrestigeI think you can, that's actually what I meant lol
06:07:40*jeko joined #nim
06:08:17voltistAh cool
06:10:52*NimBot joined #nim
06:10:55voltistMy mind cannot fathom how it knows where one row meets another
06:25:29*NimBot joined #nim
07:10:47*NimBot joined #nim
07:24:43*NimBot joined #nim
07:37:04*kenran joined #nim
07:51:59*kenran quit (Ping timeout: 256 seconds)
07:53:38*fredrikhr joined #nim
07:59:32*chemist69 quit (Ping timeout: 246 seconds)
08:00:55*chemist69 joined #nim
08:16:11*zedeus quit (Ping timeout: 272 seconds)
08:16:30*zedeus joined #nim
08:18:45FromGitter<gogolxdong> Anyone CLI library?
08:34:14*Trustable joined #nim
08:42:50*NimBot joined #nim
08:52:36FromDiscord<Shucks> Are let's cheaper than var's or is the only difference the code safety?
08:53:37FromDiscord<Elegant Beef> They're the same just immutable
08:53:58FromDiscord<Elegant Beef> And mutabillity is amazing
08:54:07FromDiscord<Elegant Beef> (edit) 'And ... mutabillity' => 'Anddeclaritive'
08:55:11FromDiscord<Shucks> Thank you
09:09:57planetis[m]I have a destructors bug that only happens when I use my module, but when I try to make a minimal example it works!
09:11:24*Vladar joined #nim
09:11:29planetis[m]here https://play.nim-lang.org/#ix=2ooX the SUB matrix is sinked at line 74, so when echoing its zero,
09:11:32FromDiscord<Yardanico> Did you try on latest devel?
09:12:03planetis[m]almost latest
09:13:36*endragor quit (Remote host closed the connection)
09:15:36planetis[m]only fails when using my lib, but in the example it works fine
09:15:54planetis[m]it must be a sink inference bug
09:16:33*zedeus quit (Ping timeout: 246 seconds)
09:18:44*zedeus joined #nim
09:21:45*NimBot joined #nim
09:23:30planetis[m]it also works with seq[T] as data: https://github.com/b3liever/manu/blob/master/manu/matrix.nim
09:23:37*dddddd joined #nim
09:24:02planetis[m]only fails when writing custom destructors
09:25:29alehander92disruptek vtables cool
09:27:24*fredrikhr quit (Ping timeout: 246 seconds)
09:28:14planetis[m]here's the output for me: http://ix.io/2op2
09:33:33*NimBot joined #nim
09:33:52Yardanicoplanetis[m]: by "lib" you means importing from another file?
09:39:46planetis[m]tried that too
09:40:04planetis[m]but no I mean my matrix package
09:44:06FromDiscord<Shucks> Another basic question. Nim code gets transpiled into C code and compiles. So tools coded with Nim are basically C programs right?
09:44:06planetis[m]here is the destructors branch, for whover whats to try: https://github.com/b3liever/manu/tree/destructors2 the tests fail because of this
09:44:29planetis[m]latter I will test in another machine
09:45:38livcdShucks: Are not then most programs basically assembly programs?
09:46:02*NimBot joined #nim
09:47:59voltistQuick poll: When manipulating images on a pixel level, is row then column or column then row more logical?
09:49:28*fredrikhr joined #nim
09:51:47alehander92shucks you can indeed use many c-related tools with the output code/binaries if you mean that
09:54:47planetis[m]still fails...
09:57:56*NimBot joined #nim
10:00:18zedeusyoutube downloaders require constant maintenance
10:01:23livcdi can imagine
10:10:36*NimBot joined #nim
10:10:42*bung_ joined #nim
10:11:47*neceve_ joined #nim
10:13:59*bung quit (Ping timeout: 272 seconds)
10:14:16alehander92there is pytube as well
10:14:36alehander92why do you need downloads?
10:17:20bung_how can I get better performance ? my code has many string or seq assignment
10:22:42*NimBot joined #nim
10:23:06FromDiscord<Recruit_main707> already compiling with `-d:danger` `--gc:arc` ?
10:25:04bung_let me check
10:27:47bung_improved, better than pure python version, worse than python c api version
10:29:00livcdcan you post some code?
10:29:30FromDiscord<Recruit_main707> yeah, a lot of people like to improve performance of code in here :P
10:31:04bung_https://github.com/Nim-NLP/finalseg this one
10:32:08bung_check test2.nim python lib time costs in comments
10:32:34voltistHow does one convert from int to a uint?
10:33:12FromDiscord<Recruit_main707> `var a: int = 1`↵`a.uint` doesnt work?
10:33:56*NimBot joined #nim
10:35:31bung_I'v do profile work before change compile flags see https://pastebin.com/diQV337i
10:36:56voltistOh yeah that does work
10:43:26voltistCan UncheckedArray be added to somehow?
10:46:59*NimBot joined #nim
10:50:57FromDiscord<Shucks> Does anyone have a answer on that: https://forum.nim-lang.org/t/3190 ?
11:00:12*NimBot joined #nim
11:06:07*Guest86599 quit (Ping timeout: 260 seconds)
11:07:47*dadada joined #nim
11:08:12*dadada is now known as Guest58273
11:10:08*NimBot joined #nim
11:21:43*NimBot joined #nim
11:27:54*Trustable quit (Remote host closed the connection)
11:32:04*Senketsu joined #nim
11:35:35*NimBot joined #nim
11:48:58*NimBot joined #nim
11:53:03voltistYay, my image library can now load, save and display images, and has high-level pixel data manipulation
11:53:18voltistOnly supports PNG for now
11:53:38voltistI'll get JPEG/JPG working before I go to bed hopefully
12:00:23*NimBot joined #nim
12:06:02*supakeen quit (Quit: WeeChat 2.8)
12:06:38*supakeen joined #nim
12:07:34FromDiscord<Kiloneie> Finally another episode on my Nim for Beginners series: https://youtu.be/s8K6wTy1QM8
12:11:44*NimBot joined #nim
12:12:44FromDiscord<willyboar> you are hot!
12:19:33Yardanicono homo
12:22:28*krux02 joined #nim
12:24:04*NimBot joined #nim
12:35:21*NimBot joined #nim
12:37:33*clemens3 quit (Read error: Connection reset by peer)
12:43:09bung_Yardanico seems never sleep
12:43:23Yardanicobung_: nah
12:43:30YardanicoI slept from 8 PM until 5 AM today
12:43:35Yardanico:)
12:43:59bung_sounds sleep well
12:47:19*NimBot joined #nim
12:56:31FromDiscord<dom96> @Kiloneie nice thumbnail 🙂
12:58:00*NimBot joined #nim
13:10:33*NimBot joined #nim
13:13:09*D_ quit (Ping timeout: 246 seconds)
13:13:39*D_ joined #nim
13:21:44*NimBot joined #nim
13:22:43bung_I's like to create project for web frontend , any recommend target ?
13:25:32*D_ quit (Ping timeout: 260 seconds)
13:29:43*D_ joined #nim
13:34:39*NimBot joined #nim
13:38:43FromDiscord<KrispPurg> voltist, what is the github link for your lib?
13:46:49*NimBot joined #nim
13:50:30disruptekwtf is wrong with the bot?
13:50:36FromDiscord<Rika> ?
13:52:45disruptekit seems to crash every few minutes.
13:55:31*NimBot joined #nim
13:56:31*tane joined #nim
13:57:24*Trustable joined #nim
13:57:28FromDiscord<Kiloneie> @dom96 Thanks, i did not make it though D:... a friend did.
13:58:32*silvernode joined #nim
13:59:14FromDiscord<Kiloneie> What kind of a comment is "wanna be friends?" youtube blocked the comment lmao xD
14:00:21FromDiscord<Kiloneie> No wait scratch the last part, my notifications don't work for every comment for some reason oO
14:06:51*NimBot joined #nim
14:10:01*rockcavera joined #nim
14:16:27*NimBot joined #nim
14:27:16*NimBot joined #nim
14:27:55*haxscramper joined #nim
14:30:49*clemens3 joined #nim
14:39:11*NimBot joined #nim
14:47:45*gangstacat quit (Quit: Ĝis!)
14:50:25*NimBot joined #nim
14:53:12*narimiran joined #nim
14:56:22*dmi0 joined #nim
14:57:37FromDiscord<willyboar> federico3 i left a PR in the nimble directory...
14:58:30disruptekis there any chance that man boobs are coming back in style?
14:59:51FromDiscord<Kiloneie> oO
15:03:16*NimBot joined #nim
15:08:18FromDiscord<willyboar> new browse looks like this: https://prnt.sc/suy0hx
15:14:06*NimBot joined #nim
15:14:48FromGitter<bung87> package summary too short
15:18:02FromDiscord<willyboar> it is difficult because if i left more it would be a mess
15:18:44FromDiscord<dom96> oooh, that's an awesome design
15:18:54FromDiscord<willyboar> and i cant split it to two lines
15:19:08FromDiscord<willyboar> thanks, dom96
15:19:54FromDiscord<willyboar> this is pkg view: https://prnt.sc/suy5sv
15:20:14Yardanicocan you maybe hide older versions?
15:20:19Yardanicoand, say, show 3 latest and others on expand
15:20:45FromDiscord<willyboar> I suppose it can be done
15:21:08FromDiscord<willyboar> but i left this decision to federico3
15:21:43FromDiscord<willyboar> *leave
15:22:10FromGitter<tim-st> does ordered table only have memory overhead or also runtime overhead compared to normal table?
15:22:27federico3Yardanico: yes, makes sense
15:22:44federico3willyboar: what about the work with the previous restyle?
15:23:18FromDiscord<willyboar> This is cleanest, but is based on the old one
15:23:18federico3hm "Unfinished Business"
15:23:58FromDiscord<willyboar> The PR is ready, i put this name because we left the old one too much 🙂
15:27:56*NimBot joined #nim
15:28:09federico3have you built and tested it?
15:28:20FromDiscord<willyboar> Yeap
15:28:39FromDiscord<willyboar> the photos is from the localhost
15:30:50*bung_ quit (Quit: Lost terminal)
15:36:46FromDiscord<willyboar> federico the only thing is when i run it with --threads:on i get an error:
15:37:10FromDiscord<willyboar> /.nimble/pkgs/morelogging-0.1.4/morelogging.nim(536, 49) Error: type mismatch: got <DateTime> but expected 'Time = object'
15:37:21federico3why threads?
15:37:43FromDiscord<willyboar> just test it
15:37:54FromDiscord<willyboar> it works perfect without
15:38:03federico3it's not meant to use threading
15:38:20FromDiscord<willyboar> ah ok
15:39:21*NimBot joined #nim
15:39:25federico3are the screenshots going to expire?
15:40:15FromDiscord<willyboar> I don't know
15:41:02FromDiscord<willyboar> I think would last 6 months
15:41:06FromDiscord<willyboar> I am not sure
15:44:50federico3https://github.com/FedericoCeratto/nim-package-directory/pull/28 can people please vote?
15:44:50disbotUnfinished Business
15:45:34FromDiscord<willyboar> Do you want an index image?
15:46:01*bbarker joined #nim
15:46:18FromDiscord<willyboar> https://prnt.sc/suyhwp
15:46:43FromDiscord<19> sent a code paste, see http://ix.io/2oqQ
15:47:23*krux02 quit (Remote host closed the connection)
15:47:43supakeenfederico3: Done, I like it.
15:48:26*krux02 joined #nim
15:48:52supakeenI could complain loads because I'm a pedant but I like the new vibe :)
15:48:59*bebarker quit (Ping timeout: 258 seconds)
15:50:09FromDiscord<Recruit_main707> @19: whats the error?
15:50:24FromDiscord<19> `Execution failed with exit code 256`
15:50:53*NimBot joined #nim
15:51:06FromDiscord<19> `Error: unhandled exception: over- or underflow [OverflowError]`
15:51:19FromDiscord<Recruit_main707> does 64 fit in an int8?
15:51:20FromDiscord<19> oh the int8's max value is 2550
15:51:28Yardanicono?
15:51:31Yardanico255*
15:51:33FromDiscord<19> it does, but the result is 4096
15:52:02FromDiscord<19> oh yes 255
15:53:14FromDiscord<19> thanks guys xD
15:54:07federico3supakeen: if you want to fix the CSS please contribute a PR ;)
15:54:34supakeenfederico3: First I will appreciate this one and if I get triggered enough yes!
15:55:43FromDiscord<willyboar> what css?
15:56:35supakeen@willyboar: There's nothing to fix except me being pedantic about alignment :)
15:57:54federico3willyboar: for the time being can you update the main and search page with: smaller fonts, 2 columns instead of 3 to show the package description, hints on what to click
15:59:39federico3and lay out the package page better
16:00:59*NimBot joined #nim
16:01:26FromDiscord<dayl1ght> Does DrNim compile on devel? I'm getting a compilation error when running `koch drnim`
16:02:29*dddddd quit (Ping timeout: 260 seconds)
16:02:31FromDiscord<dayl1ght> oh it compiled on 1.2.0
16:02:52supakeen@williboar: This is a dirty photoshop example of what I like alignment wise: https://i.imgur.com/iRfb4Es.png (I know this is very subjective!)
16:05:40FromDiscord<willyboar> https://prnt.sc/suyqpy
16:05:49FromDiscord<willyboar> hmmmm i will check it
16:06:40supakeenBut also don't focus on it like federico3 said, I'll PR it if I get too hot and bothered about it!
16:07:54federico3a bit better
16:08:57FromGitter<tim-st> does someone know, what `Warning: observable stores to 'varName' [ObservableStores]` means?
16:10:07FromDiscord<willyboar> supakeen : https://prnt.sc/suysvs
16:12:13*NimBot joined #nim
16:14:25supakeenThat's also a better alignment :)
16:14:37FromDiscord<willyboar> done
16:16:01*waleee-cl joined #nim
16:16:43*zacharycarter joined #nim
16:18:31FromDiscord<Kiloneie> https://youtu.be/6S32ogvqVgM
16:18:47FromDiscord<Rika> looks like you're saying you're exploring it 3 times
16:18:56FromDiscord<Kiloneie> D:
16:19:04FromDiscord<Rika> maybe write the title like this `Times | Exploring Nim's Standard Library #3`
16:19:27FromDiscord<Rika> or `The times modules | ...`
16:19:30FromDiscord<Kiloneie> well when i say the title it's module Times
16:19:40FromDiscord<Kiloneie> could easily change that yes...
16:21:08*zacharycarter quit (Ping timeout: 260 seconds)
16:23:29*NimBot joined #nim
16:24:04FromDiscord<Kiloneie> there all changed
16:24:06FromDiscord<Kiloneie> on both videos
16:30:24PrestigeAraq: regarding the deprecated pragma, should I just do it in the way you showed? I'm not sure what timotheecour is talking about. Looks like deprecatedAlias isn't a thing yet, either
16:34:59*NimBot joined #nim
16:41:02FromGitter<tim-st> Araq: object variants don't work with `const`, independent on `gc`. When I pass enum values it always gets the first enum entry in const, with `var` it works, should it work with const?
16:41:17FromGitter<tim-st> at least it compiles
16:46:44*NimBot joined #nim
16:56:32*Vladar quit (Remote host closed the connection)
16:57:14*NimBot joined #nim
17:08:15FromGitter<sheerluck> Kiloneie about https://youtu.be/6S32ogvqVgM it would be really nice if somehow you could forget to `12: w.close()` with python-like operator `with` or c++-like dtor, I don't know.
17:08:59FromGitter<sheerluck> and `26: r.close()` too
17:09:49FromDiscord<Rika> arc doesnt require close() afaik
17:10:33*NimBot joined #nim
17:10:43*lritter quit (Quit: Leaving)
17:11:36aeverrwhat bot
17:13:34supakeenThey have joins/parts/quits on and NimBot is reconnecting all the time
17:13:53FromDiscord<Rika> i have them on too and i dont see it
17:13:56aeverri mean here
17:14:02disruptekwell, i can ignore that, but the point is that it's broken.
17:14:03supakeenhttps://bpa.st/IGQQ is what it looks like on IRC.
17:14:30aeverrah, i have them off when the person hasnt interacted in an hour
17:14:47Prestigesame ^ it's nice
17:15:00supakeenI have them on a shortcut but yea, some weechat plugin does smart showing of joins/parts etc think it has to do with mentions and when someone is active.
17:15:20*rockcavera quit (Remote host closed the connection)
17:17:20federico3pity IRC clients cannot mangle the FromDiscord / FromGitter bot names
17:17:50PrestigeWouldn't be too difficult to write a plugin really, at least for weechat
17:18:20FromGitter<sheerluck> we need to develop Nim IRC client and fix `FromDiscord / FromGitter` there
17:18:26aeverrwhy tho
17:18:40disruptekhave a bouncer do it.
17:18:49shashlickYou can use triggers with weechat
17:19:12shashlickI use matterbridge which also allows that
17:20:29federico3given the continued failure of Matrix, maybe a smarter "client" is the solution
17:21:49shashlickCan znc do this as well?
17:22:17*NimBot joined #nim
17:22:47*sentreen joined #nim
17:23:14*abm joined #nim
17:34:18*NimBot joined #nim
17:46:39*NimBot joined #nim
17:47:08*gangstacat joined #nim
17:53:00*jeko quit (Quit: Leaving)
17:58:55*NimBot joined #nim
18:04:13disruptekmy house: https://www.keystonerv.com/travel-trailers/premier/floorplans/24rkpr-travel-trailer/
18:11:19*NimBot joined #nim
18:21:48*NimBot joined #nim
18:24:29*kenran joined #nim
18:27:57FromDiscord<treeform> In nim is there a way to get output file name during compile? Kind of like isMainModule ? Some thing outputFileName? I want to write out an extra file (index.html) when I compile a JS file.
18:30:15FromDiscord<treeform> I though it would be next to other constants in system.nim https://nim-lang.org/docs/system.html#10 .
18:31:06FromDiscord<treeform> Then many I though I could use `compileOption` but that only returns a bool. Is there a `compileParamter` that can return a?
18:35:50*NimBot joined #nim
18:35:56shashlicksee compilesettings
18:39:13FromDiscord<treeform> `import std/compilesettings` worked great thanks!
18:42:09*narimiran quit (Quit: leaving)
18:48:39*NimBot joined #nim
18:53:14*Jjp137 joined #nim
19:00:35*NimBot joined #nim
19:01:14*dddddd joined #nim
19:08:48FromDiscord<Shucks> Any idea how I could get a non blocking version of this? Do I need to use threads or is there something in nim I could use instead https://play.nim-lang.org/#ix=2oru
19:09:18*jjido joined #nim
19:13:56*kenran quit (Ping timeout: 265 seconds)
19:14:40*NimBot joined #nim
19:25:11*abm quit (Read error: Connection reset by peer)
19:28:34*NimBot joined #nim
19:29:31*clemens3 quit (Read error: Connection reset by peer)
19:30:54FromDiscord<Technisha Circuit> How do i use a file lock in Nim? Checking https://nim-lang.org/docs/locks.html didn't help
19:31:31FromDiscord<Technisha Circuit> I want to make a lock for a file
19:33:15skrylar[m]hoi
19:33:28FromDiscord<Rika> hoi
19:34:16*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
19:34:20*someunknownuser joined #nim
19:34:33disruptekthis just in:
19:34:37disruptek😁 People I LOVE 👍: Mongolian throat singing fans 😄, tuvan throat singing fans 😘, kalmyk throat singing fans 😌, buryat throat singing fans 🤩, manchu music fans 😍
19:37:53FromDiscord<Clyybber> 😌
19:38:15*someunknownuser quit (Client Quit)
19:38:26*someunknownuser joined #nim
19:40:50*NimBot joined #nim
19:43:39skrylar[m]disruptek: get your mind out of the gutteral 😜
19:44:01disruptekwhat's your license for flatbuffers?
19:44:09disruptekdoes it work in nim-1?
19:44:14FromDiscord<Rika> :thonk:
19:45:38FromDiscord<Recruit_main707> and are they maintained?
19:45:58FromDiscord<Rika> whats with the sudden attack
19:46:03*jjido joined #nim
19:46:45FromDiscord<Recruit_main707> we had a discussion a few days ago about flatbuffers, and that involves him
19:53:34*NimBot joined #nim
19:58:45*zacharycarter joined #nim
19:58:47FromDiscord<Technisha Circuit> > How do i use a file lock in Nim? Checking https://nim-lang.org/docs/locks.html didn't help↵> I want to make a lock for a file
20:06:11*NimBot joined #nim
20:07:42leorize[m]why do you want file locks?
20:15:06disruptekreduce theft.
20:17:34*krux02 quit (Quit: Leaving)
20:17:35FromDiscord<Technisha Circuit> Because I might corrupt a file by writing to it twice at the same time @leorize
20:17:35disruptekwell, i wanted to try skflatbuffers but it has no license and it does not compile.
20:18:06disruptekuse a standard lock.
20:18:45*NimBot joined #nim
20:23:18FromDiscord<Technisha Circuit> How exactly?
20:23:28*someunknownuser quit (Quit: someunknownuser)
20:23:34FromDiscord<Technisha Circuit> :p
20:23:41disrupteklock = initLock(), lock.acquire, lock.release, or whatever.
20:23:53disruptekthe api is pretty simple.
20:24:01FromDiscord<Rika> when you use it, you acquire the lock
20:24:04FromDiscord<Rika> when you're done, you release it
20:24:11disruptekdon't confuse 'em with details.
20:24:35FromDiscord<Rika> lol
20:24:41FromDiscord<Technisha Circuit> Thanks
20:25:00FromDiscord<Technisha Circuit> Oh okay, that's fairly simple :P
20:27:01disruptekit's not true, what they say about you.
20:30:50*NimBot joined #nim
20:37:03*haxscramper quit (Remote host closed the connection)
20:42:24*NimBot joined #nim
20:43:11*PMunch joined #nim
20:43:59FromDiscord<Shucks> Is there a way to include a dll in the compiled file?
20:44:26FromDiscord<Recruit_main707> how would it be used if it wasnt linked though
20:47:44PMunch@Shucks, well you can't statically link a DLL. But what you can do is read the file in during compilation, and then write it out to a file before dynamically loading it on runtime.
20:48:23Zevvdude
20:48:41Zevvyou can't just do things like that
20:48:47Zevvlet alone speak about it
20:48:54PMunchWell, you _can_..
20:49:03PMunchDoes that render on Discord?
20:49:22Zevvyeah, in the privacy of your own home maybe. But this is a public channel, you know
20:50:01PMunchHaha, sorry, I'll keep my filth to myself behind locked doors. No-one should be exposed to that kind of stuff unsolicited
20:50:03ZevvI find this a disconcerning smart hack though
20:50:31Zevvwho needs flatpak, right
20:51:26PMunchHaha, just package all your dependencies directly into the binary :P
20:53:04Zevvwell, I slurp a lot into my nim binaries, but never yet a shared lib
20:53:13ZevvI tend to link against these things, in general
20:53:25PMunchWhat kind of stuff are you slurping?
20:53:55FromDiscord<Rika> 15 copies of lorem ipsum
20:54:13Zevvtables, images, data in general. Parse it at compile time into nim data structures, stuff like that
20:54:13ZevvI know a parser that runs at compile time
20:55:09*NimBot joined #nim
20:55:12Zevvhm - how would I pass a string and two blocks to a macro?
20:55:55PMunch(x: static[string]; y, z: untyped)?
20:55:58FromDiscord<Rika> amacro("", (block: ...), (block: ...))
20:55:58FromDiscord<Rika> ?
20:56:14Zevvhm what PMunch said is what I typed in
20:56:18PMunchCall it with myMacro("hello"): <block 1> do: <block 2>
20:56:25Zevvooh, only 1 do :/
20:56:33disruptekwell then...
20:56:38FromDiscord<Rika> ??? dont dos make a proc
20:56:42PMunchI think you can do to
20:56:49PMunch@Rika, nope
20:56:49ZevvI had 2 do's
20:56:56FromDiscord<Rika> nope what
20:57:03FromDiscord<Rika> i make procs with do statements
20:57:13PMunchYes, they can, but they don't always
20:57:37FromDiscord<Rika> thats annoying
20:57:40disruptekZevv: do do that voodoo that you do so well.
20:57:49Zevvthe voodoo that you do
20:57:53disruptekscooby dooby do.
20:57:53Zevvyou remind me of the babe
20:57:54*haldean joined #nim
20:58:31PMunchZevv, here you go: https://play.nim-lang.org/#ix=2os0
20:58:35PMunchWith two dos
20:58:45ZevvPMunch: ya got it, thanks
20:58:48disruptekdos dos, as we say in mexico.
20:58:50Zevvbrackets, who makes up this stuff
20:58:54disruptekright?
20:59:01disrupteksyntax is for neckbeards.
20:59:07Zevvreally, can we fix this once and for all
20:59:09Zevvand go lisp or something
20:59:14disruptekjesus yes.
20:59:25disruptekkebab cancer.
20:59:28disrupteki'm ready.
20:59:30ZevvI was so very pleased with myself for making this doc PR this week :grin:
20:59:32disrupteki've had a long life.
21:00:16haldeanhey folks! is there a fast way to convert a char to a unicode.Rune? I figure chars must be a subset of Rune, since Rune can represent any unicode character and ascii is a subset of unicode, but I can't find a way to do the conversion without going through a string.
21:01:07leorize[m]!eval import unicode; echo Rune('a')
21:01:09NimBota
21:01:23leorize[m]haldean: ^ there you go
21:01:34ZevvYeah, now do Run('é')
21:01:41Zevvs/Rune/
21:01:55PMunchThat's not valid though, as é isn't a single char
21:02:04PMunch!eval import unicode; echo Rune('é')
21:02:06NimBotCompile failed: /usercode/in.nim(1, 29) Error: missing closing ' for character literal
21:02:09ZevvIt is on my CP437 character set
21:02:13haldeanwow that is extremely easy, derp. is there a way to find constructor-ey things like that in the docs? I was looking in the unicode module and didn't see anything like that
21:02:15PMunchHaha :P
21:02:36leorize[m]nah, it's just a simple conversion
21:02:38Zevvheldan: it's not constructory, it's a basic conversion
21:02:50Zevv'e'.Rune
21:03:12Zevvjust like `15.uint8` or `uint8(5)`
21:03:15FromDiscord<Shucks> > @Shucks, well you can't statically link a DLL. But what you can do is read the file in during compilation, and then write it out to a file before dynamically loading it on runtime.↵thats clever
21:03:25leorize[m]that's evil
21:03:28Zevvand kind of sad
21:03:29haldeanah got it.
21:03:41haldeanthanks Zevv and leorize!
21:04:04Zevvalways welcome
21:04:11leorize[m]:)
21:04:30leorize[m]Zevv: people actually are doing the trick right now with 7zSFX
21:04:37disruptekgtfo
21:04:37PMunchFor extra points ship the zip dll that way and then load that to open a zip library with the rest of the DLLs
21:04:41leorize[m]though you may argue that it's a bit different :P
21:04:54PMunchSorry, I'll stop..
21:05:06disruptekyou never close your eyes anymore when i kiss your lips.
21:05:30PMunchFool me once
21:05:59*haldean quit (Quit: Leaving)
21:07:29*NimBot joined #nim
21:09:12Zevvshame on disruptek
21:10:05disruptekwut
21:10:43disruptekdude.
21:10:52disruptekthere's no tenderness like before in your fingertips.
21:11:21PMunchWhat is even going on
21:11:30FromDiscord<Rika> classic disruptek
21:12:03disrupteki'm way past classic, sadly.
21:12:04FromDiscord<Elegant Beef> Dude has disrupt in his name and he just follows through
21:12:09disrupteki'm what we call `antique`.
21:12:18*neceve_ quit (Ping timeout: 246 seconds)
21:12:32FromDiscord<Rika> ancient
21:14:46*NimBot joined #nim
21:15:50PMunchBye
21:16:57disruptekzevv, you're too tall to ride a vespa.
21:17:04disrupteki'm just sayin'.
21:24:54disruptekPMunch: it's still compiling?
21:25:00PMunchLet me check
21:25:49PMunchSure is
21:26:09FromDiscord<Rika> how much usage now
21:26:25*NimBot joined #nim
21:26:43PMunchIt kinda stalled at around 61GB RAM and 7GB swap
21:27:21disruptekswap will kill you.
21:27:34PMunchWhat'd you mean?
21:27:54disruptekhard to make progress if you're in swap i/o.
21:28:09PMunchFor sure
21:28:20PMunchIt's only clocked 155h of CPU time
21:28:24disruptekmaybe bisect until you find the limit.
21:28:43disruptekcould be that something like tcc works better, too.
21:29:03PMunchWell it's been running for a month, I'm sure as shit not stopping it now..
21:32:12disruptekwell, it might be locked in i/o wait.
21:32:55disruptekyou might find that you're further from the limit than you think.
21:33:10disruptekthe size is essentially arbitrary.
21:37:21PMunchTrue..
21:38:04*NimBot joined #nim
21:38:10disruptekmaybe you should get a criu working so you can swap it in and out of larger and larger machines.
21:38:11FromDiscord<willyboar> a tinyh proc
21:38:19*clemens3 joined #nim
21:38:30PMunchvoltist, a single procedure
21:38:39PMunchWith 308M arguments :P
21:38:45voltistCompiling or running?
21:38:51PMunchCompiling
21:38:56voltistLol
21:39:17voltistThat's a good stress test
21:40:03PMunchWell not at the moment..
21:40:05disruptekPMunch: remind me where you work.
21:40:08FromDiscord<willyboar> Yes your grandchildren will be very happy w/ the results
21:40:10PMunchA company called Dualog
21:41:35voltistAnything I need to know about when setting up CI for a Nimble package?
21:41:39FromDiscord<willyboar> your company have offices in greece
21:42:58PMunch@willyboar, who mine?
21:43:06PMunchI think that "office" is just a single person :P
21:43:20FromDiscord<willyboar> hehe
21:44:35PMunchBiggest offices are in Tromsø and in Singapore
21:45:21FromDiscord<willyboar> You can ask to work in Athens at summers
21:45:24FromDiscord<willyboar> 😛
21:46:26PMunchI'd rather work there in winter TBH
21:46:37*solitudesf- quit (Ping timeout: 260 seconds)
21:46:39PMunchI mean summer here is pretty nice comparatively
21:46:59disruptekthat's a statement only a norwegian makes.
21:48:15FromDiscord<willyboar> i guess our winter is similar to your summer
21:49:09PMunchI mean that would be great!
21:49:29FromDiscord<Rika> yall have winter?
21:49:55*NimBot joined #nim
21:50:08FromDiscord<willyboar> nope
21:50:10PMunchI did my first hike of the year without skiis on today
21:50:36PMunchStill had to plan my route carefully and cross some floes here and there, but still
21:51:05PMunchWell, not a floe I guess, patches of snow?
21:52:31FromDiscord<willyboar> I like snow but it is rare here
21:54:34PMunchhttps://uploads.peterme.net/IMG20200606235323.jpg
21:54:40PMunchThat's right now out the window
21:54:47PMunchAt 11:54PM none the less :P
21:55:50PMunch~buster
21:55:51disbotno footnotes for `buster`. 🙁
21:56:07PMunchdisruptek, what was your dogs name again?
21:56:13FromDiscord<willyboar> Very Cool
21:56:16disrupteksteve
21:56:16Prestigedang PMunch
21:56:22disrupteki mean,
21:56:23disruptek~bentley
21:56:24disbotbentley: 11https://imgur.com/gallery/yEXiWWG -- disruptek
21:56:24disbotbentley: 11a good boy
21:56:27PMunchAah
21:56:43disrupteki just call him steve.
21:56:45PMunch~klegg is https://uploads.peterme.net/klegg.jpg
21:56:47disbotklegg: 11https://uploads.peterme.net/klegg.jpg
21:56:57PrestigePMunch: how warm does it get there in the summer?
21:56:59PMunch~klegg is another good boy
21:56:59disbotklegg: 11another good boy
21:57:03PMunch~klegg
21:57:03disruptekthat's a helluva view.
21:57:03disbotklegg: 11another good boy -- PMunch
21:57:08disrupteklol
21:57:11PMunch~klegg is https://uploads.peterme.net/klegg.jpg another good dog
21:57:12disbotklegg: 11https://uploads.peterme.net/klegg.jpg another good dog
21:57:22PMunchdisbot, out the window by my desk :)
21:57:36disruptekwicked.
21:57:54disruptekthat dog likes pretty comical.
21:57:59PMunchPrestige, https://www.yr.no/en/statistics/graph/1-305409/Norway/Troms%20og%20Finnmark/Troms%C3%B8/Troms%C3%B8
21:57:59disrupteklooks
21:58:15PMunchHe is pretty comical :P
21:58:39disrupteki don't wanna wake bentley up; he'll bark at klegg.
21:59:04PMunchKlegg doesn't bark
21:59:19PMunchWell, I've head him bark three times
21:59:19disruptekdoes he sign?
21:59:44*clemens3 quit (Read error: Connection reset by peer)
21:59:44PMunchHaha, yes he uses his paws to aggressively sign the word "bark" at passerbys
21:59:44PrestigePMunch: Oh, it doesn't get warm there :P
22:00:02*NimBot joined #nim
22:00:08disruptekpassers by!
22:00:16PMunchPrestige, come on, 20+ is pretty warm
22:00:28PMunchdisruptek, it's late and I'm tired -_-
22:00:40PMunchI felt that looked weird
22:00:42disruptekit's one of those creepy things.
22:00:49PMunchMan.. That sentence was even worse..
22:01:48*clemens3 joined #nim
22:04:50FromDiscord<Elegant Beef> I dont think prestige realized that's celcius
22:04:58PrestigeI did
22:05:06FromDiscord<Elegant Beef> Well then that's warm
22:05:31PrestigeI mean it was 32c here today and 60% humidity
22:05:40FromDiscord<Elegant Beef> That's too damn hot
22:05:47PrestigeYeah.. lol
22:05:58FromDiscord<willyboar> Prestige where are you live?
22:05:59FromDiscord<Elegant Beef> also pmunch we live in similar ranges 😄
22:06:04FromDiscord<willyboar> we have similar temps
22:06:05PrestigeUsed to live where it got up to 50c, I hate the heat
22:06:19Prestigeeast coast usa right now willyboar
22:06:21PMunchDjeezez
22:06:55Prestigethe 50c place was south east california in the desert
22:06:57FromDiscord<willyboar> 50 is too much
22:07:06*abm joined #nim
22:07:12FromDiscord<Elegant Beef> This is my area's average temperature https://media.discordapp.net/attachments/371759389889003532/718949135851454494/unknown.png
22:07:16PMunchI mean here we don't have AC, so even 32c would be horrible!
22:07:53PMunchWhere do you live @Elegant Beef?
22:08:17FromDiscord<Elegant Beef> A small town in central- northern alberta
22:08:26FromDiscord<Elegant Beef> Canuckistan
22:09:12FromDiscord<Elegant Beef> Actually suprisingly similar averages
22:09:23PMunchHuh, never heard Canuckistan before
22:09:32FromDiscord<Elegant Beef> Lol Canada
22:09:42FromDiscord<Elegant Beef> It's a joke that some people think it's too socialist
22:09:45PMunchYeah I figured that out when I typed it into Google Maps
22:09:50FromDiscord<Elegant Beef> Im not one i just like it
22:10:41*NimBot joined #nim
22:10:47PMunchOh, did we? :P
22:11:19FromDiscord<Elegant Beef> Yea i folllowed up and said a majority of canada lives within a few hundred KM to the US border, so what do you mean "half" of canada is further south
22:11:27FromDiscord<willyboar> Last year i was living here : https://en.wikipedia.org/wiki/Icaria
22:11:46FromDiscord<Elegant Beef> I think you can agree pmunch -10 to +10 is ideal temperature 😄
22:12:23FromDiscord<Rika> what the hell
22:12:28PMunchI actually really like warm weather :P
22:12:33FromDiscord<Elegant Beef> Ah
22:12:33PMunchBut I also really like snow..
22:12:36FromDiscord<Rika> i can barely stay in a 24 C area
22:12:41FromDiscord<Elegant Beef> Lol
22:12:42FromDiscord<Rika> too cold
22:12:50PMunchThe perpetual darkness can get fucked though..
22:12:52FromDiscord<Elegant Beef> I dont tend to wear a jacket in the temperature range i suggested
22:13:03FromDiscord<Elegant Beef> Yea in winter we have 4pm nights
22:13:06PMunch@Rika, the ovens in my house are set for 22C..
22:13:13FromDiscord<djazz> > Djeezez↵That is not my name xD
22:13:27PMunch@Elegant beef, in winter the sun never comes above the horizon here..
22:13:30FromDiscord<Elegant Beef> sun rise at around 6am and sets at 4-5pm in winter
22:13:32FromDiscord<Elegant Beef> Yea i know
22:13:45FromDiscord<Rika> > That is not my name xD↵@djazz ok djeeta
22:13:48PMunchBut now it never goes below it :)
22:13:56FromDiscord<Elegant Beef> Dj jazz overhere
22:14:17FromDiscord<Rika> so, how many people have joked about your name by saying Djizz
22:14:31PrestigeIt sounds interesting PMunch, I need to find a cooler place to live
22:14:32FromDiscord<djazz> Or dj azz
22:14:44FromDiscord<djazz> I say deejazz
22:14:57FromDiscord<Elegant Beef> Well canada is cooler
22:15:02FromDiscord<Elegant Beef> Both politically and temperature 😛
22:15:06PMunchPrestige, you're welcome to come here :)
22:15:26FromDiscord<djazz> @Rika very few actually
22:15:33disruptekit remains difficult to grow large single diamond crystals, to say nothing of slicing them into wafers.
22:15:41PrestigeHaha I think that'd be quite a move. I also only really speak english so there's that
22:15:50*pbb quit (Remote host closed the connection)
22:15:59PMunchPrestige, don't worry about that, most people here speak close to perfect english
22:16:09FromDiscord<Elegant Beef> Scandanavians tend to learn english as a second language
22:16:34PMunchThe people I know who come here speaking English tend to find it really hard to learn Norwegian because everyone just switches to english when talking to them :P
22:16:41FromDiscord<djazz> _waves flag 🇸🇪 _
22:16:48FromDiscord<willyboar> i have heard that some countries learn ancient greeks
22:16:54PMunchTo the point where people might switch in the middle of a sentence if you walk up to a group of people
22:17:05*pbb joined #nim
22:17:17FromDiscord<Elegant Beef> I mean with that decreasing birth rate gotta take in foriegners 😛
22:17:22FromDiscord<djazz> When i visit denmark we just switch to english
22:17:53PrestigePMunch: hook me up and I'll move to sweden :P
22:18:36PMunchWhy would I have you move to Sweden? :P
22:18:54PMunchI live in Norway
22:19:05FromDiscord<Elegant Beef> He's american he doesnt know the difference
22:19:11disrupteki don't think he wants to share a country with you, PMunch.
22:19:18PrestigeOh i thought you were in sweden haha
22:19:27disrupteklike, one country ain't enough for this assklown.
22:19:55PMunchHaha :P This country isn't big enough for the both of us
22:19:55FromDiscord<djazz> I am in sweden. We open for tourists now
22:19:59PMunch*tumbleweed rolls by*
22:20:06PrestigeLmao
22:20:13FromDiscord<Elegant Beef> *Tumble snowball
22:20:34*NimBot joined #nim
22:20:39PMunchI think Norway is open to people from Denmark, but not Sweden, because you guys haven't really managed this whole Corona thing all that well..
22:21:05FromDiscord<djazz> Yea norway closed border to swe
22:21:27FromDiscord<Elegant Beef> Well from my understanding the sweedes dont have a state of emergancy legelslation the government can enact for sickness
22:21:28FromDiscord<djazz> 4k deaths here so far
22:21:42PrestigeI could at least visit. Need to find a cooler place. Moving next summer but haven't picked where yet
22:21:53FromDiscord<Elegant Beef> Atleast i read it on a reddit post somewhere so it has to be true
22:24:13FromDiscord<Shucks> whats equivalent to cpp's tilde destructor? Basically tryint to recode that few lines ```long style = GetWindowLong(ownd, GWL_EXSTYLE);↵style &= ~WS_EX_LAYERED;↵SetWindowLong(ownd, GWL_EXSTYLE, style);```
22:24:25PMunchNorway has 238 deaths
22:25:06PMunchPrestige, swing by any time
22:25:20PMunchI would say "if you're in the area" but no-one ever are
22:25:47FromDiscord<djazz> Yeah the other nordic countries have low numbers.
22:26:12FromDiscord<djazz> Nim chat in offtopic, and offtopic in main, lol
22:26:37FromDiscord<Rika> @Shucks if you can explain what a tilde constructor is to those who dont know cpp
22:27:06FromDiscord<djazz> I should continue work on my nim web framework. Routing is next up
22:28:19PMunch@djazz, haha that tends to happen from time to time :P
22:29:50FromDiscord<willyboar> PMunch we are waiting for it 😛
22:30:52*NimBot joined #nim
22:31:09FromDiscord<willyboar> the web framework
22:31:23FromDiscord<willyboar> but you are talking for the chat 😛
22:31:43FromDiscord<djazz> https://github.com/daniel-j/koan
22:32:14FromDiscord<KingDarBoja> _do one for express_
22:32:19PMunchOooh :P
22:32:55FromDiscord<djazz> KoaJS is by the guy who made express
22:33:32FromDiscord<djazz> Expressive middleware, but async
22:33:51voltistIs using the unique name of a fictional character as the name for an open source project legally questionable?
22:34:08PMunchHmm
22:34:13FromDiscord<KingDarBoja> @djazz didn't know about that, not used to do backend on JS
22:34:33PMunchWell I guess there is no way of confusing the library with the character
22:34:44FromDiscord<djazz> Probably not a good idea
22:34:53PMunchAnd I think trademarks and such only applies to their area
22:35:01FromDiscord<Rika> voltist: who 👀
22:35:14voltisthttps://prospect.fandom.com/wiki/Inumon
22:36:12PMunchI mean Karax gets away with it: https://starcraft.fandom.com/wiki/Karax
22:36:16voltistI doubt there is trademark, but I don't understand copyright law enough to know if it covers this sort of thing
22:37:48voltistIf you google Inumon, literally all of the results on the first page are about the character, movie or a song in the movie
22:38:41FromDiscord<KingDarBoja> ❤️ Karax
22:39:25FromDiscord<djazz> I use a JS framework called Mithril, which name is from lord of the rings
22:39:32FromDiscord<Rika> most people wont realize the connection
22:39:33FromDiscord<Rika> unless they know the series
22:39:48FromDiscord<djazz> Lightweight, but strong
22:40:16voltistAccording to the internet, characters are copyrighted but names are not
22:41:02*NimBot joined #nim
22:41:13FromDiscord<Rika> just name it the same, but dont indicate a connection to the character?
22:41:33PMunchI doubt they'd come after you for it
22:41:37PMunchBut again IANAL
22:41:50PMunchWell, I'm off to walk the dog and go to bed
22:41:54PMunchNigth
22:41:54*PMunch quit (Quit: leaving)
22:41:56FromDiscord<Rika> what does ianal mean
22:41:57voltistCya
22:42:07FromDiscord<KingDarBoja> https://www.urbandictionary.com/define.php?term=IANAL
22:42:07FromDiscord<Rika> oh
22:42:08FromDiscord<Rika> yeah
22:42:10FromDiscord<Rika> i realized it
22:42:25FromDiscord<KingDarBoja> I didn't, had to google it
22:44:48voltistOk, I'll do it
22:45:05*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
22:45:10voltistJust the name and that nice scarlet color the character wears for icons
22:48:16FromDiscord<djazz> If its not trademarked for software it should be ok but ianal
22:48:47FromDiscord<djazz> Jade was renamed to Pug over it, just in case https://github.com/pugjs/pug/issues/2184
22:48:48disbotRenaming jade -> pug
22:52:23FromDiscord<djazz> Also my ”koan” module happens to share name with a Sailor Moon villain heh
22:52:55*NimBot joined #nim
22:59:43FromDiscord<Rika> ~~jade is a homestuck character too~~
23:03:45*NimBot joined #nim
23:08:51*fredrikhr quit (Ping timeout: 246 seconds)
23:13:43FromDiscord<willyboar> I don't think there is a problem
23:14:19FromDiscord<willyboar> they have even used names
23:14:24FromDiscord<willyboar> Sinatra
23:15:29*NimBot joined #nim
23:21:00FromDiscord<KingDarBoja> Hahahahaha
23:21:10FromDiscord<KingDarBoja> Wasn't the other way around?
23:21:18FromDiscord<KingDarBoja> Tarantino sues Django xD
23:24:02FromDiscord<willyboar> Django framework is older i think
23:24:36FromDiscord<willyboar> framework 2005 - movie 2012
23:26:30*NimBot joined #nim
23:26:35FromDiscord<KingDarBoja> https://en.wikipedia.org/wiki/Django_(1966_film)
23:26:38FromDiscord<KingDarBoja> Not so fast
23:27:39FromDiscord<willyboar> hm....
23:27:58FromDiscord<willyboar> I suppose in both cases tarantino lose
23:28:02FromDiscord<willyboar> 😛
23:32:47shashlick@PMunch that dll thing you suggested isn't possible
23:33:08shashlickI tried it in nimdeps but Nim tries to load the dll before the main function
23:33:19*Trustable quit (Remote host closed the connection)
23:33:31shashlickThat's with dynlib, with regular -l loading, exe doesn't even start
23:33:42leorize[m]@dom96 this one is now ready for review: https://github.com/nim-lang/Nim/pull/14556
23:33:44disbotnet, openssl: support setting the minimum supported SSL/TLS version
23:37:55*NimBot joined #nim
23:39:59*zedeus quit (Ping timeout: 246 seconds)
23:41:39*tane quit (Quit: Leaving)
23:43:11*zedeus joined #nim
23:47:58*zedeus_ joined #nim
23:48:04*zedeus quit (Read error: Connection reset by peer)
23:49:25*NimBot joined #nim
23:51:07*zedeus_ quit (Read error: No route to host)
23:51:12*zedeus joined #nim
23:51:51leorize[m]shashlick: now that we have std/compilesettings, what do you think about making `{.dynlib.}` a macro?
23:59:54*zedeus quit (Ping timeout: 264 seconds)