00:10:02 | FromGitter | <ynfle> Is there any documentation on the compiler pkg? |
00:10:18 | FromGitter | <ynfle> Specifically how to use it to parse code at runtime |
00:15:35 | * | nerthus joined #nim |
00:27:51 | * | adnan338 joined #nim |
00:29:55 | * | B4s1l3 joined #nim |
00:29:55 | * | B4s1l3 is now known as opDispatch |
00:35:47 | * | vikfret quit (Quit: Leaving) |
00:41:50 | FromDiscord | <codic> Prestige: that is damn cool |
00:42:44 | FromDiscord | <codic> did you just port dwm to ni or write it from scratch? And what IRC and Discord clients are those? |
00:44:18 | Prestige | Wrote it from scratch, just implemented some features I liked from dwm. Top left is weechat (for irc), bottom left is cordless (discord tui written in go) @cordic |
00:44:27 | krux02 | ynfle: The nim compiler isn't made to parse code at runtime. |
00:44:45 | krux02 | If you want to do that, there are other languages better suited for that |
00:44:49 | krux02 | for example lisp |
00:44:56 | krux02 | or julia |
00:46:04 | * | krux02 quit (Remote host closed the connection) |
00:52:12 | Prestige | @codic * |
00:55:06 | FromGitter | <ynfle> I need to normalize a representation of code and am doing it at compile time and am having a hard time testing the code |
00:56:54 | FromGitter | <ynfle> `check` from unittest doesn't seem to go well with compile-time constants |
00:58:22 | FromDiscord | <codic> Sorry, I was gne. Thanks Prestige! |
00:58:44 | FromDiscord | <codic> Will def look at it |
00:58:52 | Prestige | Any time, thanks - let me know what you think :) |
01:08:26 | * | endragor joined #nim |
01:10:59 | FromDiscord | <Elegant Beef> Prestige you know that if the nimble package is a binary `nimble install` will place it in the path? |
01:11:11 | * | oddp quit (Ping timeout: 265 seconds) |
01:11:14 | * | monok quit (Remote host closed the connection) |
01:12:41 | Prestige | Yeah, haven't tried setting it up for nimdow yet really. Just set up an install script in the aur |
01:13:17 | FromDiscord | <Elegant Beef> Also i just noticed the nimble site changed |
01:13:19 | FromDiscord | <Elegant Beef> the darkmode sucks |
01:15:42 | Prestige | oh wow it does lol |
01:16:42 | FromDiscord | <Elegant Beef> Better or worse? https://media.discordapp.net/attachments/371759389889003532/721895926846980176/unknown.png |
01:17:21 | Prestige | that's what I did with mine as well, way better |
01:17:38 | FromDiscord | <Elegant Beef> #14171e for whoever is interested π |
01:32:56 | * | njoseph_ is now known as njoseph |
01:33:41 | * | Tlanger quit (Quit: Leaving) |
01:36:52 | * | Tlongir joined #nim |
01:36:54 | FromDiscord | <InventorMatt> is there anything for XML-RPC in nim? |
01:38:59 | * | rockcavera quit (Remote host closed the connection) |
01:45:59 | FromDiscord | <Elegant Beef> How does that differ from just making xml nodes and sending them using the http client? |
01:48:14 | adnan338 | Hello, if I have a lock called `lck` and global object `counter`, how can I make `lck` "own" `counter`? |
01:49:12 | adnan338 | `counter` is a globally shared object |
01:51:11 | FromDiscord | <InventorMatt> I don't actually know enough to tell the difference. I just know that it has its own library in a bunch of languages http://xmlrpc.com |
01:51:30 | * | adnan338 left #nim ("Leave.") |
01:52:00 | FromDiscord | <InventorMatt> I'm thinking about porting another library over to ROS and I know they use that as its backend |
01:55:27 | FromDiscord | <InventorMatt> *from ROS |
01:58:52 | * | chemist69 quit (Ping timeout: 260 seconds) |
02:01:02 | * | chemist69 joined #nim |
02:25:12 | * | nikita_ joined #nim |
02:28:25 | * | nikita` quit (Ping timeout: 264 seconds) |
02:48:02 | * | Tongir joined #nim |
02:50:30 | * | Tlongir quit (Ping timeout: 258 seconds) |
02:54:16 | * | muffindrake quit (Ping timeout: 256 seconds) |
02:56:14 | * | muffindrake joined #nim |
03:00:25 | * | leorize joined #nim |
03:25:58 | FromDiscord | <codic> I'm thinking of making a networked CLI game where the server is hosted by the user. What should I use to share data? Websockets? Or just a plain HTTP server? |
03:27:24 | leorize | depends on the requirements |
03:27:39 | leorize | if you need low-latency, usually an udp based server would do the trick |
03:28:02 | leorize | we have many libraries that implements communication protocols for use in networked games |
03:28:05 | FromDiscord | <codic> it's only sending text files anyways |
03:28:27 | FromDiscord | <codic> which library should i use for utc? or tcp? or some other protocol? |
03:28:30 | FromGitter | <ynfle> Anyone have experience using `hotcodereloading` with a jester route? Like on "/reload" call a proc defined in a different module that will preform the reload |
03:36:55 | FromGitter | <ynfle> (https://files.gitter.im/nim-lang/Nim/gQTr/Screen-Shot-2020-06-14-at-11.35.39-PM.png) |
03:37:10 | FromGitter | <ynfle> I'm getting some error from the clang compiler |
03:38:35 | FromDiscord | <codic> please ping me if you have an answer, thanks |
03:43:48 | leorize | ynfle: you might want to try the devel branch |
03:49:54 | FromDiscord | <impbox> @codic could look at enet |
03:50:19 | FromDiscord | <impbox> It's very easy to use |
03:55:07 | FromDiscord | <codic> does it have nim bindings that are maintained? |
03:56:07 | FromDiscord | <codic> onl found https://github.com/fowlmouth/nimrod-enet and it isn't maintained... |
03:56:39 | FromDiscord | <codic> also, i agree that the dark mode for nimble.directory looks kinda bad. to whoever made it: i'm a web dev and am happy to help with it |
04:00:00 | FromDiscord | <Elegant Beef> Well go make a pr |
04:00:00 | FromDiscord | <Elegant Beef> https://github.com/FedericoCeratto/nim-package-directory |
04:06:01 | * | supakeen quit (Quit: WeeChat 2.8) |
04:06:41 | * | supakeen joined #nim |
04:06:50 | FromDiscord | <codic> Good idea. I wish discord had !RemindMe |
04:07:19 | FromDiscord | <codic> i'll just try making some improvements and send in a pr tommorow |
04:18:30 | shashlick | looks like plain C, just use nimterop |
04:19:55 | * | gangstacat joined #nim |
04:20:10 | FromDiscord | <Elegant Beef> https://github.com/treeform/netty/ would also be ok |
04:21:39 | * | nsf joined #nim |
04:31:29 | zedeus | disruptek: I took another look at the guest token stuff. the "max-age" of the token appears to be 10800 seconds, or 3 hours. the rate limit for fetching them is weird, but if we sleep 0.1 seconds between each request, I was able to fetch over 500 tokens in just a couple minutes. each request takes 300 ms, then 100 ms waiting, which gives us a max of 2250 tokens per 15 minutes, giving us 420k requests. |
04:31:31 | zedeus | now, these last for 3 hours, so the theoretical _max_ per 3 hours, assuming they don't rate limit you, is 27k tokens tokens giving you 60 million requests |
04:34:36 | FromDiscord | <creatable> ay, nigui's lack of docs makes it quite difficult to actually know how to do things so i'm curious if anyone would know how to prevent window resizing with nigui |
04:35:50 | * | endragor quit (Remote host closed the connection) |
04:36:31 | FromDiscord | <Elegant Beef> There is HeightMode_Static and same for width |
04:36:37 | FromDiscord | <Elegant Beef> No clue if that overwrides window resizing |
04:36:55 | FromDiscord | <Elegant Beef> There is also a onResize proc |
04:39:34 | FromDiscord | <Elegant Beef> I have no idea if there is a more proper way to do it |
04:57:21 | * | endragor joined #nim |
05:03:06 | * | marnix joined #nim |
05:06:43 | * | leorize quit (Ping timeout: 240 seconds) |
05:10:14 | * | waleee-cl quit (Quit: Connection closed for inactivity) |
05:16:37 | * | agnem quit (Ping timeout: 260 seconds) |
05:20:07 | * | Cthalupa quit (Ping timeout: 260 seconds) |
05:20:42 | * | kenran joined #nim |
05:21:16 | * | dddddd quit (Ping timeout: 256 seconds) |
05:25:26 | * | Cthalupa joined #nim |
05:33:20 | * | oculuxe joined #nim |
05:33:49 | * | oculux quit (Ping timeout: 264 seconds) |
05:34:51 | * | solitudesf joined #nim |
05:49:25 | * | marnix quit (Ping timeout: 264 seconds) |
06:09:15 | * | leorize joined #nim |
06:12:57 | * | tdc joined #nim |
06:20:34 | * | marnix joined #nim |
06:23:48 | * | nikita_ is now known as nikita` |
06:30:05 | * | Tlanger joined #nim |
06:30:07 | * | chemist69 quit (Ping timeout: 260 seconds) |
06:30:50 | * | chemist69 joined #nim |
06:32:01 | * | Tongir quit (Ping timeout: 264 seconds) |
06:56:57 | * | nikita` quit (Quit: leaving) |
06:58:36 | * | PMunch joined #nim |
06:59:38 | * | nikita` joined #nim |
07:03:47 | * | PMunch quit (Quit: leaving) |
07:28:28 | * | vicfred quit (Quit: Leaving) |
07:30:03 | * | Vladar joined #nim |
07:50:22 | Araq | Monday begins, Nim devel cannot build my slides |
07:50:36 | Araq | well, actually it can build them but then every slide is empty |
07:51:19 | Araq | tried to figure out why that is, must have something to do with the CSS of course |
07:51:40 | Araq | but I'm too bad at CSS, so I'm using 1.2 to build my slides instead |
07:52:04 | Araq | so if @Timothee is listening |
07:53:48 | * | Vladar quit (Quit: Leaving) |
08:29:17 | * | PMunch joined #nim |
08:35:22 | * | luis_ joined #nim |
08:37:52 | * | Senny quit (Ping timeout: 260 seconds) |
08:48:24 | * | Trustable joined #nim |
08:54:08 | * | abm joined #nim |
08:56:00 | * | WilhelmVonWeiner joined #nim |
08:56:09 | * | vikfret joined #nim |
09:05:59 | * | Tongir joined #nim |
09:08:30 | * | Tlanger quit (Ping timeout: 256 seconds) |
09:09:47 | * | fredrikhr joined #nim |
09:26:29 | * | luis_ quit (Quit: luis_) |
09:35:31 | * | oddp joined #nim |
09:36:08 | * | PMunch quit (Quit: leaving) |
09:37:00 | * | PMunch joined #nim |
09:37:08 | federico3 | dom96: being able to pin the NimConf thread on top of the forum would be nice |
09:37:31 | FromDiscord | <gokr> I am fiddling with a c2nim wrapper - anyone know how to deal with "##" stuff in the C preprocessor macros? |
09:43:17 | * | krux02 joined #nim |
09:48:54 | zedeus | did you try nimterop? |
09:49:28 | PMunch | dom96, and to bring the website online |
09:50:13 | FromDiscord | <Recruit_main707> gork, you should preprocess them with a c compiler beforehand iirc |
09:50:47 | * | NimBot joined #nim |
09:52:10 | FromDiscord | <gokr> Did not try nimterop yet, dom96 advised against it at this moment. So... I need to preprocess? Sigh. |
09:53:42 | FromDiscord | <Recruit_main707> use `gcc -[a mode i dont remmber] file.h -o newfile.h` |
09:54:16 | zedeus | gokr: I'm not sure why he did that, nimterop is great. |
09:54:48 | FromDiscord | <Recruit_main707> he said something about you needing to have the actual package installed so that the wrappers worked i think |
09:55:27 | FromDiscord | <Recruit_main707> > The way nimterop works means that wrappers are generated when the package is installed, which is far less reliable than just creating a wrapper via c2nim |
09:55:30 | zedeus | the default nimterop way is to generate the wrapper at compile-time, which obviously requires the package |
09:55:53 | zedeus | this isn't "unreliable", it just requires downloading more code |
09:56:08 | zedeus | you can get nimterop to spit out the generated code to use it like c2nim is you wish |
09:56:10 | zedeus | if* |
09:57:13 | zedeus | c2nim wrappers become outdated, nimterop wrappers stay up to date |
09:57:31 | FromDiscord | <gokr> Mmm, it seems `toast` in nimterop is like c2nim |
09:57:40 | FromDiscord | <gokr> I can try using that instead. |
09:57:47 | zedeus | maybe shashlick is here |
09:58:26 | FromDiscord | <gokr> @Recruit_main707 thanks, can try that too. |
09:59:43 | Araq | gokr: c2nim doesn't translate ## to Nim's token pasting mechanism but it's do-able |
09:59:45 | FromDiscord | <Recruit_main707> @gokr https://blog.johnnovak.net/2018/07/07/creating-a-nim-wrapper-for-the-fmod/β΅this could be useful |
10:00:42 | zedeus | it's hardly relevant anymore with nimgen and nimterop |
10:01:20 | FromDiscord | <gokr> I think nimgen is ... deprecated right |
10:01:28 | zedeus | yes, you should use nimterop |
10:01:38 | FromDiscord | <Recruit_main707> it was updated 25 days ago |
10:01:43 | FromDiscord | <gokr> And nimterop is C only, but that's fine for me since this is supposed to be clean C99. |
10:02:02 | zedeus | nimterop can call c2nim as well |
10:15:14 | FromDiscord | <gokr> Hum. |
10:29:56 | FromDiscord | <dom96> > this isn't "unreliable", it just requires downloading more codeβ΅It is. I think Araq can back me up here too |
10:30:15 | FromDiscord | <dom96> Anything that requires regenerating the wrapper every time it is installed is far less reliable than having the wrapper comitted to git |
10:30:33 | zedeus | what is unreliable about it? if you cannot generate the wrapper, chances are you can't use the library either |
10:31:19 | FromDiscord | <gokr> I am banging my head against toast at the moment π not sure how to use it. |
10:31:47 | FromDiscord | <dom96> No, all you need to use a wrapper is a DLL |
10:31:48 | FromDiscord | <dom96> That's it |
10:32:19 | federico3 | that's why I don't use nimterop |
10:32:41 | FromDiscord | <dom96> I shouldn't need to rely on toast, my C compiler and whatever else to get a working wrapper |
10:32:55 | FromDiscord | <dom96> Every extra dependency adds risk and decreases reliability |
10:33:11 | FromDiscord | <Recruit_main707> c2nim does need a compiler to preprocess headers |
10:33:43 | federico3 | only when using it |
10:33:45 | FromDiscord | <dom96> In most cases you don't need to preprocess the headers though |
10:33:47 | zedeus | if you want the c2nim workflow, nimterop can do that. calling it unreliable makes no sense since nimterop's functionality is a superset of c2nim |
10:34:17 | FromDiscord | <dom96> Fine, let me be clearer then. The default operation of nimterop is less reliable. |
10:34:34 | FromDiscord | <gokr> @dom96 I am stuck with "##" stuff, so not sure how to proceed with c2nim without manual stuff |
10:34:37 | FromDiscord | <dom96> If you have a wrapper at the end that I can simply install without depending on nimterop then I am happy |
10:34:47 | FromDiscord | <dom96> @gokr can you show an example? |
10:34:54 | FromDiscord | <gokr> Sure... one sec |
10:35:19 | zedeus | if the wrapper was generated a couple years ago (like many c2nim wrappers on github), and the library I want to use was updated since with new functionality that I want, the wrapper is now useless to me and completely unreliable. this would not happen with the default nimterop usage, making it "more reliable" in this case :) |
10:37:22 | FromDiscord | <gokr> The headers I am working on are here: <https://github.com/orx/orx/tree/master/code/include> ORX compiles to a single liborx.so for those headers. One issue I am having is "#" and "##" like <https://github.com/orx/orx/blob/master/code/include/io/orxJoystick.h#L58-L97> |
10:37:28 | FromDiscord | <dom96> I hope that nimterop pins the C library version headers it generates the wrapper from... |
10:37:48 | FromDiscord | <dom96> but anyway, the point is: I love automating the generation of wrappers. I just don't want Nimble to be doing it every time I install a package. |
10:38:48 | FromDiscord | <gokr> I presume toast can be used similarly to c2nim, not sure. |
10:38:56 | zedeus | yes, it can |
10:38:56 | FromDiscord | <dom96> @gokr fun, I would honestly just skip that and only wrap it when you need it |
10:39:14 | zedeus | you can easily fix this with nimterop |
10:39:34 | zedeus | https://nimterop.github.io/nimterop/cimport.html#cPlugin.m |
11:14:54 | FromDiscord | <lqdev> is it possible to exclude some files when using `nim doc --project`? |
11:15:27 | * | bbarker quit (Read error: Connection reset by peer) |
11:23:06 | FromDiscord | <Recruit_main707> i am facing a very strange situation |
11:24:58 | FromDiscord | <lqdev> what is it |
11:25:43 | FromDiscord | <Recruit_main707> https://play.nim-lang.org/#ix=2peL |
11:25:50 | FromDiscord | <Recruit_main707> the problem is explained in there |
11:26:10 | FromDiscord | <Recruit_main707> basically printing a cstring affects the output of the code |
11:27:35 | PMunch | Hmm, that is odd |
11:29:29 | FromDiscord | <lqdev> will removing .idx files affect the output of `nim buildIndex`? |
11:32:30 | * | leorize quit (Remote host closed the connection) |
11:33:02 | FromDiscord | <Recruit_main707> seems like `echo` causes the issue because `stdout.write()` doesnt, on the other hand `stdout.writeLine()` also has the same problem as `echo` |
11:33:15 | FromDiscord | <Recruit_main707> this is so weird π₯΄ |
11:33:41 | PMunch | Tried to reproduce it with a small sample but i can't seem to get it to work.. |
11:34:04 | FromDiscord | <Recruit_main707> i can give you the RLTypes file |
11:34:17 | FromDiscord | <Recruit_main707> i think its arc |
11:34:30 | PMunch | Any particular reason why you don't use "a.cstring" by the way? |
11:34:43 | * | abm quit (Read error: Connection reset by peer) |
11:35:07 | * | abm joined #nim |
11:35:19 | FromDiscord | <Recruit_main707> not really, but this is definetely an arc bug |
11:36:40 | * | lritter joined #nim |
11:37:06 | * | leorize joined #nim |
11:38:38 | PMunch | Tried it with --gc:arc as well but still couldn't get it to work.. |
11:38:45 | PMunch | Trying to create a minimal sample |
11:38:53 | FromDiscord | <Recruit_main707> GameTickPacket is a big object |
11:39:22 | FromDiscord | <Recruit_main707> https://play.nim-lang.org/#ix=2peO |
11:39:26 | FromDiscord | <Recruit_main707> whole RLTypes file |
11:42:14 | PMunch | Hmm, still no dice |
11:43:00 | FromDiscord | <Recruit_main707> *the plot thickens* |
11:43:00 | PMunch | Oh wait |
11:48:33 | PMunch | No it works now |
11:54:30 | PMunch | Hmm, looking at the C code it's not immediately obvious what happes.. |
12:06:02 | * | supakeen quit (Quit: WeeChat 2.8) |
12:06:37 | * | supakeen joined #nim |
12:25:09 | Zevv | is it ever |
12:25:31 | FromDiscord | <lqdev> no |
12:32:16 | PMunch | Well sometimes.. |
12:36:46 | * | dcmertens joined #nim |
12:36:54 | dcmertens | g'morning |
12:37:08 | dcmertens | I am trying to produce a sequence of guassian distributed numbers, sorted |
12:37:44 | dcmertens | I'd like to to this compactly. So far I've come up with: |
12:37:45 | dcmertens | var oms = seq[float](N).applyIt(gaussian()).sort |
12:38:59 | dcmertens | rather, make that "seq[float](N).applyIt(gaussian()).sort(system.cmp[float])" |
12:39:58 | PMunch | I'm feeling a but here |
12:40:29 | Yardanico | what seq[float](N) is supposed to do? |
12:41:08 | PMunch | I'd think `var oms = newSeqWith(N, gaussian()).sort` should work though |
12:42:03 | dcmertens | PMunch, no "but" |
12:42:10 | dcmertens | I just want concise/idiomatic |
12:42:19 | Yardanico | well then newSeqWith will be fine |
12:42:25 | dcmertens | great, thanks! |
12:45:25 | PMunch | Something like this: https://play.nim-lang.org/#ix=2pfd |
12:46:17 | PMunch | Or rather: https://play.nim-lang.org/#ix=2pfe |
12:47:20 | * | dcmertens checks |
12:47:56 | dcmertens | PMunch, why sorted() instead of sort()? |
12:48:29 | Yardanico | dcmertens: sorted returns a new seq from an old seq |
12:48:34 | Yardanico | dup(sort) will do basically the same |
12:49:13 | PMunch | Yeah, basically sorted returns a new sorted list, while sort sorts the current one in-place |
12:49:18 | PMunch | So you can't use it on a single line |
12:49:46 | PMunch | You could of course do this: https://play.nim-lang.org/#ix=2pff |
12:51:41 | FromGitter | <bung87> its like ruby method! |
12:51:59 | PMunch | Yeah, kinda |
12:54:34 | * | bung joined #nim |
12:55:15 | dcmertens | PMunch, whatever is shorter from the standpoint of line usage |
12:55:27 | dcmertens | I only do this operation once, so I don't care if I have to allocate memory twice |
12:55:28 | dcmertens | :-) |
12:55:36 | PMunch | Just use .sorted |
12:55:42 | dcmertens | yeah, exactly, thanks |
12:56:15 | dcmertens | on a separate note, does anybody have experience using alea? I'm trying to use it to generate Gaussian random numbers, but I'm having trouble |
12:56:38 | dcmertens | the problem, specifically, is that gaussian(mu, stdev) produces an object that represents that sort of distribution |
12:56:43 | dcmertens | but I want to sample from said distribution |
12:56:45 | dcmertens | :-/ |
12:57:05 | dcmertens | You'd think that distribution.sample() would do it... |
12:58:00 | dcmertens | I find the documentation here rather cryptic: https://github.com/unicredit/alea |
13:04:51 | * | Vladar joined #nim |
13:06:24 | shashlick | @zedeus @gokr the nimterop point of view is documented in the readme - especially https://github.com/nimterop/nimterop/blob/master/README.md#why-nimterop |
13:07:03 | * | kungtotte quit (Read error: Connection reset by peer) |
13:07:19 | * | Kaivo joined #nim |
13:08:29 | shashlick | No one is forcing anyone to import the nimterop wrapper generator directly into code - it can be run standalone and used to cache wrappers which can be preserved just the same |
13:09:23 | * | kungtotte joined #nim |
13:09:47 | PMunch | dcmertens, I think you're supposed to use it like this: http://ix.io/2pfi |
13:12:19 | shashlick | You're just using the nim vm with all its power of expression instead of the command line or cfg files like nimgen. It does not make things inherently unreliable |
13:12:59 | dcmertens | PMunch, thanks, I'll give that a short |
13:13:01 | dcmertens | *shot |
13:13:14 | * | marcpm joined #nim |
13:22:36 | livcd | lol this https://news.ycombinator.com/item?id=23526832 |
13:22:42 | dcmertens | OK, I can now produce a sorted list of Gaussian random numbers: https://play.nim-lang.org/#ix=2pfk |
13:23:36 | dcmertens | Maybe some day I'll work out a pull-request to alea to reduce the boiler-plate |
13:28:33 | PMunch | livcd, the fuck is cancel culure? |
13:28:59 | * | ftsf quit (Quit: Leaving) |
13:31:42 | * | PMunch quit (Quit: leaving) |
13:33:15 | alehander92_ | morning |
13:33:20 | alehander92_ | ok |
13:33:27 | alehander92_ | its not morning, its later :) |
13:33:39 | alehander92_ | good afternoon!!! |
13:39:36 | Araq | I think a "cancel culture" is what you get when you seek to erase words from the dictionary ("master")? |
13:39:49 | Araq | but just a guess, haven't read the context |
13:39:55 | alehander92_ | it's not that |
13:39:59 | zedeus | it's more about getting people to lose their jobs if you disagree with something they did/said |
13:40:37 | zedeus | a great recent example is Stallman resigning from MIT and FSF |
13:43:46 | federico3 | Araq: it's not. zedeus: also no. https://en.wikipedia.org/wiki/Online_shaming |
13:44:28 | zedeus | what do you mean no? they cancel people by means of online shaming |
13:45:32 | federico3 | it's about the online shaming aspect, not the impact on employment |
13:46:51 | zedeus | the impact on employment is often a result of it, I've seen many times where a video of someone saying the N word gets posted on twitter, after which people dox the person and contact their workplace or school to get them fired/expelled |
13:47:48 | zedeus | it can be a variety of things, but it's not all about the shaming, the "cancel" part is part of the name after all |
13:47:50 | federico3 | read the page |
13:48:34 | zedeus | yes, in the "cancellation" part it mentions "leading to declines in any careers .. the individual may have" |
13:49:29 | Araq | the question was "what is cancel culture?" and now I have no idea what it is |
13:49:50 | Araq | but it also doesn't belong to #nim anyway, so let's keep it this way |
13:51:28 | zedeus | disruptek: are you around? i have made a discovery |
13:59:51 | nisstyre | is there anything in the stdlib that can decode uri templates? https://en.wikipedia.org/wiki/URL_Template |
14:00:18 | nisstyre | looks like the uri lib doesn't do it |
14:02:14 | Araq | strformat uses this syntax fwiw |
14:02:27 | Araq | I don't understand how URL templates have anything to do with URLs |
14:02:28 | nisstyre | Araq: it's more complex than that, but yes you could do a subset of what it's doing |
14:02:40 | nisstyre | the correct name is actually URI Template |
14:02:44 | Araq | can I type these templates into a browser? |
14:02:48 | nisstyre | https://tools.ietf.org/html/rfc6570 |
14:02:52 | nisstyre | this is the RFC |
14:03:24 | nisstyre | fwiw I think it's insanely over-engineered, but the github API (which I'm trying to use) uses them |
14:03:44 | zedeus | https://github.com/disruptek/github |
14:04:51 | disruptek | wut |
14:05:35 | Araq | "URI Templates are not URIs: they do not identify an abstract or |
14:05:35 | Araq | physical resource, they are not parsed as URIs, and they should not |
14:05:35 | Araq | be used in places where a URI would be expected unless the template |
14:05:35 | Araq | expressions will be expanded by a template processor prior to use." |
14:06:03 | Araq | so yeah, would be nice to have them in the stdlib ofc, but it shouldn't be in the URI module |
14:06:09 | nisstyre | right, that's fair |
14:06:26 | Araq | add it to fusion ;-) |
14:06:27 | nisstyre | maybe basing it off https://pypi.org/project/uritemplate/ would be an easy way |
14:06:40 | disruptek | i guess openapi implements uri templates. |
14:06:46 | disruptek | see the hydrate() |
14:06:50 | disruptek | !repo openapi |
14:06:51 | disbot | https://github.com/disruptek/openapi -- 9openapi: 11OpenAPI Code Generator for Nim 15 28β 3π΄ 7& 4 more... |
14:07:02 | disruptek | or just use my github api. |
14:07:24 | nisstyre | disruptek: how do you handle this? |
14:07:27 | disruptek | !repo github |
14:07:28 | disbot | https://github.com/disruptek/github -- 9github: 11github api v3 for nim 15 7β 0π΄ 7& 29 more... |
14:07:30 | disruptek | i just told you. |
14:07:33 | nisstyre | this is the Link header that github gives you back for pagination |
14:07:40 | nisstyre | oh openapi |
14:07:49 | nisstyre | hmm, yeah it probably does somehow |
14:07:55 | disruptek | well, i don't do pagination for you automatically, no. |
14:08:15 | disruptek | but openapi handles templates like that, so... |
14:08:24 | nisstyre | yeah I essentially just wanted an iterator over all my repos |
14:08:35 | nisstyre | I guess I can use your library for that |
14:09:02 | disruptek | unless you have over 100, i don't see why you'd need an iterator or pagination. |
14:09:39 | nisstyre | I'm trying to make it work for any profile so IDK in advance how many there would be |
14:09:49 | disruptek | well, you can do whatever you want with the response; go nuts. |
14:10:18 | disruptek | iirc hydrate just takes {key: value} input to fill out a template. |
14:11:41 | alehander92_ | eat nuts |
14:11:45 | alehander92_ | nuts are ok food |
14:11:47 | alehander92_ | dont go nuts |
14:14:01 | disruptek | if you think uri templates are over-engineering, you're really not going to like my openapi project. |
14:15:39 | * | vicfred joined #nim |
14:16:33 | nisstyre | disruptek: the basic idea seems fine I guess |
14:16:51 | nisstyre | it just seems like overkill for what github is doing, which is giving you a couple URLs |
14:16:55 | nisstyre | not even with any template variables |
14:17:43 | * | waleee-cl joined #nim |
14:18:09 | nisstyre | just reading over https://tools.ietf.org/html/rfc6570 I get the sense that it's not trivial to implement correctly either |
14:19:30 | disruptek | i guess they're just a bunch of bastards. |
14:27:11 | FromDiscord | <lqdev> how do I implement my own `Future` returned from some proc that needs to poll an OS resource? |
14:27:30 | FromDiscord | <lqdev> I guess, create the future and implement the polling in `callSoon`? |
14:28:59 | * | dcmertens quit (Ping timeout: 256 seconds) |
14:34:21 | * | oddp quit (Quit: quit) |
14:52:43 | FromGitter | <kdheepak> @shashlick awesome about the Conan support! |
14:53:59 | FromGitter | <kdheepak> I would love to add this to binary builder downloader, and make it a generic binary downloader. |
14:54:04 | FromGitter | <kdheepak> Mind if I steal it? |
14:54:07 | FromGitter | <kdheepak> :) |
14:56:55 | shashlick | Sure |
14:57:12 | shashlick | Meanwhile I'm almost done adding binary builder support as well |
15:00:52 | * | endragor quit (Remote host closed the connection) |
15:06:34 | * | marnix quit (Ping timeout: 240 seconds) |
15:10:32 | Araq | https://github.com/nim-lang/RFCs/issues/234 |
15:10:35 | disbot | β₯ Add write-tracking to Nim's `func` ; snippet at 12https://play.nim-lang.org/#ix=2pg3 |
15:12:17 | * | dddddd joined #nim |
15:16:32 | * | endragor joined #nim |
15:21:39 | FromGitter | <kdheepak> @shashlick great! let me know if I can help with anything. If you are interested, we can move binary-builder-downloader to the nimterop organization, and move all code that downloads releases to a separate package. |
15:21:49 | * | endragor quit (Ping timeout: 264 seconds) |
15:24:51 | shashlick | sure but part of the implementation is nimterop specific - caching, compile time and other random stuff so we will need to figure out the best way to do this |
15:25:47 | FromGitter | <kdheepak> I see got it. |
15:26:37 | * | oddp joined #nim |
15:38:22 | * | kenran quit (Ping timeout: 256 seconds) |
15:38:57 | shashlick | do compilers link .a or .lib files to the binary if none of their functionality is used? |
15:47:57 | * | marnix joined #nim |
15:48:23 | * | leorize quit (Ping timeout: 240 seconds) |
15:52:59 | leorize[m] | shashlick: .a then no |
15:53:01 | leorize[m] | not sure about .lib |
15:53:33 | FromDiscord | <Recruit_main707> depends on the compiler i guess |
15:54:04 | shashlick | okay |
15:55:11 | * | xace quit (Ping timeout: 258 seconds) |
15:56:17 | leorize[m] | @lqdev just look at asyncfile |
16:07:18 | FromDiscord | <lqdev> @leorize thanks for the pointer |
16:08:14 | * | xace joined #nim |
16:11:00 | leorize[m] | maybe one day we will get better docs :p |
16:16:24 | * | marnix quit (Ping timeout: 256 seconds) |
16:28:52 | FromDiscord | <Clyybber> Araq: About `func f(x: var ref T)`. Wouldn't it be more appropriate to write `func f(x: var T)` and simply deref the argument? |
16:29:51 | FromDiscord | <Clyybber> (edit) 'argument?' => 'argument when calling f?' |
16:35:37 | FromDiscord | <lqdev> @leorize damn, I still don't understand it⦠there seem to be two different versions with different API each separate for windows and posix, and I'm not doing any IO-intensive stuff, it's just a poll loop |
16:35:57 | leorize[m] | wdym poll loop? |
16:36:09 | leorize[m] | what are you trying to do? |
16:36:12 | FromDiscord | <lqdev> polling for a single value returned by OpenGL |
16:36:19 | FromDiscord | <lqdev> and I'm trying to wrap it in an async proc |
16:36:38 | FromDiscord | <lqdev> more notably, I'm trying to poll for a fence sync object's completion |
16:36:48 | FromDiscord | <lqdev> :s/notably/precisely |
16:37:43 | leorize[m] | ohhhh |
16:38:26 | leorize[m] | well selectors support user events, but I'm not sure how that works |
16:38:27 | FromDiscord | <lqdev> I'm trying to do it asynchronously because I'm waiting for a framebuffer read, and I'm trying to avoid syncing between the CPU and the GPU |
16:38:46 | leorize[m] | @dom96 ^ |
16:39:17 | leorize[m] | I'm pretty sure that this is doable without rolling out your own dispatcher backend |
16:41:31 | leorize[m] | @lqdev well there's this hack of hooking into timers |
16:42:03 | FromDiscord | <lqdev> I don't wanna resort to hacks tho |
16:42:20 | leorize[m] | not hacks per se tbh |
16:42:29 | * | jxy quit (Quit: leaving) |
16:42:46 | * | jxy joined #nim |
16:46:03 | leorize[m] | @lqdev AsyncEvent can be strapped to do what you want afaict |
16:46:14 | * | xace quit (Quit: leaving) |
16:46:24 | leorize[m] | but you have to do a poll() somehow... |
16:46:59 | leorize[m] | you can make a Future derived from sleepAsync(10) |
16:47:25 | leorize[m] | then everytime the sleep completes do a poll() |
16:47:53 | leorize[m] | if the value is out trigger the created AsyncEvent and every future attached to it will activate |
16:48:09 | leorize[m] | that's how I'd do it |
16:48:31 | leorize[m] | oh, addTimer is useful here |
16:49:01 | leorize[m] | basically lets you hook directly into the main dispatcher loop |
16:49:38 | leorize[m] | though if you want total control you'd have to make your own dispatcher backend, but then I/O stops working so... |
16:50:17 | leorize[m] | this'd be easier if opengl gives you a FD to wait on :p |
16:51:21 | FromDiscord | <Recruit_main707> you can safely cast an string into a cstring, but can you do it the other way around? |
16:51:41 | leorize[m] | `$cstring` |
16:51:47 | * | xace joined #nim |
16:52:13 | FromDiscord | <Recruit_main707> thx |
16:52:52 | leorize[m] | depends on what you want to do though, that might not be the most efficient thing |
16:57:06 | FromDiscord | <willyboar> we lost #1 but we have another framework in the top-10 https://github.com/the-benchmarker/web-frameworks#results |
16:58:27 | leorize[m] | it's kinda impressive given that httpbeast is not really in active dev |
16:59:23 | FromDiscord | <KrispPurg> This may be a dumb question, but is there a way to convert from int to a set of enums? |
17:00:43 | leorize[m] | https://nim-lang.org/docs/manual.html#set-type-bit-fields |
17:01:19 | * | team\andinus is now known as thisisevenlonger |
17:01:34 | * | thisisevenlonger is now known as team\andinus |
17:01:48 | * | team\andinus is now known as notandinus |
17:02:14 | FromDiscord | <KrispPurg> Thank you. |
17:02:46 | * | marnix joined #nim |
17:07:11 | FromDiscord | <willyboar> leorize: yes it is |
17:07:40 | * | krux02 quit (Remote host closed the connection) |
17:09:12 | FromDiscord | <willyboar> from the other hand it is impressive how fast crystal's std server is |
17:10:25 | leorize[m] | it wouldn't sound nice if a ruby-derived language is not good at doing web stuff :p |
17:10:36 | FromDiscord | <willyboar> only rosencrantz uses nim's std server |
17:11:12 | leorize[m] | jester can too if you compile with -d:useStdLib |
17:11:37 | leorize[m] | which I would if I were to deploy a production server |
17:11:43 | FromDiscord | <willyboar> yes i know, i mean in the benchmark |
17:12:06 | * | dcmertens joined #nim |
17:12:12 | FromDiscord | <willyboar> reosencrantz is #120 |
17:12:44 | leorize[m] | is there anything that solely test asynchttpserver there? |
17:12:59 | * | letto quit (Quit: Konversation terminated!) |
17:13:05 | leorize[m] | or maybe we would need to write one ourselves? |
17:14:01 | FromDiscord | <willyboar> you mean plain asynchttpserver? |
17:15:13 | FromDiscord | <willyboar> the benchmark requires 3 routes: 1 simple get, 1 simple post and 1 get w/ params |
17:15:57 | * | sentreen quit (Quit: sentreen) |
17:25:21 | * | letto joined #nim |
17:31:58 | * | MarquisdeFalbala joined #nim |
17:32:09 | * | MarquisdeFalbala quit (Client Quit) |
17:40:12 | * | tane joined #nim |
17:40:33 | FromDiscord | <willyboar> leorize do you think httpbeast can be faster? |
17:42:08 | leorize[m] | I'm sure it can be :) |
17:43:01 | * | sentreen joined #nim |
17:43:34 | FromDiscord | <willyboar> the onlu problem is httpbeast doesn't support windows |
17:43:50 | FromDiscord | <willyboar> but neither crystal does π |
17:44:05 | * | kenran joined #nim |
17:49:55 | * | krux02 joined #nim |
17:50:51 | shashlick | the httpbeast method works fine on windows |
17:51:05 | shashlick | i built px2 with that same style and it works just fine |
17:51:23 | shashlick | https://github.com/genotrance/px2 |
17:54:15 | FromDiscord | <willyboar> cool π |
18:00:45 | Araq | once again, https://github.com/nim-lang/RFCs/issues/234 up/downvotes please |
18:00:46 | disbot | β₯ Add write-tracking to Nim's func ; snippet at 12https://play.nim-lang.org/#ix=2pg3 |
18:00:52 | * | dcmertens quit (Ping timeout: 265 seconds) |
18:01:13 | * | vikfret quit (Quit: Leaving) |
18:02:37 | * | sentreen quit (Ping timeout: 264 seconds) |
18:12:52 | * | marnix quit (Remote host closed the connection) |
18:25:02 | FromGitter | <Knaque> I'm sure this is a stupid question, but I genuinely cannot work it out for the life of me. How can I use CSS in Jester? |
18:36:10 | * | sentreen joined #nim |
18:39:22 | FromDiscord | <Rika> what? |
18:40:04 | FromGitter | <Knaque> dom96/jester |
18:44:06 | FromGitter | <Willyboar> @Knaque look at the static files section |
18:47:20 | FromGitter | <Knaque> I already did, and that doesn't seem to do anything. |
18:48:02 | leorize[m] | Araq: why exclusive to func though? |
18:48:16 | FromGitter | <Knaque> The file's being served (i.e. /css/style.css), but there are no changes to the actual page. |
18:50:51 | leorize[m] | I have a weird idea for `ref var T` as a "mutable reference" :p |
18:51:30 | FromDiscord | <Rika> thats weird |
18:53:26 | * | bung quit (Quit: Lost terminal) |
18:54:44 | leorize[m] | @Knaque clear browser cache and try again? |
18:57:25 | * | kenran quit (Ping timeout: 246 seconds) |
18:57:59 | FromGitter | <Knaque> @Leorize no change. |
18:59:57 | FromDiscord | <Rika> are you loading the css on the page |
19:01:32 | FromDiscord | <Clyybber> leorize: I thought about that too |
19:01:45 | FromGitter | <Knaque> Elaborate? |
19:02:36 | FromDiscord | <Clyybber> Knaque: I was referring to the ref var T thing |
19:03:10 | FromGitter | <Knaque> And I was referring to @Rika, so it's all good. |
19:03:17 | FromDiscord | <Clyybber> :D |
19:03:19 | * | Satomi-Kowa joined #nim |
19:06:48 | FromDiscord | <Clyybber> leorize, Araq: `seq[var T]` would be similar |
19:07:11 | FromDiscord | <Clyybber> The question is, should all this be exclusive to parameter types? |
19:07:57 | FromDiscord | <Clyybber> Normally there is no need/reason to have an object field be `var T`, but for example in iterators we return tuples that contain a `var T` |
19:09:36 | * | Satomi-Kowa quit (Quit: Connection closed) |
19:10:40 | FromDiscord | <Rika> @knaque on the page, does it request for the css file lol |
19:11:12 | FromDiscord | <Clyybber> Araq: In a way having a field `a: var T` would be like an owned ref. Its always mutable like a ref, but it can't be aliased, as it would simply copy instead. |
19:13:04 | FromGitter | <Knaque> Provided I understand what you're meaning, it doesn't look like it. |
19:13:28 | FromDiscord | <Rika> then thats the issue isnt it π |
19:14:20 | FromGitter | <Knaque> Yeah, but the real issue is that I haven't a clue how I'd get it to do that. I can't really find any mention of it anywhere. |
19:15:26 | FromDiscord | <Rika> loading the css file in an html file? |
19:15:32 | FromDiscord | <Rika> or is this a generated html file |
19:15:53 | FromGitter | <Knaque> I'm using Jester for this, so it's generated. |
19:16:16 | FromGitter | <Knaque> If this was just an HTML question, I wouldn't be asking in an unrelated IRC. |
19:18:22 | FromGitter | <Knaque> That came off kind of condescending, so sorry about that. It's really just a Jester thing, I already know plenty about """normal""" web stuff. |
19:18:52 | FromDiscord | <Rika> so just add the tag in the returned response |
19:18:58 | FromDiscord | <Rika> with htmlgen i think |
19:20:03 | FromDiscord | <Rika> would look like `link(rel="stylesheet" type="text/css" href="mystyle.css")` i think? |
19:20:13 | FromDiscord | <Rika> oops, add commas |
19:21:08 | * | opal quit (Remote host closed the connection) |
19:22:33 | * | opal joined #nim |
19:24:33 | * | aeverr joined #nim |
19:28:21 | FromGitter | <Knaque> I mean, it's doing *something*. I guess I tunnel-visioned too hard on Jester and forgot that htmlgen was important too. |
19:28:54 | FromGitter | <Knaque> It's not doing what I want it to be, but I'm willing to bet that's because I don't know how to use it properly and I'm doing something horrifically wrong. |
19:34:18 | * | lua joined #nim |
19:35:54 | * | unihernandez22 joined #nim |
19:36:11 | FromDiscord | <Rika> put it in the head if you know how |
19:36:23 | FromDiscord | <Rika> (i dont lol) |
19:37:45 | FromDiscord | <Rika> any of yall using amd uprof? do you mind teaching me how to use it for nim? |
19:38:42 | FromGitter | <Knaque> After a bit of fiddling, I at least somewhat get how it's supposed to work. Still doesn't *actually* work though. |
19:40:03 | FromDiscord | <Rika> what issues are you seeing now? |
19:40:12 | FromGitter | <Knaque> I have `<link rel="stylesheet" href="public/css/style.css">` in the <head>, and some stuff in the <body> but the CSS (just a `text-align: center;`) still isn't having an effect. |
19:40:52 | FromGitter | <Knaque> I omitted the `type` tag since, from my experience, it works fine without it. It wasn't working even with it anyway. |
19:41:22 | FromDiscord | <dom96> Look at the HTML/CSS returned by Jester in your browser's dev tools? |
19:43:06 | FromGitter | <Knaque> I am. The link is in the <head>, but nothing in the <body> actually shows as having any CSS styles on it. |
19:43:38 | * | unihernandez22 quit (Quit: leaving) |
19:43:50 | * | xet7 quit (Quit: Leaving) |
19:44:27 | * | unihernandez22 joined #nim |
19:44:49 | FromDiscord | <Technisha Circuit> In Nim, is it possible to detect if my code is running on Termux? |
19:45:21 | FromDiscord | <Rika> that doesnt sound like a nim specific question |
19:48:48 | FromDiscord | <Technisha Circuit> I'm sure it's possible, but idk how ;-; |
19:49:07 | FromDiscord | <Technisha Circuit> It's because Termux supports Truecolour mode but Nim reports that it doesn't |
19:49:19 | FromDiscord | <Rika> nim can report that? |
19:49:24 | FromDiscord | <Rika> how are you getting nim to report that |
19:49:24 | FromDiscord | <Technisha Circuit> So i wanted to check if the code is running Termux |
19:49:49 | FromDiscord | <Rika> it might be wrong, the way you're checking for truecolor |
19:49:53 | FromDiscord | <Technisha Circuit> It's a module that Nim has by default, lenme find the name |
19:49:59 | FromDiscord | <Technisha Circuit> It has a proc that reports it |
19:50:29 | FromDiscord | <Technisha Circuit> It was `terminal` from the stdlib |
19:51:00 | FromDiscord | <Rika> does termux *really* support truecolor |
19:51:09 | FromDiscord | <Technisha Circuit> Yeah, lemme get the post |
19:51:28 | FromGitter | <Knaque> Code, CSS and Generated HTML (https://gist.github.com/Knaque/8497255fcc28059b3ba32a0f3f021b03) |
19:52:22 | FromDiscord | <Technisha Circuit> https://github.com/termux/termux-app/issues/92 |
19:52:23 | disbot | β₯ 24bit True Color Support |
19:52:37 | FromDiscord | <Technisha Circuit> > 24-bit color is now supported as of the 0.40 version! |
19:52:53 | FromDiscord | <Rika> is it on by default |
19:52:56 | FromDiscord | <Technisha Circuit> I also ran the test |
19:53:01 | FromDiscord | <Technisha Circuit> Yeah, apparently |
19:53:18 | FromDiscord | <Technisha Circuit> Maybe it's because Termux returns xterm variables? (My friend said that it does) |
19:53:46 | FromDiscord | <Technisha Circuit> If there's a test you want me to run, i can run it to check |
19:55:37 | FromDiscord | <Rika> the one with awk in https://gist.github.com/XVilka/8346728 |
19:55:42 | FromDiscord | <Technisha Circuit> https://media.discordapp.net/attachments/371759389889003532/722177532148842496/Screenshot_20200615_205539_com.termux.jpg |
19:55:53 | FromDiscord | <Technisha Circuit> sent a code paste, see https://discordapp.com/channels/371759389889003530/371759389889003532/722177578236117023 |
19:56:30 | FromDiscord | <Technisha Circuit> https://media.discordapp.net/attachments/371759389889003532/722177732263542794/Screenshot_20200615_205625_com.termux.jpg |
19:56:33 | FromDiscord | <Rika> looks identical to mine |
19:57:41 | FromDiscord | <Technisha Circuit> Lemme get the code to show that Nim reports Termux as not supporting Truecolour |
19:59:30 | * | vsantana joined #nim |
20:00:27 | FromDiscord | <Rika> also returns false for konsole |
20:00:33 | FromDiscord | <Rika> feel like its faulty |
20:01:12 | FromDiscord | <Technisha Circuit> https://media.discordapp.net/attachments/371759389889003532/722178916139401327/Screenshot_20200615_210109_com.termux.jpg |
20:01:14 | FromDiscord | <Technisha Circuit> Oh |
20:01:16 | FromDiscord | <Technisha Circuit> Hm |
20:01:22 | FromDiscord | <Technisha Circuit> How would i tell then? |
20:02:13 | FromDiscord | <Rika> its not really reliable in any terminal afaik |
20:02:22 | FromDiscord | <Rika> maybe do https://gist.github.com/XVilka/8346728#querying-the-terminal |
20:02:41 | FromDiscord | <Technisha Circuit> O |
20:05:17 | FromDiscord | <Technisha Circuit> That just freezes the terminal after returning `2π2:3m` |
20:05:36 | FromDiscord | <Technisha Circuit> ```2π2:3m``` |
20:05:37 | FromDiscord | <Technisha Circuit> 2π2:3m |
20:05:45 | FromDiscord | <Technisha Circuit> Hm |
20:06:00 | FromDiscord | <Technisha Circuit> 2\:1\:2\:3m |
20:06:03 | FromDiscord | <Technisha Circuit> There |
20:06:15 | FromDiscord | <Technisha Circuit> I used an escape character |
20:06:33 | FromDiscord | <Technisha Circuit> π |
20:06:36 | FromDiscord | <Technisha Circuit> O |
20:07:06 | FromDiscord | <Rika> π |
20:07:17 | FromDiscord | <Rika> +1, 1 is thumbsup |
20:07:18 | FromDiscord | <Rika> -1 is down |
20:07:34 | * | tdc quit (Ping timeout: 260 seconds) |
20:07:59 | FromDiscord | <Rika> > That just freezes the terminal after returning `2π2:3m`β΅@Technisha Circuit this is hard to explain, but theres a way to read that by setting the terminal's settings, but thats really dangerous |
20:08:13 | FromDiscord | <Rika> its kinda scary shit imo |
20:15:16 | * | vsantana quit (Remote host closed the connection) |
20:15:30 | Araq | Clyybber: shouldn't 'a: var T' become a borrowed pointer? |
20:16:10 | * | vsantana1 joined #nim |
20:17:18 | * | vsantana1 left #nim (#nim) |
20:19:14 | * | vsantana joined #nim |
20:24:22 | FromDiscord | <Clyybber> Araq: Hmm, yeah. |
20:25:46 | * | vsantana1 joined #nim |
20:25:47 | * | vsantana quit (Read error: Connection reset by peer) |
20:26:18 | * | vsantana1 quit (Client Quit) |
20:26:31 | * | vsantana joined #nim |
20:28:31 | * | vsantana left #nim (#nim) |
20:28:35 | * | vsantana joined #nim |
20:29:40 | * | vsantana left #nim (#nim) |
20:30:38 | * | nsf quit (Quit: WeeChat 2.8) |
20:30:46 | * | vsantana joined #nim |
20:34:25 | * | Vladar quit (Remote host closed the connection) |
20:37:09 | * | lua quit (Ping timeout: 245 seconds) |
20:37:12 | * | PMunch joined #nim |
20:37:55 | * | vsantana1 joined #nim |
20:37:57 | * | vsantana quit (Ping timeout: 265 seconds) |
20:41:38 | * | leorize joined #nim |
20:42:08 | * | NimBot joined #nim |
20:42:18 | * | vsantana1 quit (Ping timeout: 258 seconds) |
20:47:25 | * | arecaceae quit (Remote host closed the connection) |
20:47:42 | * | vsantana joined #nim |
20:48:09 | * | arecaceae joined #nim |
20:50:40 | FromDiscord | <Hutzdog> Hey, I am rn setting up MacOS and Windows compilation VMs, however Mac would be difficult to get into a VM. Would it be possible to use a distribution of BSD as my compile target in liu of Mac, or are they too different for binary compatablity |
20:51:04 | FromDiscord | <Rika> i think theyre way too different |
20:51:09 | FromDiscord | <Rika> but thats only a guess |
20:51:26 | FromDiscord | <Rika> and also nim distinguishes them too] |
20:53:44 | FromDiscord | <Technisha Circuit> > @Technisha Circuit this is hard to explain, but theres a way to read that by setting the terminal's settings, but thats really dangerousβ΅Oh damn |
20:55:36 | FromDiscord | <Hutzdog> Would you know of any other OSes that I can use that is closer to mac? |
20:56:56 | FromDiscord | <Technisha Circuit> Depends if you want to be able to run Mac binaries and stuff |
20:57:04 | FromDiscord | <Technisha Circuit> If so, i think there's XDarwin |
20:57:19 | FromDiscord | <Technisha Circuit> Which is an OS using the darwin kernel Mac uses |
20:57:35 | FromDiscord | <Technisha Circuit> Otherwise, you can try linux then find a mac-like window manager |
20:58:45 | FromDiscord | <Hutzdog> Honestly, I'm just looking to be able to use it for compilation purposes |
20:59:04 | FromDiscord | <Technisha Circuit> Then i think there's elementary OS, but really |
20:59:10 | FromDiscord | <Technisha Circuit> You could just install a different DE |
20:59:20 | FromDiscord | <Technisha Circuit> For any linux OS |
20:59:21 | FromDiscord | <tyler569> there are also services that run datacenters full of macs to solve this problem (if you mwan compiling for macos) |
20:59:31 | FromDiscord | <tyler569> (edit) 'mwan' => 'mean' |
20:59:33 | FromDiscord | <Hutzdog> I'm running linux, the issue is that I can't cross compile it to mac from linux. |
20:59:45 | * | haxscramper joined #nim |
20:59:48 | FromDiscord | <tyler569> https://www.macincloud.com/ for example, there are others |
21:00:53 | FromDiscord | <Technisha Circuit> Ooooh |
21:01:04 | FromDiscord | <Hutzdog> Nvm, it appears as though it just does not like cross compiling windows. It seems to work fine for mac. |
21:01:58 | FromDiscord | <Elegant Beef> You should be able to build to windows but it could have issues if you use something like nimarchive |
21:02:10 | * | vsantana quit (Quit: Leaving.) |
21:02:25 | * | vsantana joined #nim |
21:02:54 | FromDiscord | <Elegant Beef> https://nim-lang.org/docs/nimc.html#cross-compilation-for-windows |
21:02:58 | FromDiscord | <Elegant Beef> Assuimg you follow that |
21:03:15 | FromDiscord | <Elegant Beef> (edit) 'Assuimg' => 'Assuming' |
21:04:53 | haxscramper | How I can use parameter converter for a single parameter? If proc accepts `varargs` I can use `varargs[string, $]` to convert all parameters. I want to accept either `Table[K, V]` or `seq[(K, V)]` and looking for something like `arg: [Table[K, V], toTable]`. |
21:05:25 | haxscramper | It can be done with overloading but I just want to make sure it is not possible to do any other way. |
21:09:41 | PMunch | I mean you can do 'proc name[K, V](x: Table[K, V] or seq[(K, V)])` |
21:10:05 | FromDiscord | <Elegant Beef> or can be replaced with `|` if you prefer that π |
21:10:21 | PMunch | Then in the body do something like `let table = if x is seq: x.toTable else: x` |
21:11:49 | FromDiscord | <tyler569> I feel like overloading is better though, since then adding a new type is one change, and not two (the signature + the if X is Y convertion) |
21:12:49 | FromDiscord | <tyler569> since the overload can be `proc foo[K, V](s: seq[(K, V)]) = foo(s.totable)` |
21:12:55 | FromDiscord | <tyler569> (edit) 'foo(s.totable)`' => 'foo(s.toTable)`' |
21:14:07 | * | solitudesf quit (Ping timeout: 258 seconds) |
21:18:29 | haxscramper | PMunch: thanks, it's exactly what I was looking for. tyler569: overloading is nice when I have relatively small proc - not when duplicating it adds 6-7 lines of boilerplate code. For small procs it is of course better to just provide overloading. |
21:31:21 | * | Senny joined #nim |
21:33:31 | * | haxscramper quit (Remote host closed the connection) |
21:39:32 | * | nikita` quit (Quit: leaving) |
21:40:03 | * | lritter quit (Quit: Leaving) |
21:56:09 | FromGitter | <Willyboar> @Knaque are you here? |
21:59:25 | * | sentreen quit (Ping timeout: 246 seconds) |
22:01:46 | * | tane quit (Quit: Leaving) |
22:03:52 | * | Jesin quit (Quit: Leaving) |
22:05:42 | * | abm quit (Quit: Leaving) |
22:12:43 | * | sentreen joined #nim |
22:14:44 | * | Jesin joined #nim |
22:19:24 | * | PMunch quit (Quit: leaving) |
22:19:54 | * | unihernandez22 quit (Quit: leaving) |
22:20:36 | * | vsantana left #nim (#nim) |
23:28:53 | FromGitter | <Knaque> @Willyboar Am now. |
23:30:58 | FromDiscord | <willyboar> I make a comment on gist |
23:31:10 | FromDiscord | <willyboar> made* |
23:31:45 | FromDiscord | <willyboar> you don't need to use public/ in jester static files |
23:33:00 | FromGitter | <Knaque> That did it! Thank you very much. |
23:33:43 | FromDiscord | <willyboar> π |
23:48:35 | FromGitter | <Knaque> On a completely unrelated note, has anyone made bindings for libgit2? |
23:51:11 | * | krux02 quit (Remote host closed the connection) |
23:58:18 | leorize | !repo nimgit2 |
23:58:19 | disbot | https://github.com/genotrance/nimgit2 -- 9nimgit2: 11libgit2 wrapper for Nim 15 3β 2π΄ 7& 1 more... |