<< 02-12-2018 >>

00:24:18*wildlander quit (Quit: Konversation terminated!)
00:36:35*shashlick joined #nim
00:37:05shashlicklost a whole day on irc since matterbridge update no longer connects with slack legacy config - reverted back to v1.11.3
00:37:09shashlick@zacharycarter: i don't see nimgl_gen code - just the generated output it seems
00:38:23FromGitter<zacharycarter> shashlick: what are you looking at?
00:38:48FromGitter<zacharycarter> I spoke with the author of nimgl_gen and we've moved the imgui bindings into their own repo - https://github.com/zacharycarter/nimgui
00:39:00FromGitter<zacharycarter> and added this repo to the nimble package repo
00:49:22*kapil____ quit (Quit: Connection closed for inactivity)
00:58:01*ng0 quit (Quit: Alexa, when is the end of world?)
01:45:03*zachk quit (Quit: Leaving)
03:06:14*ftsf joined #nim
03:06:55FromGitter<seruum> I've been getting this error this weekend with some async routines that have been running flawlessly. Anyone know what may cause it or where I can find information on it? Error: unhandled exception: Resource temporarily unavailable (code: 11) [IOSelectorsException]
03:07:42*banc quit (Quit: ZNC - http://znc.in)
03:25:24*banc joined #nim
03:29:11*rlr quit (Remote host closed the connection)
03:53:47*shadowbane quit (Ping timeout: 240 seconds)
04:12:31*smitop quit (Quit: Connection closed for inactivity)
04:29:24*vlad1777d quit (Ping timeout: 246 seconds)
04:56:21*narimiran joined #nim
05:06:06M379229[m]AoC :))
05:16:57FromDiscord_<technicallyagd> Damn these people are fast. Some finished in less than 3 mins
05:20:19FromDiscord_<technicallyagd> Wow @M379229 Congratz, you are still on the global leader board!
05:27:52M379229[m]Thanks!
05:37:46FromGitter<Vindaar> I should really read the instructions more closely tomorrow... I totally missed that I explicitly had to only check for letters that occur 2 and 3 times, but not more often :D
05:44:25narimiranheh, today my reading skills were fine
05:44:38narimiranbut my coding skills, on the other hand.... :D :D
05:44:54FromGitter<Vindaar> yeah, those were lacking for me too :D
05:45:06FromDiscord_<technicallyagd> I missed that you should only count once for each line XD
05:45:28FromGitter<Vindaar> that I missed at first too. So I hacked in a "fix" for that afterwards :D
05:46:15narimirani was struggling with part2. i was declaring/resetting counter at the wrong place. gaaah
05:47:19FromGitter<Vindaar> it was fun nonetheless :)
05:47:32FromDiscord_<technicallyagd> Fun but stressful lol
05:47:36narimiranyou misspelled 'frustrating'
05:47:50FromGitter<Vindaar> haha
05:47:55FromDiscord_<technicallyagd> haha
05:47:57narimiran(joking aside, yes it was fun)
05:49:01FromDiscord_<technicallyagd> oh hey, @narimiran, is your solution for aoc2017 on github the first attempt? or the refined solution?
05:49:32FromDiscord_<technicallyagd> They seem really elegant
05:50:39narimiran@technicallyagd: thank you! my first attempts in 2017 were written in python, then rewritten in nim, and then i refined them
05:51:10narimiranwhen you aim for solving speed, code gets really ugly/hacky
05:53:27narimiranbut at the end, the code you can see currently is probably not as elegant as it could be, because in the end, i was trying to minimize total running time
05:53:41FromDiscord_<technicallyagd> LOL that's what I feel as well
05:54:44FromDiscord_<technicallyagd> Ah I see, so they are probably the best approach for actually winning AOC
05:54:52FromDiscord_<technicallyagd> Ah I see, so they are probably not the best approach for actually winning AOC
05:55:51FromDiscord_<technicallyagd> I think python excel at tasks like these
05:56:23FromDiscord_<technicallyagd> since you don't really need performance, and it has tons of utility libraries
05:57:37narimiranyes, i also think python is the way to go. but this year, only nim for me
05:58:43FromDiscord_<technicallyagd> Yeah, nim actually has the potential to beat python in this kind of task.
06:01:52FromDiscord_<technicallyagd> Maybe we could make a dedicated library for AoC. I am working through 2017 tasks, and there are some functions I kept using that are missing in nim
06:02:23FromDiscord_<technicallyagd> like argsort and inc/dec that wraps around
06:02:40narimiranwell, make it generally useful and release it as nimble package ;)
06:03:43FromDiscord_<technicallyagd> we'll see :p
06:10:57M379229[m]For pure contest coding, yeah. Python is probably quicker to spit out a puzzle solution (fewer keystrokes, and you don't have to think about types as much). But it's more fun in nim.
06:11:23narimiran+1
06:11:46M379229[m]I care most about making readable, maintainable code that I can still understand a month later. And Python seems to get messy sometimes with longer programs, even with type annotations.
06:13:08FromGitter<kdheepak> I'm having fun doing advent of code for the first time! Using it as an excuse to explore Nim. Gotta say, my python / nim solutions are looking very very similar.
06:13:21FromGitter<kdheepak> Not sure if that's a good thing though.
06:13:47narimiranit is reasonable for these early tasks. later they will probably start to differ more
06:14:14FromGitter<kdheepak> Are others pushing their solutions to github?
06:14:43FromDiscord_<technicallyagd> I think there are quite a few
06:15:04FromDiscord_<technicallyagd> I saw them on the forum yesterday
06:15:38M379229[m]narimiran (and anyone else): could you suggest which AoC puzzles I should try first? So far I've only done 2018 and the first few from 2015. Do you think one year is noticably better/more useful/more fun than another?
06:15:54narimiranyes, you can find links on the forum. i usually wait couple of hours before publishing
06:15:58FromGitter<kdheepak> @narimiran I see you haven't pushed yours yet. It'd be nice to see other people's more idiomatic solutions, and how I can improve my embarrassingly low level code to perform the same
06:16:08*anamok joined #nim
06:16:12anamokmorning
06:16:24FromDiscord_<technicallyagd> morning
06:16:58narimiranM379229[m]: i feel like every year has some "theme" to it. for 2016 you need to know graphs (DFS, BFS, etc), for 2017 it was all about modular arithmetic :)
06:17:14FromGitter<kdheepak> Interesting.
06:17:26narimiranM379229[m]: if you want some tough tasks, i can name a few
06:17:27FromGitter<kdheepak> I'm working through 2017 right now, finding it fun.
06:18:13M379229[m]narimiran: you can name them, but only so that I'll avoid them and save them for later :)
06:18:18FromDiscord_<technicallyagd> me too, and these tasks made me realize how little I know nim
06:19:19narimiranM379229[m]: haha ok. easy tasks are usually in the first week (minus some tasks that fell on weekends, e.g. 2017 day 3), so you can solve those first
06:19:20FromDiscord_<technicallyagd> do we have a parser generator that compiles BNF-like grammar into parsers?
06:19:47FromDiscord_<technicallyagd> like nearley
06:19:50FromDiscord_<technicallyagd> in javascript
06:22:29anamokThe exercise today was also fun.
06:23:54anamoknarimiran, Will you push your solution to GitHub?
06:24:37narimirananamok: i will, but first i need to walk my dog, have a breakfast, and then make it less ugly/hacky. so in couple of hours :)
06:25:28anamoknarimiran, OK. I'm curious to see another solution.
06:27:45M379229[m]narimiran: Thanks. I'll do each one in Nim, then probably read and compare with Norvig's python solutions. But he doesn't have a writeup for 2015, so at least that narrows it down to 2016 or 2017.
06:38:11*nsf joined #nim
06:38:40*anamok quit (Ping timeout: 250 seconds)
06:40:18*fredrik92 quit (Read error: Connection reset by peer)
06:40:44*fredrik92 joined #nim
06:41:56narimiranM379229[m]: i've read Norvig's solutions for 2016. i really liked his style
06:44:24*sz0 quit (Quit: Connection closed for inactivity)
06:51:31M379229[m]Yeah, seems like it should be good. Know anything else that's worth reading?
06:51:43M379229[m]Apart from your own nim solutions :)
06:51:52narimiran:D
07:08:41*nsf quit (Quit: WeeChat 2.3)
07:09:10*nsf joined #nim
07:13:38*vlad1777d joined #nim
07:57:48*Vladar joined #nim
07:58:17FromGitter<kdheepak> I'm pushing my solutions online
07:58:23FromGitter<kdheepak> I'd love feedback from others.
07:58:43FromGitter<kdheepak> https://github.com/kdheepak/adventofcode
08:02:19narimiran@kdheepak why don't you split your input just once at the beginning?
08:16:13narimiran@kdheepak: also `let s = abs(ord(c1) - ord(c2))` and line after that can be replaced by `if c1 != c2`
08:19:34*kapil____ joined #nim
08:35:03narimiranhaving this https://github.com/nim-lang/Nim/issues/7486 would make my/our AoC code really nicer....
08:55:54*anamok joined #nim
08:58:52anamokSay I have a func that returns a `Table[char, int]`. What is the implicit `result` variable in this case? A Table reference or a Table object?
08:59:18anamokI mean, is it a reference on a Table?
09:02:12anamokI couldn't use this table right away, I had to add the line `result = initTable[char, int]()` . So I guess `result` is just a reference. Am I correct?
09:12:11leorizeanamok: the type `Table[T, U]` is an object
09:12:18leorizeonly `TableRef[T, U]` is not
09:12:49leorizean object by default is uninitialized. Nim does not have constructors
09:13:17leorizecorrection: the `result` is initalized to 0
09:13:45leorizeyou can simulate the same with `var uninitTable: Table[char, int]`
09:14:04leorizeyou'd still have to use initTable to initialize the internal state of the Table object
09:15:08anamokleorize, thanks
09:20:01*stefanos82 joined #nim
09:25:56*vlad1777d quit (Ping timeout: 250 seconds)
09:36:43*anamok quit (Ping timeout: 245 seconds)
09:43:43*wildlander joined #nim
09:45:50*anamok joined #nim
09:55:19*anamok quit (Remote host closed the connection)
09:59:14*nsf quit (Quit: WeeChat 2.3)
10:38:44*ftsf quit (Ping timeout: 250 seconds)
11:01:43*narimiran quit (Ping timeout: 245 seconds)
11:06:33*smitop joined #nim
11:22:19*ng0 joined #nim
11:43:02*Amun_Ra quit (Ping timeout: 244 seconds)
11:49:26*Amun_Ra joined #nim
12:05:17*nsf joined #nim
12:24:46*ftsf joined #nim
12:25:07*gogolxdong joined #nim
12:26:48ftsfanyone have a workaround for deepCopy on js backend?
12:51:12*Shoozza joined #nim
12:53:54federico3https://lobste.rs/s/vtgnuu/d_vs_nim
12:58:06smitopSo I initialise an ordered table with `let cookieJar = initOrderedTable[string, string]()`, and then later do `cookieJar[lvalue] = rvalue` (lvalue and rvalue are both strings).
12:58:27smitopBut I get `Error: type mismatch: got <OrderedTable[system.string, system.string], string, string>
12:58:28smitopbut expected one of:`
13:00:00smitopBut doesn't that fit the `proc `[]=`[A, B](t: var OrderedTable[A, B]; key: A; val: B)` proc?
13:00:04smitopproc `[]=`[A, B](t: var OrderedTable[A, B]; key: A; val: B)
13:11:37*Shoozza quit (Changing host)
13:11:37*Shoozza joined #nim
13:12:37*Shoozza quit (Quit: Bye)
13:12:44*Shoozza joined #nim
13:14:01*Shoozza quit (Client Quit)
13:15:15FromGitter<Vindaar> @smitop: the issue is that your `OrderedTable` is declared as `let`. But the `[]=` proc requires a `var OrderedTable`, which cannot be satisfied in that case. If you write `var cookieJar` it should work
13:15:44*Shoozza joined #nim
13:15:56*Shoozza quit (Changing host)
13:15:56*Shoozza joined #nim
14:07:15*narimiran joined #nim
14:24:49FromGitter<zacharycarter> cavariux: FYI - I got the imgui bindings integrated into my project - going to build a small example this morning to test
14:25:22cavariuxnice, let me know if I can help you with anything
14:28:32FromGitter<zacharycarter> will do - thanks - going to start with BGFX as a backend (because that's what I'm using - can then do opengl and sdl2)
14:32:52*jken quit (Ping timeout: 252 seconds)
14:33:12*Vladar quit (Remote host closed the connection)
14:37:16*AlexMax quit (Ping timeout: 252 seconds)
14:37:50*AlexMax joined #nim
14:38:38*jken joined #nim
14:40:38FromGitter<zacharycarter> I'm just looking at some Gtk code vs some Imgui code
14:40:46FromGitter<zacharycarter> the gtk code looks way cleaner
14:40:56FromGitter<zacharycarter> and potentially smaller
14:41:07FromGitter<zacharycarter> but - I don't know if I want to add gtk as a dependency to my project...
14:41:22FromGitter<zacharycarter> andddd I don't know if gintro is where I'll need it to be - i assume it is - but I'm not 100% sure
14:44:53FromGitter<zacharycarter> https://github.com/zserge/webview - would be cool - not sure it's going to be able a opengl / vulkan / metal / dx11|12 context though
14:45:25leorizehave you compared imgui lib size vs gtk lib size?
14:45:33leorizeand gtk looks terrible on windows
14:45:54serialdev[m]libui is decent too
14:46:49leorizethe Nim wrapper for it is quite out of date though, but it probably has the best programming experience
14:47:53Calinouimgui doesn't look native, so making it look good is up to you
14:48:05Calinouyou also need to ensure it doesn't redraw at 1,000 FPS when it doesn't need to to avoid burning laptops :)
14:48:42Calinougood hiDPI support may also prove difficult
14:58:15FromGitter<zacharycarter> hmm
14:59:27FromGitter<zacharycarter> gtk I'm assuming is MUCH larger - and I'd still need imgui regardless
14:59:37FromGitter<zacharycarter> libui does look nice - that might be worth exploring further
15:00:12FromGitter<zacharycarter> imgui - yeah, I'm familiar with some of the challenges I'll face there
15:00:30FromGitter<zacharycarter> I really wish webview had a way to integrate with sdl2 - but I'm not seeing one
15:01:57FromGitter<zacharycarter> maybe CEF?
15:02:04FromGitter<zacharycarter> although that's probably another huge dependency
15:02:10FromGitter<zacharycarter> leaving me better off just using imgui
15:05:34FromGitter<zacharycarter> I'm going to look at webview's source and see if this is feasible
15:06:03*gogolxdong quit (Ping timeout: 256 seconds)
15:06:43Calinoulibui looks interesting but I have yet to see a real-world usage :(
15:06:56Calinouit also currently lacks some major features you'd expect from a modern GUI library
15:07:09Calinouit could work for small utilities, but probably not for a full-blown GUI tool yet
15:07:42Calinoualso, WebViews are not ideal when you want high performance/low latency, so that's a compromise
15:07:56FromGitter<zacharycarter> well I'd just use it in the editor for GUI purposes
15:08:21FromGitter<zacharycarter> don't really need high performance there - latency if everything is running locally - again shouldn't be too huge of an issue
15:08:33Calinouwe've come a long way (see VS Code) but a Qt app will almost always feel more reactive
15:08:44FromGitter<zacharycarter> sure
15:08:48Calinouas for latency, I'm speaking in terms of local latency incurred by the whole stack: https://danluu.com/input-lag/
15:09:28FromGitter<zacharycarter> yeah - it's definitely not going to feel as reactive if I go that route
15:09:31CalinouI really wish there was a complete general-purpose editor like VS Code, but using native technologies
15:09:32FromGitter<zacharycarter> or responsiv erather
15:09:40Calinouthe investment would be worth it, judging how many people use an editor daily
15:09:59FromGitter<zacharycarter> emacs? "P
15:10:01Calinouheh
15:10:26FromGitter<zacharycarter> requires knowing Lisp though to really use it
15:10:39FromGitter<zacharycarter> and then structuring your life around it
15:11:00FromGitter<sotrhRaven> Vscode is pretty fine tuned. They work hard to keep it responsive.
15:11:15*wildlander_ joined #nim
15:11:18*wildlander quit (Ping timeout: 250 seconds)
15:11:20FromGitter<zacharycarter> VSCode runs on electron
15:11:28FromGitter<sotrhRaven> Yes
15:11:39FromGitter<zacharycarter> they're never going to beat an editor written with a native gui lib
15:11:40FromGitter<zacharycarter> like Qt
15:11:55FromGitter<zacharycarter> or Sublime
15:12:03FromGitter<zacharycarter> if you want an actual editor to compare it to
15:12:10FromGitter<zacharycarter> rather than a GUI lib
15:12:24FromGitter<sotrhRaven> True, but not many electron apps come close to be
15:12:34FromGitter<sotrhRaven> Vscode
15:12:42FromGitter<zacharycarter> that's true
15:13:08FromGitter<zacharycarter> I just feel it's a huge concession we're all making :P
15:13:48FromGitter<sotrhRaven> I agree that native would be much better. Just pointing out that making a good electron app is difficult.
15:13:54FromGitter<zacharycarter> for sure
15:13:59FromGitter<zacharycarter> I'm not even considering electron for this project
15:14:28FromGitter<zacharycarter> webview would be tolerable though I think - it's much lighter weight than electron
15:14:40FromGitter<zacharycarter> problem is - all the native window stuff is not exposed
15:14:43FromGitter<zacharycarter> so Imgui it is for now
15:16:41FromGitter<sotrhRaven> I have just been porting toy projects to nim from python. Going to be using pyside2 with python for gui stuff at first. Not sure where I will end up in nim.
15:17:41*vlad1777d joined #nim
15:18:47*ftsf quit (Ping timeout: 268 seconds)
15:20:52FromGitter<zacharycarter> good way to start out - and yeah I think the whole x-platform GUI perplexes most of us
15:21:03FromGitter<zacharycarter> if your needs are simple - webview is probably a good starting point
15:21:42FromGitter<zacharycarter> I need to marry this GUI with a OpenGL|Vulkan/Metal|2/DX11|12 context
15:23:13FromGitter<kdheepak> > *<narimiran>* having this https://github.com/nim-lang/Nim/issues/7486 would make my/our AoC code really nicer.... ⏎ ⏎ +1
15:23:38narimiranwell, maybe one day....
15:28:45FromGitter<zacharycarter> https://github.com/jdryg/vg-renderer - might be an option
15:32:09FromGitter<zacharycarter> that actually might be the best option - although I'd have to write my own GUI library on top of that :/
15:33:21FromGitter<zacharycarter> not willing to sign up for that
15:33:39*nsf quit (Quit: WeeChat 2.3)
15:48:29*Vladar joined #nim
15:50:15*wildlander_ quit (Quit: Konversation terminated!)
15:52:24*wildlander joined #nim
16:33:28FromGitter<zacharycarter> anyone know how to take a Duration and convert it to a float in the format - seconds.nanoseconds
16:33:39FromGitter<zacharycarter> and by Duration - I'm speaking to the times module
16:38:38narimiranmanually write a converter to a string, and then parseFloat?
16:39:10FromGitter<zacharycarter> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5c040aae464b6c0fd67d6a66]
16:39:15FromGitter<zacharycarter> similar to that?
16:39:43FromGitter<zacharycarter> although maybe I need to create another intToStr that works with int64s
16:41:12narimiransomething like that, yeah
16:41:20FromGitter<zacharycarter> thanks narimiran
16:41:38narimiranwell, you did most of the work anyway :)
16:41:46FromGitter<zacharycarter> sanity checks always help :)
16:42:19*fthe joined #nim
16:42:24narimiranmaybe there is an easier/idiomatic way, but my experience with `times` is limited
16:43:05FromGitter<zacharycarter> yeah - I've used it here and there - I'm more comfortable with the posix api
16:43:11FromGitter<zacharycarter> but I'm not finding a "better way" at this point
16:46:57FromGitter<zacharycarter> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5c040c811c439034af08d658]
16:46:59FromGitter<zacharycarter> seems to work fine
16:47:37FromGitter<zacharycarter> and I just tested it all in my game loop and it's returning a float with seconds and nanoseconds - so yay
16:47:57ftheHi, I'm wondering how, in the strutils module, the `splitLines` proc and the `splitLines` iterator are disambiguated, seeing as they have the same signature?
16:48:33narimiranfthe: depending if you're using it in a for loop or on right hand side of `=` :)
16:48:46ftheoh, that simple :)
16:49:42ftheso, can iterators be bound to a name in the general case (no ambiguous proc)? Or only used in a for loop?
16:50:43narimiranfthe: https://nim-lang.org/docs/manual.html#iterators-and-the-for-statement-first-class-iterators
16:52:11fthethank you!
17:10:49*nsf joined #nim
17:26:47shashlickwhat's the best template engine in Nim - i've seen nim-templates and moustachu so far
17:40:23*fthe quit (Remote host closed the connection)
17:40:51*fthe joined #nim
17:46:21*fthe quit (Ping timeout: 246 seconds)
17:57:52*fthe joined #nim
18:04:11FromGitter<zacharycarter> shashlick: for HTML templating?
18:05:23*Vladar quit (Remote host closed the connection)
18:13:40shashlickwell general templating
18:13:51shashlicknot html specific
18:33:57*so quit (Ping timeout: 246 seconds)
18:35:07*ng0 quit (Remote host closed the connection)
18:36:25*ng0 joined #nim
18:38:39*so joined #nim
19:02:29*wildlander quit (Quit: Konversation terminated!)
19:04:32*smitop quit (Quit: Connection closed for inactivity)
19:27:46*tdc quit (Quit: Leaving)
19:37:49*Pisuke joined #nim
19:38:50*MyMind quit (Ping timeout: 272 seconds)
19:40:41*tdc joined #nim
19:43:57deependwhy do I always end up with an empty line at the end when using strutils splitLines?
19:43:58deependfor example: const data = readFile("input.txt").splitLines()
19:47:39*rockcavera joined #nim
19:52:09dom96because that's a Unix convention
19:52:14dom96to have a trailing newlines
19:52:18FromGitter<yyyc514> Why does CountTable now have an mgetOrPut?
19:54:15deependso "asdf\n".splitLines() intended result would be something like: ["asdf", ""] ?
19:59:19FromGitter<SolitudeSF> yes, just `strip` the input before splitting
20:00:52deependahh, that is a very useful tip. thanks SolitudeSF
20:01:20*Vladar joined #nim
20:18:03*nsf quit (Quit: WeeChat 2.3)
20:18:26*kapil____ quit (Quit: Connection closed for inactivity)
20:25:26*kungtotte joined #nim
20:26:05*stefanos82 quit (Remote host closed the connection)
20:33:06FromGitter<zacharycarter> does Nim have something like pylint?
20:33:11FromGitter<zacharycarter> is that nimpretty?
20:35:47narimirannimpretty is something like python's black (which enforces what pylint would just suggest)
20:37:34FromGitter<zacharycarter> gotcha
20:37:54FromGitter<zacharycarter> I was thinking - it'd be neat if Nim had support for - https://www.codacy.com/
20:38:00FromGitter<zacharycarter> but we'd need a linter I think
20:38:14narimirangive nimpretty a try
20:38:33FromGitter<zacharycarter> well - I'll put it on the list of projects that'd be nice to have
20:39:03FromGitter<zacharycarter> if I get time - I'll play around with it - it involves extending a scala project it looks like
20:43:45FromGitter<zacharycarter> https://github.com/nim-lang/needed-libraries/issues/87
20:46:30FromGitter<zacharycarter> I'm guessing most C/C++ static analysis tools won't work with Nim
20:46:41FromGitter<zacharycarter> maybe the more apt-need is - a static analysis tool for Nim
20:52:43*poyus joined #nim
20:58:18*kungtotte quit (Remote host closed the connection)
21:05:34*kungtotte joined #nim
21:06:07*poyus quit (Remote host closed the connection)
21:14:03FromGitter<Vindaar> @narimiran: really got no clue what's going on with my code snippets on reddit :S
21:15:39*kapil____ joined #nim
21:24:39narimiran@Vindaar you're using markdown formating with triple backticks, which doesn't work on reddit. the code needs to be indented with 4 spaces
21:25:35*narimiran quit (Remote host closed the connection)
21:25:35FromGitter<Vindaar> But there's a button on the comment window saying "switch to markdown editing". And see here: https://imgur.com/a/Lp2DAB3 it looks just fine for me!
21:26:06FromGitter<Vindaar> I tried 4 spaces yesterday at first and that didn't work for me anymore. Text was just normal text that way
21:46:04FromGitter<zacharycarter> you have to indent every line by 4 spaces I think
21:46:20FromGitter<zacharycarter> the whole triple back quotes is a github-specific thing
21:47:48FromGitter<Vindaar> that's what I meant. Tried indenting every line by 4 spaces. And I know that worked fine in the past. Didn't work yesterday for me. ⏎ But that image there is taken with the triple back quotes. So on the other hand that works fine on my end now.
21:48:42FromGitter<zacharycarter> I just link to gists these days
21:48:43FromGitter<zacharycarter> or whatever
21:48:52FromGitter<zacharycarter> that way I can be sure it's formatted properly for whoever is viewing it
21:48:57FromGitter<zacharycarter> on whatever platform
21:53:44FromGitter<Vindaar> yeah, in general I try to do the same
22:01:41*Vladar quit (Remote host closed the connection)
22:08:13*jakob_ joined #nim
22:10:08*lritter joined #nim
22:11:00lritter*rides on horseback in full knights armor through castle gates and comes to a stop in the middle of the empty market*
22:11:13lritterZAC ATTACK! I CALL UPON THEE. COME DOWN AND FACE ME
22:12:46lritter*turns horse in circles, looking to the windows above for a sign of life as the wind howls gently*
22:13:00lritterZAC ATTACK! SHOW YOURSELF
22:14:06lritter(muttering to himself) no sign of him
22:15:15lritter*chases out of the gate*
22:15:20*lritter left #nim ("Leaving")
22:15:38*smitop joined #nim
22:17:42FromGitter<zacharycarter> lol
22:17:58FromGitter<zacharycarter> hi lritter !
22:25:35*rockcavera quit (Remote host closed the connection)
22:31:50*jakob_ quit (Quit: Leaving)
22:31:57*jakob_ joined #nim
22:33:10*jakob_ quit (Client Quit)
22:35:52*jakob0094 joined #nim
22:40:25jakob0094Hi people! I think I found a problem regarding AST generation: https://hastebin.com/baqufewega.php
22:40:39jakob0094in the AST the variable "i" is declared twice
22:44:32*lritter joined #nim
22:44:43jakob0094it seems like the additional loop variable generated by the compiler is always called "i", regardless of other variables with the same name existing already
22:44:43lritterzacharycarter[m], HAH!
22:44:53lritterthrough no work but my own, i finally found you
22:46:15FromGitter<zacharycarter> :D
22:46:37FromGitter<zacharycarter> lritter: this is a mishmash of irc, discord, matrix and gitter
22:46:54*MightyJoe joined #nim
22:47:01FromGitter<zacharycarter> for folks on gitter - myself included - the best way to ping us is with an `@` so - `@zacharycarter`
22:47:24FromGitter<zacharycarter> jakob0094: yes - this looks weird
22:47:35FromGitter<yyyc514> no way to pass a "typeof" as an argumen tto a function and then track it anywhere?
22:47:50FromGitter<zacharycarter> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5c0461169f38cc0fd5958b2f]
22:48:16FromGitter<zacharycarter> jakob0094: I can't guarantee it's an issue - and not some work around
22:48:41FromGitter<zacharycarter> I don't have that much compiler knowledge - but if you can, filing an issue would be most welcome I think
22:48:51FromGitter<zacharycarter> and if it turns out to be expected behavior - it can just be closed
22:49:33jakob0094alright, i'll do that then
22:49:58FromGitter<zacharycarter> thank you jakob0094
22:50:12lritterFromGitter, thx
22:50:12FromGitterlritter, I'm a bot, *bleep, bloop*. I relay messages between here and https://gitter.im/nim-lang/Nim
22:50:28lrittergot it
22:50:40FromGitter<zacharycarter> haha yeah - it's a show in here with all of the chat clients
22:50:42lritterso i'm not looking at a replay, i'm looking at something that happens right now, LIVE
22:50:54FromGitter<zacharycarter> exactly - there's a bot that syncs all this stuff
22:51:22lrittersplendid, splendid
22:51:24FromGitter<zacharycarter> https://github.com/oprypin/critter
22:51:46FromGitter<zacharycarter> and then people have taken the same concept and applied to to discord and matrix
22:52:08FromGitter<zacharycarter> so we have a cacophony of chat going on - but somehow it sort of works :P
22:52:28lritterhow very babylonian
22:52:34FromGitter<zacharycarter> :)
22:52:59FromGitter<zacharycarter> welcome btw!
22:53:02lritterthx
22:53:26FromGitter<zacharycarter> I've shared scopes a few times in here, and ears have always perked up
22:53:59FromGitter<zacharycarter> so I know there is similar domain interest between the languages
22:54:26FromGitter<zacharycarter> and I know cross-pollination of ideas is never a bad thing :)
22:54:31lritterright, i should quickly introduce myself, i'm not a nim user but am writing my own compiler, and am looking to poach the nim userbase for gullible souls ahem i mean critical thinkers who would -- no actually, i just want to see what y'all are up to.
22:55:00FromGitter<zacharycarter> I think there are core Nim devs that lurk rust and pony irc etc
22:55:06FromGitter<zacharycarter> so I wouldn't worry too much :P
22:55:29FromGitter<zacharycarter> but I'm sure there's a lot to teach and learn on both ends - which is always exciting
22:55:29lritteri'm on rust myself occasionally, i needed to understand their infernal borrow checker
22:55:56FromGitter<zacharycarter> Nim's working on destructors and ownership semantics right now
22:56:13FromGitter<zacharycarter> also on hot code reloading - which I'm particularly excited about
22:56:17FromGitter<zacharycarter> for the C target even
22:58:27*Snircle joined #nim
23:01:33lritternice. i'm currently struggling with cleaning up the handling and forwarding of multiple arguments so that it's easier to do borrowing on them
23:02:01lritteri keep deleting and rewriting code, i hope this time it sticks.
23:07:07FromGitter<zacharycarter> sounds complicated :P then again - this is why I don't author programming languages - although eventually I'd like to take a stab at it, in some form
23:07:45FromGitter<zacharycarter> not sure what the best place to start is - I've thought about writing a forth interpreter but I'm not sure if that's even the best starting point
23:08:58lritteri would like to do nothing better than not work on a compiler right now :)
23:09:05lritterbut as it appears, i'm cursed.
23:10:27*rockcavera joined #nim
23:10:40FromGitter<zacharycarter> :)
23:10:53FromGitter<zacharycarter> I'm excited for your compiler - if that's any motivation
23:11:10FromGitter<zacharycarter> or consolation
23:13:06FromGitter<zacharycarter> cavariux: I see you have a logo stored as a series of uint8's - https://github.com/lmariscal/nimgl/blob/master/src/nimgl/private/logo.nim
23:13:16FromGitter<zacharycarter> I've seen a similar thing in bgfx - I'm wondering what program you used to produce this?
23:13:34FromGitter<zacharycarter> the author of bgfx told me of a dos program once - and I used it and installed it, but now I can't remember the name of it
23:14:06FromGitter<zacharycarter> I was also terrible at using it - but I hobbled together a POS logo and made it work :P
23:28:05FromGitter<yyyc514> `var y = new(type(x))` is this doomed to fail with subtypes
23:28:20FromGitter<yyyc514> a sequence seems to remember the type when i stuff things but can i not then query the type form the sequence?
23:38:27FromGitter<Varriount> @yyyc514 A sequence is a homogenous list.
23:39:05FromGitter<Varriount> And procedures are statically determined at compile time.
23:39:09FromGitter<yyyc514> right but it obviously knows the type of each item because it can do dynamic method dispatch
23:39:28*dddddd quit (Read error: Connection reset by peer)
23:39:49FromGitter<yyyc514> so there is no way to use that info to create new items of matching type?
23:40:43*Sembei joined #nim
23:41:20*Pisuke quit (Ping timeout: 250 seconds)
23:42:31FromGitter<yyyc514> these are all references