00:00:57 | * | elrood quit (Quit: Leaving) |
00:01:11 | * | themagician quit () |
00:04:50 | FromGitter | <konqoro> apart from that they are quite diffrent, Kde uses Qt, Windows are written with .NET, I guess? |
00:05:26 | * | dmi0 joined #nim |
00:07:58 | Varriount|Mobile | konqoro: The shell and window manager are written in C and C++ |
00:08:43 | Varriount|Mobile | Some of the newer system menus might be using C#, but those run in their own process |
00:12:20 | FromGitter | <konqoro> I think Microsoft employs many good engineers and so they have stabilized a lot their DE from previous releases, but I am concerned about tracking |
00:13:45 | Varriount|Mobile | Konqoro: You and me both. |
00:13:52 | FromGitter | <konqoro> I mean I had a few crashes with plasmashell but I never seen windows 10 crash when interracting with the desktop, I can be wrong though |
00:14:11 | FromGitter | <konqoro> haven't used it match |
00:14:36 | Varriount|Mobile | It only tends to happen due to bugs in the display driver |
00:15:31 | FromGitter | <konqoro> yes plasmashell depends on opengl |
00:15:37 | Varriount|Mobile | At least there's the built-in firewall. You can target specific programs with that. |
00:16:02 | FromGitter | <konqoro> on windows? |
00:17:00 | FromGitter | <konqoro> or you mean iptables |
00:17:40 | * | Matthias247 quit (Read error: Connection reset by peer) |
00:17:42 | Varriount|Mobile | On Windows |
00:18:04 | Varriount|Mobile | Windows does have a built-in firewall |
00:20:32 | FromGitter | <konqoro> it is a MAC firewall (like SELinux) right? |
00:22:41 | * | dmi0 quit (Remote host closed the connection) |
00:23:08 | * | dmi0 joined #nim |
00:24:40 | Varriount|Mobile | It's rule based, where the rules can be based on programs, ports, and/or ip addresses |
00:25:22 | Varriount|Mobile | I don't think you can specify MAC as a rule attribute though |
00:26:19 | FromGitter | <konqoro> yeah that 's what I meant with policies |
00:26:35 | * | libman quit (Quit: Leaving.) |
00:26:40 | FromGitter | <konqoro> not mac addreses |
00:26:44 | * | libman joined #nim |
00:28:53 | FromGitter | <konqoro> mandatory access controls |
00:28:59 | * | Snircle joined #nim |
00:29:12 | Varriount|Mobile | Ah |
00:33:17 | * | dmi0 quit (Ping timeout: 240 seconds) |
00:34:17 | * | PMunch quit (Quit: leaving) |
00:40:20 | * | dmi0 joined #nim |
00:50:00 | * | dmi00 joined #nim |
00:50:26 | * | dmi0 quit (Ping timeout: 268 seconds) |
01:05:02 | * | dmi0 joined #nim |
01:05:36 | * | dmi00 quit (Ping timeout: 246 seconds) |
01:08:46 | * | brson joined #nim |
01:09:36 | * | dmi00 joined #nim |
01:11:06 | * | brson_ quit (Quit: leaving) |
01:11:21 | * | dmi0 quit (Ping timeout: 244 seconds) |
01:14:36 | * | couven92 quit (Quit: Client disconnecting) |
01:16:41 | * | yglukhov quit (Remote host closed the connection) |
01:32:54 | * | ofelas quit (Ping timeout: 246 seconds) |
01:36:37 | * | yglukhov joined #nim |
01:37:36 | * | pregressive joined #nim |
01:41:20 | * | yglukhov quit (Ping timeout: 260 seconds) |
01:43:03 | * | pregressive quit (Ping timeout: 258 seconds) |
01:49:04 | * | dmi00 quit (Ping timeout: 244 seconds) |
01:51:54 | * | libman quit (Quit: Leaving.) |
02:09:01 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
02:19:26 | * | yglukhov joined #nim |
02:23:37 | * | yglukhov quit (Ping timeout: 240 seconds) |
02:24:42 | * | krux02 quit (Remote host closed the connection) |
03:01:43 | * | yglukhov joined #nim |
03:02:32 | * | chemist69 quit (Ping timeout: 260 seconds) |
03:05:53 | * | yglukhov quit (Ping timeout: 245 seconds) |
03:15:54 | * | chemist69 joined #nim |
03:35:34 | * | brson quit (Quit: leaving) |
04:23:41 | * | yglukhov joined #nim |
04:30:42 | * | yglukhov quit (Ping timeout: 246 seconds) |
04:43:29 | * | space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
04:58:27 | * | Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif) |
05:02:57 | * | chemist69 quit (Ping timeout: 240 seconds) |
05:07:53 | * | chemist69 joined #nim |
05:08:53 | * | yglukhov joined #nim |
05:15:48 | * | yglukhov quit (Ping timeout: 258 seconds) |
05:48:58 | * | yglukhov joined #nim |
05:53:20 | * | yglukhov quit (Ping timeout: 260 seconds) |
05:55:06 | * | nsf joined #nim |
06:06:08 | * | brechtm quit (Read error: Connection reset by peer) |
06:06:46 | * | brechtm joined #nim |
06:13:01 | * | brechtm quit (Read error: Connection reset by peer) |
06:14:33 | * | brechtm joined #nim |
06:21:45 | * | yglukhov joined #nim |
06:26:28 | * | yglukhov quit (Ping timeout: 260 seconds) |
07:02:38 | * | ofelas joined #nim |
07:20:50 | * | irrequietus joined #nim |
07:21:06 | * | irrequietus quit (Client Quit) |
07:31:09 | * | chemist69 quit (Ping timeout: 260 seconds) |
07:33:46 | * | chemist69 joined #nim |
07:34:07 | * | ibk joined #nim |
07:55:57 | * | ARCADIVS joined #nim |
07:59:51 | * | Arrrr joined #nim |
08:27:15 | * | Xe quit (Ping timeout: 260 seconds) |
08:27:15 | * | dyce_ quit (Ping timeout: 260 seconds) |
08:31:49 | * | Xe joined #nim |
08:35:24 | * | dyce_ joined #nim |
08:39:56 | * | Andris_zbx joined #nim |
08:44:27 | * | yglukhov joined #nim |
08:44:34 | * | yglukhov quit (Remote host closed the connection) |
08:45:49 | * | yglukhov joined #nim |
08:55:36 | vktec | I had an idea earlier: It'd be cool to try and get Nim running on a separate VM, such as BEAM or the JVM. Proably not particularly useful in the long run, but would be a pretty neat example of Nim's backends, and how that can improve cross-platform development, etc |
08:59:56 | * | couven92 joined #nim |
09:02:48 | jh32 | hi |
09:02:51 | Varriount|Mobile | vktec: How about webassembly |
09:03:08 | vktec | Varriount|Mobile: Yeah, good idea |
09:03:33 | * | shodan45 quit (Ping timeout: 248 seconds) |
09:06:18 | jh32 | when iterating over multiple lists with zip ('for x in zip(a, b):') i would like to like to split the pairs directliy like in Python with something like 'for (x, y) in zip(a, b):' instead of using x.a and x.b which can be a bit confusing |
09:06:54 | jh32 | is this possible or is there some better alternative to using zip? |
09:06:59 | vktec | Varriount|Mobile: Ooh, looks like wasm is generated from ASTs, which would make it quite a bit easier, I expect |
09:10:22 | Varriount|Mobile | jh32: It's possible, but probably not practical |
09:11:14 | flyx | jh32: `for a, b in zip(a, b).items:` |
09:11:33 | flyx | well, wanna use `for x,y...` |
09:12:11 | jh32 | flyx: hah, perfect thanks |
09:12:51 | flyx | be aware that you must give `.items` explicitly because when you give two variables, Nim would otherwise use `pairs` on the resulting list which yields (index, content) for each element |
09:18:28 | * | rokups joined #nim |
09:25:22 | * | byte512 joined #nim |
09:26:13 | * | space-wizard joined #nim |
09:27:36 | Arrrr | That feel when you have to write "let a: seq[A] = @[B.A]" |
09:40:52 | * | arnetheduck joined #nim |
09:43:23 | * | PMunch joined #nim |
09:48:45 | Varriount|Mobile | flyx: It's only a shame that you unpack more than two elements in a for statement |
10:00:58 | * | xet7 quit (Quit: Leaving) |
10:03:42 | * | dmi00 joined #nim |
10:04:24 | * | Yaiyan quit (Ping timeout: 260 seconds) |
10:04:24 | * | abruanese quit (Ping timeout: 260 seconds) |
10:04:59 | * | abruanese joined #nim |
10:06:52 | * | yaiyan joined #nim |
10:08:24 | * | dmi00 quit (Ping timeout: 250 seconds) |
10:23:57 | * | xet7 joined #nim |
10:35:39 | * | space-wi_ joined #nim |
10:36:44 | * | space-wizard quit (Ping timeout: 250 seconds) |
10:39:04 | * | kier quit (*.net *.split) |
10:40:29 | * | kier joined #nim |
10:52:43 | * | themagician joined #nim |
10:58:16 | def- | Arrrr: why would you have to write that? |
10:58:19 | * | space-wi_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
10:59:45 | Arrrr | better example: seq[Button] = @[PrintButton.Button, SaveButton, LoadButton] |
11:00:33 | def- | you can leave out the ": seq[Button]" if that's what you don't like |
11:02:22 | Arrrr | Mm, that's right, i did't know. But if im not mistaken, it doesn't work when you pass it as a proc arg |
11:03:11 | def- | should work |
11:03:18 | def- | proc f(x = 1) = echo x |
11:07:42 | Arrrr | Mmm, you are right again, with isolated code i don't have that problem. I have to find the reason of this. |
11:08:07 | Arrrr | Might be because of default arguments |
11:08:38 | * | couven92 quit (Ping timeout: 250 seconds) |
11:11:26 | * | couven92 joined #nim |
11:17:40 | * | dmi00 joined #nim |
11:24:11 | * | yaiyan is now known as Yaiyan |
11:39:34 | * | elrood joined #nim |
12:02:08 | * | Snircle joined #nim |
12:03:00 | * | brechtm_ joined #nim |
12:05:50 | * | brechtm quit (Ping timeout: 250 seconds) |
12:14:09 | * | vlad1777d joined #nim |
12:17:38 | * | [ui] joined #nim |
12:22:57 | vktec | What happened to sexp's docs page? :o |
12:23:09 | vktec | (I get 404 on http://nim-lang.org/docs/sexp.html) |
12:27:52 | vktec | Oh, it was moved into nimsuggest and is no longer externally accessible. That's a shame |
12:49:10 | Araq | vktec: and nimsuggest was moved back into trunk |
12:49:23 | Araq | so it's available again :-) |
12:49:31 | Araq | (but docs need to be regenerated) |
12:49:35 | vktec | Araq: Yes, but I can't seem to access it from my own programs |
12:50:02 | vktec | I've tried import sexp, import nimsuggest/sexp and import tools/nimsuggest/sexp |
12:50:07 | arnetheduck | Araq, branch ping ;) |
12:52:09 | Araq | try import "$nim/tools/nimsuggest/sexp" perhaps |
12:52:15 | Araq | or modify your --path |
12:53:22 | vktec | I might just implement my own sexp parser. It shouldn't be that hard and I've not written a parser in Nim before |
12:53:58 | vktec | Araq: What libraries should I look at for parsing? I'm guessing Nim has some good ones built in, because the compiler will probably need them |
12:56:06 | Varriount|Mobile | vktec: The compiler doesn't use any libraries for parsing. It does it manually |
12:56:15 | * | ARCADIVS quit (Quit: ARCADIVS) |
12:56:17 | vktec | Oh, I see |
12:57:19 | vktec | I might just go with a simple finite state machine-based thing, perhaps backed by lexbase |
13:00:05 | Araq | vktec: I like lexbase, apparently nobody else does though |
13:00:19 | Araq | but copy the library over to your project instead of hacking your own |
13:00:39 | Araq | unless you do it for the fun of it |
13:01:08 | vktec | Well, I'm partly doing it for fun, but I'll start with the existing one and strip out all the sexp generation stuff to see how it's implemented |
13:01:16 | * | brechtm_ quit (Remote host closed the connection) |
13:01:53 | * | brechtm joined #nim |
13:07:22 | * | rolha joined #nim |
13:21:28 | * | bjz joined #nim |
13:34:00 | Varriount|Mobile | Araq: Well, purchase doesn't really have much documentation on how you're supposed to use it. |
13:34:07 | Varriount|Mobile | *lexbase |
13:38:49 | Varriount|Mobile | Araq: suppose I had time to write a wrapper for most of the Windows API. How would the wrapper library be structured? |
13:39:41 | Varriount|Mobile | Putting everything into one module would be simple, if unfeasable (think of the compile times) |
13:48:46 | * | rolha quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
13:50:21 | * | rolha joined #nim |
13:55:13 | * | cnu- quit (Ping timeout: 258 seconds) |
14:09:35 | * | cnu- joined #nim |
14:12:29 | FromGitter | <ephja> *infeasible </gn> :) |
14:18:58 | * | Varriount|Mobile quit (Ping timeout: 265 seconds) |
14:18:58 | * | Varriount|Phone quit (Ping timeout: 265 seconds) |
14:19:09 | * | Varriount|Phone joined #nim |
14:21:17 | * | kier quit (Ping timeout: 258 seconds) |
14:29:43 | * | chemist69 quit (Ping timeout: 258 seconds) |
14:30:38 | * | chemist69 joined #nim |
14:31:33 | * | [ui] quit (Quit: Connection closed for inactivity) |
14:35:54 | FromGitter | <ephja> it would be nice to use a (21st century) statically typed language for this web project; preferably Nim, but it might not be a good idea yet since it involves user accounts and so on |
14:37:23 | * | kier joined #nim |
14:39:08 | FromGitter | <ephja> maybe in about 2018 ;) |
14:40:33 | vktec | What's the best way to do a "repeat while" loop in Nim? |
14:40:51 | vktec | (ie. a while loop that checks at the end of each iteration, rather than the beginning) |
14:42:18 | FromGitter | <ephja> `while true: ...` I think |
14:42:29 | vktec | Fair enough |
14:43:29 | * | PMunch quit (Quit: leaving) |
14:45:56 | Varriount|Phone | While true with a break statement at the end |
14:47:35 | FromGitter | <ephja> https://www.rosettacode.org/wiki/Loops/Do-while#Nim |
14:50:48 | vktec | Turns out I don't actually need a do while loop here, hehe |
14:50:58 | vktec | Thanks for the recommendations though |
14:52:01 | * | rolha quit (Quit: Textual IRC Client: www.textualapp.com) |
14:53:12 | vktec | Which is more efficient to append to the end of: seq[char]s or strings? |
14:54:49 | flyx | Araq: well NimYAML uses lexbase, but the main drawback is that it isn't available for JS |
15:01:11 | Varriount|Phone | vktec: Both use the same copy mechanism |
15:01:22 | vktec | Varriount|Phone: So it's the same? |
15:01:37 | Varriount|Phone | vktec: Yes. |
15:01:51 | vktec | Thought it might be, but wanted to check, just in case. Thanks! |
15:02:23 | Varriount|Phone | Both strings and sequences are array-based containers that resize when needed. |
15:10:22 | euantor | Araq: I likelexbase too. I don't like the documentation particularly, but the actual module is nice ;) |
15:11:38 | vktec | From the small amount of use I've made of it, it's pretty handy |
15:17:15 | * | couven92 quit (Quit: Client disconnecting) |
15:18:45 | Araq | Varriount|Phone: use the header files as a guideline? |
15:19:04 | Araq | windows.h consists of multiple headers, every header could be a Nim module |
15:41:42 | * | gmpreussner quit (Quit: kthxbye) |
15:41:48 | * | arnetheduck quit (Ping timeout: 260 seconds) |
15:42:10 | vktec | Is it possible to have fall-through in Nim's case statements? |
15:45:10 | * | gmpreussner joined #nim |
15:47:24 | flyx | vktec: no, afaik |
15:47:32 | flyx | vktec: unless you use emit of coure |
15:47:35 | flyx | *course |
15:47:40 | vktec | Okay, I'll do it another way |
15:51:06 | * | shodan45 joined #nim |
16:06:08 | Araq | vktec: if you want multiple values, use of 1, 3, 4 |
16:06:28 | vktec | Araq: I don't :P |
16:06:45 | vktec | I've done it with an if |
16:07:27 | Araq | ok |
16:10:34 | * | Andris_zbx quit (Remote host closed the connection) |
16:11:05 | vktec | One more thing about case statements: What's the preferred style? Colon + indentation or not? |
16:11:34 | Araq | not. |
16:12:50 | vktec | Okay |
16:13:13 | vktec | I thought so, because that's how it's used in the compiler source, but I thought I'd check, just in case |
16:15:29 | Araq | case x: makes little sense, not a list of statements does follow but a list of branches |
16:16:13 | vktec | That's a good point |
16:20:32 | * | wuehlmaus quit (Ping timeout: 260 seconds) |
16:25:46 | * | Arrrr quit (Quit: WeeChat 1.5) |
16:28:41 | * | [ui] joined #nim |
16:48:39 | vktec | expr is heading for deprecation, correct? |
16:49:00 | * | brson joined #nim |
16:49:23 | * | wuehlmaus joined #nim |
16:49:42 | vktec | Correct me if I'm wrong, but I think typed is the new version, right? |
16:49:47 | * | wuehlmaus is now known as Guest80905 |
16:51:22 | vktec | Oh, nvm, it's untyped |
16:58:36 | * | ibk quit (Quit: Connection closed for inactivity) |
17:08:04 | Varriount|Phone | Araq: typed and untyped are much easier to understand than stmt and expr |
17:08:37 | vktec | Varriount|Phone: I think that's why the change was made :P |
17:10:10 | vktec | What's the template/proc that converts an iterator to a seq again? I'm sure there is one, but can't find it now |
17:21:28 | * | pregressive joined #nim |
17:22:42 | federico3 | vktec: toSeq ? |
17:23:01 | federico3 | vktec: inside sequtils |
17:23:04 | vktec | That's the one, thanks federico3 |
17:30:33 | * | brechtm_ joined #nim |
17:33:00 | * | brechtm quit (Ping timeout: 250 seconds) |
17:33:54 | * | space-wizard joined #nim |
17:35:51 | * | Trustable joined #nim |
17:48:44 | * | Varriount|Phone quit (Read error: Connection reset by peer) |
17:56:10 | * | Varriount|Phone joined #nim |
18:06:04 | * | yglukhov_ joined #nim |
18:07:52 | * | kulelu88 joined #nim |
18:09:08 | * | yglukhov quit (Ping timeout: 250 seconds) |
18:09:34 | * | yglukhov joined #nim |
18:10:26 | * | yglukhov_ quit (Ping timeout: 256 seconds) |
18:13:56 | * | yglukhov quit (Ping timeout: 260 seconds) |
18:20:05 | * | Varriount|Phone quit (Read error: Connection reset by peer) |
18:42:57 | * | Varriount|Phone joined #nim |
18:48:09 | * | rynsin joined #nim |
18:48:29 | * | kulelu88 quit (Quit: Leaving) |
18:48:50 | * | yglukhov joined #nim |
18:53:06 | federico3 | how are named arguments used in subex? |
18:53:18 | * | yglukhov quit (Ping timeout: 268 seconds) |
18:56:43 | * | yglukhov joined #nim |
18:57:00 | * | Trustable quit (Remote host closed the connection) |
19:16:47 | * | rynsin quit (Quit: rynsin) |
19:20:10 | * | krux02 joined #nim |
19:21:18 | krux02 | Is it possible to execute code before {.global.} variables get initialized? |
19:21:43 | * | rynsin joined #nim |
19:22:15 | * | Varriount|Phone quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )) |
19:24:40 | krux02 | I just realized the code that runs to initialize the first {.global.} variable is executed before all other {.global.} variables. |
19:25:06 | krux02 | now I just need to make sure to have one global variable before all others |
19:56:21 | vktec | How can I implement a mutually recursive proc and iterator? The compiler complains with 'undeclared identifier' |
19:57:18 | * | rynsin quit (Quit: rynsin) |
19:57:53 | * | rynsin joined #nim |
19:58:03 | * | rynsin quit (Client Quit) |
19:58:34 | * | rynsin joined #nim |
20:00:45 | * | rynsin quit (Max SendQ exceeded) |
20:01:30 | * | rynsin joined #nim |
20:15:19 | krux02 | vktec: what do you mean? |
20:15:37 | krux02 | you need forward declaration for the secod procedure |
20:16:39 | vktec | I've got a proc calling an iterator which calls the proc |
20:16:39 | krux02 | a forward declaration is like a function definition just until the = (excluding) |
20:16:53 | vktec | I've tried doing forward declaration on the iterator, but it errored |
20:17:11 | vktec | Should I move the iterator above the proc and use forward declaration with the proc? |
20:17:26 | krux02 | vktec: with that precision I can give you a very precise answer: use forward declaration |
20:17:34 | vktec | Okay :) |
20:19:24 | krux02 | I just realized that we are now in an age of new programming languages that start to rise and grow, and as soon as the commutities go split the urge to join the communities back together will grow. |
20:20:32 | krux02 | ok that's my impression, I have no idea how true it is ;) |
20:29:17 | * | dmi00 quit (Ping timeout: 258 seconds) |
20:31:12 | * | chemist69 quit (Ping timeout: 258 seconds) |
20:31:33 | * | rynsin quit (Quit: rynsin) |
20:34:45 | * | yglukhov quit (Remote host closed the connection) |
20:36:18 | * | chemist69 joined #nim |
20:41:15 | * | yglukhov joined #nim |
20:53:47 | * | pregressive quit () |
20:59:24 | * | pregressive joined #nim |
21:01:34 | * | [ui] quit (Quit: Connection closed for inactivity) |
21:02:36 | * | rynsin joined #nim |
21:02:36 | * | rynsin quit (Client Quit) |
21:03:16 | * | rokups quit (Quit: Connection closed for inactivity) |
21:04:46 | * | rynsin joined #nim |
21:05:08 | * | rynsin quit (Client Quit) |
21:12:23 | * | libman joined #nim |
21:14:46 | * | pregressive quit (Remote host closed the connection) |
21:15:22 | * | pregressive joined #nim |
21:19:38 | * | pregressive quit (Ping timeout: 245 seconds) |
21:21:58 | * | dmi00 joined #nim |
21:41:07 | * | Matthias247 joined #nim |
21:45:31 | * | dmi0 joined #nim |
21:45:47 | * | dmi00 quit (Ping timeout: 256 seconds) |
21:54:16 | * | yglukhov quit (Remote host closed the connection) |
22:02:47 | * | nsf quit (Quit: WeeChat 1.6) |
22:19:20 | * | yglukhov joined #nim |
22:23:53 | * | yglukhov quit (Ping timeout: 260 seconds) |
22:32:36 | * | couven92 joined #nim |
22:38:30 | * | chemist69 quit (Ping timeout: 250 seconds) |
22:42:53 | * | yglukhov joined #nim |
22:43:04 | * | chemist69 joined #nim |
22:47:32 | * | yglukhov quit (Ping timeout: 256 seconds) |
23:00:00 | * | elrood quit (Remote host closed the connection) |
23:18:29 | * | rynsin joined #nim |
23:19:10 | * | rynsin quit (Client Quit) |
23:25:22 | * | yglukhov joined #nim |
23:26:11 | * | rynsin joined #nim |
23:29:41 | * | yglukhov quit (Ping timeout: 248 seconds) |
23:30:44 | vktec | If I do type A = B, can I use procs defined for B on A? |
23:49:19 | * | yglukhov joined #nim |
23:57:06 | * | yglukhov quit (Ping timeout: 250 seconds) |