<< 09-02-2024 >>

00:34:15FromDiscord<sirius_3x> sent a code paste, see https://play.nim-lang.org/#pasty=wldJMalUyHSs
00:34:44FromDiscord<Elegantbeef> https://nim-lang.org/docs/manual.html#procedures-var-parameters
00:34:59FromDiscord<sirius_3x> In reply to @Elegantbeef "https://nim-lang.org/docs/manual.html#procedures-va": Ty so much lol, good bot
00:35:12FromDiscord<Elegantbeef> I'm not a bot
00:35:16FromDiscord<Elegantbeef> I'm a man with a keyboard
00:35:20FromDiscord<Elegantbeef> Or so I'm told
00:35:28FromDiscord<sirius_3x> oh, but it says bot on your username.
00:35:38FromDiscord<Elegantbeef> I use matrix
00:35:42FromDiscord<Elegantbeef> It's bridged to discord
00:35:49FromDiscord<sirius_3x> ahhhh i see lol
00:36:07FromDiscord<Elegantbeef> In what world is "Elegantbeef" a good bot name
00:37:05FromDiscord<sirius_3x> In reply to @Elegantbeef "In what world is": xDD maybe its one of the new mixtral experts lool
00:37:50FromDiscord<sirius_3x> ig the profile picture was also a bit of a giveaway tho
00:38:35FromDiscord<Elegantbeef> You're not the first and won't be the last to think of me as a bot
00:40:03FromDiscord<sirius_3x> my sympathies lol
00:51:06FromDiscord<huantian> man is the llm trying to convince others of its sentience again
01:15:53*azimut joined #nim
02:24:23*SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev)
03:50:21NimEventerNew thread by dwhall256: How to declare a string containing an untyped?, see https://forum.nim-lang.org/t/10968
04:03:24FromDiscord<kdot_227> is it possible to add a file that is in memory using memfiles in newMultpartData? reference = https://nim-lang.org/docs/httpclient.html#addFiles%2CMultipartData%2CopenArray%5Btuple%5Bstring%2Cstring%5D%5D
04:03:45FromDiscord<kdot_227> I know you can do it in python but I'm not sure if you can in nim
04:05:15FromDiscord<kdot_227> @ElegantBeef I need you again 😭
04:05:48FromDiscord<Elegantbeef> I really need to put a change jar at the door
04:06:28FromDiscord<Elegantbeef> You should try it and report back what happens
04:11:21*SchweinDeBurg joined #nim
05:09:02FromDiscord<kdot_227> In reply to @Elegantbeef "You should try it": please 😭 🙏
05:10:05FromDiscord<Elegantbeef> Please what?
05:10:08FromDiscord<Elegantbeef> Dance like a monkey?
05:11:10FromDiscord<kdot_227> In reply to @Elegantbeef "Please what?": tell me if there is a sollution to my problem
05:11:13FromDiscord<kdot_227> solution
05:11:19FromDiscord<Elegantbeef> I told you to try it
05:14:08FromDiscord<kdot_227> In reply to @Elegantbeef "I told you to": try giving you money?
05:14:23FromDiscord<Elegantbeef> > You should try it and report back what happens
05:17:26FromDiscord<kdot_227> In reply to @Elegantbeef "> You should try": but the typing
05:17:56FromDiscord<Elegantbeef> Damn excuse me whilst I go cry about your fingies
05:21:52FromDiscord<kdot_227> In reply to @Elegantbeef "Damn excuse me whilst": what? 😭
05:26:34FromDiscord<Elegantbeef> There really should be a standard etiquette against asking someone to write you code
05:27:04FromDiscord<kdot_227> In reply to @Elegantbeef "There really should be": no, don't write me code, just point me to where im being slow and reading something wrong
05:27:21FromDiscord<Elegantbeef> Did you attempt to use a memory mapped file in the html api?
05:27:24FromDiscord<Elegantbeef> http api\
05:27:37FromDiscord<kdot_227> In reply to @Elegantbeef "Did you attempt to": 👀
05:27:38FromDiscord<kdot_227> ur kidding
05:27:53FromDiscord<Elegantbeef> It's a funny joke eh?
05:32:37FromDiscord<kdot_227> In reply to @Elegantbeef "It's a funny joke": u make me rethink about wanting to learn nim sometimes
05:32:40FromDiscord<kdot_227> thank you again
05:32:41FromDiscord<kdot_227> as always
05:32:54FromDiscord<griffith1deadly> :nim1:
05:33:20FromDiscord<Elegantbeef> Why?
05:33:25FromDiscord<Elegantbeef> I help when an actual question is asked. If you are asking if X works... why not try it before asking
05:40:12*LuxuryMode_ quit (Quit: Connection closed for inactivity)
05:44:13FromDiscord<kdot_227> In reply to @Elegantbeef "I help when an": because I read docs and I'm stuck with 3-4 types and I don't know c so I have 0 idea how pointers work but I want to learn
05:44:24FromDiscord<kdot_227> so you pointing out stupid things help me more than you realize
05:45:03FromDiscord<kdot_227> I started with python which is nice but it makes me rethink how I look at other langs for the fact that it isn't as simple as just googling how to fix it and easily changing my code I actually have to put effort into it 💀
05:46:18FromDiscord<kdot_227> I still guarentee I'll have issues
05:46:19FromDiscord<kdot_227> but
05:46:31FromDiscord<kdot_227> I can work through it 👍
05:47:02FromDiscord<Elegantbeef> So 'u make me rethink about wanting to learn nim sometimes' was not "I hate you and you're unhelpful"?
05:50:11FromDiscord<nnsee> > I actually have to put effort into it↵yes. Writing your own code and debugging it is part of that effort (the "fuck around and find out" mantra). If you don't do that and instead shift that effort on someone else, how are you ever expecting to learn anything?
05:50:33FromDiscord<Elegantbeef> Chatgpt chuckles
05:51:13FromDiscord<kdot_227> In reply to @Elegantbeef "So 'u make me": that was a joke
05:51:42FromDiscord<kdot_227> In reply to @nnsee "> I actually have": I'm not putting anything onto anybody I was just asking to be pointed into the correct direction
05:55:53FromDiscord<nnsee> In reply to @kdot_227 "I'm not putting anything": your question was:↵> is it possible to add a file that is in memory using memfiles in newMultpartData? ↵the answer is "yes".
05:56:34FromDiscord<kdot_227> In reply to @nnsee "your question was: >": that's pointing me into the right direction on trying to solve the issue
05:56:42FromDiscord<kdot_227> I was only asking if it was possible
05:56:55FromDiscord<kdot_227> not the exact code laid out on a plater for me to use and copy + paste
05:57:56FromDiscord<kdot_227> by no means am I an expert programmer
05:58:01FromDiscord<nnsee> homie, you literally said "but the typing" in response to baaf asking you to try it out
05:58:05FromDiscord<nnsee> beer even
05:58:12FromDiscord<nnsee> god damn it
05:58:20FromDiscord<kdot_227> I'm still in HS learning
05:58:28FromDiscord<kdot_227> In reply to @nnsee "homie, you literally said": because I was confused for a second
06:01:48FromDiscord<kdot_227> also I think you might be confused with what I'm doing in the fact that I don't have a file written to disk. I'm trying to take a string from memory and upload it as a file to gofile.io
06:02:19FromDiscord<kdot_227> upload it as a .log file
06:07:04FromDiscord<kdot_227> holy fuck
06:07:08FromDiscord<kdot_227> im stupid asf
06:07:10FromDiscord<kdot_227> im so sorry
06:07:30FromDiscord<kdot_227> u can keep making fun of me i c now
06:10:02FromDiscord<odexine> In reply to @nnsee "beer even": Elegant beer
06:23:45*advesperacit joined #nim
06:25:43*eagledot joined #nim
07:35:41FromDiscord<nnsee> In reply to @odexine "Elegant beer": i wish
07:37:28*PMunch joined #nim
07:52:23*KhazAkar quit (Remote host closed the connection)
07:52:49*KhazAkar joined #nim
08:18:54*eagledot quit (Quit: Leaving)
09:15:08*adigitoleo quit (Ping timeout: 248 seconds)
09:16:49*adigitoleo joined #nim
10:59:19*junaid_ joined #nim
11:34:31*junaid_ quit (Remote host closed the connection)
11:50:24*pbsds7 joined #nim
11:51:53*end quit (Read error: Connection reset by peer)
11:52:11*pbsds quit (Ping timeout: 264 seconds)
11:52:11*pbsds7 is now known as pbsds
11:54:34*NimEventer quit (Ping timeout: 276 seconds)
11:54:44*NimEventer joined #nim
11:57:57*end joined #nim
13:06:14*jmdaemon quit (Ping timeout: 252 seconds)
13:37:58advesperacithow can I get this to work? https://play.nim-lang.org/#pasty=CznshJaZLdmr
13:50:26FromDiscord<nnsee> In reply to @advesperacit "how can I get": probably not what you want, but... https://play.nim-lang.org/#pasty=oqRJovURTmmX
13:54:47advesperacitIt won't work for what I'm doing as I'm using the array to compare against a subset of all MyProcs, but it's good to know I'm not missing anything obvious
13:54:52advesperacitthank you
13:55:49FromDiscord<odexine> add ` {.nimcall.}` to the end of line 1
13:56:01FromDiscord<demotomohiro> sent a code paste, see https://play.nim-lang.org/#pasty=dSwZvQAXLtxh
13:56:35FromDiscord<odexine> dont you have this in your faq haha
13:58:42FromDiscord<demotomohiro> No, I don't. I should add it as some people asked similar question before.
14:11:59advesperacitI could have sworn I tried slapping {.nimcall.} on the type, but evidently not! Thank you
14:20:12FromDiscord<stardustbiscuits> Was nitter made in nim? (Y nitter no work?)
14:21:19FromDiscord<Robyn [She/Her]> In reply to @stardustbiscuits "Was nitter made in": Nitter was made in Nim, but Twitter killed the free API
14:21:31FromDiscord<Robyn [She/Her]> So Nitter can't use Twitter's API for Tweets
14:23:14FromDiscord<odexine> In reply to @stardustbiscuits "Was nitter made in": it doesnt matter if nitter was in nim or rust or go or scala or whatever other language, it would still be dying today
14:24:00FromDiscord<odexine> In reply to @chronos.vitaqua "So Nitter can't use": essentially requiring fake account usage + site scraping, which is iffy at best
14:24:15FromDiscord<Robyn [She/Her]> Yeaah
14:31:46*azimut_ joined #nim
14:32:08*azimut quit (Ping timeout: 255 seconds)
14:51:22FromDiscord<stardustbiscuits> In reply to @chronos.vitaqua "Nitter was made in": Did it use jester or something else?
14:51:48FromDiscord<zumi.dxy> it does use jester, yeah
14:51:55FromDiscord<zumi.dxy> and I believe karax for the html
15:12:30*PMunch quit (Quit: Leaving)
15:28:12*SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev)
15:37:00*Zevv joined #nim
15:37:08*Zevv left #nim (#nim)
16:16:00FromDiscord<arnetheduck> In reply to @chronos.vitaqua "How do I spawn": with `ThreadSignalPtr`, like so: https://github.com/status-im/nimbus-eth2/blob/1575478b721b6f62d6466a226b91188bdf97e00b/beacon_chain/gossip_processing/batch_validation.nim#L240 (a few more examples here: https://github.com/status-im/nim-chronos/pull/493)
16:19:24FromDiscord<Robyn [She/Her]> Thanks!
16:51:35*Zevv joined #nim
17:01:46*junaid_ joined #nim
17:07:50FromDiscord<nnsee> what even is status
17:36:04FromDiscord<penguinite> a Swiss company that, from first glance on their site, focuses on Web3 crypto stuff. They written a couple of nim libraries/servers/programs and AFAIK they are also the ones who are currently helping Nim tooling
17:36:34FromDiscord<penguinite> Theyre also commercial suppors IRC
17:36:41FromDiscord<penguinite> supporters
17:39:22FromDiscord<odexine> In reply to @pengwyns "a Swiss company that,": iirc theyre the biggest company helping nim directly?
17:52:12*SchweinDeBurg joined #nim
18:08:34FromDiscord<kiloneie> is there a prgama or how do i tell Nim to not do this:
18:09:35FromDiscord<kiloneie> proc `<=`()=↵if <=↵↵it calls itself, instead of system's <=
18:18:40FromDiscord<odexine> sent a code paste, see https://paste.rs/C1y4x
18:28:45*lucasta joined #nim
19:03:56*azimut_ quit (Ping timeout: 255 seconds)
19:18:18FromDiscord<Robyn [She/Her]> In reply to @arnetheduck "with `ThreadSignalPtr`, like so:": That doesn't make sense to me tbh
19:18:50FromDiscord<Robyn [She/Her]> Also I'm using std/asyncdispatch too (probably shouldn't tho)
19:28:06*zgasma joined #nim
19:37:49FromDiscord<nnsee> haven't you heard? asyncdispatch is peepee poopoo
19:37:51FromDiscord<nnsee> apparently
19:38:22FromDiscord<nnsee> i should try out chronos actually and see if it alleviates some of the oddities i've had with async
19:44:27*The_Buhs joined #nim
19:54:27FromDiscord<Robyn [She/Her]> Sigh, I might just fully give in to async code
19:54:42FromDiscord<Robyn [She/Her]> Or completely give into sync code and learn multithreading properly
19:55:37FromDiscord<Robyn [She/Her]> Not sure how I should handle connections though, how would I wait for each one?
20:16:01FromDiscord<griffith1deadly> In reply to @chronos.vitaqua "Not sure how I": in multithreaded way - 1 thread for waiting connections, one thread per connection for reading/writing
20:16:34FromDiscord<Robyn [She/Her]> In reply to @griffith1deadly "in multithreaded way -": 1 thread per connection is what I wanna avoid honestly
20:17:47FromDiscord<griffith1deadly> then if you wanna without 1 thread per connection, you need↵1 thread for waiting connections, 1 thread for reading/writing per connection with selectors
20:18:08FromDiscord<Robyn [She/Her]> Makes sense, thanks!
20:18:55FromDiscord<griffith1deadly> but don't forget that one wrong action with selector and you get a deadlock. in my experience
20:19:26FromDiscord<Robyn [She/Her]> Yeah that makes sense, painful but makes sense
20:20:16FromDiscord<griffith1deadly> for example you can use httpbeast code, it use selectors
20:21:38FromDiscord<Robyn [She/Her]> Thanks for the suggestion Griffith!
20:37:08*lucasta quit (Quit: Leaving)
20:39:46FromDiscord<arnetheduck> In reply to @chronos.vitaqua "Also I'm using std/asyncdispatch": "good luck"
20:41:32FromDiscord<arnetheduck> sent a long message, see https://pasty.ee/vhwVvHGvkOMX
21:08:59*om3ga quit (Ping timeout: 264 seconds)
21:17:54*junaid_ quit (Remote host closed the connection)
21:50:37NimEventerNew thread by Horkarod: Fusion/matching case statement behavior, see https://forum.nim-lang.org/t/10971
23:05:14*advesperacit quit ()
23:12:56FromDiscord<luteva> sent a code paste, see https://play.nim-lang.org/#pasty=GnKgDKYyUERL
23:15:14FromDiscord<Elegantbeef> `std/enumerate`
23:15:30FromDiscord<Elegantbeef> or just manually implement it using a `var i: int` and `inc i`
23:18:25FromDiscord<luteva> thx!
23:19:56*adigitoleo quit (Ping timeout: 248 seconds)
23:20:44*mronetwo quit (Ping timeout: 256 seconds)
23:20:51*casaca quit (Ping timeout: 256 seconds)
23:21:55*mronetwo joined #nim
23:21:58*adigitoleo joined #nim