<< 27-11-2024 >>

00:24:50*rockcavera is now known as Guest361
00:24:50*tiorock joined #nim
00:24:50*Guest361 quit (Killed (osmium.libera.chat (Nickname regained by services)))
00:24:50*tiorock is now known as rockcavera
00:26:27*tiorock joined #nim
00:26:27*rockcavera is now known as Guest8624
00:26:27*tiorock is now known as rockcavera
00:29:41*Guest8624 quit (Ping timeout: 248 seconds)
00:36:11*tiorock joined #nim
00:36:11*rockcavera is now known as Guest1422
00:36:11*tiorock is now known as rockcavera
00:39:49*Guest1422 quit (Ping timeout: 248 seconds)
01:30:13*SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev)
01:37:08*rockcavera quit (Remote host closed the connection)
03:58:28*SchweinDeBurg joined #nim
04:44:52FromDiscord<.bobbbob> sent a code paste, see https://play.nim-lang.org/#pasty=NwsombJe
05:48:46*coldfeet joined #nim
06:02:34*coldfeet quit (Remote host closed the connection)
06:06:51*ntat joined #nim
06:14:49*kk joined #nim
06:20:24*madprops joined #nim
06:20:31madpropsi want to refresh myself on nim once again
06:20:40madpropsany new online documentation i should be aware of?
06:26:14*kk quit (Quit: Quit)
06:27:25*xet7 joined #nim
06:39:02FromDiscord<angelsdust> I'd say just start writing and see where you end
06:39:30FromDiscord<demotomohiro> Almost all of Nim language features are explained in https://nim-lang.org/docs/manual.html
06:39:55FromDiscord<demotomohiro> Or read change log: https://github.com/nim-lang/Nim/tree/devel/changelogs
07:26:35FromDiscord<angelsdust> https://nim-lang.org/docs/asynchttpserver.html says it is not meant as a prod server, but is it fine to use as prod server when proxied by nginx or not?
07:33:00*xet7 quit (Ping timeout: 246 seconds)
08:07:06*xet7 joined #nim
08:09:59madpropsdoes the tutorial get updated constantly?
08:10:04madpropsor should i expect it to be a bit outdated?
08:37:27FromDiscord<demotomohiro> `tut1.md` has been updated last month. https://github.com/nim-lang/Nim/tree/devel/doc
08:58:35PMunchIt should generally be up-to date. But it can of course drift a little
09:37:50FromDiscord<enthus1ast.> In reply to @angelsdust "https://nim-lang.org/docs/asynchttpserver.html says": I've done so, but I would also have a look at mummy (threads) and prologue
09:38:28FromDiscord<enthus1ast.> I personally enjoy threads more it makes most tasks much simpler
09:38:53FromDiscord<angelsdust> So, does that mean when proxied it is fine?
09:39:02FromDiscord<enthus1ast.> https://github.com/enthus1ast/nimMatchingMummyRouter
09:39:20FromDiscord<enthus1ast.> In reply to @angelsdust "So, does that mean": i think yes.
09:41:20FromDiscord<enthus1ast.> however you should create extra routes in nginx for (big) static files
09:42:01FromDiscord<enthus1ast.> most of nim web server libs does not handle streaming (or byte ranges) well or at all 🙂
09:42:43FromDiscord<angelsdust> Nor should it
09:44:02FromDiscord<enthus1ast.> idk at least streaming would come in handy some times
09:44:57FromDiscord<angelsdust> But doesn't nginx handle that?
09:45:04FromDiscord<angelsdust> or whatever WSGI server you got
09:45:11FromDiscord<angelsdust> WGSI? I forgor
09:45:29FromDiscord<enthus1ast.> sure, but thats for static file, but what if you want to stream large dynamically created content
09:45:46FromDiscord<enthus1ast.> had this issue, worked around it
09:47:28FromDiscord<angelsdust> Hmm, that thanksfully wont ever be my case but can't you write to tmp file and have your proxy stream that?
09:48:37FromDiscord<enthus1ast.> yes
09:49:05FromDiscord<angelsdust> Else you'd have to cache a huge file in mem?
09:49:29FromDiscord<enthus1ast.> but this has other issues, if put on temp you also have the file in mem, if put on disk you have this stuff on disk 😉
09:49:48FromDiscord<angelsdust> Storage cheaper than mem
09:49:52FromDiscord<enthus1ast.> In reply to @angelsdust "Else you'd have to": yes, but most of the time the current situation is good enough for me
09:50:02FromDiscord<enthus1ast.> it think guildenstern can stream however
09:50:18FromDiscord<enthus1ast.> but i wish mummy would add it 😛
09:53:57*xet7 quit (Ping timeout: 248 seconds)
10:06:35*xet7 joined #nim
10:49:59FromDiscord<gogolxdong666> Is there any production ready redis library?
11:02:01*GnuYawk quit (*.net *.split)
11:02:01*gshumway quit (*.net *.split)
11:02:02*pbsds3 quit (*.net *.split)
11:02:02*Ekho quit (*.net *.split)
11:02:02*end quit (*.net *.split)
11:02:03*FromDiscord quit (*.net *.split)
11:02:04*marcus quit (*.net *.split)
11:02:04*Onionhammer quit (*.net *.split)
11:02:04*dza quit (*.net *.split)
11:02:05*zgasma quit (*.net *.split)
11:02:05*PMunch quit (*.net *.split)
11:02:06*redj_ quit (*.net *.split)
11:02:06*def- quit (*.net *.split)
11:02:08*oz quit (*.net *.split)
11:02:08*tanami_ quit (*.net *.split)
11:02:08*nisstyre quit (*.net *.split)
11:02:09*bcksl quit (*.net *.split)
11:02:09*via_ quit (*.net *.split)
11:02:09*notchris quit (*.net *.split)
11:02:10*oprypin quit (*.net *.split)
11:02:10*pmp-p quit (*.net *.split)
11:02:10*termer_ quit (*.net *.split)
11:02:11*Amun-Ra quit (*.net *.split)
11:02:11*bgupta quit (*.net *.split)
11:02:11*ntat quit (*.net *.split)
11:02:12*Batzy quit (*.net *.split)
11:02:13*ormiret quit (*.net *.split)
11:02:13*ursa-major quit (*.net *.split)
11:02:14*robertmeta quit (*.net *.split)
11:02:14*mronetwo quit (*.net *.split)
11:02:14*jkl quit (*.net *.split)
11:02:14*Jhonny2x4 quit (*.net *.split)
11:02:15*dv^_^ quit (*.net *.split)
11:02:15*oddish quit (*.net *.split)
11:02:15*casaca quit (*.net *.split)
11:02:15*johuck quit (*.net *.split)
11:02:16*noeontheend quit (*.net *.split)
11:02:16*alice quit (*.net *.split)
11:02:16*om3ga quit (*.net *.split)
11:02:17*lumidify quit (*.net *.split)
11:02:17*ehmry quit (*.net *.split)
11:02:17*computerquip quit (*.net *.split)
11:02:17*tk quit (*.net *.split)
11:02:18*tmpod quit (*.net *.split)
11:02:19*xaltsc quit (*.net *.split)
11:02:19*oisota quit (*.net *.split)
11:02:19*ttkap quit (*.net *.split)
11:02:19*hovsater quit (*.net *.split)
11:02:20*anddam quit (*.net *.split)
11:02:20*SchweinDeBurg quit (*.net *.split)
11:02:20*mal`` quit (*.net *.split)
11:02:21*maytha8 quit (*.net *.split)
11:02:22*flynn quit (*.net *.split)
11:02:22*cnx quit (*.net *.split)
11:02:22*acidsys quit (*.net *.split)
11:02:23*xet7 quit (*.net *.split)
11:02:23*Jjp137 quit (*.net *.split)
11:02:24*strogon14 quit (*.net *.split)
11:02:24*attah quit (*.net *.split)
11:02:24*madprops quit (*.net *.split)
11:02:25*blackbeard420 quit (*.net *.split)
11:02:25*ftajhii quit (*.net *.split)
11:02:25*GreaseMonkey quit (*.net *.split)
11:02:25*_________ quit (*.net *.split)
11:02:25*m5zs7k quit (*.net *.split)
11:02:25*xutaxkamay quit (*.net *.split)
11:02:27*khazakar quit (*.net *.split)
11:02:27*fallback quit (*.net *.split)
11:02:28*syl quit (*.net *.split)
11:02:28*HER quit (*.net *.split)
11:02:28*void09_ quit (*.net *.split)
11:02:29*adigitoleo quit (*.net *.split)
11:02:29*Lord_Nightmare quit (Excess Flood)
11:04:51*Lord_Nightmare joined #nim
11:04:51*xet7 joined #nim
11:04:51*madprops joined #nim
11:04:51*ntat joined #nim
11:04:51*SchweinDeBurg joined #nim
11:04:51*ftajhii joined #nim
11:04:51*adigitoleo joined #nim
11:04:51*FromDiscord joined #nim
11:04:51*zgasma joined #nim
11:04:51*casaca joined #nim
11:04:51*johuck joined #nim
11:04:51*noeontheend joined #nim
11:04:51*ursa-major joined #nim
11:04:51*tmpod joined #nim
11:04:51*robertmeta joined #nim
11:04:51*mronetwo joined #nim
11:04:51*PMunch joined #nim
11:04:51*oprypin joined #nim
11:04:51*Jjp137 joined #nim
11:04:51*GnuYawk joined #nim
11:04:51*GreaseMonkey joined #nim
11:04:51*_________ joined #nim
11:04:51*pmp-p joined #nim
11:04:51*redj_ joined #nim
11:04:51*m5zs7k joined #nim
11:04:51*termer_ joined #nim
11:04:51*xutaxkamay joined #nim
11:04:51*jkl joined #nim
11:04:51*fallback joined #nim
11:04:51*Batzy joined #nim
11:04:51*marcus joined #nim
11:04:51*end joined #nim
11:04:51*Ekho joined #nim
11:04:51*pbsds3 joined #nim
11:04:51*gshumway joined #nim
11:04:51*dza joined #nim
11:04:51*Onionhammer joined #nim
11:04:51*def- joined #nim
11:04:51*notchris joined #nim
11:04:51*via_ joined #nim
11:04:51*bcksl joined #nim
11:04:51*nisstyre joined #nim
11:04:51*tanami_ joined #nim
11:04:51*oz joined #nim
11:04:51*syl joined #nim
11:04:51*Amun-Ra joined #nim
11:04:51*bgupta joined #nim
11:04:51*ormiret joined #nim
11:04:51*alice joined #nim
11:04:51*oddish joined #nim
11:04:51*dv^_^ joined #nim
11:04:51*Jhonny2x4 joined #nim
11:04:51*tk joined #nim
11:04:51*computerquip joined #nim
11:04:51*ehmry joined #nim
11:04:51*lumidify joined #nim
11:04:51*om3ga joined #nim
11:04:51*HER joined #nim
11:04:51*maytha8 joined #nim
11:04:51*mal`` joined #nim
11:04:51*anddam joined #nim
11:04:51*hovsater joined #nim
11:04:51*ttkap joined #nim
11:04:51*oisota joined #nim
11:04:51*xaltsc joined #nim
11:04:51*acidsys joined #nim
11:04:51*cnx joined #nim
11:04:51*flynn joined #nim
11:04:51*attah joined #nim
11:04:51*blackbeard420 joined #nim
11:04:51*strogon14 joined #nim
11:04:51*khazakar joined #nim
11:04:51*void09_ joined #nim
11:05:26*Artea quit (Max SendQ exceeded)
11:08:54FromDiscord<k0ts> Aptly named
11:16:43*Artea joined #nim
11:53:59*xet7 quit (Remote host closed the connection)
12:09:26*xet7 joined #nim
12:32:02*ntat quit (Quit: Leaving)
13:07:22*ntat joined #nim
15:12:41*PMunch quit (Quit: Leaving)
16:18:38*krux02 joined #nim
17:03:40*SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev)
18:54:42*xet7 quit (Remote host closed the connection)
18:56:27*xet7 joined #nim
19:23:38*zgasma quit (Quit: leaving)
20:33:50*ntat quit (Quit: Leaving)
21:04:37FromDiscord<user2m> Does anyone know if the dev of this package is in here? https://github.com/navid-m/fox
21:04:55FromDiscord<user2m> I'm trying to figure out how to use it for hot reloading with my prologue app, but having some issues
21:08:29*coldfeet joined #nim
21:18:06FromDiscord<djazz> Made a nim module to parse public google photo albums. Basically scraping the html to get the images and metadata. <https://github.com/daniel-j/nim_googlephotos>
21:19:10FromDiscord<Elegantbeef> Your `newGooglePhotos` proc is pointless
21:19:29FromDiscord<djazz> took some code i had already written and tossed into a reusable module, from my embedded project
21:19:54FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=TonNyDYl
21:20:25FromDiscord<djazz> I know
21:20:41FromDiscord<djazz> my mind hasnt grasped all new nim 2.0 features yet
21:21:01FromDiscord<Elegantbeef> Sorry I just seen the constructor without arguments and cried about the breaking of generics
21:21:44FromDiscord<djazz> this code probably works on nim 1.0 or 1.6
21:22:00FromDiscord<djazz> but i set required 2.0.0 since thats what im sure it works on
21:22:13FromDiscord<Elegantbeef> "probably" is always reassuring 😄
21:23:35FromDiscord<djazz> i put the album.html for the test so now github shows HTML 99.4% Nim 0.6% LOL
21:23:58FromDiscord<Elegantbeef> I think you can write a file inside of .github to ignore non source files or something like that if you care
21:26:31FromDiscord<djazz> yay added the right .gitattributes to hide it
21:26:42FromDiscord<djazz> Nim 100%
21:26:54FromDiscord<Elegantbeef> Those are rookie numbers
21:27:14FromDiscord<djazz> i've seen your nim code and thats atleast Nim 200%
21:27:51FromDiscord<Elegantbeef> It's certainly around 200% unreadable
21:28:47FromDiscord<djazz> writing the parser and trying to break it with different chunk sizes was fun
21:28:54FromDiscord<djazz> im sure it can be optimized haha
21:29:02FromDiscord<djazz> lots of str.find()
21:29:39*zgasma joined #nim
21:31:17FromDiscord<Elegantbeef> You also have a lot of slicing, shame there is no `parseJson` that takes an `openArray[char]`
21:34:49FromDiscord<djazz> yeah or a json parser that parses in chunks
21:35:06FromDiscord<djazz> albuminfo is about 2000 bytes of json
21:35:56FromDiscord<Elegantbeef> Well `std/parsejson` could be used with a stream
21:36:29FromDiscord<djazz> a StringStream still keeps data already read
21:36:58FromDiscord<djazz> unless i make a custom Stream
21:37:04FromDiscord<Elegantbeef> I more mean one could make an `CStringStream`
21:38:03FromDiscord<Elegantbeef> It's a much smaller heap allocation than a string slice so if you care it would be worthwhile
21:44:28*Jjp137 quit (Quit: Leaving)
21:44:34*Jjp137_ joined #nim
21:56:50*rockcavera joined #nim
22:06:22FromDiscord<thearthurm> I asked in langdev but I don't think anyone's in there. Do you guys know if there's a parser combinator library for nim? If not I'm gonna build one
22:47:17*coldfeet quit (Remote host closed the connection)
23:42:57*tiorock joined #nim
23:42:57*rockcavera is now known as Guest4160
23:42:57*Guest4160 quit (Killed (osmium.libera.chat (Nickname regained by services)))
23:42:57*tiorock is now known as rockcavera
23:45:00*tiorock joined #nim
23:45:00*tiorock quit (Changing host)
23:45:00*tiorock joined #nim
23:45:00*rockcavera is now known as Guest4265
23:45:00*tiorock is now known as rockcavera
23:48:05*Guest4265 quit (Ping timeout: 248 seconds)
23:56:27FromDiscord<.bobbbob> is there a declarative text ui library? For nim or any language I guess. I think that would be pretty cool