<< 21-03-2016 >>

00:05:50cheatfateVarriount, are you here?
00:06:23cheatfatewhat are you going to do with https://github.com/Varriount/nimrod-libcef
00:13:15*kulelu88 left #nim ("Leaving")
00:40:31*francisl joined #nim
00:43:08*irrequietus quit ()
00:54:11*francisl quit (Quit: francisl)
01:16:37*vendethiel joined #nim
01:25:27*francisl joined #nim
01:38:11*vendethiel quit (Ping timeout: 248 seconds)
02:05:32*brson quit (Ping timeout: 260 seconds)
02:25:33*vendethiel joined #nim
02:48:49*vendethiel quit (Ping timeout: 240 seconds)
03:36:44*brson joined #nim
04:00:42*Heartmender quit (Ping timeout: 268 seconds)
04:11:37*Heartmender joined #nim
04:11:58*Heartmender is now known as Guest69086
04:15:32*endragor joined #nim
04:15:52*endragor quit (Remote host closed the connection)
04:16:21*endragor joined #nim
04:17:32*krux02 quit (Remote host closed the connection)
04:30:31*desophos quit (Read error: Connection reset by peer)
04:40:25*francisl quit (Quit: francisl)
05:02:06*brson quit (Ping timeout: 276 seconds)
05:09:49*_stowa joined #nim
05:37:40*endragor quit (Remote host closed the connection)
05:50:15*endragor joined #nim
05:50:27*Demon_Fox joined #nim
06:22:50*gokr joined #nim
06:24:03*endragor_ joined #nim
06:28:03*endragor quit (Ping timeout: 264 seconds)
06:30:14*bjz joined #nim
06:38:23*endragor_ quit (Remote host closed the connection)
06:38:52*endragor joined #nim
06:54:41*gunn_ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
07:49:16*rok joined #nim
08:11:37*alex__ joined #nim
08:12:38alex__Hello,I followed installation steps,but got "warning: "./..." matched no packages",why?
08:14:24*Gonzih quit (Quit: WeeChat 1.4)
08:15:51*Gonzih joined #nim
08:17:51*endragor quit (Remote host closed the connection)
08:18:12*Gonzih quit (Client Quit)
08:18:37*Gonzih joined #nim
08:19:54veganskalex__, hi! On which step you receive this warning?
08:20:16alex__cd csources && sh build.sh
08:26:27veganskHmm, works for me. But I use devel branch and the documentation describes master. Publish full build log on pastebin please
08:30:18*endragor joined #nim
08:32:50*yglukhov joined #nim
08:33:16*Trustable joined #nim
08:54:24*vendethiel joined #nim
08:57:44*dorei joined #nim
08:59:15*themagician joined #nim
09:11:57alex__nothing,that is all I got
09:12:26alex__I have asked a question here:https://github.com/nim-lang/Nim/issues/3974
09:13:11*Gonzih quit (Read error: Connection reset by peer)
09:18:27*vendethiel quit (Ping timeout: 264 seconds)
09:20:01*Gonzih joined #nim
09:35:02Varriountcheatfate: I should probably delete it. I doubt it works.
09:44:53cheatfateVarriount, libCEF your your wrapper?
10:01:53*darkf quit (Quit: Leaving)
10:02:08veganskalex__, see my comment here: https://github.com/nim-lang/Nim/issues/3974
10:02:15*yglukhov quit (Ping timeout: 246 seconds)
10:05:18alex__ls show :build64.bat build.bat build.sh c_code makefile readme.markdown scripts.nim
10:14:29*yglukhov joined #nim
10:14:31*yglukhov quit (Remote host closed the connection)
10:15:04*yglukhov joined #nim
10:20:58*vendethiel joined #nim
10:22:06veganskalex__, run sh in verbose mode as described in the issue
10:23:23alex__result added
10:23:35cheatfatealex__, "please give uname -a" result also
10:24:18cheatfateand to be exactly sure, you following instructions from "Installation from github" or "Installation based on generated C code"
10:25:17*endragor quit (Remote host closed the connection)
10:25:42cheatfate?
10:27:54alex__"unamr -r" shows 3.13.0-74-generic
10:30:28veganskalex__, show the result of the cmd: echo `uname -m` | tr "[:upper:]" "[:lower:]"
10:32:03alex__warning: "./..." matched no packages
10:32:03alex__no packages to test
10:33:01veganskok, next command: which tr
10:33:24alex__I have a customized alias called "tr" too,so stupid
10:33:53veganskbingo! :-)
10:34:15cheatfateaaand?
10:34:33cheatfatevegansk, stop doing like dr. house, explain :)
10:35:29alex__working now,thank you guys
10:36:34alex__here is a little bit quite
10:37:30cheatfatehmm interesting is it possible to adopt sh file not to use aliases?
10:39:15flyxpossibly this: /usr/bin/env tr
10:39:59alex__maybe,putting a detection in the front of installation script is better
10:40:50cheatfatehttps://en.wikipedia.org/wiki/Alias_(command)#Overriding_aliases
10:41:26cheatfateI'm not very good with shell scripting but somebody needs to patch it so it must not depend on user environment
10:41:54cheatfatealex__, please reopen Issue i will add this comment
10:43:08*arnetheduck joined #nim
10:44:00*vendethiel quit (Ping timeout: 276 seconds)
10:50:59veganskcheatfate, maybe it's better to use ``unalias`` in the beginning of the script and leave the rest of the script unmodified
10:52:11cheatfateis it supported by ksh, zsh, csh, tcsh, bash and many others?
10:55:01veganskwe don't need wide support for it, only for the shell used in this concrete script
10:56:04veganskfor bash, we can use ``unalias -a`` to disable aliases completely, need to check the others.
10:57:05cheatfatefor csh - ``unalias *``
10:57:30cheatfatebut i think ``unalias -a`` is also will work
10:58:23veganskjust checked on ubuntu 14.04. it works
10:59:40*Demon_Fox quit (Quit: Leaving)
11:04:31cheatfateits a problem, bash works with ``unalias -a``, but not working with ``unalias *``. csh/tcsh dont know anything about ``unalias -a`` but working good with ``unalias *``
11:04:41veganskzsh needs ``unalias -m *``
11:07:10cheatfateksh working with ``unalias -a`` and ``unalias *`` fine
11:07:44cheatfatethere also ash and dash
11:08:00cheatfateand busybox shell
11:08:23cheatfateand i think it will be enough
11:08:37veganskyes, but we need it to work with ``/bin/sh`` and for lunuxes it's bash or dash.
11:09:01vegansks/lunuxes/linuxes/
11:09:36veganskwhat about the other unixes?
11:10:10cheatfatewe can make ``unalias AA BB CC DD EE FF GG``
11:16:37cheatfatefound this http://stackoverflow.com/questions/3327013/how-to-determine-the-current-shell-im-working-on and this is real pain
11:17:17veganskI think that it's hard to maintain the list of the needed commands
11:18:31cheatfatethis build.sh is generated
11:19:06veganskI know, we need to maintain the template.
11:19:23veganskAnother idea, we can use #!/usr/bin/env bash
11:20:46cheatfatebut openbsd/freebsd/netbsd and some linuxes not install bash by default
11:21:59cheatfatei think the most easy way to modify Nim/tools/niminst/buildsh.tmpl and add `XXX` to executed commands
11:23:01veganskCrazy variant: call ``unalias -a``. If it fails, call ``unalias *``. And if it fails too, call ``unalias -m *`` :-)
11:24:04*Demon_Fox joined #nim
11:26:24*endragor joined #nim
11:31:03*endragor quit (Ping timeout: 264 seconds)
11:34:18veganskCan anybody explain me please, what's the problem with this code: https://gist.github.com/vegansk/4ac21b238c4d4bf329da.
11:47:06cheatfatemacro magic :)
11:58:44*endragor joined #nim
12:13:07*alex__ quit (Quit: Leaving)
12:19:18*francisl joined #nim
12:19:35*Arrrr joined #nim
12:33:26*boopsiesisaway is now known as boopsies
12:34:09*bjz quit (Ping timeout: 260 seconds)
12:36:53*bjz joined #nim
12:39:39*krux02 joined #nim
12:52:09*rok quit (Quit: rok)
13:15:55*rok joined #nim
13:22:06*francisl quit (Quit: francisl)
13:29:52*enthus1ast joined #nim
13:32:19enthus1astAny idea why a program with only imports ospaths is not compiling. Error: c:\nim\lib\pure\ospaths.nim(173, 19) Error: invalid pragma: rtl
13:32:32enthus1asthave i broken my nim installation? : )
13:36:34ArrrrYou are no alone: invalid pragma: rtl
13:54:19def-enthus1ast: just import os
14:10:13enthus1astdef-: Nope
14:10:28enthus1asteven then still the same
14:11:05enthus1astoh import os instead of ospaths
14:11:40enthus1astyeah thx def-
14:19:10*vendethiel joined #nim
14:34:10*saml joined #nim
14:39:57*zama quit (Ping timeout: 276 seconds)
14:42:03*zama joined #nim
14:42:15*vendethiel quit (Ping timeout: 246 seconds)
14:48:25*bamorim joined #nim
15:07:08*dorei quit (Ping timeout: 252 seconds)
15:16:09*vendethiel joined #nim
15:20:45*arnetheduck quit (Ping timeout: 244 seconds)
15:22:28Arrrralso have a look at osprocs
15:30:11*desophos joined #nim
15:38:00*endragor_ joined #nim
15:40:00*uryga joined #nim
15:40:03*vendethiel quit (Ping timeout: 264 seconds)
15:40:53urygahey, ii have a question about slicing sequences
15:40:57def-uryga: hi
15:41:34urygais there a way to do something like pythons mylist[n:] ? or mylist[:n] for that matter
15:41:42*endragor quit (Ping timeout: 276 seconds)
15:42:27*endragor_ quit (Ping timeout: 244 seconds)
15:43:04urygai know you can do myNimList[n..x] to specify the range of the slice
15:43:17def-^1 is the last element in the list
15:43:29urygaah!
15:43:33def-so you can do [3..^1]
15:43:39def-and [..3] also works
15:43:47enthus1astnice to know ;)
15:43:48def-(but not sure if it's more readable than [0..3]
15:44:35urygawe can't have [3..] because there's no postfix operators right?
15:45:44def-sounds like a reasonable guess
15:46:49*dorei joined #nim
15:46:51urygathat's a shame
15:47:14urygait'd be really nice to have a symmetric [..n] and [n..]
15:50:32*vendethiel joined #nim
15:51:24*jeffc joined #nim
15:52:42urygait would probably require adding `..` as another special case of postfix though :/
16:03:22*mahasamoot joined #nim
16:06:21Arrrrhow does 3.. works in python? Like 'from three to last element' ?
16:07:56def-Arrrr: from the fourth element to end, but it's [3:] in python
16:08:21*bamorim quit (Ping timeout: 246 seconds)
16:11:52*dorei quit (Quit: Page closed)
16:14:01*vendethiel quit (Ping timeout: 240 seconds)
16:25:24Araquryga: not really, we can make every operator coming before ) } ] , ; a postfix operator
16:26:00Araqproc `..`(b: int) {.postfix.} is a bit ugly
16:27:16*brson joined #nim
16:27:29Araqhow can I call such a postfix operator via `` then? not at all?
16:30:00urygawhat's wrong with using a postfix pragma?
16:30:12urygaidk, doesn't look bad
16:32:24*yglukhov_ joined #nim
16:33:25Araqas I said, that's overloading by operator position
16:33:31Araq..1 vs 1..
16:33:57Araqthe language supports calling the operator like so `..`(1)
16:34:05*macbeth joined #nim
16:34:18Araqso how can I use that notation for the postfix .. ?
16:35:09*yglukhov quit (Ping timeout: 244 seconds)
16:35:20urygalet's just do proc (int n) `..`
16:35:23uryga;)
16:35:57def-uryga: it's not about how you define it, it's about how you use the proc without using postfix notation
16:36:35def-an idea would be to have an additional keyword for calling postfix operators like that, but I'd be against that
16:36:44*yglukhov_ quit (Ping timeout: 244 seconds)
16:37:04Arrrrlike post(`..`(1)) ?
16:37:41Araq`.. "postfix"`(1)
16:37:52Araqwould work I think
16:38:31urygawhy the quotes?
16:39:07Araqi don't remember the details of what Nim allows in the backticks :P
16:39:31Araqiirc `..postfix` is currently already allowed
16:45:13urygalooks ok
16:45:50uryga`..postfix`(3)
16:48:13urygais that possible to implement now, as a macro or template? or are you talking about general ideas for a syntax for that
16:48:30urygastill pretty new to Nim so i can't really tell
16:50:33ArrrrThere is no way to define postfix operators in nim. Your question raised a new crisis in nim's community
16:52:44*uryga quit (Ping timeout: 252 seconds)
16:54:38*uryga joined #nim
16:57:21urygahaha ok
16:58:30uryganow that i think of it, i remember some manual/tutorial said nim won't have postfix ops because of potential parsing ambiguity?
17:00:38uryga"Postfix operators are not possible, because this would be ambiguous: does a @ @ b mean (a) @ (@b) or (a@) @ (b)? It always means (a) @ (@b), because there are no postfix operators in Nim."
17:03:59*boopsies is now known as boopsiesisaway
17:09:11*uryga quit (Quit: Page closed)
17:18:14*Riviera- quit (Ping timeout: 260 seconds)
17:24:34*uryga joined #nim
17:24:38*UberLambda joined #nim
17:26:40*yglukhov joined #nim
17:30:49*Riviera- joined #nim
17:31:00*yglukhov quit (Ping timeout: 244 seconds)
17:56:15*vendethiel joined #nim
18:01:21*yglukhov joined #nim
18:10:50*macbeth quit (Ping timeout: 252 seconds)
18:32:26*uryga quit (Quit: Hermes - Material IRC Client - https://numixproject.org/)
18:35:24*enthus1ast quit (Ping timeout: 252 seconds)
18:38:03*vendethiel quit (Ping timeout: 240 seconds)
18:41:46*uryga joined #nim
18:46:36*Arrrr_ joined #nim
18:46:42*Arrrr_ quit (Client Quit)
18:49:21*Arrrr quit (Ping timeout: 246 seconds)
18:51:12*yglukhov quit (Remote host closed the connection)
18:58:48*Arrrr joined #nim
18:58:48*Arrrr quit (Changing host)
18:58:48*Arrrr joined #nim
19:02:47*vendethiel joined #nim
19:14:20*yglukhov joined #nim
19:28:34*gunn joined #nim
19:30:15*Arrrr quit (Quit: WeeChat 1.4)
19:45:34urygahey, i have a problem with slices (again...)
19:46:43urygaactually, seems like a compiler bug. It doesn't compile on either of the two Windows pc's I tested, but works just fine on ideone.com
19:47:03urygacan anyone test it if it works for them?
19:47:04urygahttp://ideone.com/mY1Gi0
20:06:54*brson quit (Ping timeout: 276 seconds)
20:08:26*brson joined #nim
20:14:10*UberLambda quit (Quit: GTG)
20:18:25def-uryga: looks like a new bug to me. works with spaces: myList[2 .. ^1]
20:18:45urygafound solution too
20:18:56uryga*that solution
20:31:35*toaoMgeorge quit (Read error: Connection reset by peer)
20:32:34*toaoMgeorge joined #nim
20:32:58*yglukhov quit (Remote host closed the connection)
20:34:03*macbeth joined #nim
20:36:24*darkf joined #nim
20:50:31*enthus1ast joined #nim
21:00:13*francisl joined #nim
21:05:47*mahasamoot_ joined #nim
21:08:13*mahasamoot quit (Ping timeout: 248 seconds)
21:12:28*francisl quit (Quit: francisl)
21:17:28*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:22:04*francisl joined #nim
21:27:05*rok quit (Quit: rok)
21:28:25*Ven quit (Ping timeout: 268 seconds)
21:30:26*Ven joined #nim
21:32:18*desophos_ joined #nim
21:35:16*desophos_ quit (Remote host closed the connection)
21:35:18*desophos quit (Ping timeout: 276 seconds)
21:36:10*desophos joined #nim
21:42:25*bjz joined #nim
21:49:50*bjz quit (Ping timeout: 244 seconds)
21:51:24*desophos quit (Remote host closed the connection)
21:52:52*francisl quit (Quit: francisl)
22:07:50*francisl joined #nim
22:19:02*boopsiesisaway is now known as boopsies
22:23:43*francisl quit (Quit: francisl)
22:25:39*desophos joined #nim
22:29:18*desophos quit (Remote host closed the connection)
22:31:00*desophos joined #nim
22:33:14*desophos quit (Read error: Connection reset by peer)
22:33:17*Trustable quit (Remote host closed the connection)
22:33:20*desophos_ joined #nim
22:40:57*vendethiel quit (Ping timeout: 276 seconds)
22:46:56*desophos_ is now known as desophos
23:00:49*boopsies is now known as boopsiesisaway
23:05:25*francisl joined #nim
23:10:11*yglukhov joined #nim
23:14:33*yglukhov quit (Ping timeout: 244 seconds)
23:23:49*francisl quit (Quit: francisl)
23:31:19*vendethiel joined #nim
23:33:02Varriountonionhammer: I'm programming a 'rename' command for NimLime, and would value your input.
23:33:44Varriountonionhammer: Should such a command notify the user when modifying multiple files? What about if some files to be modified aren't open?
23:46:58*desophos quit (Remote host closed the connection)
23:47:51*desophos joined #nim
23:49:24*saml_ joined #nim
23:53:35*bamorim joined #nim
23:54:32*vendethiel quit (Ping timeout: 260 seconds)
23:56:20*yuta joined #nim