<< 26-07-2017 >>

00:12:23*PMunch quit (Quit: leaving)
00:29:33*yingjun joined #nim
00:34:22*yingjun quit (Ping timeout: 260 seconds)
01:01:19*yglukhov quit (Remote host closed the connection)
01:16:49*Snircle joined #nim
01:29:50*yingjun joined #nim
01:35:12*chemist69 quit (Ping timeout: 255 seconds)
01:45:07*yingjun quit (Remote host closed the connection)
01:46:36*yingjun joined #nim
01:48:49*chemist69 joined #nim
01:58:30*jinshil joined #nim
01:58:54*endragor joined #nim
02:01:51*yglukhov joined #nim
02:08:01*mahtob quit (Ping timeout: 248 seconds)
02:08:06*mahtov quit (Ping timeout: 268 seconds)
02:19:33*shmup quit (Remote host closed the connection)
02:19:37*shmup_ joined #nim
02:33:27*def-pri-pub joined #nim
02:33:49def-pri-pubAraq: have you had to take a look at my proposal for dlopen(): https://forum.nim-lang.org/t/3059/2
02:47:33*yunfan left #nim ("leave for finding the question of 42")
03:10:22FromGitter<Varriount> @zacharycarter My dogs would probably go and hide behind the couch at the sight of a free-roaming bird in the house
03:16:11FromGitter<zacharycarter> @Varriount :P
03:46:32FromGitter<zacharycarter> @dom96 not sure if you're around or not but if you are could you turn caching off on play.nim-lang.org for a few mins?
03:56:22*smt quit (Ping timeout: 240 seconds)
04:11:37*yingjun quit (Remote host closed the connection)
04:12:39*def-pri-pub quit (Quit: leaving)
04:15:49*yingjun joined #nim
04:29:35*yingjun quit (Remote host closed the connection)
04:37:51*yingjun joined #nim
04:47:59*yingjun quit (Remote host closed the connection)
04:53:39*yingjun joined #nim
05:22:42*ketralnis quit (Quit: Coyote finally caught me)
05:25:00*ketralnis joined #nim
05:28:03*rauss quit (Quit: WeeChat 1.9)
05:40:14*dankrad quit (Ping timeout: 268 seconds)
05:42:00*Vladar joined #nim
05:42:52*ketralnis quit (Quit: Coyote finally caught me)
05:50:06*ketralnis joined #nim
05:59:58FromGitter<zacharycarter> anyone know how to get query string parameters using the js backend?
06:00:12*yingjun quit (Remote host closed the connection)
06:00:23*yingjun joined #nim
06:01:05Araqkarax has a way but i forgot the name
06:01:15Araqbut it's just ordinary JS wrapping
06:01:29FromGitter<zacharycarter> hrm Ideally I'd use whatever karax offers
06:01:37FromGitter<zacharycarter> I'm almost done with gists
06:01:45*yingjun quit (Remote host closed the connection)
06:02:01FromGitter<zacharycarter> I think I found it
06:02:42FromGitter<zacharycarter> thx Araq
06:04:30*yingjun joined #nim
06:06:32*couven92 joined #nim
06:12:55*andrzejku joined #nim
06:20:34*nsf joined #nim
06:24:41*yingjun quit (Remote host closed the connection)
06:28:09*Ven joined #nim
06:28:33*Ven is now known as Guest24574
06:30:33*mfx quit (Quit: Leaving)
06:31:52*yingjun joined #nim
06:41:20*tankfeeder joined #nim
06:52:30*Arrrr joined #nim
06:52:57*Guest24574 quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
06:53:19*Ven_ joined #nim
07:00:46Araqthe new reorder feature is now available via
07:00:51Araq{.reorder: on.}
07:03:51*Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
07:04:39ArrrrWhat does it do?
07:08:46*Vladar quit (Quit: Leaving)
07:12:35ftsfreorders your last purchase
07:20:20*Arrrr quit (Quit: Arrrr)
07:20:34*Arrrr joined #nim
07:22:57*yglukhov quit (Ping timeout: 240 seconds)
07:24:05*planhths joined #nim
07:24:54AraqArrrr: another attempt to solve the "no forward decls required" problem
07:25:56ArrrrAnother? What happened to the first one?
07:35:40Araqtoo complex
07:40:56*yingjun quit (Remote host closed the connection)
07:41:06*yingjun joined #nim
07:42:34*yingjun quit (Remote host closed the connection)
07:45:38*yingjun joined #nim
08:00:00*Arrrr quit (Quit: Arrrr)
08:04:37*yglukhov joined #nim
08:08:17*yglukhov quit (Read error: Connection reset by peer)
08:08:46*yglukhov joined #nim
08:13:31*yglukhov quit (Ping timeout: 276 seconds)
08:16:44*user0 quit (Quit: user0)
08:17:41*user0 joined #nim
08:19:08*Matthias247 joined #nim
08:21:33*user0 quit (Client Quit)
08:22:57*user0 joined #nim
08:24:27*yingjun quit (Ping timeout: 240 seconds)
08:29:02*arnetheduck joined #nim
08:32:15*yglukhov joined #nim
08:45:36*yingjun joined #nim
08:53:58*dom96|w joined #nim
08:56:42*planhths quit (Quit: Konversation terminated!)
09:01:06*tankfeeder quit (Quit: Connection closed for inactivity)
09:03:07*dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…)
09:04:57*dom96|w joined #nim
09:08:23*jinshil quit (Read error: Connection reset by peer)
09:21:39*tankfeeder joined #nim
09:21:46*EastByte quit (Ping timeout: 276 seconds)
09:23:52*mwbrown quit (Ping timeout: 240 seconds)
09:26:29*mwbrown joined #nim
09:28:27*EastByte joined #nim
09:38:24*dom96|w quit (Read error: Connection reset by peer)
09:38:56FromGitter<TiberiumN> Araq: will "reorder" feature become default sometime? Or you will add it to experimental features?
09:41:30*Arrrr joined #nim
09:42:50Araqit needs much more testing but I hope it to become the default soon'ish
09:43:10Araqit's not planned as yet another on/off switch people have to learn about
09:43:25FromGitter<TiberiumN> oh, that's good
09:44:30ArrrrInter-module?
09:50:04ftsf\o/
09:55:54*bjz joined #nim
10:04:17*Vladar joined #nim
10:23:14*yingjun quit (Remote host closed the connection)
10:38:02*cspar__ joined #nim
10:41:04*cspar_ quit (Ping timeout: 276 seconds)
10:48:02*bjz quit (Quit: Textual IRC Client: www.textualapp.com)
10:57:43FromGitter<TiberiumN> What is wrong with this code? https://gist.github.com/TiberiumN/40d2e55c8c9d2f1c4c2986b8f3fc53b6
10:57:54FromGitter<TiberiumN> it did compile for me, but now it doesn't
10:58:49FromGitter<TiberiumN> error is https://gist.github.com/TiberiumN/db646bec7d548dbe85193015077b835c
10:59:00*Arrrr quit (Quit: Arrrr)
10:59:26*Arrrr joined #nim
11:00:29*Arrrr quit (Client Quit)
11:00:36*Arrrr joined #nim
11:04:03yglukhovTiberiumN: future callback should be gcsafe?
11:04:26yglukhovfuture.callback = proc() {.gcsafe.} = blabla
11:04:38FromGitter<TiberiumN> ah, ok, thanks
11:04:43FromGitter<TiberiumN> but we need to update docs too
11:04:54FromGitter<TiberiumN> https://nim-lang.org/docs/asyncdispatch.html
11:05:23yglukhovTiberiumN: are you compiling with --threads:on?
11:05:27FromGitter<TiberiumN> nope
11:05:39FromGitter<TiberiumN> my app is one-threaded and async
11:05:45yglukhovi might be wrong then. does my solution work?
11:05:53FromGitter<TiberiumN> yes it does
11:05:59yglukhovinteresting...
11:07:04*couven92 quit (Remote host closed the connection)
11:07:04FromGitter<TiberiumN> ah, that's the thing: ⏎ lib\pure\asyncmacro.nim(55, 3) Warning: 'answer' is not GC-safe as it performs an indirect call here [GcUnsafe2] ⏎ errors.nim(8, 5) Warning: ':anonymous' is not GC-safe as it calls 'answer' [GcUnsafe2]
11:07:29*couven92 joined #nim
11:07:32FromGitter<TiberiumN> but I don't know what is an indirect call :)
11:11:11*sz0 joined #nim
11:14:13FromGitter<zacharycarter> ugh I'm so close to gists for the playground but I'm stuck on query string parsing
11:16:06yglukhovTiberiumN: you're probably trying to call a non-gcsafe callback from your presumably gcsafe code
11:17:15FromGitter<TiberiumN> but how callback can be non-gcsafe in one-threaded code?
11:18:39Arrrris this normal? connecting a socket to an empty port I would expect an exception, i think that's what happens under windows https://glot.io/snippets/es3122unxx
11:18:44yglukhovif your callback is of type `proc()` then it is considered not gcsafe. it should be `proc() {.gcsafe.}`. in one-threaded code it's just a warning for you, with --threads:on you would get an error
11:19:13FromGitter<TiberiumN> ah, ok
11:23:01*PMunch joined #nim
11:23:40*yingjun joined #nim
11:26:15*PMunch quit (Client Quit)
11:26:35*PMunch joined #nim
11:27:48*yingjun quit (Ping timeout: 240 seconds)
11:31:06*tankfeeder quit (Quit: Connection closed for inactivity)
11:32:17*andrzejku quit (Quit: My iMac has gone to sleep. ZZZzzz…)
11:33:59*arnetheduck quit (Ping timeout: 246 seconds)
11:38:40*yingjun joined #nim
11:38:46*xet7 quit (Ping timeout: 258 seconds)
11:50:57*xet7 joined #nim
11:55:45*tankfeeder joined #nim
12:03:21*v17d joined #nim
12:05:03*mahtob joined #nim
12:10:30*Arrrr left #nim (#nim)
12:14:49mahtobhi
12:15:01mahtobi noticed this in forum
12:15:21mahtobwhen i want to add python code it doesnt show with syntax highlight
12:15:25mahtobor php
12:15:32mahtobbut nim code is ok?
12:15:37mahtobbut nim code is ok
12:18:56FromGitter<TiberiumN> dom96: is there any ETA for results of nim community survey?
12:25:43*yglukhov_ joined #nim
12:27:14*yglukhov quit (Ping timeout: 268 seconds)
12:47:34mahtobsyntax highlight works only for nim ? i couldnt understand code-sorry
13:12:04*yingjun quit (Remote host closed the connection)
13:12:46*krux02 joined #nim
13:13:15krux02mahtob: where is only syntax highlighting for nim?
13:15:15mahtobhttp://ix.io/qXy
13:15:32mahtobi posted it but only nim syntax higlighting
13:16:06*andrzejku joined #nim
13:16:34FromGitter<krux02> ah you mean in the forum
13:17:30krux02I really think you have to live with it
13:17:43krux02I hope it's not too bad
13:18:30*rauss joined #nim
13:19:54mahtobissue is why only nim works well?
13:20:00mahtobi want to understand sense
13:25:01*couven92 quit (Quit: Client Disconnecting)
13:32:20krux02well the forum is a custom software just for the Nim website
13:32:38krux02so the language nim is the most important language to support
13:38:28subsetparkmahtob: I bet you could open a PR to improve syntax highlighting: https://github.com/nim-lang/nimforum
13:41:51*ipjk quit (Ping timeout: 240 seconds)
13:42:12PMunchhttps://github.com/PMunch/gtk3genui
13:42:20PMunchNow Genui works for gtk3 as well :)
13:43:42*PMunch quit (Quit: leaving)
13:47:02mahtobok krux02 subsetpark but i couldnt find on code where is highlight parsing :(
13:48:12*salewski joined #nim
13:48:34mahtobhttps://github.com/nim-lang/nimforum/blob/master/utils.nim#L72 ?
13:48:48salewskiPMunch, that is interesting.
13:49:47salewskiI guess you mean for the low level ngtk3? (We have also high level gintro now!)
13:50:29salewskiFor the low level gtk3, I am currently preparing a nimble package.
13:50:59mahtobhey PMUnch
13:51:14mahtobVerifying dependencies for [email protected]
13:51:14mahtob Error: Unsatisfied dependency: nim (>= 0.17.1)
13:51:18salewskiI have just updated that gtk3 to latest gtk 3.22 -- nimble package will be called oldgtk3.
13:51:56mahtobit should be 0.17.0 ?
13:52:05salewskiThat name oldgtk3 is a bit misleading, as it is latest 3.22, but I think name is ok,
13:52:49salewskisince we have gintro package now. So people seeing name oldgtkt can guess that there is another package.
13:54:10mahtoblatest 0.17.0
13:56:38FromGitter<TiberiumN> No, 0.17.1 is current devel
13:56:42FromGitter<TiberiumN> Not release version
13:58:48mahtobhttps://github.com/nim-lang/Nim/releases
13:58:53mahtob i am looking here
13:59:06mahtobdo you mean git version on devel branch
14:01:09*subsetpark quit (Quit: Updating details, brb)
14:01:19*subsetpark joined #nim
14:02:47FromGitter<TiberiumN> This version is unreleased
14:02:51FromGitter<TiberiumN> 1) 17.1 is version in devel branch
14:03:05*yuken joined #nim
14:03:06FromGitter<TiberiumN> you can install it by compiling nim sources, or by choosenim (it's easier with choosenim)
14:03:07*yuken waves
14:03:38salewskiPMunch, I am a bit confused by your gtk3 sources...
14:03:55FromGitter<TiberiumN> Hmm, how to make stdin.readLine() work for unicode? ⏎ ⏎ it doesn't work on windows with "chcp 65001" command entered before running the code
14:04:20salewskiNote that there is not stefansalewski/ngtk3 at github currently.
14:05:00salewskiThere is ngtk3 at github toplevel, that is lov level gtk 3.20 single packages.
14:05:54salewskistefansalewski/oldgtk3 will be pushed soon. That is a nimble package with low level 3.22.
14:12:35*yingjun joined #nim
14:12:57salewskiAnd PMunch, notice that "import gtk3, glib, gobject" will not work most of the time.
14:13:49salewskiAs my gtk3 needs latest glib/gobject and other people may have installed legacy glib/gobject.
14:15:01salewskiSo for new oldgtk3 nimble package, import will be: import oldgtk3/[glib, gobject, gtk3, cairo, pango, gio]
14:15:17salewskiBye.
14:16:57*yingjun quit (Ping timeout: 240 seconds)
14:30:07*salewski quit (Quit: WeeChat 1.4)
14:30:33*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
14:34:04*smt joined #nim
14:34:39*smt quit (Max SendQ exceeded)
14:35:24*smt joined #nim
15:07:58*sz0 quit (Quit: Connection closed for inactivity)
15:11:21*Sentreen quit (Ping timeout: 240 seconds)
15:15:23*sz0 joined #nim
15:16:47*vlad1777d joined #nim
15:18:27*v17d quit (Ping timeout: 240 seconds)
15:24:01*Sentreen joined #nim
15:40:34*Matthias247 quit (Read error: Connection reset by peer)
15:46:00krux02if you have emacs do this: (switch-to-buffer (make-comint "NIM" "nim" nil "secret")))
15:46:55krux02that's a nim repl with path completion and history
15:47:00krux02and emacs integration
15:47:16krux02minimal emacs integration
15:47:45krux02alternatively do "rlwrap nim secret" on the shell
15:47:50krux02if you have that
15:50:21subsetparkdom96: is there a reason that choosenim doesn't compile with --linenoise?
15:50:44*nsf quit (Quit: WeeChat 1.9)
15:53:59*Trustable joined #nim
16:03:03krux02subsetpark: well I don't know linenoise is just supposted to be a BSD licensced substitution for GNU readline
16:03:10krux02but it falls short in almost everything
16:04:05ehmryreadline is madness if you look into it
16:04:22krux02I personally don't like it at all and would prefer if on linux there wouldn't be anything at all, so that I can wrap the program with readling using "rlwrap"
16:04:32ehmryyea
16:05:25krux02well I understand that supporting it for completion can be complicated, but basic command line editing with history and path completion that is what you already get when you simply use rlwrap
16:05:29krux02I like it
16:06:05krux02but I never wrote a readline backend, so I don't know how complicated it is
16:06:22krux02but I guess it is pretty complicated like almost every GNU stuff that is that old
16:06:37krux02ok folks I am out for today
16:06:53*krux02 quit (Remote host closed the connection)
16:06:58ehmryyep, but I'm fine with rlwap and I like using it
16:14:25*yingjun joined #nim
16:18:25*yglukhov_ quit (Remote host closed the connection)
16:18:47*yingjun quit (Ping timeout: 260 seconds)
16:20:19*vlad1777d quit (Ping timeout: 255 seconds)
16:25:30*Matthias247 joined #nim
16:27:26*xet7 quit (Quit: Leaving)
16:32:43*vlad1777d joined #nim
16:37:52*dankrad joined #nim
16:59:47*Ven joined #nim
17:00:11*Ven is now known as Guest92612
17:05:15*yglukhov joined #nim
17:09:52*yglukhov quit (Ping timeout: 255 seconds)
17:10:32*Guest92612 quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
17:17:58*sz0 quit (Quit: Connection closed for inactivity)
17:18:23FromGitter<TiberiumN> oh my god I didn't knew that "streams" module supported reading booleans, ints, floats from string stream or file stream... ⏎ (I had my own procs lol)
17:21:54*endragor quit (Remote host closed the connection)
17:22:37*Ven joined #nim
17:23:01*Ven is now known as Guest78208
17:41:23FromGitter<TiberiumN> nim comes with true "batteries included" statement
17:46:59*itseris quit (Remote host closed the connection)
17:59:10*dankrad quit (Ping timeout: 276 seconds)
18:00:40*itseris joined #nim
18:01:51*yglukhov joined #nim
18:05:45*dankrad joined #nim
18:06:42*yglukhov quit (Ping timeout: 260 seconds)
18:07:11*sz0 joined #nim
18:08:16*ipjk joined #nim
18:12:06*yglukhov joined #nim
18:16:13*yingjun joined #nim
18:20:21*yingjun quit (Ping timeout: 240 seconds)
18:27:07*Sentreen quit (Ping timeout: 276 seconds)
18:27:56*Vladar quit (Quit: Leaving)
18:32:01cremAnyone uses nimlime in Windows?
18:33:03FromGitter<TiberiumN> nah, i use vscode
18:33:12FromGitter<TiberiumN> I mean nim plugin with vscode :)
18:33:23cremSeems that it has trouble finding config (both user and default). Unable to open /C/Users/crem/AppData/Roaming/Sublime Text 3/Packages/NimLime/NimLime.sublime-settings
18:34:29cremvs was the reason I moved from linux 2 years ago. And since then I turned out to write all C++ code in sublime. So maybe now it's time to move back.
18:35:46*Arrrr joined #nim
18:36:04ArrrrIs nim's libuv broken? https://nim-lang.org/docs/libuv
18:36:13ArrrrOr alive
18:37:24FromGitter<TiberiumN> https://nim-lang.org/docs/libuv.html ?
18:37:29*ShalokShalom joined #nim
18:37:46FromGitter<TiberiumN> ugh
18:37:46FromGitter<TiberiumN> https://github.com/joyent/libuv/compare/9f6024a6fa9d254527b4b59af724257df870288b...master
18:38:10FromGitter<TiberiumN> seems to be dead - two years old
18:39:09*Sentreen joined #nim
18:43:24*andrzejku quit (Quit: My iMac has gone to sleep. ZZZzzz…)
18:50:13Araqwe have our own event loop
18:50:20Araqdon't use libuv
18:54:33*Arrrr quit (Quit: Arrrr)
18:54:51*Arrrr joined #nim
18:59:52*Arrrr quit (Quit: Arrrr)
19:00:01*Arrrr joined #nim
19:00:41*Arrrr quit (Client Quit)
19:00:54*Arrrr joined #nim
19:04:27*Arrrr quit (Client Quit)
19:05:54cremHow can I iterate over elements of a sequence and mutate them? for (var??) x in mysequece: x += 1
19:07:24*nhywyll joined #nim
19:07:42*Guest78208 quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
19:08:38Araqcrem: for x in mitems(s): x += 1
19:09:47cremThanks!
19:10:53FromGitter<lateefj> Crem: any luck with protobuf wrapper?
19:11:13*andrzejku joined #nim
19:12:13cremNope, I'm still practicing with basic stuff. I plan to contribute some libraries a bit later when I'm more proficient with the language.
19:13:29*Trustable quit (Ping timeout: 255 seconds)
19:14:19*Trustable joined #nim
19:22:45cremIs there anything more idiomatic for the last element of a seq than x[x.len-1]?
19:24:52Araqx[^1]
19:26:17cremThanks!
19:32:51*Trustable quit (Quit: Leaving)
19:34:14*Trustable joined #nim
19:34:58yglukhovhow do i convert a value of type `ptr Foo` to unchecked array[Foo]?
19:35:51cremnew(X) doesn't care whether X is Object or ref to object, right?
19:37:15FromGitter<TiberiumN> it does
19:37:27FromGitter<TiberiumN> but maybe i'm wrong
19:38:52*Trustable quit (Read error: Connection reset by peer)
19:39:29*Trustable joined #nim
19:43:57cremIs there a way to "unref" a type? E.g. if I have oly type Y ("Y = ref X" and X is not visible), to declare var of type X. E.g var x: (unref??) Y.
19:44:41FromGitter<TiberiumN> ehm, you can dereference a variable (but not a type)
19:47:46*Snircle joined #nim
19:48:38cremto convert ref to ptr, two steps are needed, right? addr(x[])
19:49:05FromGitter<TiberiumN> oh, I don't know about "ptr" stuff, because I almost don't need interfacing with C (c2nim works well enough for me)
19:50:18cremSomehow I need it in pure nim function. :)
19:51:12FromGitter<TiberiumN> well, I don't use manual memory management and threads
19:51:48*PMunch joined #nim
19:53:03*ShalokShalom quit (Read error: Connection reset by peer)
19:55:17*mahtob quit (Remote host closed the connection)
20:07:41PMunchHmm, installed gtk3 from ngtk3 and the cairo version there that it requires doesn't play nice with the nimble cairo version
20:10:10*rauss quit (Quit: WeeChat 1.9)
20:11:43*andrzejku quit (Quit: Textual IRC Client: www.textualapp.com)
20:13:42cremThere are no constructors, are there? Something that forces that the object isn't created without setting up invariant (what I need is to newseq all sequeces in an object).
20:13:57PMunchcrem, not really
20:14:01*ShalokShalom joined #nim
20:14:10*nhywyll quit (Quit: nhywyll)
20:14:17PMunchBut many modules (like tables) requries you to call initSomething() to initialise
20:14:18*Trustable quit (Remote host closed the connection)
20:14:30PMunchWhich is kind of the norm for these kind of things
20:17:41*yingjun joined #nim
20:19:05*mahtob joined #nim
20:19:27*ShalokShalom quit (Ping timeout: 240 seconds)
20:22:02*yingjun quit (Ping timeout: 260 seconds)
20:29:44PMunchhttp://ix.io/yHM
20:29:49PMunchHmm, that doesn't look good
20:41:01mahtobfriends i need some ideas about notifying at nim
20:41:25mahtobi want to send messages to my friend
20:41:32mahtobfriends*
20:41:49*Serenitor joined #nim
20:41:54PMunchDefine messages
20:42:01mahtobthey will run a program that listen site
20:42:14mahtobwhen i put new messages to central site
20:42:25mahtoball of them get the message
20:42:35mahtobi want to code client side in nim
20:42:51mahtobis there any code example or what do you offer me?
20:43:24*salewski joined #nim
20:43:27PMunchSo you already have some service that you wat to communicate with?
20:43:38mahtobyes
20:43:56mahtobjust i edit json file or anything
20:43:59PMunchDo they offer an API?
20:43:59mahtobon server
20:44:07PMunchAh
20:44:14mahtobclients will listen the json file
20:44:21PMunchRight
20:44:26salewskiPMunch, you may consult the logs, I replied concerning gtk3 a few hours earlier.
20:44:26mahtobif any new message comes ...
20:44:36PMunchIRC logs?
20:44:51PMunchmahtob, you should look at the web examples
20:44:56salewskiNim IRC logs.
20:45:00PMunchReading data from a site
20:45:09mahtobnim code ex?
20:45:13PMunchAnd the json module if the messages are in a JSON format :)
20:45:17salewskihttps://irclogs.nim-lang.org/
20:45:30PMunchYes, the examples contains code examples
20:45:46PMunchsalewski, yeah I know where to find them :) I was just answering mahtob
20:46:47salewskiPMunch, I will upload nimble package oldgtk3 tomorrow.... Details I wrote some hours ago.
20:47:06PMunchYeah I'm reading it now
20:47:28salewskiBye.
20:47:33*salewski quit (Client Quit)
21:05:34*Jesin quit (Quit: Leaving)
21:07:28cremslicing of seq doesn't copy anything, does it?
21:10:05PMunchcrem, pretty sure it does
21:10:19PMunchSince you can later edit the slice
21:10:36*Jesin joined #nim
21:12:38cremIndeed.. Is there a way to have immutable slice without copying? Or not slice, but anything. "View into the contents of seq".
21:15:29PMunchA custom type?
21:15:52PMunchobject = start, stop: int; data: seq
21:17:48cremptr seq?.. And define indexing operator?.. Hm, there should be something standard for that! I can the just pass the pair pointer to first element and size, but not sure if it's possible to index a pointer like in C++. :)
21:17:50PMunchThen you can create a proc `[]` that returns data based on the start/stop values and the seq
21:18:25cremYeah, but I'd expect there's something basic for that.
21:18:37PMunchPossible, maybe. Recommended, definitely not.
21:18:56PMunchYou could return a tuple?
21:18:59cremIf seq is immutable, does slicing still copy?
21:19:04PMunchIf you don't want a type?
21:19:09PMunchHmm, good question
21:19:28PMunchCould be that the compiler is smart enough not to
21:19:34*nsf joined #nim
21:20:36*yuken left #nim ("Leaving")
21:20:44cremHm, there is some Slice[] type! Which is different from seq slicing x[a..b]. Might be what I need
21:21:55*arnetheduck joined #nim
21:22:08cremah no, slice is just pair of ints.
21:22:14cremto define slice bounds.
21:22:54PMunchYeah, that's what get passed to a function if you want to create a [x .. y] proc for your own type
21:23:09cremHm, can i slice openarray..
21:24:52cremno i cannot
21:35:29*tankfeeder quit (Quit: Connection closed for inactivity)
21:40:16*arnetheduck quit (Ping timeout: 255 seconds)
22:11:26*Matthias247 quit (Read error: Connection reset by peer)
22:18:15*itseris quit (Read error: Connection reset by peer)
22:19:18*yingjun joined #nim
22:19:30FromGitter<zacharycarter> I'm upgrading the playground now Araq / dom96
22:19:34FromGitter<zacharycarter> gist support should be in shortly
22:19:43dom96zacharycarter: awesome
22:20:00PMunchCool
22:20:11PMunchPaste a link and run?
22:20:50FromGitter<zacharycarter> as soon as the upgrade is done I'll post one
22:23:21*yingjun quit (Ping timeout: 240 seconds)
22:23:54PMunchHaha, I meant is that how the gist support would work?
22:24:10FromGitter<zacharycarter> oh... yup!
22:26:41FromGitter<zacharycarter> weird I'm getting compile errors on linux but not on osx
22:33:17*mahtob quit (Ping timeout: 260 seconds)
22:34:49*rauss joined #nim
22:43:07FromGitter<zacharycarter> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59791afac101bc4e3ac35296]
22:53:59*yglukhov quit (Remote host closed the connection)
22:59:22FromGitter<zacharycarter> dom96: mind turning off caching for a few?
23:00:05dom96zacharycarter: can't test locally?
23:00:24FromGitter<zacharycarter> I had things working locally
23:00:35FromGitter<zacharycarter> then I upgraded my version of Nim
23:00:40FromGitter<zacharycarter> I'll try to get thigns working locally again then bug you
23:03:51dom96turning off cloudflare is risky
23:04:13dom96so it's better if you test locally
23:04:27*nsf quit (Quit: WeeChat 1.9)
23:06:15FromGitter<zacharycarter> gotcha will do
23:10:32*mahtob joined #nim
23:14:47FromGitter<zacharycarter> Araq: I keep getting the following karax error -
23:14:54FromGitter<zacharycarter> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5979226e45fc670746cd7d66]
23:15:24*Nikky left #nim ("WeeChat 1.9")
23:17:49*PMunch quit (Quit: leaving)
23:37:58*sz0 quit (Quit: Connection closed for inactivity)
23:41:33*pilne joined #nim