<< 23-06-2017 >>

00:03:42*onionhammer1 quit (Ping timeout: 276 seconds)
00:04:47*nhywyll quit (Quit: nhywyll)
00:19:55*onionhammer1 joined #nim
00:49:27*user02 quit (Ping timeout: 240 seconds)
00:52:14*onionhammer joined #nim
00:52:38*user0 joined #nim
00:52:59*onionhammer1 quit (Ping timeout: 240 seconds)
00:58:00*PMunch quit (Quit: leaving)
01:27:45*druonysus joined #nim
01:29:15*CodeSnow is now known as pilne
01:31:57*rauss joined #nim
01:37:59*chemist69 quit (Disconnected by services)
01:38:04*chemist69_ joined #nim
01:40:59*Amrykid2 quit (Quit: Leaving)
01:49:27*user0 quit (Ping timeout: 240 seconds)
01:52:35*user0 joined #nim
01:56:49*user0 quit (Ping timeout: 255 seconds)
01:59:55*user0 joined #nim
02:19:42*NotSpooky joined #nim
02:24:32*user0 quit (Read error: Connection reset by peer)
02:29:06*user0 joined #nim
02:31:34*user0 quit (Read error: Connection reset by peer)
02:32:45*pilne quit (Quit: Quitting!)
02:52:51*Pisuke quit (Read error: Connection reset by peer)
02:53:57*Pisuke joined #nim
03:16:04*user0 joined #nim
03:18:05*user0 quit (Read error: Connection reset by peer)
03:22:45subsetparkdom96: interesting comments - I guess the thinking behind ref Deque was to allow many-to-one semantics. But maybe there's no difference between that and var Deque
03:24:14*user0 joined #nim
03:34:19*user0 quit (Ping timeout: 276 seconds)
03:48:33*jinshil joined #nim
03:49:53*NotSpooky quit (Quit: Leaving)
03:52:03*girvo joined #nim
03:54:52girvoQ: is it possible to have flags in a "nim.cfg" file be dependent on some command-line flag?
03:57:54*aerx quit (Quit: WeeChat 1.8)
04:10:06*druonysus quit (Remote host closed the connection)
04:17:43*rauss quit (Ping timeout: 260 seconds)
04:25:11*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
04:31:13*rauss joined #nim
04:34:28girvoAnd for another (probably dumb) question: how can I call a function from C that returns a Nim tuple?
04:54:32*Demos quit (Quit: Konversation terminated!)
05:00:52*girvo quit (Ping timeout: 260 seconds)
05:01:07*girvo joined #nim
05:04:47*Trioxin quit (Remote host closed the connection)
05:05:13*Trioxin joined #nim
05:23:17*vld joined #nim
05:32:20*Vladar joined #nim
06:06:47*xet7 joined #nim
06:10:16chrishellergirvo: Yes, you can do some basic checks in a .cfg file based on command line
06:11:36chrishellerFor example, we compile with either -d:arch64 or -d:arch32 on the command line
06:13:12chrishellerThe .cfg files have @if arch64: <some config settings for 64 bit> @else: <some config settings for 32 bit>
06:15:40*nsf joined #nim
06:22:35*girvo quit (Ping timeout: 240 seconds)
06:29:00*user0 joined #nim
06:31:25*user0 quit (Read error: Connection reset by peer)
06:43:42*rauss quit (Quit: WeeChat 1.8)
06:53:17*user0_ quit (Ping timeout: 268 seconds)
06:53:57*user0_ joined #nim
06:55:35*Trioxin quit (Ping timeout: 240 seconds)
06:56:06*Trioxin joined #nim
07:01:46FromGitter<konqoro> hey anyone remember that bitbucket repo with nim implementations of iterators for partitions of a set?
07:03:43FromGitter<konqoro> also where is irclogs.nim-lang.org?
07:05:54*yglukhov joined #nim
07:12:11FromGitter<konqoro> nvm found it
07:39:41*couven92 joined #nim
07:40:36*cspar quit (Quit: Leaving)
07:47:13FromGitter<andreaferretti> does anybody here have windows experience? I have never programmed on windows, but now I have to try to interface with a device for which there is only a windows dll. ⏎ ⏎ I would like to try using it in Nim, but I only have the DLL, without any header or anything. Are DLLs in windows autodescriptive? Is there a way to extract a header or something?
07:48:41couven92@andreaferetti unfortunenately not... You CAN extract the exported symbol name, but that's all you get I'm afraid
07:51:35couven92unless you have a .NET dll, in which case you could open it up in dotPeek (or similar) and reflect it. But since a .NET DLL would not be native, you could not use it with Nim anyways
07:51:47FromGitter<andreaferretti> ok thank you
07:52:01FromGitter<andreaferretti> I will try to get something more from the provider
07:57:12couven92@andreaferretti, if you have the Visual Studio C++ compiler installed, you can open a Developer Command Promot and run `dumpbin.exe <file.dll> /HEADERS /EXPORTS`. That will show everything in the DLL that you can use (along with some header information about the DLL in general)
08:00:26couven92Ah! Sorry, it's `/SYMBOLS` not `/EXPORTS`
08:01:12FromGitter<andreaferretti> thank you!
08:03:46*irrequietus joined #nim
08:17:27*irrequietus quit ()
08:20:16*Arrrr joined #nim
08:20:16*Arrrr quit (Changing host)
08:20:16*Arrrr joined #nim
08:32:07*chemist69 joined #nim
08:32:38*chemist69_ quit (Ping timeout: 260 seconds)
08:33:23*chemist69 quit (Client Quit)
08:33:38*user0 joined #nim
09:00:27*user0 quit (Ping timeout: 240 seconds)
09:01:05*ipjk joined #nim
09:01:38ipjkHi, is there any difference between ´case n´ and ´case n:´?
09:04:14FromGitter<andreaferretti> I see weird glyphs
09:05:35Araqipjk: 'case n' is preferred since more logical
09:05:41Araqbut apart from that, no difference
09:05:50ipjkAraq: thanks, cheers.
09:07:11euantorandreaferretti: THere's also this which is useful: http://www.nirsoft.net/utils/dll_export_viewer.html
09:07:25euantor(late response, hopefully not too late ;))
09:11:48*jinshil quit (Quit: Good-bye!)
09:22:39FromGitter<andreaferretti> Not too late at all, thank you!
09:38:36Trioxinbeen thinking about a new hosting panel in Nim
09:51:10*user0 joined #nim
10:11:11*nhywyll joined #nim
10:20:49FromGitter<zacharycarter> a new hosting panel?
10:23:41FromGitter<zacharycarter> Are there any xpath modules in the stdlib?
10:23:56FromGitter<zacharycarter> or should I be using something like - https://github.com/vegansk/xmltools ?
10:24:30*SusWombat joined #nim
10:27:50FromGitter<zacharycarter> nm think I found an example on rosetta code duh
10:40:00FromGitter<TiberiumN> @andreaferretti also c++ compiled dll's can provide all information on exported functions (type, name, parameters)
10:46:10FromGitter<zacharycarter> meh I think I'm going to have to use vegansk's library
10:47:38FromGitter<abijahm> @zacharycarter what about this https://github.com/OpenSystemsLab/q.nim but it seems old
10:48:04FromGitter<zacharycarter> yeah it does
10:48:37FromGitter<zacharycarter> ideally I'm not using xml - I plan on using YAML but there's a regression in Nim right now preventing me from using NimYaml so I'm using xml for the time being
10:48:49FromGitter<zacharycarter> I think I'll just use vegansk's library for now
10:53:52Araqhu? NimYaml doesn't work anymore, thats bad
10:54:20FromGitter<zacharycarter> apparently nor does xmltools
10:54:23FromGitter<zacharycarter> ugh
10:55:43FromGitter<zacharycarter> @Araq : https://github.com/nim-lang/Nim/issues/5918
10:57:53Araqok
10:59:47*chemist69 joined #nim
11:03:39*Snircle joined #nim
11:22:02*PMunch joined #nim
11:41:38*PMunch quit (Quit: leaving)
11:54:51dave24does anyone know of a cbor implementation for nim?
11:58:31*Sentreen quit (Quit: WeeChat 1.4)
11:58:41*Sentreen joined #nim
12:07:36*Sentreen quit (Quit: WeeChat 1.4)
12:20:53*Sentreen joined #nim
12:32:42*Arrrr quit (Read error: Connection reset by peer)
12:41:33*cspar joined #nim
13:02:19*couven92 quit (Ping timeout: 255 seconds)
13:03:33*couven92 joined #nim
13:07:53*smt quit (Read error: Connection reset by peer)
13:52:46FromGitter<TiberiumN> dave24: you can wrap this library - https://github.com/PJK/libcbor
13:54:07dave24FromGitter: thanks, yeah looks like I will have to wrap a c lib
13:54:08FromGitterdave24, I'm a bot, *bleep, bloop*. I relay messages between here and https://gitter.im/nim-lang/Nim
13:55:57*Vi- joined #nim
13:57:19dom96So today should be the launch of the 2017 Nim community survey.
13:57:48dom96I haven't started creating it yet, but I might still be able to create it today.
13:57:54dom96Any question suggestions are welcome.
14:10:44*nhywyll quit (Quit: nhywyll)
14:18:08federico3dom96: link to the questions on the previous one?
14:18:20dom96https://nim-lang.org/blog/2016/09/03/community-survey-results-2016.html
14:23:53*couven92 quit (Ping timeout: 246 seconds)
14:25:14*aerx joined #nim
14:35:24dave24why does this work: "var a = [0x22'u8, 0x11]", but this does not: "var b = [0x11223344'u32, 0x778899aa]"?
14:36:53*yglukhov quit (Remote host closed the connection)
14:37:16*yglukhov joined #nim
14:40:03Araqdave24: because the compiler converts 0x7.. to a signed integer and then doesn't see it's an uint32?
14:41:23dave24yes, thats what happens. But why/how is it different with the single byte number?
14:41:51*nsf quit (Quit: WeeChat 1.7.1)
14:43:29Araqthe compiler interprets 0x11 as a signed integer and then figures out it fits the u8 range.
14:44:05Araqit's quite obvious how these cases differ
14:45:20dave24oh..
14:45:58dave24it tries to convert the type after getting it wrong
14:46:05dave24i see. Thanks!
14:46:45dave24I thought it inferred the type first.
14:49:08Vi-"cannot 'importc' variable at compile time" < Is this planned to be implemented at some point?
14:51:06Vi-I suppose this doesnt work because its running on a VM?
14:52:28*yglukhov quit (Remote host closed the connection)
14:53:19Araqdave24: it doesn't "get it wrong", the spec says integer literals are of type 'int' unless they don't fit then they are int64. the convenience conversions come afterwards
14:56:20dave24sure, not wrong. Just not what I wanted
15:00:15*yglukhov joined #nim
15:14:41*yglukhov quit (Remote host closed the connection)
15:19:11dom96@andreaferretti: btw, the S: Waiting on Author label is more for PRs than issues :)
15:19:39dom96Nice job reviewing all those issues though
15:21:18*xet7 quit (Quit: Leaving)
15:22:21*Ven joined #nim
15:22:45*Ven is now known as Guest2886
15:25:00FromGitter<andreaferretti> Ah ok sorry
15:25:33FromGitter<andreaferretti> I wanted a way to signal that the issue was probably solved, but we are waiting for confirmation by the author
15:25:41FromGitter<andreaferretti> I will not abuse it like that then
15:26:00FromGitter<andreaferretti> Just tell me if I get some label wrong
15:26:15FromGitter<andreaferretti> I am trying to get an idea of the actual open bugs
15:26:37FromGitter<andreaferretti> so having labels helps getting better numbers (lots of feature requests, RFC and so on)
15:26:44dom96Maybe you could add a new "Not reproduced" label for that?
15:26:58FromGitter<andreaferretti> sure, will do
15:27:14FromGitter<andreaferretti> Also, I am aksing whether stuff can be closed
15:27:15dom96I've got the same one in the Nimble repo
15:27:24dom96If you copy its colour that'd be handy :)
15:27:32FromGitter<andreaferretti> Many bugs just stay open because nobody bothers to close it
15:27:47dom96yeah.
15:27:56dom96A lot of noise in the issue tracker
15:28:38FromGitter<andreaferretti> Done
15:28:55FromGitter<andreaferretti> There were already quite a few Waiting on author before I came though
15:29:51FromGitter<andreaferretti> Ah no, it's the search on github that mixes issues and PRs
15:31:50FromGitter<andreaferretti> Can I close stuff like this, where the author says it's ok now, but does not bother to close or answer anymore? https://github.com/nim-lang/Nim/issues/4729
15:32:06*Trustable joined #nim
15:33:07dom96andreaferretti: sure, just let the person know that they can always reopen it if it's still an issue.
15:33:32Araqyeah, that's how I do it often
15:33:43Araq"Closing, reopen if still an issue for you."
15:48:37*couven92 joined #nim
15:57:56subsetparkpotentially stupid question: can jester listen over a socket?
16:07:23dom96subsetpark: You mean a unix socket?
16:07:27dom96a file socket?
16:07:32subsetparkyeah, unix socket
16:11:58*Guest2886 quit (Ping timeout: 240 seconds)
16:12:23demi-@andreaferretti there are bots that will do auditing of issues based on age and activity and will auto-close things if they aren't updated or cannot be reproduced.
16:13:00*Ven_ joined #nim
16:13:45*rauss joined #nim
16:15:09dom96subsetpark: afraid not
16:15:15dom96asynchttpserver doesn't support it
16:17:40*Ven_ quit (Ping timeout: 255 seconds)
16:29:10*yglukhov joined #nim
16:29:13*yglukhov quit (Client Quit)
16:31:53*nsf joined #nim
16:48:56dom96https://nim-lang.org/blog/2017/06/23/community-survey-2017.html
16:53:44FromGitter<TiberiumN> dom96: nice survey, done it
16:53:52dom96TiberiumN: thanks!
17:01:07couven92dom96, done! :)
17:01:55dom96thx :D
17:09:27dom96cool, 8 responses already
17:10:03demi-
17:11:26demi-dom96: i responded but i just thought of something that i didn't include; having more examples of how to use the javascript interop would be nice. almost all the stuff i read in the docs or code that is out there is based on C libraries
17:11:44dom96demi-: Create an issue for that in the Nim repo :)
17:11:57demi-will do!
17:13:45demi-i feel like that could easily bring in a lot of new people to the language; but doesn't get much love
17:15:40dom96I submitted the article to HN
17:15:47dom96Upvotes would be appreciated
17:17:50FromGitter<TiberiumN> give a link :)
17:20:12dom96Check the newest https://news.ycombinator.com/newest
17:21:02FromGitter<TiberiumN> ah, I see
17:23:36*smt joined #nim
17:31:05*gokr quit (Ping timeout: 240 seconds)
17:33:48*Matthias247 joined #nim
17:41:26*sdw joined #nim
17:42:15*Ven joined #nim
17:42:38*Ven is now known as Guest80443
17:45:09*pilne joined #nim
17:47:17shmuphttps://news.ycombinator.com/item?id=14620851
17:47:20shmupI see no harm in directly linking
17:48:14*Jesin quit (Quit: Leaving)
17:48:20*Guest80443 quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
17:49:19*sz0 quit (Quit: Connection closed for inactivity)
17:52:52shmupdom96: > How did you install Nim?
17:53:01shmupcould have been checkboxes, like the "what platform are you developing on"
17:53:01*Jesin joined #nim
17:53:12shmupi.e. i choosenim for osx and windows binary otherwise
17:53:17shmupthen again, there is an Other Option
17:53:24dom96shmup: upvotes may not count if using a direct link
17:53:41shmupshit dom96 i'm sorry.
17:53:49shmupON'T USE MY DIRECT HACKER NEWS LINK PLEASE
17:53:49dom96it's fine.
17:54:07dom96Yeah, I'll try to remember to make it a checkbox next year :)
17:58:07*fvs joined #nim
18:06:56*arecacea1 joined #nim
18:10:42FromGitter<zacharycarter> we need something like this - https://github.com/ponylang/ponyc/issues?q=is:issue+is:open+label:%22difficulty:+1+-+easy%22
18:10:45FromGitter<zacharycarter> for people like me
18:10:54arecacea1heya, is there an easy way to create a new object of some ref-object-type on runtime from a string? e.g. I read "MyClass" from a config file and subsequently create a new object of type MyClass into a var of some base-class ?
18:10:58FromGitter<zacharycarter> ponylang's "low hanging fruit"
18:11:55*fvs quit (Quit: leaving)
18:14:50demi-zacharycarter; yeah having tags like "first pr" would also be good to get more people working on it
18:15:11Araqhttps://github.com/nim-lang/Nim/issues?q=is%3Aissue+is%3Aopen+label%3AEasy
18:15:29Araqthe only problem is that some of these are "easy" for me only.
18:15:36Araqbut hey, we do have it.
18:21:28*nsf quit (Quit: WeeChat 1.7.1)
18:22:08FromGitter<zacharycarter> ah cool :D
18:24:52dom96Yeah, most documentation issues are easy too
18:25:27dom96Bah, no traction on HN and not a single upvote on Reddit :\
18:26:41FromGitter<jmoriau> (sorry to disturb), is there something special I have to do to enable SSL? (I'm still following Nim in Action and trying to make a get to an https website fails with: "Error: unhandled exception: SSL support is not available. Cannot connect over SSL. [HttpRequestError]") I'm on OS X Sierra, Nim 0.17 installed with choosenim
18:26:48FromGitter<TiberiumN> yes
18:26:52FromGitter<TiberiumN> compile with "-d:ssl"
18:26:58FromGitter<TiberiumN> like nim c -d:ssl file.nim
18:27:00FromGitter<jmoriau> ah I see thanks!
18:27:31FromGitter<jmoriau> (is that written anywhere? Like manual, or online documentation? I looked around for a while before asking X) )
18:28:02Araqthe exception message should say "compile with -d:ssl" IMO
18:29:07FromGitter<jmoriau> Haha yeah it would have been clearer :p
18:36:19FromGitter<zacharycarter> dom96: link to the reddit thread plz?
18:36:39dom96https://www.reddit.com/r/programming/comments/6j2m42/launching_the_2017_nim_community_survey/
18:36:43FromGitter<zacharycarter> thanks
18:52:15*gangstacat quit (Quit: Ĝis!)
18:57:06Trioxinis there a way to get a process list for the OS? I'm not seeing it.
18:57:49Trioxina module rather
19:07:57AraqTrioxin: no, you need to wrap the Win API for that. on Linux you can access the /proc fake directory
19:08:06subsetparkWhat could this possibly mean?
19:08:21subsetparkstrutils.nim parseInt
19:08:21subsetparkstdbuf[1496]: Error: unhandled exception: invalid integer: "3404" [ValueError]
19:08:50Araqsubsetpark: strange unicode digits in your input?
19:09:33subsetparkoh wait, i bet the string has the quotes in it
19:10:01subsetparkyeah that was it
19:10:22Araqah nice one
19:10:56subsetparkI bet Elm would have told me :)
19:11:47shmupim community survey on reddit/hn attracted crickets so far I think
19:11:51shmups/im/nim
19:18:55dom96Yeah, it didn't reach HN's front page
19:19:01dom96and r/programming doesn't seem to likeit
19:19:53dom96I wonder how much more complicated Elm's code is to deal with all these error scenarios :P
19:20:15dom96Of course I would encourage you to improve the error in Nim :)
19:24:24*xet7 joined #nim
19:29:13FromGitter<zacharycarter> is there a way to get the last element in a sequence without accessing it by index?
19:29:30FromGitter<zacharycarter> something like C++ vector.back
19:30:13FromGitter<TiberiumN> idk, maybe there is, but you can try sequence[^1]
19:30:34FromGitter<TiberiumN> ah no
19:30:44FromGitter<TiberiumN> https://github.com/nim-lang/Nim/wiki/Feature-suggestions ⏎ There's that feature suggesting
19:30:49Araqsubsetpark: Elm has specialized error messages for parseInt exceptions?
19:31:18FromGitter<zacharycarter> thanks @TiberiumN
19:31:28*salewski joined #nim
19:32:36salewskiI have just posted a working solution of the callback problem to the forum.
19:33:23salewskiI am now using name(type(arg)) to extract the real object type. That works.
19:34:20salewskiBut I wonder why the much simpler solution with getType(arg) in the macro does not work.
19:38:30*vld quit (Ping timeout: 240 seconds)
19:38:40*tankfeeder joined #nim
19:39:33Araqyay I'm getting
19:39:38AraqWarning Not optimized: Deoptimized too many times
19:40:09AraqJITs and their unpredictable performance, who knows what it tried to optimize
19:40:40Araqcould have compiled the code as written, it was written by me, it's fast :P
19:53:38subsetparkAraq: just joking.
19:55:45*Vladar quit (Quit: Leaving)
19:58:59*salewski quit (Quit: WeeChat 1.4)
20:01:34*vld joined #nim
20:07:57*yglukhov joined #nim
20:09:07*yaiyan is now known as Ieuan
20:23:13*tankfeeder quit (Remote host closed the connection)
20:23:35*tankfeeder joined #nim
20:25:58*yglukhov quit (Remote host closed the connection)
20:39:15*yglukhov joined #nim
20:40:18*tankfeeder quit (Quit: Leaving)
20:46:05*user0_ quit (Ping timeout: 240 seconds)
21:01:08*Trustable quit (Remote host closed the connection)
21:08:58*eeproks quit (Ping timeout: 240 seconds)
21:09:17*enthus1ast joined #nim
21:10:23dom96I learned a new word today: cantankerous.
21:10:29dom96Nice one whoever answered that :)
21:13:15*user0_ joined #nim
21:20:35*ofelas joined #nim
21:43:19*Pisuke quit (Read error: Connection reset by peer)
21:44:24*Pisuke joined #nim
21:57:07shmuphm, int to string?
21:57:30dom96$
21:57:38dom96* to string = $
21:58:10shmupgotcha, I was thinking for some reason I couldn't use it in this way (but it worked). if a function did operate on a string I couldn't $v.theThing() right?
22:06:46*Matthias247 quit (Read error: Connection reset by peer)
22:06:56dom96($v).theThing()
22:16:19shmupahh, that explains it. thanks
22:18:06couven92I have analysed through my testament run on android. Of the 1500 tests my phone ran, 136 tests currently fail (~9%), so now we can work on fixing Nim for Android, so that we truly can deliver 1st class Nim support for Android. Goto http://thnetii.td.org.uit.no/testament-results if you want to see for youselves :)
22:25:57*yglukhov quit (Remote host closed the connection)
22:26:56couven92Araq, yes, I ended up adjusting the testament HTML, and adding a little colour and filtering...
22:44:11Araqcouven92: wow, nice html output. can you create a PR for testament?
22:46:03couven92Araq, ah, sorry, that's actually an ASP.NET Razor Page application (because I was on my WinServer right then)... But yeah, I could certainly port it to testament... I always wanted to know how these templ files worked... :P
22:51:02*chrisheller quit (Remote host closed the connection)
22:59:14couven92Oh! After installing nodejs on my Android and re-running the JS category tests, we're now down to 50/1500 failing tests on Android (3,33%)! :D
23:22:35*couven92 quit (Quit: Client Disconnecting)
23:25:29*xet7 quit (Quit: Leaving)
23:25:41*ipjk quit (Quit: Leaving)
23:26:26*yglukhov joined #nim
23:31:34*ofelas quit (Quit: shutdown -h now)
23:31:37*yglukhov quit (Ping timeout: 276 seconds)
23:54:25*Nobabs27 joined #nim
23:57:58*Vi- quit (Ping timeout: 240 seconds)