00:07:30 | * | jaco60 quit (Ping timeout: 268 seconds) |
00:10:38 | * | Amrykid quit (Changing host) |
00:10:38 | * | Amrykid joined #nim |
00:11:09 | * | Matthias247 quit (Read error: Connection reset by peer) |
00:13:20 | * | vendethiel joined #nim |
00:13:26 | * | sora joined #nim |
00:14:36 | * | jaco60 joined #nim |
00:14:50 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
00:17:43 | * | darkf joined #nim |
00:19:48 | Sys | Is there a procedure for replacing a letters in a string with another letter? For instance if I want to replace all T's in my string with U's |
00:20:15 | Sys | is it just .replace? |
00:23:40 | def- | Sys: yep, myString.replace('T', 'U') should work |
00:26:05 | Sys | def-: I'm getting a attempting to call undeclared routine: 'replace' error |
00:27:46 | def- | Sys: import strutils |
00:27:52 | Sys | *facepalm* |
00:29:05 | * | jaco60 quit (Ping timeout: 268 seconds) |
00:30:10 | Sys | def-: type string: has to be discarded |
00:30:43 | * | jaco60 joined #nim |
00:31:35 | dom96 | Sys: You need to do something with the result |
00:31:37 | def- | Sys: oh right, it creates a new string |
00:31:55 | dom96 | either assign it to a variable or discard it explicitly with the 'discard' keyword |
00:33:45 | Sys | var t: string {.discardable.} = "string" would work fine? |
00:34:14 | def- | nono, just: var t = myString.replace('T', 'U') |
00:34:23 | def- | and then the new string is in t |
00:34:33 | * | vendethiel quit (Ping timeout: 246 seconds) |
00:35:41 | Sys | I was able to solve the problem by assigning the new .replace string to a new variable, was just curious about how to solve it by discarding the old t string variable |
00:35:59 | def- | ah: discard myString.replace('T', 'U') |
00:36:06 | def- | but that makes no sense because you don't get the result then |
00:36:57 | Sys | but couldn't i do discard myString to discard the old string? |
00:37:02 | Sys | Or is that not what the error is saying? |
00:37:21 | def- | nope, the error is telling you that replace returns a value and you're not doing anything with it |
00:37:30 | def- | so you either need to store it in a variable or discard it |
00:37:39 | Sys | Gotcha! Makes more sense now |
00:42:06 | Sys | def-: Question: for this example https://gist.github.com/def-/1c7210ff7858d2d20374 lets say that I have a file that contains the string, I want to make the script robust so that it can read in a file instead of me having to manually type out the string. Would something like var data = openFile(myfile) work? |
00:42:33 | Sys | or do I need to specify something like var data: string = openFile(myfile)_ |
00:42:48 | def- | close: let data = readFile(myfile) |
00:43:08 | def- | but then you read the entire file into memory which could be a problem for big files |
00:43:16 | * | space-wizard joined #nim |
00:43:27 | * | space-wizard quit (Client Quit) |
00:45:44 | * | jaco60 quit (Ping timeout: 268 seconds) |
00:45:58 | Sys | These files themseleves aren't huge, but I will be working with larger data. How do you read only only a part of a file into memory? |
00:46:04 | Sys | something like import streams? |
00:47:00 | def- | there is indeed a streams module that you could use. but it also works without importing anything: var file = open(myFile) |
00:47:19 | def- | and then: while not endOfFile(file): let letter = readChar(file) |
00:49:39 | Sys | Excellent, worked like a charm. Thank you both very much! I appreciate it! |
00:50:16 | def- | you're welcome. always great to see new people trying out nim |
00:52:18 | Sys | Welp time for me to bug out. Will be on tommorow, thanks again! |
00:52:26 | * | Sys quit (Quit: Page closed) |
00:52:42 | * | jaco60 joined #nim |
00:55:46 | * | pregressive joined #nim |
01:16:51 | * | sora quit (Ping timeout: 248 seconds) |
01:17:17 | * | sora joined #nim |
01:23:21 | * | jaco60 quit (Ping timeout: 268 seconds) |
01:30:07 | * | jaco60 joined #nim |
01:31:41 | * | pregressive quit (Remote host closed the connection) |
01:32:06 | * | kulelu88 quit (Quit: Leaving) |
01:42:08 | * | sora quit (Remote host closed the connection) |
01:52:42 | * | PMunch quit (Ping timeout: 260 seconds) |
01:53:25 | * | yglukhov joined #nim |
01:57:51 | * | yglukhov quit (Ping timeout: 246 seconds) |
02:04:48 | * | desophos joined #nim |
02:04:51 | * | jaco60 quit (Ping timeout: 246 seconds) |
02:07:13 | * | jaco60 joined #nim |
02:07:21 | * | brson quit (Quit: leaving) |
02:44:24 | * | pregressive joined #nim |
02:54:50 | * | Kingsquee joined #nim |
02:57:56 | * | gunn joined #nim |
03:04:09 | * | pregressive quit (Remote host closed the connection) |
03:08:02 | * | francisl joined #nim |
03:17:12 | * | francisl quit (Quit: francisl) |
03:53:23 | * | zepolen quit () |
03:54:56 | * | yglukhov joined #nim |
03:59:52 | * | yglukhov quit (Ping timeout: 260 seconds) |
04:03:49 | * | Varriount joined #nim |
04:05:50 | * | desophos quit (Read error: Connection reset by peer) |
04:07:39 | Varriount | Araq: I've opened a new PR for Nimsuggest. Before you start complaining about code size increase, a good portion of it is whitespace and comments. |
04:08:18 | * | brson joined #nim |
04:10:36 | * | endragor joined #nim |
04:24:27 | onionhammer | whoaaa this a big one |
04:30:19 | Varriount | onionhammer: ? |
04:37:36 | onionhammer | the pr |
04:37:38 | onionhammer | ;) |
04:51:54 | * | vendethiel joined #nim |
05:08:51 | * | mahasamoot__ quit (Ping timeout: 248 seconds) |
05:15:09 | * | vendethiel quit (Ping timeout: 276 seconds) |
05:49:55 | * | MightyJoe is now known as cyraxjoe |
05:56:24 | * | yglukhov joined #nim |
06:01:12 | * | yglukhov quit (Ping timeout: 260 seconds) |
06:15:35 | GangstaCat | let variable = spawn aProc() resulting in Error: undeclared identifier: 'spawn' |
06:16:58 | samdoran | did you import threadpool? |
06:18:10 | GangstaCat | no |
06:19:07 | samdoran | ah, well that's what implements it, as far as I am aware |
06:19:17 | GangstaCat | samdoran, that works now, thanks |
06:27:56 | * | lxdong joined #nim |
06:30:50 | * | samdoran quit (Quit: Page closed) |
06:36:44 | * | bjz joined #nim |
06:36:50 | * | pregressive joined #nim |
06:45:50 | * | Matthias247 joined #nim |
06:46:11 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
06:53:25 | * | pregressive quit (Remote host closed the connection) |
06:55:52 | * | Matthias247 quit (Read error: Connection reset by peer) |
06:58:45 | * | brson quit (Quit: leaving) |
07:01:19 | * | bjz joined #nim |
07:08:30 | * | pregressive joined #nim |
07:09:23 | * | bjz quit (Ping timeout: 248 seconds) |
07:11:13 | * | bjz joined #nim |
07:22:54 | * | pregressive quit (Remote host closed the connection) |
07:28:11 | * | vendethiel joined #nim |
07:36:24 | * | endragor quit (Remote host closed the connection) |
07:40:31 | * | endragor joined #nim |
07:52:03 | * | vendethiel quit (Ping timeout: 248 seconds) |
08:02:39 | * | alexsystemf joined #nim |
08:06:37 | * | Varriount_ joined #nim |
08:06:37 | * | Varriount quit (Disconnected by services) |
08:09:56 | * | pafmaf joined #nim |
08:12:48 | * | lxdong quit (Quit: Page closed) |
08:20:27 | * | Trustable joined #nim |
08:35:58 | * | yglukhov joined #nim |
08:44:16 | * | miko__ joined #nim |
08:44:50 | * | Arrrr joined #nim |
08:44:50 | * | Arrrr quit (Changing host) |
08:44:50 | * | Arrrr joined #nim |
08:56:00 | * | Arrrr quit (Quit: WeeChat 1.4) |
08:56:20 | * | Arrrr joined #nim |
08:56:20 | * | Arrrr quit (Changing host) |
08:56:20 | * | Arrrr joined #nim |
09:37:04 | * | vendethiel joined #nim |
10:11:13 | * | vendethiel quit (Ping timeout: 268 seconds) |
10:30:20 | * | apotheon quit (Ping timeout: 268 seconds) |
10:30:29 | * | jaco60 quit (Ping timeout: 260 seconds) |
10:30:55 | * | jaco60 joined #nim |
10:37:00 | * | jaco60 quit (Ping timeout: 250 seconds) |
10:39:25 | * | jaco60 joined #nim |
10:40:44 | * | endragor quit (Remote host closed the connection) |
10:41:44 | * | apotheon joined #nim |
10:42:03 | * | Kingsquee quit (Ping timeout: 268 seconds) |
10:43:06 | * | Kingsquee joined #nim |
10:54:57 | * | filwit joined #nim |
10:55:53 | * | arnetheduck joined #nim |
11:11:18 | Araq | so ... somebody should fix our json module regressions. def- ? |
11:12:09 | * | boopsiesisaway is now known as boopsies |
11:22:45 | * | Xe quit (Ping timeout: 268 seconds) |
11:25:28 | dom96 | We find out whether we got into GSoC today! |
11:26:15 | * | vendethiel joined #nim |
11:30:19 | federico3 | dom96: are you aware of https://github.com/nim-lang/Nim/issues/3910 ? |
11:31:36 | dom96 | federico3: nope |
11:32:18 | dom96 | looks like a simple tarball gen bug |
11:32:27 | dom96 | You could probably fix it |
11:32:52 | federico3 | yup, but are you guys going to release a new tarball shortly? |
11:33:39 | dom96 | That's up to Araq |
11:33:40 | * | PMunch joined #nim |
11:34:14 | federico3 | then it will be 2020 :( |
11:35:29 | dom96 | We really need a tool that builds a release for us |
11:37:26 | federico3 | besides, are coroutines disabled by default? |
11:37:37 | dom96 | yes |
11:39:19 | * | M-max quit (Remote host closed the connection) |
11:41:21 | * | endragor joined #nim |
11:41:42 | Arrrr | 2020 is not that far |
11:43:20 | Araq | I can ... hmmm so you want me to re-release 0.13 right? |
11:44:08 | federico3 | jeez, no. It should be named 0.13.1 |
11:44:40 | * | M-max joined #nim |
11:45:39 | * | endragor quit (Ping timeout: 248 seconds) |
11:47:06 | * | vendethiel quit (Ping timeout: 276 seconds) |
11:51:43 | * | Xe joined #nim |
11:55:44 | Araq | federico3: hmm fair enough, but it's just 0.13 with this installation problem fixed? |
11:56:54 | federico3 | yep, the missing lib/pure/arch |
11:57:52 | * | Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif) |
11:58:20 | * | Kingsquee joined #nim |
12:00:47 | * | boopsies is now known as boopsiesisaway |
12:06:44 | dom96 | just backport the fix to master |
12:19:36 | * | endragor joined #nim |
12:26:36 | * | M-max quit (Quit: node-irc says goodbye) |
12:28:16 | * | M-Quora joined #nim |
12:44:20 | * | vendethiel joined #nim |
12:46:29 | * | Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif) |
13:06:21 | * | vendethiel quit (Ping timeout: 268 seconds) |
13:21:45 | federico3 | dom96: nimble requires some *code* from the compiler to be built: are these libraries that the compiler should install somewhere? |
13:23:21 | dom96 | federico3: I'm thinking that Nim should have its own Nimble package directory. That directory should then contain the compiler sources, which itself form a 'compiler' package. |
13:24:30 | federico3 | merging Nimble into Nim then? Any solution in the meantime? |
13:32:49 | Araq | federico3: hmm? install_nimble script in the Nim repo? |
13:33:41 | federico3 | uh? |
13:48:59 | * | endragor quit (Ping timeout: 250 seconds) |
13:49:31 | Araq | federico3: that's how I build nimble. |
13:49:56 | Araq | because Nimble is part of Nim, albeit it its own repo so that it has its own issue tracker etc. |
13:50:30 | federico3 | if it's part of Nim already, is it included in the Nim tarball? |
13:50:41 | * | lxdong joined #nim |
13:53:50 | Araq | no, what would that gain us? |
13:54:20 | Araq | but hmm I get what you're after |
13:54:31 | Araq | that might be good idea indeed. |
13:57:39 | * | pafmaf quit (Quit: Verlassend) |
14:01:59 | * | francisl joined #nim |
14:06:38 | * | Kingsquee joined #nim |
14:17:10 | * | lxdong quit (Ping timeout: 252 seconds) |
14:17:33 | * | Jesin quit (Quit: Leaving) |
14:24:12 | * | francisl quit (Quit: francisl) |
14:25:39 | def- | Araq: I narrowed the JS problem down a bit. it happens when you use x.fields["foo"], it is used as if it's x["foo"]. any idea where to look for the cause of that? |
14:26:39 | Araq | def-: hmm, not sure what you mean |
14:27:08 | def- | Nim code x.fields["foo"] gets transformed to JS x["foo"] instead of x.fields["foo"] |
14:29:48 | def- | at least in some cases, i think it has to do with object variants: https://gist.github.com/def-/e8183e5516c57babbe20 |
14:30:13 | federico3 | Araq: that Nim should build from the nim tarball and Nimble should build from the nimble tarball, just that (unless they build from the same tarball) |
14:31:23 | * | Sys joined #nim |
14:42:02 | * | vendethiel joined #nim |
14:45:05 | dom96 | federico3: I think that the Nim installation tarballs (and installers) should include Nimble. |
14:47:20 | Araq | dom96: the windows installers do that but only ship the .exe, not the source of nimble |
14:47:22 | Sys | Is there a built in reverse proc for strings? |
14:47:56 | def- | Sys: algorithm.reverse |
14:48:00 | * | endragor joined #nim |
14:48:05 | dom96 | Araq: That's fine. But in the future they should ship the Nimble source code, as it itself is a package. |
14:48:48 | Sys | def-: Thanks! |
14:49:44 | dom96 | Araq: They should install it into a "global Nimble pkg" directory, which may just as well be in C:\Program Files\Nim\nimble |
14:50:00 | dom96 | pretty sure that's how Python's packaging works too |
14:50:26 | dom96 | then you would include the compiler sources in there too |
14:51:02 | dom96 | but I need to think about how global nimble pkg dirs will be implemented in Nimble first |
14:52:24 | * | lompik quit (Ping timeout: 246 seconds) |
14:52:40 | * | francisl joined #nim |
14:56:13 | def- | Araq: hm, to me it seems object variants are just not supported in JS yet |
14:57:10 | Araq | they are supported but don't generate field checks |
14:57:16 | federico3 | what? that means that Windows users cannot build the same EXEs from the tarball at the moment. |
14:57:37 | def- | Araq: ok, because i searched for the field checks in jsgen and didn't find them |
15:00:22 | Sys | Sorry for interrupting: Could I get a bit of help here? (https://gist.github.com/c-guzman/8708817c478fa90e436c) it seems the replace proc isn't working |
15:00:42 | Sys | Sorry not the replace proc, it's the reverse proc |
15:01:20 | def- | Sys: reverse() reverses the string inplace |
15:01:38 | def- | it doesn't return anything so you can just call: reverse(s) |
15:01:57 | * | miko__ quit (Ping timeout: 260 seconds) |
15:02:29 | dom96 | federico3: sorry, i'm not sure what you mean? |
15:03:15 | * | vendethiel quit (Ping timeout: 246 seconds) |
15:03:50 | federico3 | dom96: right now the Nim tarball does not contain Nimble while the EXE files on http://nim-lang.org/download.html do |
15:04:16 | dom96 | federico3: yes. We need to fix that. |
15:04:23 | federico3 | is there a bug open for this? |
15:06:18 | dom96 | federico3: Don't think so, but please check the ones tagged 'installation' |
15:06:52 | Araq | federico3: I didn't consider it a problem since the .exe is provided for convenience. |
15:07:36 | def- | Sys: also, strutils.replace does not exactly do what you want, I'd write my own proc to do that: https://gist.github.com/def-/19feec0a66d350f9fcf9 |
15:08:42 | Sys | Ahh I see, I had actually tried creating a case proc before, but I was trying to use the .replace which is why it was not working |
15:08:44 | Sys | This makes more sense |
15:08:48 | Sys | Thank you |
15:08:51 | def- | Araq: oh well, looks like yglukhov fixed it while I was still trying to figure out the bug |
15:09:13 | * | Jesin joined #nim |
15:10:22 | cheatfate_ | dom96 is it possible to pass parameters in future callback without any modification to existing asyncdispatch code? |
15:10:32 | Sys | def-: Could you explain the .mitems? |
15:10:55 | dom96 | cheatfate_: it's a closure so you can capture variables in its enclosing scope |
15:11:40 | def- | Sys: mitems is an iterator that gives you characters that you can modify directly: http://nim-lang.org/docs/system.html#mitems.i,openArray[T] |
15:11:56 | * | saml joined #nim |
15:12:36 | * | endragor quit (Remote host closed the connection) |
15:14:25 | federico3 | https://github.com/nim-lang/Nim/issues/3918 bug opened |
15:14:41 | def- | Sys: i updated the code with another version that uses the index instead of mitems |
15:16:01 | dom96 | federico3: thank you |
15:16:02 | Sys | Thank you! |
15:16:07 | * | francisl quit (Quit: francisl) |
15:18:10 | * | sora joined #nim |
15:19:53 | * | francisl joined #nim |
15:20:11 | Araq | yglukhov: I fail to see the correctness of your fix |
15:20:54 | yglukhov | Araq: jsgen.nim, line 897. |
15:21:00 | yglukhov | all the rest is just tests |
15:21:09 | Araq | yes, I know. |
15:21:39 | Araq | gen() doesn't do the right thing, it produces the value, not its address |
15:21:53 | Araq | genCheckedFieldAddr() should produce an address |
15:24:05 | cheatfate_ | dom96: could you please watch it? https://gist.github.com/cheatfate/33c6387c13c5276535a5 |
15:24:47 | * | zepolen joined #nim |
15:29:59 | dom96 | cheatfate_: hrm, i'm not sure. But doesn't this line block anyway? https://gist.github.com/cheatfate/33c6387c13c5276535a5#file-asyncdispatch-L48 |
15:31:06 | * | francisl quit (Quit: francisl) |
15:31:21 | Araq | yglukhov: well? any explanation on why that (a) fixes the bug and (b) doesn't introduce new problems? |
15:31:52 | yglukhov | Araq: give me a couple of mins pls |
15:32:13 | Araq | sure, no problem |
15:32:25 | cheatfate_ | dom96: refresh please, i post full error trace log |
15:33:43 | Sys | https://gist.github.com/c-guzman/c4fbf9ebf438d0141cc8 how do I iterate over a second string in a if function? |
15:34:24 | * | arnetheduck quit (Ping timeout: 260 seconds) |
15:34:26 | def- | Sys: what do you want to do? |
15:34:44 | def- | Sys: ah, you want to iterate over s and t at the same time and compare them? |
15:34:44 | Sys | Every time the letters do not match between the two strings, I want to increase mutation count by 1 |
15:34:53 | Sys | Yes essentially sorry if the comments werent clear |
15:35:03 | def- | I should've read the comments^^ |
15:35:17 | Sys | :p |
15:36:41 | def- | I would do it like this: https://gist.github.com/def-/24b0e2e4371d50847cd8 |
15:41:18 | yglukhov | Araq: ok, you're right. It should be genAddr(m) instead of gen(m[0]). That sound more correct to you? |
15:42:12 | * | francisl joined #nim |
15:42:49 | Araq | not really, why is genFieldAddr(p, m.sons[0], r) not correct in the first place? |
15:43:03 | Sys | def-: for i in 0 .. min(s.high, t.high) does this just iterate over the number of smallest length between s, and t? |
15:43:14 | def- | yes |
15:43:21 | def- | well, s.high is s.len-1 |
15:44:00 | yglukhov | genFieldAddr is not the right choice for non-etyBaseIndex objects. for such objects genFieldAccess should be used. |
15:45:03 | dom96 | cheatfate_: Sorry, i'm not sure what the problem is. And I have to go. |
15:45:11 | Sys | right right, the if statement for the different lengths is just there to let me know the strings aren't identical right? It doesn't break out of the program, and it will still calculate mutations to whatever the lowest length of the two strings is? |
15:45:25 | yglukhov | and in my fix genChecked would redirect to gen nkDotExpr and it would do the right thing. |
15:45:58 | yglukhov | genAddr does handle nkDots correctly as well. by checking for etyBaseIndex |
15:46:12 | yglukhov | so i would vote for genAddr =) |
15:46:14 | * | endragor joined #nim |
15:48:00 | * | darkf_ joined #nim |
15:49:06 | Sys | def-: this is good, i wasn't aware you could run if statements like this, thank you! |
15:49:21 | Sys | for* |
15:50:27 | def- | Sys: right |
15:50:52 | def- | Sys: but you can try it out, that helps |
15:51:00 | * | endragor quit (Ping timeout: 268 seconds) |
15:51:12 | Sys | I did, I just want to make sure I have the idea behind it right |
15:51:18 | Sys | Thank you for all the help |
15:51:30 | * | darkf quit (Ping timeout: 276 seconds) |
15:52:48 | * | vendethiel joined #nim |
15:53:27 | * | darkf_ quit (Ping timeout: 276 seconds) |
15:54:30 | Araq | yglukhov: ok, so use genAddr |
15:54:38 | yglukhov | done |
15:54:43 | * | francisl quit (Quit: francisl) |
15:54:50 | Araq | at least this way it's not obviously wrong. |
15:56:46 | * | francisl joined #nim |
16:09:12 | * | Jessin joined #nim |
16:09:59 | Arrrr | yay https://github.com/nim-lang/Nim/blob/devel/tests/misc/tupcomingfeatures.nim |
16:10:36 | * | francisl quit (Quit: francisl) |
16:10:47 | * | Jesin quit (Ping timeout: 260 seconds) |
16:11:42 | * | sora quit (Remote host closed the connection) |
16:12:45 | Sys | Is there a 'man' or 'help' command for built-in procs? Or is that something you'd have to look into the manual for now? |
16:13:48 | Arrrr | http://nim-lang.org/docs/lib.html |
16:14:08 | * | darkf joined #nim |
16:14:22 | Sys | Arrrr: Thank you |
16:14:45 | * | sorakun joined #nim |
16:22:49 | * | Xe quit (Ping timeout: 260 seconds) |
16:22:55 | * | samdoran joined #nim |
16:28:18 | Araq | Arrrr: he, I am in love with 'using' |
16:28:49 | Araq | cuts boilerplate and yet doesn't introduce ever more complex type inference rules |
16:29:56 | Araq | Sys: there is also http://nim-lang.org/docs/theindex.html |
16:31:14 | * | darkf quit (Quit: night) |
16:31:18 | Sys | Araq: this is great also, thank you, more to read the better |
16:32:22 | Araq | Sys: the index is not for reading, it's for your browser search |
16:32:33 | Araq | (usually control+F) |
16:32:58 | Sys | Araq: I'm aware, I guess I meant to say that the more I can read when looking for answers the better |
16:34:00 | * | Xe joined #nim |
16:35:04 | * | vendethiel quit (Ping timeout: 260 seconds) |
16:39:51 | Araq | yglukhov: er, why is it genAddr(p, m, r) and not genAddr(p, m[0], r) ? |
16:42:10 | yglukhov | m[0] is mDotExpr. genAddr(a) checks for a[0] to be mDotExpr to make a choice between genFieldAddr or genFieldAccess. |
16:43:14 | Araq | that's strange, but ok |
16:45:39 | Araq | yglukhov, def- what else is broken with Json and tables? I heard the default size of 4 doesn't work reliably? |
16:46:22 | * | [CBR]Unspoken quit (*.net *.split) |
16:46:22 | * | vegansk quit (*.net *.split) |
16:46:22 | * | asdf quit (*.net *.split) |
16:48:27 | Arrrr | Araq, this makes the compiler boom http://pastebin.com/wmxxL85y |
16:48:34 | Arrrr | Your partial type is partially implemented |
16:52:16 | * | samdoran quit (Ping timeout: 252 seconds) |
16:53:16 | * | vegansk joined #nim |
16:54:22 | * | [CBR]Unspoken joined #nim |
16:55:41 | * | asdf joined #nim |
16:55:49 | * | pregressive joined #nim |
16:56:04 | * | asdf is now known as Guest60962 |
16:58:33 | * | space-wizard joined #nim |
16:59:24 | * | space-wizard quit (Max SendQ exceeded) |
17:00:08 | * | space-wizard joined #nim |
17:09:50 | * | mahasamoot joined #nim |
17:11:38 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
17:14:22 | * | yglukhov quit (Ping timeout: 260 seconds) |
17:17:14 | * | vendethiel joined #nim |
17:18:36 | * | w0lfb0ne joined #nim |
17:23:11 | * | w0lfb0ne quit (Quit: WeeChat 1.4) |
17:29:25 | * | brson joined #nim |
17:37:29 | * | Jessin quit (Quit: Leaving) |
17:42:26 | Araq | Arrrr: damn, but thanks |
17:42:58 | Araq | I intend to use it pretty extensively soon enough so I hope I can get it stable |
17:44:36 | Arrrr | What's the benefit of using partial? |
17:44:50 | Arrrr | The use cases |
17:45:18 | * | mahasamoot quit (Ping timeout: 246 seconds) |
17:46:14 | * | allan0 quit (Ping timeout: 260 seconds) |
17:50:54 | * | allan0 joined #nim |
17:51:58 | * | ap_ joined #nim |
17:52:21 | * | ap_ is now known as Guest15389 |
17:52:35 | * | sorakun quit (Read error: Connection reset by peer) |
17:56:22 | * | [CBR]Unspoken quit (Ping timeout: 260 seconds) |
17:56:48 | * | Guest15389 quit (Ping timeout: 252 seconds) |
18:00:27 | * | vendethiel quit (Ping timeout: 260 seconds) |
18:09:41 | * | [CBR]Unspoken joined #nim |
18:13:00 | * | yglukhov joined #nim |
18:17:12 | * | yglukhov quit (Ping timeout: 250 seconds) |
18:19:50 | * | vendethiel joined #nim |
18:21:05 | * | mahasamoot joined #nim |
18:21:06 | * | Matthias247 joined #nim |
18:23:04 | Araq | Arrrr: cleaner frontend vs backend separation in the compiler |
18:23:09 | * | space-wizard joined #nim |
18:23:18 | Araq | better for graphics engines |
18:23:43 | Araq | you can add fields to the scene graph nodes |
18:24:15 | Araq | plenty of use cases if we can get it to work |
18:26:47 | ldlework | looks cool but syntax is gross :P |
18:26:56 | * | ldlework runs away |
18:27:17 | Araq | ldlework: I like the syntax fwiw |
18:28:05 | ldlework | Pragma? |
18:28:09 | Araq | what's wrong with it? |
18:28:11 | ldlework | Why not "= partial" |
18:28:31 | Araq | because our policy is to introduce features via pragmas first, if reasonable |
18:28:40 | ldlework | pragmas should be for things you have no other place for |
18:28:46 | ldlework | not the default place new features go :/ |
18:29:00 | ldlework | its language design as an after thought :( |
18:29:06 | Arrrr | but partial seems to me a niche feature |
18:29:10 | * | Jesin joined #nim |
18:29:13 | Araq | when it works well enough and we're certain we can support it, we can add a new keyword to the language for it |
18:29:13 | ldlework | so? |
18:29:36 | Arrrr | so it deserves the ugly sintax |
18:29:52 | ldlework | Arrrr: so are you the one we ask to determine whether something is niche going forward, or...? |
18:30:07 | Arrrr | No, im the one that gave his opinion |
18:30:52 | Araq | should I nilly willy reserve new words instead for features that might go away again? |
18:32:08 | ldlework | Yeah I think some forethought could really benefit Nim's disparate feature interoperability that's all. |
18:32:41 | ldlework | But I understand what you're saying, its just experimental. |
18:33:58 | * | zepolen quit (Remote host closed the connection) |
18:33:59 | Araq | type Foo = partial object |
18:34:01 | Araq | or |
18:34:06 | Araq | type Foo = partial |
18:34:07 | Araq | ? |
18:34:33 | ldlework | dunno, just wanted to observe you have this huge sytnax structure available for objects might as well stick the word there instead of the pragma :D |
18:35:36 | * | AnonCat joined #nim |
18:35:36 | Arrrr | type Foo = partial ref object of Bar |
18:35:51 | * | GangstaCat quit (Ping timeout: 250 seconds) |
18:35:51 | ldlework | 'partial object' reads a bit nicer, but power-users will probably appreciate the shorter form - but I'm just guessing since I have no idea what is niche or not in a language with no sense of usage statistics or anything like that. |
18:36:22 | ldlework | Arrrr: that looks nice |
18:36:28 | * | AnonCat is now known as GangstaCat |
18:39:12 | * | mahasamoot quit (Ping timeout: 246 seconds) |
18:40:32 | Arrrr | I'd take into account macros, but anyway i dont think it's going to matter for the 95%. |
18:41:07 | ldlework | sorry for coming off as an ass |
18:41:20 | ldlework | or just being one |
18:45:46 | * | sora joined #nim |
18:54:46 | * | cheatfate joined #nim |
18:55:28 | * | cheatfate_ quit (Quit: Page closed) |
18:59:18 | cheatfate | Araq, i have a little problem with closures could you help me avoid it? |
19:01:16 | Araq | cheatfate: can you gist it? |
19:01:34 | cheatfate | https://gist.github.com/cheatfate/33c6387c13c5276535a5#file-asyncdispatch-L48 |
19:02:08 | cheatfate | maybe my last comment can explain my situation |
19:04:34 | Araq | er ... it took us weeks to get async into its current state |
19:04:51 | Araq | why not use it? |
19:05:14 | Araq | do you think this OVERLAPPED stuff is trivial to do? |
19:06:47 | cheatfate | Not use what? sleepAsync() ? because it too slow |
19:07:04 | cheatfate | i'm trying to implement more fast variants of timeouts |
19:07:06 | * | yglukhov joined #nim |
19:07:16 | cheatfate | already done this for linux |
19:07:27 | cheatfate | now trying this for windows |
19:07:38 | cheatfate | but this closure feature or bug? |
19:08:02 | cheatfate | is this normal for closure to work as i described? |
19:08:26 | cheatfate | if you say yes, i will continue to search another variants |
19:11:38 | Araq | I have no idea what it has to do with closures. |
19:13:29 | Araq | dom96: please have a look |
19:18:45 | * | mat4 joined #nim |
19:18:48 | mat4 | hello |
19:25:41 | * | yglukhov quit (Remote host closed the connection) |
19:26:06 | * | yglukhov joined #nim |
19:27:05 | cheatfate | haha, i have passed it |
19:31:39 | * | yglukhov quit (Remote host closed the connection) |
19:36:37 | * | tb joined #nim |
19:37:00 | * | tb is now known as Guest61627 |
19:37:50 | cheatfate | Araq, I think closures can't build normal environment if you have decleared "var" in proc body |
19:38:04 | cheatfate | decleared = declared sorry |
19:38:27 | * | tob joined #nim |
19:38:32 | tob | tob |
19:38:51 | * | tob is now known as Guest49951 |
19:40:56 | * | Guest61627 quit (Ping timeout: 252 seconds) |
19:41:10 | * | test joined #nim |
19:41:33 | * | test is now known as Guest2540 |
19:42:46 | * | Guest49951 quit (Ping timeout: 252 seconds) |
19:44:28 | * | testing joined #nim |
19:44:51 | * | testing is now known as Guest82269 |
19:48:16 | * | Guest2540 quit (Ping timeout: 252 seconds) |
19:52:48 | Guest82269 | tototoott |
19:55:14 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
19:56:12 | * | samdoran joined #nim |
19:56:22 | def- | hi Guest82269 |
19:56:54 | Guest82269 | hi |
19:58:30 | ldlework | hi |
20:02:34 | * | samdoran quit (Ping timeout: 252 seconds) |
20:06:17 | Sys | This might be found later on in dom96's book as i'm going through it, but I have a question. What's the difference between nim c -r CODE.nim and nim -d:release CODE.nim? |
20:10:39 | * | yglukhov joined #nim |
20:13:28 | * | samdoran joined #nim |
20:13:47 | * | samdoran quit (Client Quit) |
20:14:40 | * | Guest82269 quit (Ping timeout: 252 seconds) |
20:26:10 | * | miko__ joined #nim |
20:28:21 | * | mahasamoot joined #nim |
20:34:41 | * | Arrrr quit (Quit: WeeChat 1.4) |
20:34:49 | zielmicha | Sys: -d:release defines "release" flag, which, by default, enable compiler optimization and removes various checks (also disables stacktraces) resulting in faster code |
20:35:28 | Sys | zielmicha: appreciate it! |
20:37:05 | * | Guest60962 is now known as asdf |
20:37:50 | * | space-wizard joined #nim |
20:45:51 | * | zepolen joined #nim |
20:50:06 | * | zepolen quit (Ping timeout: 246 seconds) |
20:50:19 | * | dorei joined #nim |
20:55:04 | * | boopsiesisaway is now known as boopsies |
21:09:10 | * | yglukhov quit (Remote host closed the connection) |
21:09:14 | * | ics joined #nim |
21:16:31 | * | zepolen joined #nim |
21:29:17 | * | yglukhov joined #nim |
21:33:20 | ldlework | btw, -r isn't shorthand for -release |
21:34:08 | Sys | It's shorthand for run I know |
21:34:25 | ldlework | ok :) |
21:35:21 | Sys | I was just curious whether the exectuables created by both differ, as in if I did nim c -r code.nim whether that requires dependencies or not |
21:37:16 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
21:37:48 | * | xaoz_ joined #nim |
21:39:34 | * | filwit quit (Ping timeout: 250 seconds) |
21:40:39 | * | dorei quit (Ping timeout: 268 seconds) |
21:42:38 | * | xaoz_ quit () |
21:43:02 | * | dorei joined #nim |
21:57:31 | * | mat4 quit (Quit: Leaving) |
22:00:09 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
22:03:00 | * | space-wizard joined #nim |
22:17:16 | * | mahasamoot quit (Ping timeout: 250 seconds) |
22:24:57 | Sys | dom96: I'm heading out for a bit, just finished chapter two of your book. It's great so far. |
22:25:46 | * | Sys quit (Quit: Page closed) |
22:37:17 | * | boopsies is now known as boopsiesisaway |
22:51:56 | * | miko__ quit (Ping timeout: 250 seconds) |
22:52:58 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
22:57:07 | * | space-wizard joined #nim |
22:57:45 | * | space-wizard quit (Client Quit) |
23:01:42 | * | space-wizard joined #nim |
23:02:02 | * | space-wizard quit (Client Quit) |
23:03:44 | federico3 | dom96: http://nimbench.firelet.net/ the sources are published, see link at the bottom |
23:04:17 | * | pregressive quit (Remote host closed the connection) |
23:07:53 | * | mahasamoot joined #nim |
23:08:12 | * | space-wizard joined #nim |
23:08:55 | * | space-wizard quit (Max SendQ exceeded) |
23:09:46 | * | space-wizard joined #nim |
23:12:04 | federico3 | someone good with CSS? |
23:12:31 | ldlework | no one is 'good' with CSS |
23:12:48 | ldlework | there are some people who can withstand the pain for longer |
23:20:39 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:36:18 | * | dorei quit () |
23:37:55 | * | yglukhov quit (Remote host closed the connection) |
23:38:26 | * | Varriount_ quit (Ping timeout: 268 seconds) |
23:41:54 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
23:42:10 | * | Trustable quit (Remote host closed the connection) |
23:45:41 | * | jaco60 quit (Ping timeout: 250 seconds) |
23:45:58 | * | space-wizard joined #nim |
23:52:01 | * | jaco60 joined #nim |
23:55:39 | * | [CBR]Unspoken quit (Ping timeout: 250 seconds) |
23:59:58 | * | mahasamoot quit (Ping timeout: 250 seconds) |