00:13:14 | * | cspar joined #nim |
00:17:59 | * | Omnious joined #nim |
00:21:31 | * | Omnious quit (Remote host closed the connection) |
00:22:38 | FromGitter | <kayabaNerve> Idea: Ambiguous calls should be allowed if two return types are distinct with no direct conversion. ⏎ ⏎ proc parse takes string, returns A ⏎ proc parse takes string, returns B ⏎ ... [https://gitter.im/nim-lang/Nim?at=5b78b84de40fdf5fb15a5b75] |
00:22:53 | FromGitter | <kayabaNerve> Am I insane here/missing something or should I create a GitHub issue? |
00:23:13 | FromGitter | <kayabaNerve> Not saying it's an issue it doesn't exist. Saying an RFC. |
00:34:56 | * | Whooa21 joined #nim |
00:37:45 | FromGitter | <dom96> Return type overloading isn't supported |
00:37:52 | FromGitter | <dom96> And won't be |
00:39:57 | * | Whooa21 quit (Ping timeout: 240 seconds) |
00:41:10 | FromGitter | <kayabaNerve> Mind if I ask why/the best solution if I want that functionality? |
00:41:22 | FromGitter | <kayabaNerve> I tried doing a generic but got a compiler SIGSEGV |
00:41:35 | FromGitter | <kayabaNerve> And for some reason, I really dislike Serialize.ParseSend.parse |
00:41:42 | FromGitter | <kayabaNerve> Over .parse |
00:42:04 | FromGitter | <kayabaNerve> Just use unique function names? |
00:43:20 | * | smt joined #nim |
00:57:44 | * | noonien quit (Quit: Connection closed for inactivity) |
01:04:19 | * | Code_Red27 joined #nim |
01:05:57 | * | Code_Red27 quit (Remote host closed the connection) |
01:07:57 | * | tribly quit (Quit: WeeChat 2.2) |
01:08:56 | * | tribly joined #nim |
01:09:03 | * | PrimHelios quit (Quit: Leaving) |
01:24:34 | * | deadman5 quit (Quit: Leaving) |
01:58:37 | * | arooni25 joined #nim |
02:01:57 | * | arooni25 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
02:01:58 | * | Krenair5 joined #nim |
02:10:45 | FromGitter | <kaushalmodi> I'm on Mastodon at @mastodon.technology@kaushalmodi |
02:11:06 | * | Krenair5 quit (Ping timeout: 272 seconds) |
02:14:30 | * | DataComputist joined #nim |
02:23:27 | * | DataComputist quit (Ping timeout: 240 seconds) |
02:24:49 | * | Hobbyboy3 joined #nim |
02:28:26 | * | Hobbyboy3 quit (Remote host closed the connection) |
02:47:33 | * | c24 joined #nim |
02:53:27 | * | c24 quit (Ping timeout: 240 seconds) |
03:17:53 | cow_2001 | kaushalmodi flip the two names. it's @[email protected] |
03:18:50 | cow_2001 | @username@domain |
03:19:15 | cow_2001 | like email, but with an extra @ at the beginning |
03:21:10 | FromGitter | <kaushalmodi> cow_2001: yes :) I realized my mistake as soon as I typed it .. |
03:21:27 | FromGitter | <kaushalmodi> But wasn't sure if anyone would care |
03:29:53 | cow_2001 | i hate pointless pedantry and i ended up a pointless pedant ~_~ |
03:29:54 | * | leorize joined #nim |
03:30:32 | * | Altarrel joined #nim |
03:36:47 | FromGitter | <Quelklef> @kayabaNerve return type overloading use-case? |
03:42:35 | * | Altarrel quit (Quit: Page closed) |
03:47:07 | FromGitter | <kayabaNerve> @Quelklef Allowing me to do this: ⏎ var a: A = parse(str) ⏎ var b: B = parse(str) |
03:47:23 | FromGitter | <Quelklef> What are `A` and `B` though |
03:47:28 | FromGitter | <Quelklef> What do they repr |
03:48:58 | FromGitter | <kayabaNerve> Types |
03:49:11 | FromGitter | <kayabaNerve> That's Nim code lol. |
03:49:20 | FromGitter | <Quelklef> I know but what |
03:49:22 | FromGitter | <Quelklef> what are they in context |
03:51:16 | FromGitter | <kayabaNerve> One's a Block. One's a Send object. One's a Receive object. One's a Data object.. |
03:51:46 | leorize | I personally think this is better `var a = parse(str, A); var b = parse(str, B)` |
03:51:59 | FromGitter | <kayabaNerve> Custom data types that I serialized and need parsed. |
03:52:13 | * | SkyPatrol joined #nim |
03:52:13 | FromGitter | <kayabaNerve> leorize: Right now it's parseBlock() parseSend() parseReceive |
03:52:27 | FromGitter | <kayabaNerve> But I wish I could've kept it as parse |
03:52:40 | leorize | Make a parse(string, type) template |
03:53:03 | * | SkyPatrol quit (Killed (Sigyn (Spam is off topic on freenode.))) |
03:53:05 | FromGitter | <Quelklef> yeah I think `parseX` is the idiomatic way |
03:53:09 | FromGitter | <Quelklef> unfortunately |
03:53:55 | FromGitter | <kayabaNerve> leorize: I tried a generic + case but it wouldn't assume the generic so it was parse[Receive]. That caused a sigsegv in the compiler |
03:54:13 | FromGitter | <kayabaNerve> So then I was back to parseBlock. I think that's better than parse(x, Block) tbh |
03:54:19 | FromGitter | <kayabaNerve> Two characters less/more obvious |
03:54:30 | * | vosper joined #nim |
03:56:33 | * | aOssed13 joined #nim |
03:57:54 | * | dddddd quit (Remote host closed the connection) |
04:05:35 | * | cspar quit (Ping timeout: 240 seconds) |
04:06:26 | * | aOssed13 quit (Ping timeout: 276 seconds) |
04:12:09 | * | cspar joined #nim |
04:52:53 | * | vosper quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
05:01:37 | * | vosper joined #nim |
05:10:42 | * | Erynnn7 joined #nim |
05:13:33 | * | Erynnn7 quit (Remote host closed the connection) |
05:19:54 | * | NimBot joined #nim |
05:38:17 | * | vosper quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
05:46:05 | * | vosper joined #nim |
05:53:24 | * | vosper quit (Ping timeout: 272 seconds) |
05:55:04 | * | neptune joined #nim |
05:57:02 | * | neptune quit (Read error: Connection reset by peer) |
06:02:49 | * | nsf joined #nim |
06:24:12 | * | bairdmich joined #nim |
06:25:45 | * | bairdmich quit (Remote host closed the connection) |
06:55:27 | * | captainkraft quit (Ping timeout: 240 seconds) |
06:57:48 | * | Guest79336 joined #nim |
07:01:38 | * | Guest79336 quit (Remote host closed the connection) |
07:06:46 | * | Blendify_i5 joined #nim |
07:07:18 | * | Cthalupa joined #nim |
07:07:36 | * | Blendify_i5 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
07:08:51 | * | hammer06529 joined #nim |
07:12:48 | * | alehander42 joined #nim |
07:12:55 | * | hammer06529 quit (Remote host closed the connection) |
07:14:28 | * | stefanos82 joined #nim |
07:39:49 | * | captainkraft joined #nim |
08:02:11 | * | Vladar joined #nim |
08:07:17 | * | gmpreussner joined #nim |
08:25:32 | * | MissionCritical joined #nim |
08:29:05 | * | pokk16 joined #nim |
08:29:38 | * | MissionCritical quit (Remote host closed the connection) |
08:29:57 | * | pokk16 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
08:35:51 | * | echotangoecho joined #nim |
08:44:00 | * | yar2 joined #nim |
08:49:11 | * | yar2 quit (Ping timeout: 276 seconds) |
09:02:57 | * | Croepha23 joined #nim |
09:05:40 | * | Croepha23 quit (Remote host closed the connection) |
09:17:05 | * | echotangoecho quit (Remote host closed the connection) |
09:38:27 | * | pwntus quit (Ping timeout: 240 seconds) |
09:41:01 | * | pwntus joined #nim |
09:42:52 | * | nsf quit (Quit: WeeChat 2.2) |
09:43:53 | * | BitPuffin joined #nim |
09:44:30 | FromGitter | <alehander42> you can write a macro that does `b <- parse x ` and internally calls `b = parse(x, b.type)` |
09:44:35 | FromGitter | <alehander42> that would be horrible |
09:44:37 | FromGitter | <alehander42> but possible :D |
09:51:08 | * | pwntus quit (Ping timeout: 244 seconds) |
09:51:31 | * | pwntus joined #nim |
09:54:48 | FromGitter | <ZarsBranchkin> I guess you'd use generic, not pass it as argument, but either way ugly template, haha |
09:57:04 | * | BitPuffin quit (Read error: Connection reset by peer) |
09:57:33 | * | BitPuffin joined #nim |
10:03:07 | * | enthus1ast joined #nim |
10:05:11 | * | xeroks20 joined #nim |
10:06:55 | stefanos82 | Araq: isNil shouldn't be labeled as deprecated here? https://nim-lang.org/docs/typeinfo.html#isNil,Any |
10:08:41 | * | xeroks20 quit (Remote host closed the connection) |
10:28:24 | Araq | stefanos82: no, only strings and seqs are affected |
10:28:34 | stefanos82 | ah OK |
10:28:59 | stefanos82 | maybe a note somewhere to point this out? |
10:30:22 | Araq | hmm yeah, I think I can use .deprecated: "message here" without bootstrappping because 0.18 already has it |
10:31:38 | stefanos82 | cool |
10:31:41 | stefanos82 | that would do |
10:36:27 | stefanos82 | question: when we install a module that has dependencies, why those dependencies don't get recursively uninstalled when we remove the module with nimble uninstall? |
10:39:52 | leorize | I think nimble don't have the concept of a package being installed as a dependency |
10:43:24 | stefanos82 | well, it does install dependencies based on a module's needs |
10:43:39 | leorize | I mean it doesn't keep track of that info |
10:44:28 | stefanos82 | I see another problem right now. I have two different versions of a module; why and how does a system knows which one to use? |
10:46:44 | leorize | you can test it yourself |
10:47:38 | leorize | I think it will use the latest one, unless you forced the older with .nimble file |
10:48:16 | stefanos82 | I guess it follows some kind of queue, because I run nimble uninstall httpbeast and removed the old version |
10:50:29 | * | alehander42 quit (Remote host closed the connection) |
10:51:08 | * | dddddd joined #nim |
10:51:12 | * | developers joined #nim |
10:53:09 | * | developers quit (K-Lined) |
10:56:53 | * | EXCEPTS joined #nim |
10:57:01 | * | EXCEPTS quit (Killed (Sigyn (Spam is off topic on freenode.))) |
11:02:41 | FromGitter | <gogolxdong> regression report: ⏎ variable named `name` will be parsed as `proc (zone: Timezone): string{.noSideEffect, gcsafe, locks: 0.}` |
11:04:57 | * | cspar quit (Ping timeout: 240 seconds) |
11:11:48 | FromGitter | <gogolxdong> in template |
11:12:19 | FromGitter | <gogolxdong> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5b795093e7971d5f10a38961] |
11:20:49 | FromGitter | <data-man> @gogolxdong use ```import times except name``` :) |
11:27:22 | * | ofelas joined #nim |
11:28:01 | dom96 | stefanos82: yeah, Nimble doesn't track this right now |
11:28:30 | stefanos82 | dom96: do you want me to open a ticket for reminding? |
11:28:49 | dom96 | Pretty sure there already is an issue for this |
11:28:55 | stefanos82 | cool |
11:30:18 | * | BrianBlaze21 joined #nim |
11:30:56 | * | BrianBlaze21 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
11:38:05 | stefanos82 | could we make the documentation's left sidebar toggle (hide / show)? It would be more readable in my humble opinion |
11:43:25 | * | wildlander quit (Quit: Konversation terminated!) |
11:46:31 | FromGitter | <gogolxdong> @data-man it's a workaround , is it supposed to be like this? |
11:47:28 | FromGitter | <gogolxdong> what if they need use the proc and variable named `name`? |
11:48:23 | stefanos82 | Araq: is ^/ something like a syntactic sugar for parentheses that takes place behind the scenes? It's an excellent mechanism you designed here, I have to admit. |
11:49:04 | FromGitter | <data-man> @gogolxdong I'd prefer rename it to zoneName |
11:49:24 | FromGitter | <gogolxdong> problem parser parses variable as proc with a parameter. |
11:51:48 | FromGitter | <gogolxdong> which might cause more problems, since I have no idea of parser details. |
11:53:34 | FromGitter | <gogolxdong> `proc name*(zone: Timezone): string` takes an object as parameter. |
12:02:49 | * | ksft27 joined #nim |
12:12:38 | * | ksft27 quit (Ping timeout: 276 seconds) |
12:15:56 | * | smt quit (Ping timeout: 272 seconds) |
12:32:54 | FromGitter | <Clyybber> Araq: Do you have plans on when to implement #3250 ? Is it very hard or can somebody else attempt at it? |
12:47:39 | * | PrimHelios joined #nim |
12:49:04 | * | sulvone4 joined #nim |
12:51:42 | * | sulvone4 quit (Remote host closed the connection) |
12:55:27 | stefanos82 | since system module is implicitly imported, under what circumstances will you use its module name with a module procedure or whatsoever? E.g.: system.cmp() vs cmp() |
12:55:44 | * | thor77 quit (Quit: ZNC 1.7.1 - https://znc.in) |
12:58:15 | * | thor77 joined #nim |
13:00:47 | * | nsf joined #nim |
13:01:23 | FromGitter | <data-man> @stefanos82 I'm working on splitting the system module (firstly as RFC). Maybe it will be deprecated. :-D |
13:01:50 | stefanos82 | splitting in which parts exactly? |
13:01:59 | * | xCore joined #nim |
13:02:32 | FromGitter | <data-man> system.types ⏎ system.iterators ⏎ system.builtins ⏎ etc. [https://gitter.im/nim-lang/Nim?at=5b796a68157b9d34efaaf3fd] |
13:03:17 | FromGitter | <data-man> Or ⏎ std.types ⏎ etc. |
13:03:30 | dom96 | data-man: no chance that will get merged |
13:03:50 | dom96 | Start by splitting out ffi functions into an `ffi` module |
13:04:00 | dom96 | and the GC_* functions into a `gc` module |
13:06:43 | * | xCore quit (Killed (Sigyn (Spam is off topic on freenode.))) |
13:08:33 | stefanos82 | dom96: are there any duplicates in standard modules that could be merged into one central module? |
13:10:50 | FromGitter | <data-man> @dom96 ⏎ ⏎ > no chance that will get merged ⏎ ⏎ https://irclogs.nim-lang.org/04-06-2018.html#13:05:36 [https://gitter.im/nim-lang/Nim?at=5b796c59d7901b2c605ccf29] |
13:10:56 | * | krux02 joined #nim |
13:16:25 | * | SenasOzys joined #nim |
13:17:00 | * | data-man joined #nim |
13:17:03 | krux02 | zacharycarter[m], if you are online, I wonder how your roguelike is going. |
13:17:18 | * | pierte joined #nim |
13:17:32 | * | echotangoecho joined #nim |
13:17:45 | * | SenasOzys quit (Remote host closed the connection) |
13:18:07 | dom96 | data-man: Separating system.nim by type, iterator, proc doesn't really make sense IMO |
13:18:10 | * | SenasOzys joined #nim |
13:18:57 | * | SenasOzys quit (Remote host closed the connection) |
13:19:17 | * | SenasOzys joined #nim |
13:19:24 | * | pierte quit (Remote host closed the connection) |
13:20:30 | FromGitter | <data-man> Easy maintance, faster compilation, ... |
13:30:21 | * | data-man quit (Quit: Konversation terminated!) |
13:32:57 | * | couven92 joined #nim |
13:40:14 | * | HackMaster1 joined #nim |
13:45:08 | * | HackMaster1 quit (Ping timeout: 260 seconds) |
13:48:27 | * | pwntus quit (Ping timeout: 240 seconds) |
13:51:34 | * | pwntus joined #nim |
13:57:48 | * | egos13 joined #nim |
14:00:49 | * | egos13 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
14:04:16 | * | purrdeta3 joined #nim |
14:05:02 | * | purrdeta3 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
14:28:08 | * | unknown24 joined #nim |
14:28:56 | * | pwntus quit (Ping timeout: 272 seconds) |
14:32:43 | * | echotangoecho quit (Quit: Lost terminal) |
14:33:37 | * | Waggie12 joined #nim |
14:33:48 | * | unknown24 quit (Ping timeout: 265 seconds) |
14:34:15 | * | Waggie12 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
14:43:00 | * | pwntus joined #nim |
14:50:04 | * | arecaceae quit (Remote host closed the connection) |
14:50:22 | * | arecaceae joined #nim |
14:57:59 | * | rayman237 joined #nim |
14:59:33 | * | nsf quit (Quit: WeeChat 2.2) |
15:06:32 | stefanos82 | can someone explain to me how the last example from https://nim-lang.org/docs/tut1.html#statements-and-indentation works? |
15:06:39 | stefanos82 | how can I compile this? |
15:11:19 | stefanos82 | what does :test: "nim c $1" supposed to do? |
15:12:01 | leorize | I think it's a documentation bug |
15:20:19 | stefanos82 | I think so too, because when I removed it, it compiled as expected |
15:25:11 | leorize | make a PR for it :) |
15:28:11 | stefanos82 | I'm trying to find it; it's somewhere inside the .rst doc files |
15:28:19 | * | noonehere4u25 joined #nim |
15:28:32 | * | noonehere4u25 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
15:40:01 | * | edcragg quit (Quit: ZNC - http://znc.in) |
15:40:24 | * | edcragg joined #nim |
15:44:31 | leorize | stefanos82: it's in doc/tut1.rst |
15:45:20 | stefanos82 | yeah, I found it |
15:45:50 | stefanos82 | leorize: my question now is; I have forked Nim repo, but if I PR-ed it, it would mess things up |
15:46:03 | leorize | what do you mean? |
15:46:29 | stefanos82 | I cloned the repo and pull updates daily if possible |
15:46:43 | stefanos82 | but with PR, things get messier with already cloned repos |
15:46:48 | leorize | oh, create a branch |
15:46:55 | stefanos82 | I suck with Git |
15:47:04 | leorize | first make sure you're on devel branch |
15:47:15 | leorize | git branch |
15:47:23 | leorize | it will show you what branch you're in |
15:48:20 | leorize | if you're not on devel, run git checkout devel |
15:49:37 | stefanos82 | devel is my branch |
15:50:05 | leorize | now run git checkout -b tut1-fix |
15:50:20 | leorize | it will create a new branch called tut1-fix based on devel |
15:51:46 | leorize | after that make your changes and commit |
15:51:48 | stefanos82 | it won't work |
15:51:52 | stefanos82 | I have had again this issue |
15:52:13 | stefanos82 | because I need to first to do the whole procedure from github |
15:52:51 | leorize | what issue did you have? |
15:53:58 | stefanos82 | the default clone option from github is https |
15:54:06 | stefanos82 | whereas to allow to push is git |
15:54:41 | leorize | it should be fine |
15:54:45 | stefanos82 | I hope |
15:54:47 | leorize | as long as you don't enable 2fa |
15:55:03 | leorize | then you can login with your username and password when you push |
15:57:43 | stefanos82 | it won't let me |
15:57:58 | leorize | what error did you get? |
15:58:12 | stefanos82 | unable to access https://... |
15:58:19 | stefanos82 | error 403 |
15:58:37 | leorize | 403 is forbidden IIRC |
15:58:51 | leorize | do you have 2fa enabled in your github account? |
15:59:03 | leorize | two-factor authentication |
15:59:04 | stefanos82 | yes |
15:59:18 | leorize | in that case then you either need: |
15:59:20 | stefanos82 | as I have told you before, the problem lies with protocol use |
15:59:24 | leorize | an app password |
15:59:28 | leorize | or ssh key |
15:59:38 | leorize | no it's not |
15:59:54 | leorize | I've 2fa enabled and I can still push via https when I want |
16:02:38 | leorize | I recommend having ssh key however |
16:02:40 | leorize | https://help.github.com/articles/connecting-to-github-with-ssh/ |
16:03:16 | stefanos82 | leorize: I have told you already... |
16:03:58 | * | xet7 joined #nim |
16:07:39 | leorize | then you should probably setup ssh access for github... |
16:08:56 | * | kambiz9 joined #nim |
16:10:20 | * | april joined #nim |
16:11:08 | stefanos82 | lol I have already |
16:11:16 | stefanos82 | you just did not understand the issue |
16:11:24 | stefanos82 | let me try to make it clearer with you |
16:11:41 | stefanos82 | in order to push changes on a repo, you need to have it forked first |
16:11:50 | stefanos82 | then you have to have it cloned locally |
16:12:15 | * | april quit (Remote host closed the connection) |
16:13:38 | leorize | so if I understand this correctly |
16:13:47 | leorize | you've cloned the upstream repo |
16:13:54 | leorize | and your branch is done there |
16:13:58 | leorize | is that correct? |
16:14:27 | stefanos82 | Originally, I have cloned the actual repo from https://github.com/nim-lang/Nim |
16:14:30 | * | kambiz9 quit (Ping timeout: 244 seconds) |
16:14:58 | stefanos82 | doing so does not let you have write permissions |
16:15:06 | stefanos82 | in order to do so, you need to have a local fork first |
16:15:10 | leorize | oh I understand now |
16:15:15 | leorize | it's simple then |
16:15:16 | stefanos82 | and then sync it with upstream master |
16:15:36 | leorize | grab your fork clone URL (the ssh one) |
16:15:46 | stefanos82 | I already did |
16:15:49 | leorize | git remote set-url --push origin <url> |
16:16:45 | leorize | it will override the url used for git push of that repo, then you should be able to push directly into your fork |
16:18:53 | dom96 | better to just add a new name: git remote add fork <url> |
16:18:59 | dom96 | then push via `git push fork` |
16:19:12 | dom96 | you can then easily pull from upstream using `origin` |
16:22:00 | * | krux02 quit (Remote host closed the connection) |
16:22:27 | leorize | I personally prefer the set-url --push method |
16:22:36 | leorize | git pull will pull from upstream |
16:22:44 | leorize | then git push will push to your repo |
16:22:48 | leorize | pretty neat :) |
16:22:56 | * | pwntus quit (Ping timeout: 272 seconds) |
16:24:57 | * | dom96 quit (*.net *.split) |
16:24:57 | * | d10n quit (*.net *.split) |
16:24:57 | * | awal quit (*.net *.split) |
16:25:11 | * | dom96 joined #nim |
16:25:31 | * | awal joined #nim |
16:26:01 | stefanos82 | I hate git so freaking much |
16:26:03 | * | d10n joined #nim |
16:26:12 | stefanos82 | I can't understand how hard I try |
16:26:14 | * | woddf214 joined #nim |
16:26:22 | * | woddf214 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
16:26:44 | * | pwntus joined #nim |
16:27:33 | * | dom96 quit (Changing host) |
16:27:33 | * | dom96 joined #nim |
16:27:34 | * | awal is now known as Guest51883 |
16:27:51 | * | d10n quit (Changing host) |
16:27:51 | * | d10n joined #nim |
16:30:27 | stefanos82 | it's a whole scientific procedure to commit a fork :S |
16:57:15 | * | rayman22201 joined #nim |
16:59:18 | shashlick | Create fork, git clone your fork, git branch, make changes, git commit, git push, then create PR |
16:59:32 | shashlick | Takes some time to get comfortable |
16:59:46 | * | rayman237 quit (Ping timeout: 256 seconds) |
16:59:55 | * | Yoda28 joined #nim |
17:02:54 | * | Yoda28 quit (K-Lined) |
17:06:17 | * | poutine21 joined #nim |
17:08:05 | * | SenasOzys quit (Ping timeout: 240 seconds) |
17:10:11 | * | poutine21 quit (Remote host closed the connection) |
17:21:44 | * | SenasOzys joined #nim |
17:24:57 | * | Aprexer joined #nim |
17:25:40 | * | Aprexer quit (Killed (Sigyn (Spam is off topic on freenode.))) |
17:30:36 | FromDiscord | <treeform> Finally using my openGL plus my typography librarry to draw text in openGL |
17:30:38 | FromDiscord | <treeform> |
17:30:38 | FromDiscord | <treeform> https://cdn.discordapp.com/attachments/371759389889003532/480790707821608971/unknown.png |
17:31:58 | FromDiscord | <treeform> |
17:31:58 | FromDiscord | <treeform> https://cdn.discordapp.com/attachments/371759389889003532/480791044812963844/unknown.png |
17:35:16 | * | riidom joined #nim |
17:36:41 | FromGitter | <data-man> @treeform: Great! Where is I can grab your OpenGL? ;) |
17:38:01 | FromDiscord | <treeform> My openGL is very convoluted, you probably don't want it. |
17:38:19 | FromDiscord | <treeform> But you can integrate my typography library with your openGL. |
17:38:27 | FromDiscord | <treeform> Or any other graphics API 2d or 3d. |
17:40:04 | FromGitter | <data-man> So how users can repeat your results without your lib? |
17:40:07 | * | Dread28 joined #nim |
17:40:45 | FromDiscord | <treeform> Just use my typography library? |
17:40:53 | FromDiscord | <treeform> Game engines don't make good libraries. |
17:41:04 | FromDiscord | <treeform> I want not want to use my openGL thingy if I did not make it. |
17:42:00 | FromDiscord | <treeform> My typography library has an example 2d renderer that you can use as bases for your engine. |
17:42:24 | FromDiscord | <treeform> Another cool thing I have done is I used Figma to lay out the UI stuff: |
17:42:55 | FromDiscord | <treeform> |
17:42:56 | FromDiscord | <treeform> https://cdn.discordapp.com/attachments/371759389889003532/480793801233793024/unknown.png |
17:42:57 | * | Dread28 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
17:43:34 | FromDiscord | <treeform> So I can use Figma UI tool, layout stuff -> convert it to openGL code and use it. |
17:44:09 | * | noonien joined #nim |
17:44:47 | FromGitter | <data-man> BTW your vmath depends on fixmath. Please add this dependency to vmath.nimble. |
17:45:03 | FromDiscord | <treeform> you mean mine? |
17:45:39 | FromGitter | <data-man> Yes |
17:45:57 | FromDiscord | <treeform> It should only depend on fixmath, if you include xmath |
17:46:03 | FromDiscord | <treeform> does it through an error for you? |
17:46:15 | FromDiscord | <treeform> I should probably have xmath as a separate package |
17:46:30 | FromGitter | <data-man> Also depends on print |
17:47:01 | FromDiscord | <treeform> hmm that I should add |
17:51:00 | FromDiscord | <treeform> data-man, I have removed print and fixmath dependecy |
17:51:56 | FromGitter | <data-man> I saw. :) Thanks! |
17:52:30 | * | Guest1727 joined #nim |
17:52:48 | FromDiscord | <treeform> data-man, feel free to send me feedback or on new feature you might need. |
17:53:40 | FromGitter | <data-man> Sure! |
17:53:48 | * | Guest1727 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
17:56:34 | stefanos82 | shashlick: I did not create any branch; I just edited the file with typo and submitted it for pull request |
18:01:52 | * | kobi7 joined #nim |
18:04:49 | FromGitter | <xmonader> aren't var parameters in functions supposed to be passed by reference in nim ? |
18:06:16 | Araq | they are |
18:07:43 | * | nsf joined #nim |
18:08:08 | FromGitter | <xmonader> @Araq I wrote that in python https://pastebin.com/zPrvBX3q ⏎ and doing port line by line https://pastebin.com/U2LmbT1G ⏎ ⏎ the deps parameter i used var, but it never gets updated [https://gitter.im/nim-lang/Nim?at=5b79b208e7971d5f10a5a30b] |
18:08:15 | FromGitter | <xmonader> anything i'm overlooking? |
18:16:32 | FromDiscord | <treeform> Have you tried `this: var Bake` ? |
18:16:45 | * | Code_Red11 joined #nim |
18:17:09 | FromDiscord | <treeform> if you are going to modify it you should pass it in as a `var` |
18:17:57 | FromGitter | <xmonader> @treefrom isn't that the point of type Bake = ref object ? |
18:18:08 | * | Code_Red11 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
18:18:34 | FromDiscord | <treeform> I don't think so. ref just means it will use a pointer and not copy it about |
18:19:01 | FromDiscord | <treeform> var is about mutability |
18:20:33 | FromDiscord | <treeform> ref is about storage type of the object (stack vs heap), var and not var is about if you are going to modify it at some point. |
18:21:01 | Araq | no, 'ref' is also mutable |
18:21:19 | Araq | well the thing the ref points to is mutable the 'ref' itself is not |
18:21:42 | FromDiscord | <treeform> why does his thing does not work then? |
18:23:26 | Araq | who knows it's not a real port from Python, in Python there is a taskqueue |
18:24:40 | FromDiscord | <treeform> hmm you right it does work |
18:24:56 | FromDiscord | <treeform> I been putting var in front of refs... should I stop? |
18:24:59 | FromDiscord | <treeform> Does not seem to hurt it |
18:25:58 | FromDiscord | <treeform> xmonader, this works for me: https://gist.github.com/treeform/beb4fff30a14911a08b17f7b854b2355 |
18:26:03 | FromGitter | <xmonader> @Araq it's basically a list that i want to append values to with recursive calls |
18:26:47 | FromGitter | <xmonader> so I end up with a populated list from each call, so var seq[string] makes sense to me. I don't know why it doesn't work |
18:27:52 | FromGitter | <xmonader> @treeform the thing is "i'm not modifying the object Bake" at all in `runTask` proc, i'm just creating a list and passing it along and expecting it to get populated while passing it by reference |
18:34:40 | FromDiscord | <treeform> I don't see where your bug is, your code seems to work on my computer |
18:36:59 | stefanos82 | mine as well |
18:37:15 | stefanos82 | of course, there were some unnecessary tab keys and removed them |
18:37:21 | stefanos82 | Vim for the win lol |
18:38:39 | FromGitter | <xmonader> ```code paste, see link``` ⏎ ⏎ this works, i was suspecting their might be a problem with passing refs to sequences [https://gitter.im/nim-lang/Nim?at=5b79b92fdd0b74601e2da834] |
18:38:59 | FromGitter | <xmonader> @stefanos @treeform can you guys please send the output of the application? |
18:40:19 | FromDiscord | <treeform> https://gist.github.com/treeform/c3bab949ed8146ea3f0e22a6423b0004 |
18:40:29 | FromDiscord | <treeform> sorry going now |
18:42:41 | * | Cthalupa quit (Quit: ZNC 1.6.6+deb1ubuntu0.1 - http://znc.in) |
18:43:28 | FromGitter | <xmonader> @treeform thanks, but it's still not working, see ` DEPS NOW@[]` it's always empty never adds elements |
18:44:39 | FromGitter | <xmonader> pffft, wrong mapping of (for-else) loop from python to nim, i'm sorry guys |
18:47:47 | * | milky16 joined #nim |
18:48:09 | * | milky16 quit (Killed (Sigyn (Spam is off topic on freenode.))) |
18:48:45 | * | Cthalupa joined #nim |
18:49:08 | * | pwntus quit (Ping timeout: 256 seconds) |
18:50:24 | * | SporkWitch17 joined #nim |
18:52:18 | * | pwntus joined #nim |
18:52:19 | * | SporkWitch17 quit (Remote host closed the connection) |
18:53:35 | * | stefanos82 quit (Quit: Quitting for now...) |
18:57:19 | * | smt joined #nim |
18:58:02 | * | smt quit (Remote host closed the connection) |
18:58:26 | * | Guest51883 is now known as awal |
18:58:49 | * | smt joined #nim |
18:59:25 | * | smt quit (Max SendQ exceeded) |
19:05:05 | * | ofelas quit (Quit: shutdown -h now) |
19:07:44 | * | Selfsigned joined #nim |
19:08:31 | * | Selfsigned quit (Killed (Sigyn (Spam is off topic on freenode.))) |
19:09:34 | * | m4v1 joined #nim |
19:11:32 | * | m4v1 quit (Remote host closed the connection) |
19:21:46 | * | SenasOzys quit (Remote host closed the connection) |
19:22:09 | * | SenasOzys joined #nim |
19:23:08 | * | pwntus quit (Ping timeout: 256 seconds) |
19:25:13 | * | pwntus joined #nim |
19:39:57 | * | pwntus quit (Ping timeout: 240 seconds) |
19:40:08 | * | couven92 quit (Ping timeout: 244 seconds) |
19:40:09 | * | fredrik92 joined #nim |
19:40:29 | * | pwntus joined #nim |
19:42:49 | * | Aprexer joined #nim |
19:43:24 | * | Aprexer quit (Remote host closed the connection) |
19:44:47 | * | SenasOzys quit (Remote host closed the connection) |
19:45:07 | * | SenasOzys joined #nim |
19:48:17 | * | kobi7 quit (Ping timeout: 276 seconds) |
20:06:30 | * | gb00s joined #nim |
20:28:52 | * | vosper joined #nim |
20:39:06 | * | vosper quit (Quit: Textual IRC Client: www.textualapp.com) |
20:50:06 | * | Vladar quit (Remote host closed the connection) |
20:51:16 | * | nsf quit (Quit: WeeChat 2.2) |
20:53:19 | * | cspar joined #nim |
21:10:28 | * | lannister joined #nim |
21:11:57 | * | lannister quit (Remote host closed the connection) |
21:12:55 | * | RaptorJesus29 joined #nim |
21:16:19 | * | RaptorJesus29 quit (Remote host closed the connection) |
21:36:15 | * | gb00s quit (Remote host closed the connection) |
21:37:51 | * | gb00s joined #nim |
22:00:50 | * | SenasOzys quit (Read error: Connection reset by peer) |
22:10:04 | * | BitPuffin quit (Remote host closed the connection) |
22:12:54 | * | SenasOzys joined #nim |
22:17:05 | shashlick | stefanos82: reason I prefer branches is that your master branch doesn't get stuck until that change gets accepted |
22:17:18 | shashlick | you can work on other stuff if the PR takes time |
22:22:29 | * | ski_ joined #nim |
22:23:23 | * | ski_ quit (Killed (Sigyn (Spam is off topic on freenode.))) |
22:23:36 | * | rayman267 joined #nim |
22:24:01 | * | shashlick quit (Remote host closed the connection) |
22:24:37 | * | shashlick joined #nim |
22:25:50 | * | shashlick quit (Remote host closed the connection) |
22:26:14 | * | rayman22201 quit (Ping timeout: 276 seconds) |
22:26:21 | * | shashlick joined #nim |
22:26:26 | * | shashlick quit (Remote host closed the connection) |
22:27:36 | * | shashlick joined #nim |
22:29:45 | * | SenasOzys quit (Remote host closed the connection) |
22:44:41 | * | shashlick quit (Remote host closed the connection) |
22:45:08 | * | shashlick joined #nim |
22:54:39 | shashlick | araq: just posted nimui - libui wrapper online for perusal - appreciate any feedback on getting it working. it is still not compatible with your wrapper but will get there once basic functionality is working |
22:54:42 | shashlick | https://github.com/genotrance/nimui |
23:03:50 | shashlick | I think ropes is broken |
23:07:21 | * | syntonym[m] joined #nim |
23:45:51 | * | jesse23 joined #nim |
23:54:47 | * | jesse23 quit (Ping timeout: 268 seconds) |
23:59:45 | * | ftsf joined #nim |