| 00:00:25 | * | tiorock joined #nim |
| 00:00:25 | * | tiorock quit (Changing host) |
| 00:00:25 | * | tiorock joined #nim |
| 00:00:25 | * | rockcavera quit (Killed (card.freenode.net (Nickname regained by services))) |
| 00:00:25 | * | tiorock is now known as rockcavera |
| 00:00:27 | disruptek | 'cause you're too poor? |
| 00:01:24 | FromDiscord | <Hearthstone> OOF- |
| 00:01:41 | FromDiscord | <Hearthstone> You fucking killed him dude- |
| 00:02:30 | disruptek | well, that's why the bank won't let me login any more. |
| 00:02:57 | FromDiscord | <Hearthstone> Oof |
| 00:03:25 | * | gmaggior quit (Ping timeout: 240 seconds) |
| 00:10:36 | * | gmaggior joined #nim |
| 00:16:14 | * | endragor joined #nim |
| 00:24:48 | * | audiofile quit (Quit: Default Quit Message) |
| 00:25:39 | FromDiscord | <Rebel> could anyone explain why this does not this cast does not result in y being 0? https://play.nim-lang.org/#ix=2vVf |
| 00:25:51 | FromDiscord | <Rebel> (edit) removed 'this does not' |
| 00:26:36 | disruptek | rtfm div operator. |
| 00:26:58 | * | vicfred quit (Quit: Leaving) |
| 00:28:33 | * | vicfred joined #nim |
| 00:29:28 | FromDiscord | <Elegant Beef> Well you're casting a float, which just reinterprets the bits as a int, you want `x.int or int(x)` |
| 00:29:42 | FromDiscord | <Elegant Beef> https://play.nim-lang.org/#ix=2vVg |
| 00:30:33 | FromDiscord | <Elegant Beef> Coming from C# the `cast` name got me aswell 😄 |
| 00:34:43 | FromDiscord | <Elegant Beef> @Rebel this also explains why https://play.nim-lang.org/#ix=2vVi |
| 00:34:59 | disruptek | rtfm div operator. |
| 00:35:24 | FromDiscord | <Elegant Beef> the div operator doesnt explain why the `cast[int](x)` doesnt return 0 |
| 00:35:47 | disruptek | of course it does. |
| 00:36:01 | FromDiscord | <Elegant Beef> Not it doesnt, the issue is they think `cast` is how to do type conversion |
| 00:36:27 | FromDiscord | <Elegant Beef> if you read what they say they're asking "Why is y non-zero" not "Why is 2 /100 a float" |
| 00:36:28 | disruptek | not my problem. |
| 00:39:14 | FromDiscord | <Rebel> ohhh thanks I see the problem coming from C# as well lol trying to convert this atm (https://dotnetfiddle.net/dOT9bg) should be simple now that I know how to do type conversions properly lol |
| 00:40:09 | FromDiscord | <Elegant Beef> Ah yes, C# -> Nim was fun, tons of features I feel like I'm missing when writting C# though |
| 00:40:31 | FromDiscord | <Elegant Beef> Metaprogramming/Compile time evaluation being the big two |
| 00:41:14 | FromDiscord | <Elegant Beef> Also worth noting that `int` is dependant on the OS, so it can be 32bit or 64bit depending what bit the OS is |
| 00:43:39 | disruptek | i will find you. |
| 00:48:15 | * | gmaggior quit (Quit: Leaving) |
| 00:48:48 | FromDiscord | <Elegant Beef> Come at me |
| 00:49:02 | FromDiscord | <Elegant Beef> Im hiding in the div operator part of the manual |
| 00:51:25 | * | endragor quit (Ping timeout: 240 seconds) |
| 01:06:29 | * | endragor joined #nim |
| 01:09:12 | * | awe00 quit (Ping timeout: 256 seconds) |
| 01:18:05 | * | maier joined #nim |
| 01:22:55 | * | maier quit (Ping timeout: 240 seconds) |
| 01:23:21 | * | Tlanger joined #nim |
| 01:25:45 | * | a_chou quit (Ping timeout: 240 seconds) |
| 01:26:08 | * | Tlangir quit (Ping timeout: 260 seconds) |
| 01:29:27 | FromGitter | <gogolxdong> Huawei proposed its own programming language named Char (仓颉,an ancient in Chinese hisotry who invented characters.) |
| 01:30:32 | * | apahl_ joined #nim |
| 01:33:43 | * | apahl quit (Ping timeout: 260 seconds) |
| 01:35:05 | * | a_chou joined #nim |
| 01:42:19 | FromDiscord | <Rosen> does it use cangjie instead of english? |
| 01:42:39 | FromDiscord | <Rosen> latin alphabet not english i guess |
| 01:43:41 | FromGitter | <gogolxdong> It uses Char instead pinyin cangjie. |
| 01:44:25 | FromGitter | <gogolxdong> of |
| 01:50:24 | disruptek | richard keil got nothin' on me. |
| 01:59:12 | ForumUpdaterBot | New thread by Archnim: What about simplifying if-else statements ?, see https://forum.nim-lang.org/t/6759 |
| 02:17:25 | * | muffindrake quit (Ping timeout: 240 seconds) |
| 02:19:51 | * | muffindrake joined #nim |
| 03:18:57 | * | maier joined #nim |
| 03:23:58 | * | maier quit (Ping timeout: 260 seconds) |
| 03:30:43 | * | arecacea1 quit (Remote host closed the connection) |
| 03:31:07 | * | arecacea1 joined #nim |
| 03:53:05 | * | Zevv quit (Ping timeout: 240 seconds) |
| 03:54:36 | * | Zevv joined #nim |
| 03:54:36 | * | Zevv quit (Changing host) |
| 03:54:36 | * | Zevv joined #nim |
| 03:55:20 | FromDiscord | <iWonderAboutTuatara> I've been banging my head against the macro system for a not insignificant part of today |
| 03:55:44 | FromDiscord | <iWonderAboutTuatara> Has anyone tried sbcl? |
| 03:55:50 | FromDiscord | <iWonderAboutTuatara> How does it compare to Nim? |
| 04:04:34 | FromDiscord | <Elegant Beef> Macros are weird but using treedump explains how to use them imo |
| 04:04:40 | FromDiscord | <Elegant Beef> dumptree 😄 |
| 04:05:37 | FromDiscord | <iWonderAboutTuatara> How do you use dumptree? |
| 04:06:02 | * | supakeen quit (Quit: WeeChat 2.9) |
| 04:06:11 | FromDiscord | <Elegant Beef> ```↵dumptree:↵ if(true):echo "heh"↵``` |
| 04:06:38 | * | supakeen joined #nim |
| 04:06:48 | FromDiscord | <Elegant Beef> Shows the AST of human written code |
| 04:06:55 | FromDiscord | <Elegant Beef> that and .repr/.treerepr |
| 04:12:41 | FromDiscord | <Elegant Beef> The homoiconicity of nim means that you're just a manual macro writer 😄 |
| 04:27:30 | FromDiscord | <Rosen> dumptree is so fun |
| 04:27:39 | FromDiscord | <Rosen> it's like you're looking backstage |
| 04:37:05 | * | waleee-cl quit (Quit: Connection closed for inactivity) |
| 04:40:08 | FromDiscord | <iWonderAboutTuatara> Wait you drop a thing in a dumptree block and it echoes the AST? |
| 04:40:47 | FromDiscord | <iWonderAboutTuatara> So let's say I was trying to do equivalent of go's := (declare and set equal to) using macros |
| 04:41:03 | FromDiscord | <iWonderAboutTuatara> (I know this is possible with templates, doing for learning purposes) |
| 04:41:28 | FromDiscord | <iWonderAboutTuatara> So when I call that, do I just put it in a dumptree? |
| 04:41:58 | FromDiscord | <iWonderAboutTuatara> ie ↵'''nim↵dumptree:↵ a := "hellus o" |
| 04:42:08 | FromDiscord | <iWonderAboutTuatara> Will dump the AST of that? |
| 04:42:13 | FromDiscord | <iWonderAboutTuatara> (edit) 'o"' => 'o"```' |
| 04:42:27 | FromDiscord | <iWonderAboutTuatara> (edit) '↵'''nim↵dumptree:↵' => '↵```nim↵dumptree:↵' |
| 04:42:50 | FromDiscord | <Elegant Beef> if it's valid Nim code |
| 04:45:56 | FromDiscord | <Elegant Beef> But i mean in your case it's a rather simple thing to make https://play.nim-lang.org/#ix=2vVN |
| 04:46:36 | FromDiscord | <Elegant Beef> I honestly didnt expect the `:=` to work, so went and tested it myself |
| 04:49:09 | FromDiscord | <Elegant Beef> Suffice to say i fucking love macros |
| 04:52:31 | * | vikfret joined #nim |
| 04:52:59 | FromDiscord | <iWonderAboutTuatara> newVarStmt()? |
| 04:53:12 | FromDiscord | <iWonderAboutTuatara> Can you try doing that Inna quote do block |
| 04:53:27 | FromDiscord | <iWonderAboutTuatara> I'm not quite at the level where I understand this stuff yet |
| 04:53:41 | FromDiscord | <lqdev> it literally produces a var statement |
| 04:53:45 | FromDiscord | <Elegant Beef> the newVarStmt retuns the AST of declaring a varstatment |
| 04:54:07 | FromDiscord | <iWonderAboutTuatara> Oh I see |
| 04:54:48 | FromDiscord | <Elegant Beef> The quote method https://play.nim-lang.org/#ix=2vVO |
| 04:55:02 | FromDiscord | <Elegant Beef> *Atleast i think that works* |
| 04:55:05 | FromDiscord | <iWonderAboutTuatara> I tried putting that in a dump tree block |
| 04:55:09 | FromDiscord | <iWonderAboutTuatara> It didn't print anything tho |
| 04:55:21 | FromDiscord | <iWonderAboutTuatara> That worked |
| 04:55:37 | FromDiscord | <Elegant Beef> dumptree doesnt magically generate code |
| 04:55:38 | FromDiscord | <iWonderAboutTuatara> Let's say I wanted to print the AST of one of those |
| 04:55:43 | FromDiscord | <iWonderAboutTuatara> How would I do that with 2 args? |
| 04:56:08 | FromDiscord | <iWonderAboutTuatara> One of those being a a := b |
| 04:56:27 | FromDiscord | <Elegant Beef> You need to replicate this https://play.nim-lang.org/#ix=2vVP |
| 04:56:45 | FromDiscord | <Elegant Beef> *if you hit run then show debug you can see the AST* |
| 04:57:06 | FromDiscord | <iWonderAboutTuatara> Oh I see |
| 04:57:31 | FromDiscord | <Elegant Beef> That's typically how i write any macros that dont use `quote do` i write them out in a dumptree as i want them then reimplement it |
| 04:58:45 | FromDiscord | <iWonderAboutTuatara> I see |
| 04:58:50 | FromDiscord | <iWonderAboutTuatara> That makes a lot of sense |
| 04:58:56 | FromDiscord | <iWonderAboutTuatara> This is actually pretty clean |
| 04:59:10 | FromDiscord | <iWonderAboutTuatara> Take the puzzle pieces and put them where they need to go |
| 04:59:50 | FromDiscord | <Elegant Beef> Inside the macro you can use `.repr` and `.treerepr` on the nodes to see what you have/are going to |
| 05:00:35 | FromDiscord | <Elegant Beef> For instance you can see the actual output nim code with `.repr` here |
| 05:18:51 | * | solitudesf joined #nim |
| 05:19:51 | * | maier joined #nim |
| 05:25:10 | * | maier quit (Ping timeout: 265 seconds) |
| 05:33:58 | * | narimiran joined #nim |
| 05:42:09 | FromDiscord | <Varriount> Hey @Elegant Beef , how are things? |
| 05:42:56 | FromDiscord | <Elegant Beef> Fine, you? |
| 05:46:26 | * | Zevv left #nim (#nim) |
| 05:46:42 | * | Zevv joined #nim |
| 05:48:58 | * | maier joined #nim |
| 06:01:27 | * | fowl_ quit (Ping timeout: 260 seconds) |
| 06:01:32 | * | sirn quit (Ping timeout: 246 seconds) |
| 06:01:55 | * | kwilczynski quit (Ping timeout: 240 seconds) |
| 06:02:56 | * | sirn joined #nim |
| 06:02:59 | * | kwilczynski joined #nim |
| 06:04:30 | * | fowl_ joined #nim |
| 06:10:06 | * | Zevv quit (Ping timeout: 256 seconds) |
| 06:19:00 | FromDiscord | <Varriount> @Elegant Beef I finally have some free time |
| 06:19:51 | FromDiscord | <Varriount> Araq: Posted my comment on the serialization RFC |
| 06:20:09 | * | kwilczynski quit (Ping timeout: 272 seconds) |
| 06:21:42 | * | kwilczynski joined #nim |
| 06:24:22 | * | PMunch joined #nim |
| 06:24:34 | * | vicfred quit (Quit: Leaving) |
| 06:24:59 | FromDiscord | <19> noob question: is there a way for flatten a sequence of multiple arrays? |
| 06:25:39 | FromDiscord | <19> to flatten* |
| 06:26:25 | * | Zevv joined #nim |
| 06:26:25 | * | Zevv quit (Changing host) |
| 06:26:25 | * | Zevv joined #nim |
| 06:27:16 | FromDiscord | <19> @[[0,1,2],[0,1,2]]↵to↵@[0,1,2,0,1,2] |
| 06:29:04 | narimiran | @19 `itertools.chain`? https://narimiran.github.io/itertools/#chain.i%2Cvarargs[seq[T]] |
| 06:29:32 | narimiran | (you need to install this package, it is not built-in) |
| 06:29:56 | * | a_chou quit (Remote host closed the connection) |
| 06:30:04 | FromDiscord | <19> nice! same as py |
| 06:31:10 | narimiran | yeah, i've written it based on the functionality of python's package of the same name ;) |
| 06:31:44 | narimiran | (now i see i should put that in the docs too, not just in the readme) |
| 06:32:20 | FromDiscord | <19> wicked sick ;) |
| 06:37:14 | * | Zevv quit (Read error: Connection reset by peer) |
| 06:41:46 | * | mipri joined #nim |
| 06:42:08 | * | rokups joined #nim |
| 06:54:41 | * | Sgeo quit (Read error: Connection reset by peer) |
| 06:55:46 | ForumUpdaterBot | New thread by Skaruts: How to get my nim procs in a lua table, see https://forum.nim-lang.org/t/6761 |
| 07:12:07 | * | vikfret quit (Quit: Leaving) |
| 07:13:12 | * | pietroppeter joined #nim |
| 07:28:25 | * | WilhelmVonWeiner quit (Ping timeout: 264 seconds) |
| 07:41:19 | PMunch | Yay, found and fixed my AVR set bug from the other day :) |
| 07:41:22 | PMunch | https://github.com/nim-lang/Nim/pull/15258 |
| 07:41:23 | disbot | ➥ Fix sets for architectures with default integers smaller than 32 bits |
| 07:42:41 | FromGitter | <alehander92> huh |
| 07:42:47 | FromGitter | <alehander92> how would cyclic work |
| 07:48:39 | FromDiscord | <haxscramper> If I want to write test for nim `compiler/parser` (for the nim test suite) how do I import it in the test? If I do `import ../../compiler/parser` it fails because it cannot find `std/private/miscdollars` I haven't' found any kind of `--addImportDir` flag that I can put in test configuration? If I understand correctly testament uses whole compiler, but it takes noticeable amount of time to build even for relatively simple change. |
| 07:54:12 | * | Zevv joined #nim |
| 07:54:25 | Araq | ping alehander92 |
| 08:02:51 | FromDiscord | <flywind> I think `expandFilename` can also expand the path of the dir. Maybe the name of this function is a bit confusing? |
| 08:05:37 | PMunch | Hi Zevv, I fixed my set issue: https://github.com/nim-lang/Nim/pull/15258 :) |
| 08:05:38 | disbot | ➥ Fix sets for architectures with default integers smaller than 32 bits |
| 08:15:07 | Zevv | that was very wrong indeed |
| 08:15:24 | Zevv | it's a wonder that did not break more things |
| 08:19:15 | * | hnOsmium0001 quit (Quit: Connection closed for inactivity) |
| 08:19:50 | Araq | flywind: others remarked the same thing :-) |
| 08:20:08 | * | krux02 joined #nim |
| 08:20:27 | PMunch | Zevv, well I guess sets haven't been that much used on AVR yet :P |
| 08:20:39 | PMunch | I mean, nothing has been very much used on AVR yet it seems |
| 08:21:53 | Zevv | Well, it takes a masochist to still do anything on an AVR in 2020 :) |
| 08:22:16 | PMunch | Give me a better option and I'm all ears |
| 08:22:31 | Araq | Raspberry Pie? |
| 08:22:37 | Araq | I have no idea :-) |
| 08:23:02 | PMunch | RPi is great for a lot of stuff, but totally overkill in many cases |
| 08:23:34 | PMunch | Most of the stuff people do with RPis I can do with a $1 chip |
| 08:25:17 | lbart | PMunch: +1 :) |
| 08:25:22 | krux02 | it's not just that, sometimes you don't want an OS. |
| 08:25:53 | PMunch | True, that as well |
| 08:26:00 | Araq | so use the RPi chip without an OS but I can understand |
| 08:26:24 | Araq | that might not be as simple as an AVR chip |
| 08:27:05 | krux02 | yes |
| 08:28:03 | krux02 | the RPi is multicore, that makes things already more complicated than necessary. |
| 08:29:02 | * | awe00 joined #nim |
| 08:29:04 | PMunch | I mean the RPi is an actual computer, programming directly against that "chip" is essentially the same as programming directly against the CPU in your machine :P |
| 08:32:50 | krux02 | I used an AVR chip a long time ago, what was really helpful, was the tooling around that chip and the debugger interface. With the press of a single button I could redeploy my program on the chip run it and debug it. |
| 08:33:17 | krux02 | As far as I am aware of it , the RPi isn't made for such a workflow. |
| 08:34:07 | krux02 | (if you want to program the CPU directly) |
| 08:34:29 | PMunch | Yeah, that is part of what makes them so easy to work with. You can fit all the code that runs on the thing on a single screen most of time. Hit a button and the microcontroller will reflash itself with your code |
| 08:38:24 | Zevv | PMunch: There's tons of "little" ARM boards for no money these days. |
| 08:38:47 | Zevv | You get a tens KBs of RAM, 100's of flash, lots of IO, and a proper core running fast and wide |
| 08:39:10 | PMunch | Hmm, that sounds interesting |
| 08:39:21 | Zevv | I had this nice chip having a Cortex M0 and M4 dual |
| 08:39:58 | Zevv | I made a software synthesizer on that. The M0 did management, SD card loading etc. It loads code from SD card and then boots the M4 that runs the sound engine |
| 08:40:12 | Zevv | all pretty simple to run from scratch on silicon |
| 08:42:05 | * | awe00_ joined #nim |
| 08:44:56 | * | awe00__ joined #nim |
| 08:45:04 | * | awe00 quit (Ping timeout: 246 seconds) |
| 08:48:13 | * | awe00_ quit (Ping timeout: 264 seconds) |
| 08:52:38 | PMunch | Huh, that does indeed sound like a cool chip |
| 08:55:56 | FromDiscord | <dom96> yo, since we're discussing chips and hardware. Any of you know what the displays used in train departure boards/buses are? For example https://c8.alamy.com/comp/DXRER1/electronic-departures-board-displaying-train-times-at-railway-station-DXRER1.jpg |
| 08:56:35 | FromDiscord | <dom96> I have a feeling that it's one of the LUMEX displays but I haven't ones as big as that. |
| 08:56:41 | FromDiscord | <dom96> (edit) 'I have a feeling that it's one of the LUMEX displays but I haven't ... ones' => 'I have a feeling that it's one of the LUMEX displays but I haven'tfound' |
| 08:58:16 | * | tsujp joined #nim |
| 09:00:21 | PMunch | @dom96, something like this? https://uktronix.co.uk/?product=p4-large-led-board |
| 09:01:58 | Zevv | it's likely to be a custom built from something modular |
| 09:02:45 | Zevv | PMunch: https://github.com/zevv/modular |
| 09:03:12 | FromDiscord | <dom96> PMunch: yes, but that's already a full package. I guess I could buy it and see what the display in there is used. |
| 09:03:19 | FromDiscord | <dom96> but £300, ouch |
| 09:03:34 | Zevv | PMunch: and https://web.archive.org/web/20190920140135/http://zevv.nl/play/modular/ |
| 09:06:13 | PMunch | @dom96, I mean you can always pick up something from here: https://www.aliexpress.com/wholesale?SearchText=led+matrix+display |
| 09:07:13 | PMunch | Zevv, aren't you maintaining your links :o |
| 09:07:21 | FromDiscord | <dom96> yes, well, there is a lot of crap on aliexpress |
| 09:07:33 | FromDiscord | <dom96> I ideally would like model numbers/brands that I can search |
| 09:07:48 | PMunch | Zevv, but that's a cool project |
| 09:08:03 | Zevv | Unfortunately it's before my Nim time. Otherwise this would be *sooo* nim |
| 09:08:11 | Zevv | and of course I abandoned it halfway again. It worked. Then it got boring |
| 09:08:51 | Zevv | yeah I migrated webservers some time ago and didn't copy everything over |
| 09:08:52 | Zevv | let me fix that |
| 09:10:53 | Zevv | ooh right that was php which I don't want on my new server |
| 09:12:26 | Zevv | Oooh I found this in my archives: http://zevv.nl/play/binary_bingo.pdf. It's bingo with only ones and zeroes |
| 09:16:24 | PMunch | My server still runs a traditional LAMP stack <_< |
| 09:17:08 | FromDiscord | <Elegant Beef> Your server runs on wifi enabled light bulbs? |
| 09:17:46 | PMunch | Sure, running it on an IoT botnet has really cut down my server costs :P |
| 09:18:27 | FromDiscord | <Elegant Beef> Dont remind me that IoT is common place |
| 09:31:48 | * | Vladar joined #nim |
| 09:32:18 | * | endragor quit (Quit: Leaving...) |
| 09:37:26 | PMunch | Hmm, would adding a feature to nimsuggest to warn it that you're using different cases for a variable be a good idea? |
| 09:42:44 | Zevv | that's already done in the compiler, isn't it? So it should be in nimsuggest as well? |
| 09:43:17 | Zevv | --styleCheck:off|hint|error |
| 09:44:08 | Zevv | @leorize[m] Oy! How can one pass custom arguments to nimsuggest? |
| 10:03:07 | * | maier quit (Ping timeout: 246 seconds) |
| 10:11:54 | * | rokups quit (Quit: Connection closed for inactivity) |
| 10:40:53 | * | narimiran quit (Ping timeout: 260 seconds) |
| 10:41:55 | PMunch | Yeah, nimsuggest really don't have a lot of options.. |
| 10:48:47 | * | maier joined #nim |
| 10:50:12 | PMunch | Does nimble have any kind of project scaffolding feature? |
| 10:50:36 | PMunch | I'm thinking about how to make getting started with Nim on Arduboy have as little friction as possible |
| 10:55:38 | * | pangey quit (Ping timeout: 256 seconds) |
| 10:57:48 | FromDiscord | <Varriount> What do you mean by scaffolding? |
| 11:00:50 | * | pangey joined #nim |
| 11:00:58 | PMunch | Well since the Arduboy is an Arduino device it requires a nim.cfg and panicoverride.nim. It would be nice if you could do something like "nimble install arduboy; nimble scaffold arduboy" to set up a "arduboy" project |
| 11:08:21 | * | Vladar quit (Remote host closed the connection) |
| 11:14:04 | * | Vladar joined #nim |
| 11:15:30 | * | audiofile joined #nim |
| 11:16:35 | stisa[m] | PMunch you could make your own, just have a file eg `arduboy.nim` with a when isMainModule and tell nimble to build it with bin, then if `.nimble/bin` is in path you can run it |
| 11:16:51 | FromDiscord | <dom96> yep |
| 11:17:15 | FromDiscord | <dom96> you can even call `nimble init` from your binary |
| 11:18:15 | PMunch | Hmm, I guess that would be the best way of doing it |
| 11:18:30 | PMunch | So it would be "nimble install arduboy; arduboy scaffold" or something similar |
| 11:18:38 | FromDiscord | <Varriount> Yeah |
| 11:19:05 | FromDiscord | <Varriount> I won't say it's a convention, but other language tools do this |
| 11:19:30 | FromDiscord | <Varriount> *language's tools |
| 11:22:52 | * | MyMind joined #nim |
| 11:22:55 | * | Sembei quit (Ping timeout: 240 seconds) |
| 11:37:58 | * | dddddd quit (Ping timeout: 246 seconds) |
| 11:42:47 | * | dddddd joined #nim |
| 11:47:00 | * | abm joined #nim |
| 11:53:55 | * | arecacea1 quit (Remote host closed the connection) |
| 11:54:23 | * | arecacea1 joined #nim |
| 12:06:01 | * | supakeen quit (Quit: WeeChat 2.9) |
| 12:06:34 | * | supakeen joined #nim |
| 12:14:42 | FromDiscord | <Pixeye> hi guys:) is there a way to define compile variables ( values ) in cfg ? |
| 12:16:51 | * | xet7 quit (Remote host closed the connection) |
| 12:17:27 | FromGitter | <ynfle> As in `-d:<something>`? |
| 12:17:49 | FromGitter | <ynfle> Does `nim check` ensure that the file an compile? |
| 12:24:37 | FromDiscord | <Recruit_main707> i think you can |
| 12:24:49 | FromDiscord | <Recruit_main707> but im not sure |
| 12:26:37 | * | jken quit (Ping timeout: 264 seconds) |
| 12:26:46 | * | jken joined #nim |
| 12:28:46 | PMunch | @Pixeye, yes, just do "define = whatever" |
| 12:30:55 | FromGitter | <ynfle> Is there any difference between `nim c` and `nim check` for checking whether a file compiles? |
| 12:35:37 | FromDiscord | <Rika> Nim c compiles it |
| 12:35:40 | FromDiscord | <Rika> Check doesn't |
| 12:35:42 | FromDiscord | <Recruit_main707> nim c compiles the code, and displays the first error iirc, nim check shows all |
| 12:45:21 | FromDiscord | <Pixeye> I need to define like "Amount=10_000" is it possible ? |
| 12:45:36 | FromDiscord | <Pixeye> so I can use it as a const or something inside the code |
| 12:46:45 | FromDiscord | <Rika> @Pixeye https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-compile-time-define-pragmas ? |
| 12:48:00 | * | lritter joined #nim |
| 12:48:04 | FromDiscord | <Pixeye> @Rika thanks 🙂 |
| 12:48:13 | FromDiscord | <Pixeye> exactly what I need |
| 13:00:10 | FromDiscord | <vieru> quick way to check for internet connection ? |
| 13:02:46 | FromDiscord | <lqdev> @ynfle nim c is better because it also checks whether the backend (eg. C compiler) errors out |
| 13:03:12 | FromDiscord | <lqdev> `nim c -o:/dev/null file` can be thought of as a better nim check |
| 13:04:22 | FromDiscord | <lqdev> @vieru `ping google.com` |
| 13:04:54 | FromDiscord | <vieru> does nim have a native way ? |
| 13:05:09 | FromDiscord | <vieru> (edit) 'does nim have a native way ... ?' => 'does nim have a native wayof doing it' |
| 13:05:48 | FromDiscord | <lqdev> sockets? |
| 13:06:16 | FromDiscord | <vieru> idk how to use them |
| 13:15:39 | * | agent0x00 joined #nim |
| 13:24:22 | FromDiscord | <dom96> just use httpclient to request google.com or something |
| 13:31:14 | Araq | ping Clyybber |
| 13:32:01 | * | maier quit (Ping timeout: 264 seconds) |
| 13:34:08 | * | Kaivo quit (Ping timeout: 260 seconds) |
| 13:36:10 | * | Kaivo joined #nim |
| 13:45:50 | * | maier joined #nim |
| 13:50:30 | * | waleee-cl joined #nim |
| 13:50:54 | * | maier quit (Ping timeout: 258 seconds) |
| 13:57:36 | * | arecacea1 quit (Remote host closed the connection) |
| 13:58:00 | * | arecacea1 joined #nim |
| 13:58:37 | * | Perkol joined #nim |
| 14:00:30 | * | PMunch quit (Quit: Leaving) |
| 14:04:24 | * | vicfred joined #nim |
| 14:14:38 | * | Perkol quit (Remote host closed the connection) |
| 14:16:32 | * | Vladar quit (Remote host closed the connection) |
| 14:24:22 | * | Vladar joined #nim |
| 14:52:51 | disruptek | what's cookin', kids? |
| 14:52:57 | disruptek | tell me something good. |
| 14:56:18 | solitudesf | it gets better |
| 14:58:58 | disruptek | that's it? |
| 15:02:02 | shashlick | fixing nimble issues |
| 15:07:55 | * | awe00__ quit (Ping timeout: 240 seconds) |
| 15:08:21 | disruptek | how can i make nimble display color for my ci? |
| 15:20:35 | * | awe00__ joined #nim |
| 15:20:40 | * | letto quit (Quit: Konversation terminated!) |
| 15:21:42 | shashlick | need to check the code - there's a noColor option but probably code in there that checks for tty and disables color too so a color:on might be good like nim |
| 15:22:13 | disruptek | okay, never mind, then. |
| 15:23:13 | * | letto joined #nim |
| 15:24:14 | FromDiscord | <Clyybber> pong Araq |
| 15:26:20 | shashlick | disruptek: ya by default, color is set by isatty |
| 15:27:18 | Araq | wait a sec |
| 15:27:29 | Araq | I'm preparing a snippet |
| 15:27:58 | disruptek | shashlick: arguably it's a bug that my testes don't respect it. |
| 15:28:09 | disruptek | my testes are known to be disrespectful. |
| 15:30:32 | shashlick | let me know if we need a --color:on |
| 15:30:35 | shashlick | to force it on |
| 15:30:39 | * | sunwukong joined #nim |
| 15:31:05 | disruptek | it would make it easier to grok the logs but it just doesn't seem that important to me. |
| 15:31:55 | disruptek | btw, i am close to moving package management functionality into a library. |
| 15:32:11 | disruptek | i need it for a lot of stuff and i just don't know if i want to rely on people being able to build toast. |
| 15:32:24 | disruptek | would like to know your thoughts... |
| 15:32:55 | FromGitter | <alehander92> what is toast |
| 15:33:07 | disruptek | it's like dirty stale bread. |
| 15:33:23 | shashlick | nimterop cli tool |
| 15:33:24 | FromGitter | <alehander92> great with tea |
| 15:33:29 | Araq | Clyybber: https://gist.github.com/Araq/35dbc6bc70b15f6e256f0493f05ef899 |
| 15:33:46 | shashlick | what's the user experience with the lib - what are they using it for |
| 15:33:57 | Araq | the goal is to propagate exception raises information |
| 15:34:03 | Araq | with Nim's async |
| 15:34:40 | Araq | that's my idea, we cannot query for the exceptions but we can have an 'awaitE' that checks the given effects |
| 15:34:45 | FromGitter | <alehander92> is this a good time to ask about possible relation with cancellation |
| 15:34:48 | disruptek | i'm the user and i'm using it to provide functions i use in other packages; loading of configs, path handling, maybe integrated nimscript parsing, this sort of thing. |
| 15:34:50 | shashlick | disruptek: is toast not building? we can always ship binaries |
| 15:35:13 | FromGitter | <alehander92> i have implemented cancellation based on exceptions in our company's fork |
| 15:35:46 | FromGitter | <alehander92> but it kinda clashes with people using naively try/catch and wondered if it makes any sense to try to upstream it later |
| 15:35:58 | shashlick | disruptek: why do you need toast for that - libgit2 doesn't sound relevant for those |
| 15:36:35 | disruptek | it's not, but it's basically nimph functionality that i want to include elsewhere. |
| 15:36:41 | disruptek | https://github.com/disruptek/nimph/blob/denimble/nimph/paths.nim |
| 15:37:15 | disruptek | https://github.com/disruptek/nimph/blob/denimble/nimph/config.nim |
| 15:38:18 | Araq | clyybber: the basic question is if you have better ideas |
| 15:38:22 | FromDiscord | <juan_carlos> I miss Disruptek streams. |
| 15:38:34 | disruptek | sorry man. |
| 15:38:46 | FromGitter | <alehander92> yeah what happened with those |
| 15:39:03 | Araq | Corona |
| 15:39:05 | disruptek | i have 1mbit upload. |
| 15:39:29 | * | bouzu_ joined #nim |
| 15:39:39 | Araq | disruptek, check your Telegram, it's urgent |
| 15:39:53 | disruptek | impossible. |
| 15:40:42 | disruptek | if i manage to move, i will be on 3g internet. |
| 15:41:13 | disruptek | but also 20-30 meters from a lake. 🤷 |
| 15:42:08 | * | sunwukong quit (Quit: ERC (IRC client for Emacs 27.1)) |
| 15:44:04 | * | kinkinkijkin quit (Ping timeout: 244 seconds) |
| 15:46:23 | * | hnOsmium0001 joined #nim |
| 15:46:46 | * | maier joined #nim |
| 15:51:26 | shashlick | disruptek: are you still facing toast issues |
| 15:52:03 | * | maier quit (Ping timeout: 265 seconds) |
| 15:56:57 | * | Trustable joined #nim |
| 15:57:08 | ForumUpdaterBot | New thread by Adricoin2010: [windows] Nim fails to compile with a Lua pkg., see https://forum.nim-lang.org/t/6762 |
| 16:12:33 | FromDiscord | <exelotl> Wow so much Nim + Lua activitt |
| 16:12:40 | FromDiscord | <exelotl> (edit) 'activitt' => 'activity' |
| 16:14:23 | disruptek | shashlick: no, and i don't wanna. |
| 16:14:33 | disruptek | what nim + lua activity? |
| 16:15:23 | FromDiscord | <exelotl> I mean we had 3 forum posts about Lua this week already |
| 16:15:29 | shashlick | Only way is to generate and cache wrappers for all your target platforms |
| 16:15:39 | shashlick | User still needs to get libgit2 installed |
| 16:15:55 | FromDiscord | <exelotl> (not complaining, I like Lua a lot and it seems like it goes well with Nim) |
| 16:15:55 | disruptek | yes, this is why it makes more sense to move pm code into a library. |
| 16:15:59 | FromDiscord | <dom96> > that's my idea, we cannot query for the exceptions but we can have an 'awaitE' that checks the given effects↵wtf |
| 16:16:04 | disruptek | then the pm code has no deps. |
| 16:16:23 | disruptek | the forum doesn't count afaic because i don't read it. |
| 16:16:30 | shashlick | What about libgit2 - you can cache a static binary also for every platform |
| 16:16:46 | disruptek | why would i care about libgit2 in dust? |
| 16:17:07 | disruptek | i want to use this code in my testes. i don't want a libgit2 dependency there. |
| 16:17:08 | shashlick | Then why does toast even come into play |
| 16:17:09 | disruptek | et cetera. |
| 16:17:24 | disruptek | because currently, the code i want is in nimph. |
| 16:17:32 | disruptek | currently, the only way to import it is to add a nimph dep. |
| 16:17:37 | disruptek | currently, that demands a toast dep. |
| 16:17:46 | shashlick | Ok I get you - so this has nothing to do with nimterop |
| 16:17:50 | disruptek | correct. |
| 16:18:01 | disruptek | i'm asking if you want to collaborate on a pure nim lib for pm. |
| 16:18:07 | disruptek | and what you'd like to see in it. |
| 16:18:10 | shashlick | Let me get off the hamster wheel then |
| 16:18:31 | shashlick | Config reading for sure - I had to add that into nimterop |
| 16:18:38 | disruptek | right. |
| 16:18:47 | shashlick | Wasn't fun |
| 16:18:52 | disruptek | config, paths, i want to add a config-delta. |
| 16:19:00 | shashlick | Compile time, run time, old versions |
| 16:19:00 | * | Jesin quit (Quit: Leaving) |
| 16:19:31 | disruptek | old versions? |
| 16:19:51 | shashlick | Nimterop supports upto 0.20.2 |
| 16:20:05 | disruptek | i can barely support 1.0, but, okay. |
| 16:20:45 | shashlick | If you want to do a library, have to take care of some of the long tail |
| 16:21:06 | disruptek | i think you're nuts to support pre-1.0. |
| 16:21:11 | disruptek | but whatever. |
| 16:21:15 | disruptek | "i don't care." |
| 16:21:38 | disruptek | btw gittyup demonstrates problems with JBB currently. |
| 16:21:42 | disruptek | in CI. |
| 16:22:25 | disruptek | anyway, i will work on this a bit later. have to dig into the compiler code. lemme know if anything else occurs to you. |
| 16:22:36 | FromDiscord | <dom96> agree, pre-1.0 should be forgotten |
| 16:24:15 | shashlick | Link to the CI bug? |
| 16:24:33 | disruptek | head doesn't work. |
| 16:24:46 | disruptek | !repo gittyup |
| 16:24:47 | disbot | https://github.com/disruptek/gittyup -- 9gittyup: 11higher-level libgit2 bindings that build upon nimgit2 15 3⭐ 1🍴 |
| 16:25:01 | disruptek | https://github.com/disruptek/gittyup/actions/runs/235196865 |
| 16:25:34 | disruptek | those failures are likely unrelated. |
| 16:25:38 | disruptek | it's an ssl cert issue. |
| 16:26:03 | disruptek | nimble test will repro it locally. |
| 16:26:13 | disruptek | "ssl error: the SSL certificate is invalid: 0x08 - The certificate is not correctly signed by the trusted CA" |
| 16:33:27 | * | kinkinkijkin joined #nim |
| 16:34:56 | * | solitudesf quit (Remote host closed the connection) |
| 16:38:44 | disruptek | !last zevv |
| 16:38:45 | disbot | Zevv spoke in 12#nim 6 hours ago 12https://irclogs.nim-lang.org/02-09-2020.html#09:44:08 |
| 16:38:48 | disruptek | lazy. |
| 16:40:30 | disruptek | 5.391245e-44 # Randomly chosen my ass |
| 16:42:19 | FromGitter | <alehander92> huh he was here yesterday |
| 16:42:32 | FromGitter | <alehander92> oh i still read 76 hours in gitter |
| 16:42:47 | disruptek | this isn't gitter. |
| 16:44:27 | shashlick | disruptek: reproduced the gittyup failure |
| 16:44:43 | shashlick | looks like mbedtls doesn't like what openssl was okay with |
| 16:44:58 | disruptek | sucks. any idea on what we should do? |
| 16:45:17 | disruptek | alehander92: how come i keep producing project ideas and you keep not implementing them? |
| 16:45:32 | disruptek | leorize[m]: should frosty go into fusion? |
| 16:45:50 | disruptek | also asynctools. |
| 16:45:57 | shashlick | not sure - maybe some flag that can be set? |
| 16:46:05 | * | drewr joined #nim |
| 16:47:03 | disruptek | you mean i should fix it in gittyup, right? |
| 16:47:10 | disruptek | in a flag i set in libgit2. |
| 16:47:19 | FromGitter | <alehander92> well man |
| 16:47:30 | FromGitter | <alehander92> you didn't like my own idea ! |
| 16:47:40 | shashlick | probably, but not sure why it fails in the first place |
| 16:48:05 | disruptek | alehander92: because no one but you has use for it. |
| 16:48:15 | disruptek | alehander92: here's one: port nomnomml to nim. |
| 16:48:36 | shashlick | so it is failing in clone me? |
| 16:49:00 | disruptek | i think so, yes. but i think it's because it's trying to use a https vs. git url, or vice-versa. |
| 16:49:08 | leorize[m] | "disruptek" (https://matrix.to/#/@freenode_disruptek:matrix.org): I like those stuff, but it's up to Araq to decide what can go in |
| 16:49:09 | leorize[m] | never hurt to make a pr though |
| 16:50:12 | disruptek | well, i'm putting frosty in the compiler anyway. and i had a branch that used asynctools for testament. |
| 16:50:25 | disruptek | so if it isn't in fusion, it'll just be harder for users to use. |
| 16:50:45 | disruptek | i don't even distribute fusion in gitnim, because it's stupid. |
| 16:51:03 | FromGitter | <alehander92> disruptek wow that's a cool app |
| 16:51:11 | FromGitter | <alehander92> but i really dont agree with ya |
| 16:51:11 | disruptek | alehander92: yes, and there's already nimsvg. |
| 16:51:14 | disruptek | !repo nimsvg |
| 16:51:16 | disbot | https://github.com/bluenote10/NimSvg -- 9NimSvg: 11Nim-based DSL allowing to generate SVG files and GIF animations. 15 86⭐ 3🍴 |
| 16:51:23 | FromGitter | <alehander92> like people put benchmarks and blogs comparing languages every day |
| 16:51:35 | disruptek | "i don't care." |
| 16:51:44 | FromGitter | <alehander92> well i dont care about uml |
| 16:51:50 | disruptek | fair enough. |
| 16:52:02 | disruptek | you would rather use png? |
| 16:52:08 | disruptek | dot? |
| 16:52:20 | FromDiscord | <iWonderAboutTuatara> png is generally easier to work with |
| 16:52:28 | FromGitter | <alehander92> i just had an interview related to something like uml tho |
| 16:52:33 | FromGitter | <alehander92> i am not sure |
| 16:52:34 | FromDiscord | <iWonderAboutTuatara> and if its high res and simple enough its usually trivial to vectorize it if needed |
| 16:52:39 | disruptek | that's like saying donkey dick is easier to suck than horse dick. |
| 16:52:51 | FromDiscord | <iWonderAboutTuatara> what an analogy |
| 16:53:01 | FromDiscord | <iWonderAboutTuatara> but if it is, it is |
| 16:53:06 | FromGitter | <alehander92> disruptek i have to compiler |
| 16:53:14 | FromDiscord | <iWonderAboutTuatara> I don't have experience sucking either so I can't speak to that |
| 16:53:25 | FromGitter | <alehander92> i plan on using normal english |
| 16:53:27 | FromGitter | <alehander92> for a change |
| 16:53:31 | disruptek | weird. |
| 16:53:47 | FromDiscord | <iWonderAboutTuatara> what does having to compiler mean |
| 16:53:54 | FromGitter | <alehander92> you see^ |
| 16:54:01 | FromGitter | <alehander92> people can't understand me |
| 16:54:08 | disruptek | Zevv: where are you, man? i need some help with your code. |
| 16:54:09 | FromDiscord | <iWonderAboutTuatara> fair enough |
| 16:54:29 | FromGitter | <alehander92> i think i annoyed him a lot yesterday |
| 16:54:33 | FromGitter | <alehander92> and he said he is off |
| 16:55:51 | disruptek | zevv's turn-ons include unicode, coroutines, and android. |
| 17:01:34 | FromDiscord | <brainproxy> On Windows, in a make target that execs `nim c ...` `gcc` (mingw) is found and used as expected. But in another make target nimble is invoked to build and run some tests, but it's reporting that `gcc` can't be found and it fails. |
| 17:01:51 | FromDiscord | <brainproxy> (edit) 'On Windows, in a make target that execs `nim c ...` `gcc` (mingw) is found and used as expected. But in another make target nimble is invoked to build and run some tests, but ... it's' => 'On Windows, in a make target that execs `nim c ...` `gcc` (mingw) is found and used as expected. But in another make target nimble is invoked to build and run some tests, butduring compilation' |
| 17:15:14 | FromDiscord | <iWonderAboutTuatara> small question |
| 17:15:19 | FromDiscord | <iWonderAboutTuatara> why doesn't this macro work? |
| 17:15:27 | FromDiscord | <iWonderAboutTuatara> sent a code paste, see https://play.nim-lang.org/#ix=2vYg |
| 17:15:34 | FromDiscord | <iWonderAboutTuatara> I'm sure I'm doing a number f things wrong |
| 17:15:50 | FromDiscord | <iWonderAboutTuatara> https://play.nim-lang.org/#ix=2vYh |
| 17:15:59 | FromDiscord | <iWonderAboutTuatara> I just don't know what they are |
| 17:17:04 | FromDiscord | <Rika> they do tho? |
| 17:17:06 | FromDiscord | <Rika> it compiles |
| 17:17:48 | FromDiscord | <Rika> remove dumpTree and move ++c below c %= |
| 17:18:13 | FromDiscord | <iWonderAboutTuatara> sorry that isnt the error |
| 17:18:18 | FromDiscord | <iWonderAboutTuatara> if you try to do ++c it won't compile |
| 17:18:36 | FromDiscord | <iWonderAboutTuatara> wait what |
| 17:18:37 | FromDiscord | <iWonderAboutTuatara> huh |
| 17:18:44 | FromDiscord | <iWonderAboutTuatara> if you echo that it throws an error though |
| 17:19:58 | FromDiscord | <iWonderAboutTuatara> wait ok what |
| 17:20:07 | FromDiscord | <iWonderAboutTuatara> it you try to echo ++c it errors |
| 17:20:47 | * | NimBot joined #nim |
| 17:20:51 | FromDiscord | <iWonderAboutTuatara> `++c; echo c` works, but `echo ++c` errors |
| 17:21:49 | FromDiscord | <Rika> echo ++c will error because `lhs = rhs` does not return anything in nim |
| 17:21:52 | FromDiscord | <Rika> unlike in c |
| 17:22:02 | disruptek | bat guano is my least-favorite guano. |
| 17:25:03 | FromDiscord | <iWonderAboutTuatara> so how do i ake it reutnr what i want it to? |
| 17:26:52 | FromDiscord | <Rika> ```inc `val`; `val` ```↵but any `++c` will need discard if alone |
| 17:27:17 | FromDiscord | <Rika> (im not sure on the top block, maybe `block: inc...` will work |
| 17:27:22 | FromDiscord | <Rika> (edit) 'block,' => 'code,' | 'work' => 'work)' |
| 17:29:13 | FromDiscord | <iWonderAboutTuatara> oh semicolon followed by the value returns the value? |
| 17:29:24 | FromDiscord | <lqdev> no |
| 17:29:33 | FromDiscord | <lqdev> semicolon is the same as a newline |
| 17:42:04 | * | Trustable quit (Remote host closed the connection) |
| 17:42:48 | Zevv | disruptek: zup |
| 17:44:02 | Zevv | what did you break |
| 17:44:29 | disruptek | trying to figure out how your vm profiling works. |
| 17:44:40 | Zevv | I'm zevv. I fix problems. |
| 17:44:47 | disruptek | oh well. |
| 17:46:06 | Zevv | well its totally trivial |
| 17:46:19 | Zevv | before a vm instruction it looks at its watch |
| 17:46:22 | Zevv | it runs the instruction |
| 17:46:26 | Zevv | and looks again |
| 17:46:33 | Zevv | substracts the second from the first |
| 17:46:43 | Zevv | and adds the time to all the frames on the call stack |
| 17:47:00 | Zevv | that kind of sums it up I guess |
| 17:47:07 | disruptek | i don't get it. |
| 17:47:25 | disruptek | actually, i think i'm going about this wrong. |
| 17:47:27 | Zevv | what not |
| 17:47:35 | * | maier joined #nim |
| 17:47:43 | Zevv | its dead stupid |
| 17:47:45 | Zevv | oh sorry |
| 17:47:50 | disruptek | i know, i'm just kidding. |
| 17:48:01 | disruptek | i want to measure two things: |
| 17:48:08 | disruptek | how long it takes to process a macro, |
| 17:48:12 | * | lritter quit (Quit: Leaving) |
| 17:48:14 | disruptek | how long it takes to compile a proc. |
| 17:48:33 | Zevv | just do cpuTime() before and after the invocation? |
| 17:48:41 | Zevv | different problemy than profiling if you ask me |
| 17:48:46 | disruptek | i thought i would just count vm ops but maybe time is more useful. |
| 17:48:47 | Zevv | because you know what you want to measure |
| 17:48:53 | Zevv | time is always more useful |
| 17:49:07 | Zevv | you have cpuTime in the vm, but there is a stupid flag you need to set otherwise you get |
| 17:49:10 | Zevv | because of paranoia |
| 17:49:15 | disruptek | where does this shit get stored? |
| 17:49:18 | disruptek | vmProfileData? |
| 17:49:20 | Zevv | yeah |
| 17:49:24 | disruptek | okay. |
| 17:49:34 | Zevv | just look at d7ccd82eacd7a03c7cf31ea56315c3a35218e122, it tells the whole story in a few lines |
| 17:49:54 | disruptek | so that's useless for me because i don't have lineinfo to index it with. |
| 17:50:05 | disruptek | i will just do this lamely. |
| 17:50:08 | disruptek | it's not permanent. |
| 17:51:40 | Zevv | nothing is, is it |
| 17:52:07 | disruptek | not the way i code, no. |
| 17:52:20 | disruptek | ps. never get stoned and try to write a resume. |
| 17:52:25 | * | maier quit (Ping timeout: 240 seconds) |
| 17:52:26 | Zevv | dude |
| 17:52:30 | Zevv | I feel so damned sorry for you |
| 17:52:38 | Zevv | write a resume like your 21 |
| 17:53:09 | disruptek | maybe i did. |
| 17:53:13 | disruptek | did you read it? |
| 17:53:16 | disruptek | i don't know what i was thinking. |
| 17:55:43 | FromDiscord | <iWonderAboutTuatara> @Rika that works, but you have to set the quote do to type int |
| 17:56:00 | FromDiscord | <iWonderAboutTuatara> sent a code paste, see https://play.nim-lang.org/#ix=2vYo |
| 17:56:20 | FromDiscord | <Rika> eh? thats valid syntax? |
| 17:56:30 | FromDiscord | <iWonderAboutTuatara> yep |
| 17:56:41 | FromDiscord | <iWonderAboutTuatara> you can change the macro return value to untyped and it works |
| 17:56:50 | FromDiscord | <iWonderAboutTuatara> this doesn't work with literals though |
| 17:56:54 | FromDiscord | <iWonderAboutTuatara> ie ++32 throws error |
| 17:56:56 | FromDiscord | <Rika> i mean the part after do |
| 17:57:01 | FromDiscord | <iWonderAboutTuatara> apparently |
| 17:57:18 | FromDiscord | <iWonderAboutTuatara> this runs |
| 17:57:23 | FromDiscord | <iWonderAboutTuatara> and now i can do echo ++var |
| 17:57:33 | FromDiscord | <iWonderAboutTuatara> this doesn't work for literals |
| 17:57:38 | FromDiscord | <iWonderAboutTuatara> and I do not know why |
| 17:58:30 | * | narimiran joined #nim |
| 17:58:36 | FromDiscord | <Rika> you cant set a literal |
| 17:58:42 | FromDiscord | <iWonderAboutTuatara> right |
| 17:58:43 | FromDiscord | <iWonderAboutTuatara> right |
| 17:58:49 | FromDiscord | <Rika> it becomes converted to `32 = 32 + 1` |
| 17:58:55 | FromDiscord | <iWonderAboutTuatara> yeah |
| 17:58:58 | FromDiscord | <iWonderAboutTuatara> I see the issue |
| 17:59:26 | FromDiscord | <iWonderAboutTuatara> another question, but more general |
| 17:59:43 | FromDiscord | <iWonderAboutTuatara> So far, I have only really seen how this works with a basically static input |
| 17:59:54 | FromDiscord | <iWonderAboutTuatara> ie there's no variation in the amount of input etc |
| 18:00:55 | * | lritter joined #nim |
| 18:01:20 | FromDiscord | <Rika> wdym' |
| 18:24:10 | FromDiscord | <iWonderAboutTuatara> how do you work with expressions in which the types of input change |
| 18:24:16 | FromDiscord | <iWonderAboutTuatara> or the amount of input changes |
| 18:25:24 | FromDiscord | <Rika> varargs? |
| 18:25:27 | FromDiscord | <iWonderAboutTuatara> yeah |
| 18:25:44 | FromDiscord | <iWonderAboutTuatara> can you loop through the nodes? |
| 18:25:53 | FromDiscord | <Clyybber> Araq, @dom96 Why do we need that? |
| 18:26:06 | FromDiscord | <dom96> Amazing: https://twitter.com/nim_lang/status/1301224693979131904 |
| 18:26:09 | FromDiscord | <Clyybber> How are exceptions handled currently in async? |
| 18:26:18 | disruptek | poorly. |
| 18:26:24 | FromDiscord | <dom96> clyybber: I'm wondering that too |
| 18:27:13 | FromDiscord | <Clyybber> I assume because of raises: []? |
| 18:27:21 | FromDiscord | <Clyybber> But I'm missing context so I can't really comment |
| 18:27:45 | FromDiscord | <Rika> i mean regards the malware thing |
| 18:28:02 | FromDiscord | <Rika> ah yes discord not sending the first message |
| 18:28:04 | FromDiscord | <Rika> but sending the sedcond |
| 18:28:06 | FromDiscord | <Rika> (edit) 'sedcond' => 'second' |
| 18:28:08 | FromDiscord | <Rika> is that good or bad xddd |
| 18:28:54 | * | clyybber joined #nim |
| 18:29:01 | FromDiscord | <iWonderAboutTuatara> I'm sort of interested in that tbh |
| 18:29:18 | FromDiscord | <iWonderAboutTuatara> I like ti write some form of virus in every langauge I try |
| 18:29:35 | clyybber | planetis[m]: Hey, about the vulkan issue, why do you need to use addr? I think I made most params var |
| 18:29:37 | FromDiscord | <iWonderAboutTuatara> macros have the potential to make understand what's going on in even unobfuscated code very hard |
| 18:29:46 | * | clyybber quit (Client Quit) |
| 18:31:10 | * | gmaggior joined #nim |
| 18:31:37 | FromDiscord | <Clyybber> oh, nevermind |
| 18:32:01 | FromDiscord | <Clyybber> seems like a good idea. I'll update the wrapper |
| 18:33:09 | FromDiscord | <Rika> @iWonderAboutTuatara i remember someone making a string obfuscator in nim and then yardanico improving on that afaik, but its prolly easy for experts to figure that out |
| 18:33:24 | Yardanico | for experienced people - of course |
| 18:33:32 | Yardanico | but it still has some issues since it's getting applied in places where it shouldn't |
| 18:33:40 | Yardanico | https://github.com/Yardanico/nim-strenc/ |
| 18:34:22 | disruptek | nim's c is easier to deconstruct than handwritten c. |
| 18:34:24 | FromDiscord | <Rika> it is? |
| 18:34:32 | FromDiscord | <Rika> i mean to yardanico |
| 18:34:40 | Yardanico | it depends |
| 18:34:44 | Yardanico | with --gc:arc and -d:danger, not really |
| 18:34:48 | Yardanico | maybe you mean the GC? |
| 18:34:52 | Yardanico | we're talking about compiled binaries |
| 18:37:48 | FromDiscord | <Clyybber> @haxscramper Regarding your RFC does it matter much to you wether we implement ": or this? |
| 18:37:57 | FromDiscord | <Clyybber> Because one can be implemented without compiler support |
| 18:38:20 | FromDiscord | <Clyybber> Personally I really dislike having strings without quotes |
| 18:38:32 | FromDiscord | <Clyybber> and I assume it will cause havoc for highlighting |
| 18:41:16 | FromDiscord | <Clyybber> hardcoding it to 2 space indentation is bad |
| 18:42:59 | * | tane joined #nim |
| 18:43:59 | FromDiscord | <haxscramper> I linked unit test to github & updated my comment |
| 18:44:28 | FromDiscord | <haxscramper> I think syntax highlighting already handles it quite fine - not the best possible results of course, but good enoug |
| 18:44:38 | FromDiscord | <haxscramper> https://github.com/haxscramper/Nim/blob/devel/tests/parser/therestring2.nim |
| 18:45:35 | FromDiscord | <Clyybber> The same thing can be accomplished much easier though, you have a proc/macro that takes a string literal and it returns the string literal stripped of its common least leading spaces |
| 18:45:44 | FromDiscord | <Clyybber> without compiler support |
| 18:46:06 | FromDiscord | <haxscramper> Yes, everything that this RFC implements is syntax sugar. Zero new features |
| 18:46:41 | FromDiscord | <haxscramper> But that's the only point - it makes long string literals look better. That's all |
| 18:47:28 | FromDiscord | <Clyybber> Ok |
| 18:47:33 | FromDiscord | <haxscramper> And I understand this is why things like this usually cause a lot of debate - it is pure *preference* |
| 18:47:53 | FromDiscord | <Clyybber> Are you aware of strutils.unindent ? |
| 18:48:18 | FromDiscord | <haxscramper> Yes, of course |
| 18:48:56 | FromDiscord | <haxscramper> Although I usually make about 3 typos while writing this, so I implemented my own `dedent`. But that's just me having zero typing skills |
| 18:51:16 | FromDiscord | <Clyybber> The main reason I dislike this is that it makes string literals "hard" to spot by introducing another way to write them |
| 18:52:13 | FromDiscord | <haxscramper> I used quite verbose `herestring` which can be highlighted as keyword instead of `":` than includes `"` or bash-like `<< EOF` `EOF` |
| 18:52:16 | FromDiscord | <iWonderAboutTuatara> @Rika right, I was more referring to macros though |
| 18:52:30 | FromDiscord | <iWonderAboutTuatara> they can make the code painfully difficult to read and understand, or so I've heard |
| 18:52:41 | Yardanico | not really |
| 18:52:42 | FromDiscord | <iWonderAboutTuatara> which is definetely a plus for malware authors |
| 18:52:49 | FromDiscord | <Clyybber> Also, no other indentation: construct behaves this way |
| 18:53:08 | Yardanico | @iWonder you can't really use macros for obfuscation of most nim stuff |
| 18:53:21 | FromDiscord | <iWonderAboutTuatara> I don't mean literal obfuscation |
| 18:53:26 | FromDiscord | <iWonderAboutTuatara> to be 100% clear |
| 18:53:35 | FromDiscord | <iWonderAboutTuatara> I mean't making the code hard to read and understand |
| 18:53:41 | Yardanico | that doesn't matter |
| 18:53:46 | Yardanico | macros are evaluated at compile-time |
| 18:53:51 | Yardanico | the binary doesn't have macros - it has the resulting code |
| 18:53:54 | FromDiscord | <iWonderAboutTuatara> oh I see |
| 18:54:01 | FromDiscord | <iWonderAboutTuatara> right |
| 18:55:24 | FromDiscord | <Rika> macros can obfuscate, but you cant obfuscate code just by writing a macro |
| 18:55:38 | Yardanico | well, macros can't obfuscate most stuff |
| 18:55:44 | Yardanico | it would be really hard to do |
| 18:55:47 | Yardanico | only in some specific cases |
| 18:55:50 | FromDiscord | <haxscramper> > Also, no other indentation: construct behaves this way↵@Clyybber I'm open to suggestions about implementation - I just wrote proof-of-concept to have something to show instead of "hey, why don't we do this". |
| 18:56:18 | FromDiscord | <Clyybber> Oh, I don't have much to suggest, I think using unindent should be the way to go |
| 19:08:38 | * | narimiran quit (Ping timeout: 256 seconds) |
| 19:22:01 | * | pietroppeter quit (Quit: Connection closed for inactivity) |
| 19:25:46 | disruptek | the problem with sleeping with pigs is you wake up smelling like a goat. |
| 19:26:19 | FromDiscord | <Clyybber> poetic |
| 19:32:38 | * | a_chou joined #nim |
| 19:32:54 | FromDiscord | <Rebel> Is there a way to have a thread as a type for a custom object? |
| 19:33:02 | Yardanico | wdym? |
| 19:33:09 | FromDiscord | <Rebel> it's saying 'Thread' is not a concrete type |
| 19:33:12 | FromDiscord | <Rebel> something like this |
| 19:33:12 | Yardanico | yes |
| 19:33:15 | FromDiscord | <Rebel> one sec |
| 19:33:20 | Yardanico | it should be either Thread[void] or Thread[othertype] |
| 19:33:34 | Yardanico | the type which gets passed to the thread argument |
| 19:33:50 | FromDiscord | <Rebel> https://play.nim-lang.org/#ix=2vYY |
| 19:33:57 | Yardanico | yes, as I said |
| 19:34:52 | FromDiscord | <Rebel> can I pass a generic instead? |
| 19:35:02 | FromDiscord | <Rebel> like Thread[T] as the type may change |
| 19:35:19 | Yardanico | yes, but then your object needs to be generic as well |
| 19:35:24 | Yardanico | and one object type = one thread type |
| 19:35:50 | Yardanico | type J[T] = object jthread: Thread[T] |
| 19:38:37 | disruptek | --define:leanCompiler=off doesn't do what you expect. |
| 19:38:55 | FromDiscord | <Rebel> excellent thanks |
| 19:41:31 | * | Jesin joined #nim |
| 19:42:53 | FromDiscord | <Clyybber> disruptek: What did you think it does? |
| 19:45:57 | disruptek | turn off leanCompiler. |
| 19:46:24 | disruptek | who knows someone who uses nim's hcr? |
| 19:48:01 | disruptek | good, 'cause it's getting removed. |
| 19:48:25 | * | maier joined #nim |
| 19:50:50 | disruptek | clyybber: why, what did you think it does? |
| 19:53:32 | * | maier quit (Ping timeout: 258 seconds) |
| 19:56:11 | * | lritter quit (Ping timeout: 240 seconds) |
| 19:56:12 | * | superbia joined #nim |
| 19:58:20 | Zevv | disruptek: hows the profiling |
| 19:58:35 | disruptek | turns out async is slow. |
| 19:58:42 | Zevv | what part |
| 19:58:48 | disruptek | the macro itself. |
| 19:58:54 | Zevv | well, it's hard work, isn't it? |
| 19:59:13 | disruptek | apparently. |
| 19:59:31 | disruptek | no one here uses flowvars, right? |
| 20:01:49 | Zevv | the only valid answer I can give is "I don't know" |
| 20:03:49 | disruptek | alehander92: what do you think of gully? |
| 20:04:06 | * | lritter joined #nim |
| 20:07:55 | disruptek | koch should probably prevent you from overriding the nimcache for tests; that, or it should put tests within the cache directory you specify. |
| 20:08:05 | disruptek | else parallel tests stomp on each other. |
| 20:09:50 | FromDiscord | <dom96> Normal async or cps async? 😛 |
| 20:12:14 | * | krux02 quit (Remote host closed the connection) |
| 20:16:42 | FromDiscord | <Rebel> Is there an equivalent to C#'s easiest way to determine in process architecture: IntPtr.Size == 4 ? "x86" : "x64" the ptr type in nim has the magic pragma so not sure if it's possible to get the size of it |
| 20:16:59 | Yardanico | yes |
| 20:17:01 | Yardanico | hostCPUI |
| 20:17:03 | Yardanico | hostCPU |
| 20:17:05 | * | rockcavera quit (Ping timeout: 240 seconds) |
| 20:17:16 | Yardanico | you want architecture or bitness though? |
| 20:18:21 | Yardanico | there is quite a lot of existing architectures, like "arm" or "arm64", bitness OTOH is usually 32 or 64 |
| 20:18:35 | * | moerm joined #nim |
| 20:19:16 | moerm | Friendly greeting to everyone from the "xenophobic" |
| 20:19:50 | Yardanico | moerm: why do you call yourself xenophobic? |
| 20:19:56 | Yardanico | as far as I can see no one called you that in this chat |
| 20:20:34 | * | donpdonp joined #nim |
| 20:20:39 | moerm | Yardanico, Because some woke idiot called me that in our forum and because 5 others +1'd it |
| 20:20:46 | Yardanico | huh |
| 20:20:59 | Yardanico | ahhh |
| 20:21:04 | donpdonp | im running nimble test on a project that includes redis, and it fails at |
| 20:21:08 | donpdonp | /home/donp/.nimble/pkgs/redis-0.3.0/redis.nim(50, 40) Error: undeclared identifier: 'Socket' |
| 20:21:20 | Yardanico | what's your nim version? |
| 20:21:21 | Yardanico | nim -v |
| 20:21:27 | moerm | Yeah, because I wrote (deleted now) that I *LIKE* russian devs. based on my experience |
| 20:21:29 | donpdonp | 1.2.0 |
| 20:21:35 | Yardanico | also try nimble install redis@#head |
| 20:21:35 | donpdonp | 50: Redis* = ref object of RedisBase[net.Socket] |
| 20:21:41 | donpdonp | which is a weird thing to fail over |
| 20:21:51 | Yardanico | seems like there were some newer commits, but the tagged version is 2 years behind |
| 20:22:15 | donpdonp | yeah i can try master |
| 20:23:42 | * | donpdonp goes to lookup how to do that :) |
| 20:23:47 | Yardanico | I sent you the command |
| 20:24:04 | Yardanico | check it 6 messages above :) |
| 20:24:14 | donpdonp | for what, the version of nim? its 1.2.0 |
| 20:24:24 | Yardanico | nimble install redis@#head |
| 20:24:27 | donpdonp | i mean a requires line that says to use git head |
| 20:24:31 | donpdonp | ahh thx |
| 20:24:34 | Yardanico | ah, requires |
| 20:24:40 | Yardanico | redis#head then |
| 20:24:42 | moerm | Not that I like Redis but stuff like that should work. And I mean simply and reliably |
| 20:25:44 | donpdonp | /home/donp/.nimble/pkgs/redis-#head/redis.nim(54, 40) Error: undeclared identifier: 'Socket' |
| 20:26:05 | donpdonp | moerm: yeah, the lib is working fine for me, but to run my own tests, nimble is apparently running the tests of every dependency |
| 20:26:12 | * | bouzu_ quit (Quit: Leaving) |
| 20:26:16 | Yardanico | it never does that |
| 20:26:58 | donpdonp | i say that becuase nimble build works |
| 20:27:03 | donpdonp | which still depends on redis |
| 20:27:16 | donpdonp | its only nimble test that throws this error |
| 20:27:36 | Yardanico | well nimble test only runs your tests |
| 20:27:39 | FromDiscord | <dom96> interesting, try `nimble test --debug` to see what Nimble runs |
| 20:28:31 | donpdonp | Yardanico: ok good to know |
| 20:29:11 | donpdonp | dom96: no extra info there except Not removing temporary path because of debug verbosity: /tmp/nimble_15566: $ cat /tmp/nimble_15566.out => {"success": false, "command": "e", "retVal": true} |
| 20:32:12 | moerm | Does anyone know how I can turn off auto-complete on *Return* in the VSCode abomination? (I want AC only on TAB) |
| 20:38:49 | * | rockcavera joined #nim |
| 20:47:24 | * | solitudesf joined #nim |
| 21:02:34 | FromGitter | <alehander92> disruptek what is gully |
| 21:02:46 | disruptek | !repo gully |
| 21:02:47 | disbot | https://github.com/disruptek/gully -- 9gully: 11a code comment formatter 15 1⭐ 0🍴 |
| 21:03:16 | FromGitter | <alehander92> moerm i am not sure, sorry, vscode is pretty ok tho |
| 21:06:06 | FromGitter | <alehander92> wow i am surprised how much thought/flags you put into this stuff |
| 21:06:36 | FromGitter | <alehander92> disruptek |
| 21:06:38 | FromGitter | <alehander92> (gully) |
| 21:07:03 | disruptek | it's something i've wanted for a long time. |
| 21:07:19 | moerm | alehander92, Thx but VSC drives me nuts when e.g. I open a 'var' section and hit return and VSC insanely and arbitrarily autocompletes 'var' to some nonsense |
| 21:09:52 | * | solitudesf quit (Ping timeout: 246 seconds) |
| 21:10:56 | FromGitter | <alehander92> moerm hm, can't extensions/ect change that: i am not sure if this is core vscode behavior |
| 21:11:02 | FromGitter | <alehander92> i am not very good at autocmpletion |
| 21:11:19 | FromGitter | <alehander92> disruptek a bit niche |
| 21:11:45 | FromGitter | <alehander92> but useful for different langs |
| 21:12:14 | FromGitter | <alehander92> i .. should write more comments |
| 21:13:13 | moerm | alehandler92 For me it's typical for the VSC abomination. But then what can one expect from idiots who base an editor on a browser backend ... |
| 21:15:34 | * | agent0x00 quit (Quit: WeeChat 1.9.1) |
| 21:30:22 | * | xace quit (Ping timeout: 256 seconds) |
| 21:31:19 | FromGitter | <alehander92> it's actually a very smart decision |
| 21:31:58 | FromDiscord | <InventorMatt> moerm: if you go to settings and type in enter to the search bard there should be an option that says accept suggestions on enter. you can turn it off there |
| 21:31:59 | FromGitter | <alehander92> calculating correctly what trade-offs people are ready to do for the trade-offs that browsers have |
| 21:32:31 | * | pbb quit (Remote host closed the connection) |
| 21:32:58 | FromGitter | <alehander92> yes: obviously "super over engineered how can we have that if i can use ed like that with some X" |
| 21:33:09 | moerm | InventorMatt Thanks a ton! I'll try right away |
| 21:33:43 | * | pbb joined #nim |
| 21:33:49 | FromGitter | <alehander92> but having a browser engine does give you a lot of cool stuff you can do in an editor |
| 21:34:01 | FromGitter | <alehander92> and if people are willing to give 10% of their 16gb ram-s .. |
| 21:34:08 | FromGitter | <alehander92> why not use this niche |
| 21:34:18 | moerm | alehander92, a) browsers have become perverse monsters, b) I'm not talking about "ed is good enough" but about a *reasonable* compromise like e.g. sublime editor |
| 21:34:28 | FromGitter | <alehander92> dude. i love sublime |
| 21:34:44 | FromGitter | <alehander92> but i am trying to show you that vscode is also a valid engineering choice |
| 21:35:05 | FromGitter | <alehander92> and today's UI state of the industry is not vscode's people fault |
| 21:35:44 | FromGitter | <alehander92> the opposite: editor makes much more sense to me to use many of those features compared to other electron apps |
| 21:35:48 | moerm | alehander92, I respect your "embrace everyone" and harmony attitude but NO, building an editor on top of a browser monstrosity is NOT sensible engineering |
| 21:36:02 | FromGitter | <alehander92> it's totally not harmony or embrace everyone |
| 21:36:15 | FromGitter | <alehander92> just there are many pro-s and many con-s for it |
| 21:36:27 | FromGitter | <alehander92> for some people the pro-s are worth it for others not |
| 21:36:56 | * | xace joined #nim |
| 21:37:07 | FromGitter | <Knaque> Mind if I interject to ask a question? |
| 21:37:10 | moerm | If you want to defend using a 40 ton truck for going to the grocery, good luck and fun - but not with me on board |
| 21:37:11 | FromGitter | <alehander92> and having an editor is kinda ok 1) you get much more custom packages/bigger ecosystem .. just there |
| 21:37:19 | FromGitter | <Knaque> An irrelevant question, I should add. |
| 21:37:28 | moerm | Knaque Absolutely not! Just go ahead! |
| 21:37:29 | FromGitter | <alehander92> 2) you already have a very optimized v8 engine with great debugging tools |
| 21:37:41 | FromGitter | <alehander92> 3) some people are ok with using this much ram anyway |
| 21:37:47 | FromGitter | <alehander92> yes, sorry, go ahead |
| 21:38:03 | moerm | alehander92, Let's end this topic and stay friendly |
| 21:38:07 | FromGitter | <Knaque> `var Radio* = initTable[string, tuple[val, hover: bool]]()` doesn't seem to be making `tuple[val, hover: bool]` public, so how can I fix that? I tried my first intuition for making it public, but all the complaining tells me I must have it wrong. |
| 21:38:32 | FromGitter | <alehander92> disagreeing with people is being friendly for me: i respect ya, that's why i like discussing |
| 21:38:54 | FromGitter | <alehander92> (but i .. am biased about electron, i did use it for years for similar stuff) |
| 21:39:26 | moerm | * politely refrains from comment on alehandlers past* |
| 21:39:43 | moerm | Let's turn our focus to Knaque's question ... |
| 21:40:53 | FromGitter | <alehander92> like .. i like TUI-s a lot, i really want lightweight stuff . but I *had to* agree that electron just has some plus-es. |
| 21:41:11 | FromGitter | <alehander92> Knaque this is very interesting problem |
| 21:41:14 | moerm | Or even bettr I'll politely leave with a friendly smile |
| 21:41:29 | moerm | Have a good day/night everyone ;) |
| 21:41:29 | Yardanico | @Knaque create a type? |
| 21:41:44 | Yardanico | and use it in initTable |
| 21:41:52 | FromGitter | <alehander92> but still |
| 21:41:57 | FromGitter | <alehander92> is this the expected behavior |
| 21:42:05 | moerm | Yardanico, Yep. A *public* one |
| 21:42:12 | FromGitter | <alehander92> moerm pls don't leave: if you want i wouldn't argue anymore |
| 21:42:12 | * | moerm quit (Quit: Leaving) |
| 21:42:22 | FromGitter | <alehander92> especially if you stop calling cool smart people idiots |
| 21:43:25 | FromGitter | <alehander92> Knaque i can't repro tho |
| 21:43:34 | FromGitter | <alehander92> i can access `.val` in another module |
| 21:43:45 | FromGitter | <alehander92> is it possible that you dont import tables |
| 21:44:11 | FromGitter | <alehander92> and get a [] error (sorry if i am wrong, just it was a non-obvious error for me) |
| 21:45:04 | FromDiscord | <mbenam> Hello. I am trying to make an http post request. One of the variable is style = color="red". I tried creating a json using ↵"style" = "color=\"red\"". But it seems the double quote is not being escaped. Can you suggest what I need to change? |
| 21:45:34 | FromDiscord | <Rika> add backslashes to escape the quotes? |
| 21:46:04 | FromDiscord | <mbenam> sorry, I added backslash. But it disappears here |
| 21:46:09 | FromGitter | <Knaque> @alehander92 Is actually spot on. Guess that makes sense, I just assumed it was a public thing. |
| 21:46:24 | FromDiscord | <mbenam> How do you paste a code block here? |
| 21:46:38 | FromDiscord | <Rika> use \`\``s |
| 21:46:46 | FromDiscord | <Rika> ```↵test↵``` |
| 21:46:57 | FromDiscord | <mbenam> '''↵"style" = "color=\"red\"" |
| 21:47:07 | FromGitter | <alehander92> but moerm/Yardanico 's advice also makes sense |
| 21:47:14 | FromGitter | <alehander92> it's often good to just name stuff |
| 21:47:21 | FromGitter | <alehander92> especially if many procs take it as arg |
| 21:47:30 | FromDiscord | <mbenam> ```"style" = "color=\"red\""``` |
| 21:47:38 | FromDiscord | <mbenam> That's what I did. |
| 21:47:44 | FromDiscord | <Rika> what's the exact error you're getting |
| 21:48:14 | FromDiscord | <mbenam> it posts. But I am getting a different response |
| 21:48:28 | FromDiscord | <mbenam> Tried with python. works fine |
| 21:48:43 | FromDiscord | <mbenam> when I echo the json, I still see the slashes |
| 21:49:17 | * | maier joined #nim |
| 21:49:31 | FromDiscord | <Rika> thats normal, it should have backslashes too in json or itll be invalid |
| 21:53:59 | FromGitter | <alehander92> please use a paste service |
| 21:54:38 | * | maier quit (Ping timeout: 260 seconds) |
| 21:57:43 | disruptek | just use %* and let json render it, yeesh. |
| 21:59:26 | * | tane quit (Remote host closed the connection) |
| 21:59:52 | * | jxy quit (*.net *.split) |
| 21:59:52 | * | Oddmonger quit (*.net *.split) |
| 21:59:52 | * | literal quit (*.net *.split) |
| 21:59:59 | * | literal_ joined #nim |
| 22:00:03 | FromDiscord | <alehander42> hm so maybe direct pastes are ok sorry |
| 22:00:06 | FromDiscord | <alehander42> not sure |
| 22:00:12 | * | Oddmonger joined #nim |
| 22:00:12 | * | jxy joined #nim |
| 22:01:01 | disruptek | ~paste |
| 22:01:02 | disbot | paste: 11a frowned-upon behavior in chat; please use a service such as https://play.nim-lang.org/ or http://ix.io/ or https://gist.github.com/ and supply us a URL instead. -- disruptek |
| 22:09:14 | * | Jesin quit (Ping timeout: 258 seconds) |
| 22:14:28 | * | Kaivo quit (Ping timeout: 260 seconds) |
| 22:16:34 | * | Kaivo joined #nim |
| 22:19:30 | disruptek | it's bad, you know. |
| 22:25:17 | * | lritter quit (Quit: Leaving) |
| 22:30:24 | * | vicfred quit (Quit: Leaving) |
| 22:41:53 | * | Jesin joined #nim |
| 22:54:05 | * | a_chou quit (Ping timeout: 258 seconds) |
| 23:23:07 | disruptek | i need to talk to whoever chose the spelling of `rhythm`. |
| 23:32:27 | disruptek | what you don't know about porn /can/ hurt you. |
| 23:33:30 | * | Vladar quit (Remote host closed the connection) |
| 23:35:12 | * | maier joined #nim |
| 23:35:20 | FromGitter | <alehander92> but in discord the bot might be able to fix pastes? |
| 23:35:37 | FromGitter | <alehander92> porn is bad dude |
| 23:35:38 | disruptek | it could if someone was motivated to fix the bot. |
| 23:35:55 | FromGitter | <alehander92> i am motivated to finish my biscuit machine homework |
| 23:36:01 | FromGitter | <alehander92> it's 2 am here |
| 23:36:03 | disruptek | wut |
| 23:36:07 | disruptek | biscuit machine? |
| 23:36:11 | FromGitter | <alehander92> absolutely |
| 23:36:48 | disruptek | i'd rather not think of you as 7 hours ahead. more likely, you are 17 hours behind. |
| 23:36:54 | FromGitter | <alehander92> https://github.com/alehander92/biscuit |
| 23:37:07 | FromGitter | <alehander92> it's a homework, but it's kinda fun i admit |
| 23:37:20 | FromGitter | <alehander92> i am trying to debug it a bit more making a TUI for animating it |
| 23:37:30 | disruptek | do you have a public server? |
| 23:37:41 | FromGitter | <alehander92> nope |
| 23:37:54 | disruptek | homework /should/ be fun. like porn. |
| 23:38:16 | FromGitter | <alehander92> porn is not fun: it's fun like overdosing on bensin is fun |
| 23:38:29 | disruptek | you know what really chafes my ass? |
| 23:38:46 | disruptek | oreos have 70 calories each. |
| 23:38:49 | FromGitter | <alehander92> is this french |
| 23:38:54 | disruptek | like, what the fuck were they thinking? |
| 23:39:23 | FromGitter | <alehander92> huh that's a lot |
| 23:39:37 | FromGitter | <alehander92> do you guys have bigger oreos |
| 23:39:42 | FromGitter | <alehander92> no idea if ours have 70 |
| 23:39:53 | disruptek | probably, this is 'murica after all. |
| 23:40:03 | disruptek | them asses don't grow themselfs! |
| 23:40:13 | * | maier quit (Ping timeout: 260 seconds) |
| 23:40:32 | FromGitter | <alehander92> in germany i had big portions actually |
| 23:40:34 | FromGitter | <alehander92> in munich |
| 23:40:44 | FromGitter | <alehander92> they just seemed like bigger people those bavarians |
| 23:40:46 | disruptek | the cookies that don't hit 70 probably fall into a special box for pussies and get shipped straight to munich. |
| 23:41:30 | FromGitter | <alehander92> let's make planed happen |
| 23:41:37 | FromGitter | <alehander92> shipped is so naval |
| 23:41:54 | disruptek | but naval gazing is second only to train spotting. |
| 23:41:58 | FromGitter | <alehander92> rockectedthis book into my backyard |
| 23:43:08 | FromGitter | <alehander92> maybe gazing at other people is even more spotless |
| 23:43:22 | disruptek | i thought you were against porn? |
| 23:43:29 | FromGitter | <alehander92> "70 years and alexander didn't wash the dishes" |
| 23:43:41 | FromGitter | <alehander92> dude it's about old people and life together |
| 23:43:43 | FromGitter | <alehander92> feel the room |
| 23:45:13 | disruptek | my own assertions are crashing the compiler. |
| 23:50:38 | disruptek | do you think we should make laws against zombies? try to get ahead of this thing for once? |
| 23:50:53 | disruptek | that's not racist of me to say, right? |