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:49 | def-pri-pub | Araq: 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:22 | FromGitter | <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:11 | FromGitter | <zacharycarter> @Varriount :P |
03:46:32 | FromGitter | <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:58 | FromGitter | <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:05 | Araq | karax has a way but i forgot the name |
06:01:15 | Araq | but it's just ordinary JS wrapping |
06:01:29 | FromGitter | <zacharycarter> hrm Ideally I'd use whatever karax offers |
06:01:37 | FromGitter | <zacharycarter> I'm almost done with gists |
06:01:45 | * | yingjun quit (Remote host closed the connection) |
06:02:01 | FromGitter | <zacharycarter> I think I found it |
06:02:42 | FromGitter | <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:46 | Araq | the new reorder feature is now available via |
07:00:51 | Araq | {.reorder: on.} |
07:03:51 | * | Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
07:04:39 | Arrrr | What does it do? |
07:08:46 | * | Vladar quit (Quit: Leaving) |
07:12:35 | ftsf | reorders 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:54 | Araq | Arrrr: another attempt to solve the "no forward decls required" problem |
07:25:56 | Arrrr | Another? What happened to the first one? |
07:35:40 | Araq | too 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:56 | FromGitter | <TiberiumN> Araq: will "reorder" feature become default sometime? Or you will add it to experimental features? |
09:41:30 | * | Arrrr joined #nim |
09:42:50 | Araq | it needs much more testing but I hope it to become the default soon'ish |
09:43:10 | Araq | it's not planned as yet another on/off switch people have to learn about |
09:43:25 | FromGitter | <TiberiumN> oh, that's good |
09:44:30 | Arrrr | Inter-module? |
09:50:04 | ftsf | \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:43 | FromGitter | <TiberiumN> What is wrong with this code? https://gist.github.com/TiberiumN/40d2e55c8c9d2f1c4c2986b8f3fc53b6 |
10:57:54 | FromGitter | <TiberiumN> it did compile for me, but now it doesn't |
10:58:49 | FromGitter | <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:03 | yglukhov | TiberiumN: future callback should be gcsafe? |
11:04:26 | yglukhov | future.callback = proc() {.gcsafe.} = blabla |
11:04:38 | FromGitter | <TiberiumN> ah, ok, thanks |
11:04:43 | FromGitter | <TiberiumN> but we need to update docs too |
11:04:54 | FromGitter | <TiberiumN> https://nim-lang.org/docs/asyncdispatch.html |
11:05:23 | yglukhov | TiberiumN: are you compiling with --threads:on? |
11:05:27 | FromGitter | <TiberiumN> nope |
11:05:39 | FromGitter | <TiberiumN> my app is one-threaded and async |
11:05:45 | yglukhov | i might be wrong then. does my solution work? |
11:05:53 | FromGitter | <TiberiumN> yes it does |
11:05:59 | yglukhov | interesting... |
11:07:04 | * | couven92 quit (Remote host closed the connection) |
11:07:04 | FromGitter | <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:32 | FromGitter | <TiberiumN> but I don't know what is an indirect call :) |
11:11:11 | * | sz0 joined #nim |
11:14:13 | FromGitter | <zacharycarter> ugh I'm so close to gists for the playground but I'm stuck on query string parsing |
11:16:06 | yglukhov | TiberiumN: you're probably trying to call a non-gcsafe callback from your presumably gcsafe code |
11:17:15 | FromGitter | <TiberiumN> but how callback can be non-gcsafe in one-threaded code? |
11:18:39 | Arrrr | is 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:44 | yglukhov | if 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:13 | FromGitter | <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:49 | mahtob | hi |
12:15:01 | mahtob | i noticed this in forum |
12:15:21 | mahtob | when i want to add python code it doesnt show with syntax highlight |
12:15:25 | mahtob | or php |
12:15:32 | mahtob | but nim code is ok? |
12:15:37 | mahtob | but nim code is ok |
12:18:56 | FromGitter | <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:34 | mahtob | syntax 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:15 | krux02 | mahtob: where is only syntax highlighting for nim? |
13:15:15 | mahtob | http://ix.io/qXy |
13:15:32 | mahtob | i posted it but only nim syntax higlighting |
13:16:06 | * | andrzejku joined #nim |
13:16:34 | FromGitter | <krux02> ah you mean in the forum |
13:17:30 | krux02 | I really think you have to live with it |
13:17:43 | krux02 | I hope it's not too bad |
13:18:30 | * | rauss joined #nim |
13:19:54 | mahtob | issue is why only nim works well? |
13:20:00 | mahtob | i want to understand sense |
13:25:01 | * | couven92 quit (Quit: Client Disconnecting) |
13:32:20 | krux02 | well the forum is a custom software just for the Nim website |
13:32:38 | krux02 | so the language nim is the most important language to support |
13:38:28 | subsetpark | mahtob: 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:12 | PMunch | https://github.com/PMunch/gtk3genui |
13:42:20 | PMunch | Now Genui works for gtk3 as well :) |
13:43:42 | * | PMunch quit (Quit: leaving) |
13:47:02 | mahtob | ok krux02 subsetpark but i couldnt find on code where is highlight parsing :( |
13:48:12 | * | salewski joined #nim |
13:48:34 | mahtob | https://github.com/nim-lang/nimforum/blob/master/utils.nim#L72 ? |
13:48:48 | salewski | PMunch, that is interesting. |
13:49:47 | salewski | I guess you mean for the low level ngtk3? (We have also high level gintro now!) |
13:50:29 | salewski | For the low level gtk3, I am currently preparing a nimble package. |
13:50:59 | mahtob | hey PMUnch |
13:51:14 | mahtob | Verifying dependencies for [email protected] |
13:51:14 | mahtob | Error: Unsatisfied dependency: nim (>= 0.17.1) |
13:51:18 | salewski | I have just updated that gtk3 to latest gtk 3.22 -- nimble package will be called oldgtk3. |
13:51:56 | mahtob | it should be 0.17.0 ? |
13:52:05 | salewski | That name oldgtk3 is a bit misleading, as it is latest 3.22, but I think name is ok, |
13:52:49 | salewski | since we have gintro package now. So people seeing name oldgtkt can guess that there is another package. |
13:54:10 | mahtob | latest 0.17.0 |
13:56:38 | FromGitter | <TiberiumN> No, 0.17.1 is current devel |
13:56:42 | FromGitter | <TiberiumN> Not release version |
13:58:48 | mahtob | https://github.com/nim-lang/Nim/releases |
13:58:53 | mahtob | i am looking here |
13:59:06 | mahtob | do you mean git version on devel branch |
14:01:09 | * | subsetpark quit (Quit: Updating details, brb) |
14:01:19 | * | subsetpark joined #nim |
14:02:47 | FromGitter | <TiberiumN> This version is unreleased |
14:02:51 | FromGitter | <TiberiumN> 1) 17.1 is version in devel branch |
14:03:05 | * | yuken joined #nim |
14:03:06 | FromGitter | <TiberiumN> you can install it by compiling nim sources, or by choosenim (it's easier with choosenim) |
14:03:07 | * | yuken waves |
14:03:38 | salewski | PMunch, I am a bit confused by your gtk3 sources... |
14:03:55 | FromGitter | <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:20 | salewski | Note that there is not stefansalewski/ngtk3 at github currently. |
14:05:00 | salewski | There is ngtk3 at github toplevel, that is lov level gtk 3.20 single packages. |
14:05:54 | salewski | stefansalewski/oldgtk3 will be pushed soon. That is a nimble package with low level 3.22. |
14:12:35 | * | yingjun joined #nim |
14:12:57 | salewski | And PMunch, notice that "import gtk3, glib, gobject" will not work most of the time. |
14:13:49 | salewski | As my gtk3 needs latest glib/gobject and other people may have installed legacy glib/gobject. |
14:15:01 | salewski | So for new oldgtk3 nimble package, import will be: import oldgtk3/[glib, gobject, gtk3, cairo, pango, gio] |
14:15:17 | salewski | Bye. |
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:00 | krux02 | if you have emacs do this: (switch-to-buffer (make-comint "NIM" "nim" nil "secret"))) |
15:46:55 | krux02 | that's a nim repl with path completion and history |
15:47:00 | krux02 | and emacs integration |
15:47:16 | krux02 | minimal emacs integration |
15:47:45 | krux02 | alternatively do "rlwrap nim secret" on the shell |
15:47:50 | krux02 | if you have that |
15:50:21 | subsetpark | dom96: 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:03 | krux02 | subsetpark: well I don't know linenoise is just supposted to be a BSD licensced substitution for GNU readline |
16:03:10 | krux02 | but it falls short in almost everything |
16:04:05 | ehmry | readline is madness if you look into it |
16:04:22 | krux02 | I 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:32 | ehmry | yea |
16:05:25 | krux02 | well 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:29 | krux02 | I like it |
16:06:05 | krux02 | but I never wrote a readline backend, so I don't know how complicated it is |
16:06:22 | krux02 | but I guess it is pretty complicated like almost every GNU stuff that is that old |
16:06:37 | krux02 | ok folks I am out for today |
16:06:53 | * | krux02 quit (Remote host closed the connection) |
16:06:58 | ehmry | yep, 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:23 | FromGitter | <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:23 | FromGitter | <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:01 | crem | Anyone uses nimlime in Windows? |
18:33:03 | FromGitter | <TiberiumN> nah, i use vscode |
18:33:12 | FromGitter | <TiberiumN> I mean nim plugin with vscode :) |
18:33:23 | crem | Seems 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:29 | crem | vs 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:04 | Arrrr | Is nim's libuv broken? https://nim-lang.org/docs/libuv |
18:36:13 | Arrrr | Or alive |
18:37:24 | FromGitter | <TiberiumN> https://nim-lang.org/docs/libuv.html ? |
18:37:29 | * | ShalokShalom joined #nim |
18:37:46 | FromGitter | <TiberiumN> ugh |
18:37:46 | FromGitter | <TiberiumN> https://github.com/joyent/libuv/compare/9f6024a6fa9d254527b4b59af724257df870288b...master |
18:38:10 | FromGitter | <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:13 | Araq | we have our own event loop |
18:50:20 | Araq | don'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:54 | crem | How 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:38 | Araq | crem: for x in mitems(s): x += 1 |
19:09:47 | crem | Thanks! |
19:10:53 | FromGitter | <lateefj> Crem: any luck with protobuf wrapper? |
19:11:13 | * | andrzejku joined #nim |
19:12:13 | crem | Nope, 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:45 | crem | Is there anything more idiomatic for the last element of a seq than x[x.len-1]? |
19:24:52 | Araq | x[^1] |
19:26:17 | crem | Thanks! |
19:32:51 | * | Trustable quit (Quit: Leaving) |
19:34:14 | * | Trustable joined #nim |
19:34:58 | yglukhov | how do i convert a value of type `ptr Foo` to unchecked array[Foo]? |
19:35:51 | crem | new(X) doesn't care whether X is Object or ref to object, right? |
19:37:15 | FromGitter | <TiberiumN> it does |
19:37:27 | FromGitter | <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:57 | crem | Is 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:41 | FromGitter | <TiberiumN> ehm, you can dereference a variable (but not a type) |
19:47:46 | * | Snircle joined #nim |
19:48:38 | crem | to convert ref to ptr, two steps are needed, right? addr(x[]) |
19:49:05 | FromGitter | <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:18 | crem | Somehow I need it in pure nim function. :) |
19:51:12 | FromGitter | <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:41 | PMunch | Hmm, 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:42 | crem | There 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:57 | PMunch | crem, not really |
20:14:01 | * | ShalokShalom joined #nim |
20:14:10 | * | nhywyll quit (Quit: nhywyll) |
20:14:17 | PMunch | But many modules (like tables) requries you to call initSomething() to initialise |
20:14:18 | * | Trustable quit (Remote host closed the connection) |
20:14:30 | PMunch | Which 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:44 | PMunch | http://ix.io/yHM |
20:29:49 | PMunch | Hmm, that doesn't look good |
20:41:01 | mahtob | friends i need some ideas about notifying at nim |
20:41:25 | mahtob | i want to send messages to my friend |
20:41:32 | mahtob | friends* |
20:41:49 | * | Serenitor joined #nim |
20:41:54 | PMunch | Define messages |
20:42:01 | mahtob | they will run a program that listen site |
20:42:14 | mahtob | when i put new messages to central site |
20:42:25 | mahtob | all of them get the message |
20:42:35 | mahtob | i want to code client side in nim |
20:42:51 | mahtob | is there any code example or what do you offer me? |
20:43:24 | * | salewski joined #nim |
20:43:27 | PMunch | So you already have some service that you wat to communicate with? |
20:43:38 | mahtob | yes |
20:43:56 | mahtob | just i edit json file or anything |
20:43:59 | PMunch | Do they offer an API? |
20:43:59 | mahtob | on server |
20:44:07 | PMunch | Ah |
20:44:14 | mahtob | clients will listen the json file |
20:44:21 | PMunch | Right |
20:44:26 | salewski | PMunch, you may consult the logs, I replied concerning gtk3 a few hours earlier. |
20:44:26 | mahtob | if any new message comes ... |
20:44:36 | PMunch | IRC logs? |
20:44:51 | PMunch | mahtob, you should look at the web examples |
20:44:56 | salewski | Nim IRC logs. |
20:45:00 | PMunch | Reading data from a site |
20:45:09 | mahtob | nim code ex? |
20:45:13 | PMunch | And the json module if the messages are in a JSON format :) |
20:45:17 | salewski | https://irclogs.nim-lang.org/ |
20:45:30 | PMunch | Yes, the examples contains code examples |
20:45:46 | PMunch | salewski, yeah I know where to find them :) I was just answering mahtob |
20:46:47 | salewski | PMunch, I will upload nimble package oldgtk3 tomorrow.... Details I wrote some hours ago. |
20:47:06 | PMunch | Yeah I'm reading it now |
20:47:28 | salewski | Bye. |
20:47:33 | * | salewski quit (Client Quit) |
21:05:34 | * | Jesin quit (Quit: Leaving) |
21:07:28 | crem | slicing of seq doesn't copy anything, does it? |
21:10:05 | PMunch | crem, pretty sure it does |
21:10:19 | PMunch | Since you can later edit the slice |
21:10:36 | * | Jesin joined #nim |
21:12:38 | crem | Indeed.. Is there a way to have immutable slice without copying? Or not slice, but anything. "View into the contents of seq". |
21:15:29 | PMunch | A custom type? |
21:15:52 | PMunch | object = start, stop: int; data: seq |
21:17:48 | crem | ptr 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:50 | PMunch | Then you can create a proc `[]` that returns data based on the start/stop values and the seq |
21:18:25 | crem | Yeah, but I'd expect there's something basic for that. |
21:18:37 | PMunch | Possible, maybe. Recommended, definitely not. |
21:18:56 | PMunch | You could return a tuple? |
21:18:59 | crem | If seq is immutable, does slicing still copy? |
21:19:04 | PMunch | If you don't want a type? |
21:19:09 | PMunch | Hmm, good question |
21:19:28 | PMunch | Could be that the compiler is smart enough not to |
21:19:34 | * | nsf joined #nim |
21:20:36 | * | yuken left #nim ("Leaving") |
21:20:44 | crem | Hm, 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:08 | crem | ah no, slice is just pair of ints. |
21:22:14 | crem | to define slice bounds. |
21:22:54 | PMunch | Yeah, that's what get passed to a function if you want to create a [x .. y] proc for your own type |
21:23:09 | crem | Hm, can i slice openarray.. |
21:24:52 | crem | no 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:30 | FromGitter | <zacharycarter> I'm upgrading the playground now Araq / dom96 |
22:19:34 | FromGitter | <zacharycarter> gist support should be in shortly |
22:19:43 | dom96 | zacharycarter: awesome |
22:20:00 | PMunch | Cool |
22:20:11 | PMunch | Paste a link and run? |
22:20:50 | FromGitter | <zacharycarter> as soon as the upgrade is done I'll post one |
22:23:21 | * | yingjun quit (Ping timeout: 240 seconds) |
22:23:54 | PMunch | Haha, I meant is that how the gist support would work? |
22:24:10 | FromGitter | <zacharycarter> oh... yup! |
22:26:41 | FromGitter | <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:07 | FromGitter | <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:22 | FromGitter | <zacharycarter> dom96: mind turning off caching for a few? |
23:00:05 | dom96 | zacharycarter: can't test locally? |
23:00:24 | FromGitter | <zacharycarter> I had things working locally |
23:00:35 | FromGitter | <zacharycarter> then I upgraded my version of Nim |
23:00:40 | FromGitter | <zacharycarter> I'll try to get thigns working locally again then bug you |
23:03:51 | dom96 | turning off cloudflare is risky |
23:04:13 | dom96 | so it's better if you test locally |
23:04:27 | * | nsf quit (Quit: WeeChat 1.9) |
23:06:15 | FromGitter | <zacharycarter> gotcha will do |
23:10:32 | * | mahtob joined #nim |
23:14:47 | FromGitter | <zacharycarter> Araq: I keep getting the following karax error - |
23:14:54 | FromGitter | <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 |