<< 01-12-2016 >>

00:00:57*elrood quit (Quit: Leaving)
00:01:11*themagician quit ()
00:04:50FromGitter<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:58Varriount|Mobilekonqoro: The shell and window manager are written in C and C++
00:08:43Varriount|MobileSome of the newer system menus might be using C#, but those run in their own process
00:12:20FromGitter<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:45Varriount|MobileKonqoro: You and me both.
00:13:52FromGitter<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:11FromGitter<konqoro> haven't used it match
00:14:36Varriount|MobileIt only tends to happen due to bugs in the display driver
00:15:31FromGitter<konqoro> yes plasmashell depends on opengl
00:15:37Varriount|MobileAt least there's the built-in firewall. You can target specific programs with that.
00:16:02FromGitter<konqoro> on windows?
00:17:00FromGitter<konqoro> or you mean iptables
00:17:40*Matthias247 quit (Read error: Connection reset by peer)
00:17:42Varriount|MobileOn Windows
00:18:04Varriount|MobileWindows does have a built-in firewall
00:20:32FromGitter<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:40Varriount|MobileIt's rule based, where the rules can be based on programs, ports, and/or ip addresses
00:25:22Varriount|MobileI don't think you can specify MAC as a rule attribute though
00:26:19FromGitter<konqoro> yeah that 's what I meant with policies
00:26:35*libman quit (Quit: Leaving.)
00:26:40FromGitter<konqoro> not mac addreses
00:26:44*libman joined #nim
00:28:53FromGitter<konqoro> mandatory access controls
00:28:59*Snircle joined #nim
00:29:12Varriount|MobileAh
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:36vktecI 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:48jh32hi
09:02:51Varriount|Mobilevktec: How about webassembly
09:03:08vktecVarriount|Mobile: Yeah, good idea
09:03:33*shodan45 quit (Ping timeout: 248 seconds)
09:06:18jh32when 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:54jh32is this possible or is there some better alternative to using zip?
09:06:59vktecVarriount|Mobile: Ooh, looks like wasm is generated from ASTs, which would make it quite a bit easier, I expect
09:10:22Varriount|Mobilejh32: It's possible, but probably not practical
09:11:14flyxjh32: `for a, b in zip(a, b).items:`
09:11:33flyxwell, wanna use `for x,y...`
09:12:11jh32flyx: hah, perfect thanks
09:12:51flyxbe 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:36ArrrrThat 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:45Varriount|Mobileflyx: 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:16def-Arrrr: why would you have to write that?
10:58:19*space-wi_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10:59:45Arrrrbetter example: seq[Button] = @[PrintButton.Button, SaveButton, LoadButton]
11:00:33def-you can leave out the ": seq[Button]" if that's what you don't like
11:02:22ArrrrMm, 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:11def-should work
11:03:18def-proc f(x = 1) = echo x
11:07:42ArrrrMmm, you are right again, with isolated code i don't have that problem. I have to find the reason of this.
11:08:07ArrrrMight 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:57vktecWhat happened to sexp's docs page? :o
12:23:09vktec(I get 404 on http://nim-lang.org/docs/sexp.html)
12:27:52vktecOh, it was moved into nimsuggest and is no longer externally accessible. That's a shame
12:49:10Araqvktec: and nimsuggest was moved back into trunk
12:49:23Araqso it's available again :-)
12:49:31Araq(but docs need to be regenerated)
12:49:35vktecAraq: Yes, but I can't seem to access it from my own programs
12:50:02vktecI've tried import sexp, import nimsuggest/sexp and import tools/nimsuggest/sexp
12:50:07arnetheduckAraq, branch ping ;)
12:52:09Araqtry import "$nim/tools/nimsuggest/sexp" perhaps
12:52:15Araqor modify your --path
12:53:22vktecI 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:58vktecAraq: 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:06Varriount|Mobilevktec: The compiler doesn't use any libraries for parsing. It does it manually
12:56:15*ARCADIVS quit (Quit: ARCADIVS)
12:56:17vktecOh, I see
12:57:19vktecI might just go with a simple finite state machine-based thing, perhaps backed by lexbase
13:00:05Araqvktec: I like lexbase, apparently nobody else does though
13:00:19Araqbut copy the library over to your project instead of hacking your own
13:00:39Araqunless you do it for the fun of it
13:01:08vktecWell, 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:00Varriount|MobileAraq: Well, purchase doesn't really have much documentation on how you're supposed to use it.
13:34:07Varriount|Mobile*lexbase
13:38:49Varriount|MobileAraq: suppose I had time to write a wrapper for most of the Windows API. How would the wrapper library be structured?
13:39:41Varriount|MobilePutting 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:29FromGitter<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:54FromGitter<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:08FromGitter<ephja> maybe in about 2018 ;)
14:40:33vktecWhat's the best way to do a "repeat while" loop in Nim?
14:40:51vktec(ie. a while loop that checks at the end of each iteration, rather than the beginning)
14:42:18FromGitter<ephja> `while true: ...` I think
14:42:29vktecFair enough
14:43:29*PMunch quit (Quit: leaving)
14:45:56Varriount|PhoneWhile true with a break statement at the end
14:47:35FromGitter<ephja> https://www.rosettacode.org/wiki/Loops/Do-while#Nim
14:50:48vktecTurns out I don't actually need a do while loop here, hehe
14:50:58vktecThanks for the recommendations though
14:52:01*rolha quit (Quit: Textual IRC Client: www.textualapp.com)
14:53:12vktecWhich is more efficient to append to the end of: seq[char]s or strings?
14:54:49flyxAraq: well NimYAML uses lexbase, but the main drawback is that it isn't available for JS
15:01:11Varriount|Phonevktec: Both use the same copy mechanism
15:01:22vktecVarriount|Phone: So it's the same?
15:01:37Varriount|Phonevktec: Yes.
15:01:51vktecThought it might be, but wanted to check, just in case. Thanks!
15:02:23Varriount|PhoneBoth strings and sequences are array-based containers that resize when needed.
15:10:22euantorAraq: I likelexbase too. I don't like the documentation particularly, but the actual module is nice ;)
15:11:38vktecFrom the small amount of use I've made of it, it's pretty handy
15:17:15*couven92 quit (Quit: Client disconnecting)
15:18:45AraqVarriount|Phone: use the header files as a guideline?
15:19:04Araqwindows.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:10vktecIs it possible to have fall-through in Nim's case statements?
15:45:10*gmpreussner joined #nim
15:47:24flyxvktec: no, afaik
15:47:32flyxvktec: unless you use emit of coure
15:47:35flyx*course
15:47:40vktecOkay, I'll do it another way
15:51:06*shodan45 joined #nim
16:06:08Araqvktec: if you want multiple values, use of 1, 3, 4
16:06:28vktecAraq: I don't :P
16:06:45vktecI've done it with an if
16:07:27Araqok
16:10:34*Andris_zbx quit (Remote host closed the connection)
16:11:05vktecOne more thing about case statements: What's the preferred style? Colon + indentation or not?
16:11:34Araqnot.
16:12:50vktecOkay
16:13:13vktecI thought so, because that's how it's used in the compiler source, but I thought I'd check, just in case
16:15:29Araqcase x: makes little sense, not a list of statements does follow but a list of branches
16:16:13vktecThat'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:39vktecexpr is heading for deprecation, correct?
16:49:00*brson joined #nim
16:49:23*wuehlmaus joined #nim
16:49:42vktecCorrect 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:22vktecOh, nvm, it's untyped
16:58:36*ibk quit (Quit: Connection closed for inactivity)
17:08:04Varriount|PhoneAraq: typed and untyped are much easier to understand than stmt and expr
17:08:37vktecVarriount|Phone: I think that's why the change was made :P
17:10:10vktecWhat'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:42federico3vktec: toSeq ?
17:23:01federico3vktec: inside sequtils
17:23:04vktecThat'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:06federico3how 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:18krux02Is 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:40krux02I just realized the code that runs to initialize the first {.global.} variable is executed before all other {.global.} variables.
19:25:06krux02now I just need to make sure to have one global variable before all others
19:56:21vktecHow 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:19krux02vktec: what do you mean?
20:15:37krux02you need forward declaration for the secod procedure
20:16:39vktecI've got a proc calling an iterator which calls the proc
20:16:39krux02a forward declaration is like a function definition just until the = (excluding)
20:16:53vktecI've tried doing forward declaration on the iterator, but it errored
20:17:11vktecShould I move the iterator above the proc and use forward declaration with the proc?
20:17:26krux02vktec: with that precision I can give you a very precise answer: use forward declaration
20:17:34vktecOkay :)
20:19:24krux02I 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:32krux02ok 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:44vktecIf 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)