00:01:34 | * | filwit quit (Quit: Konversation terminated!) |
00:04:01 | * | yglukhov joined #nim |
00:08:36 | * | yglukhov quit (Ping timeout: 265 seconds) |
00:16:29 | * | kulelu88 quit (Quit: Leaving) |
00:21:37 | * | endragor joined #nim |
00:26:01 | * | endragor quit (Ping timeout: 244 seconds) |
00:26:54 | * | pregressive quit (Remote host closed the connection) |
00:27:28 | * | pregressive joined #nim |
00:29:12 | * | PMunch quit (Quit: leaving) |
00:29:46 | * | nairobi joined #nim |
00:31:48 | * | pregressive quit (Ping timeout: 250 seconds) |
00:33:52 | * | nairobi quit (Ping timeout: 240 seconds) |
00:38:20 | * | kulelu88 joined #nim |
00:50:41 | * | ftsf joined #nim |
01:02:34 | * | kssreeram joined #nim |
01:04:06 | * | endragor joined #nim |
01:06:10 | * | yglukhov joined #nim |
01:08:13 | * | endragor quit (Ping timeout: 244 seconds) |
01:09:42 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
01:11:21 | * | yglukhov quit (Ping timeout: 276 seconds) |
01:21:29 | * | endragor joined #nim |
01:23:29 | * | brson quit (Quit: leaving) |
01:23:48 | * | Trixar_za is now known as Trixar |
01:23:49 | * | nairobi joined #nim |
01:25:34 | * | Trixar quit (Quit: Leaving) |
01:26:18 | * | endragor quit (Ping timeout: 276 seconds) |
01:29:33 | * | nairobi quit (Ping timeout: 276 seconds) |
01:36:54 | * | kulelu88 quit (Quit: Leaving) |
01:46:45 | * | endragor joined #nim |
01:48:31 | * | Trixar_za joined #nim |
01:51:21 | * | endragor quit (Remote host closed the connection) |
01:53:29 | * | chemist69_ joined #nim |
01:56:27 | * | chemist69 quit (Ping timeout: 250 seconds) |
01:59:57 | * | endragor joined #nim |
02:00:32 | * | kingofoz quit (Ping timeout: 240 seconds) |
02:01:02 | * | kingofoz joined #nim |
02:02:08 | * | pdv joined #nim |
02:27:14 | * | kssreeram quit (Ping timeout: 265 seconds) |
03:08:05 | * | yglukhov joined #nim |
03:11:25 | * | zahary joined #nim |
03:12:54 | * | yglukhov quit (Ping timeout: 276 seconds) |
03:12:57 | * | zahary quit (Read error: Connection reset by peer) |
03:13:55 | pdv | Could anyone please take a look at this? https://github.com/nim-lang/Nim/issues/4597 |
03:20:41 | * | kssreeram joined #nim |
03:28:17 | * | space-wizard joined #nim |
03:30:36 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
03:47:40 | * | Sentreen quit (Ping timeout: 250 seconds) |
03:51:02 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
03:51:08 | * | xet7_ quit (Ping timeout: 250 seconds) |
03:52:48 | * | Sentreen joined #nim |
04:11:29 | * | kssreeram joined #nim |
04:31:05 | * | kssreeram quit (Read error: Connection reset by peer) |
04:35:55 | * | kssreeram joined #nim |
04:40:15 | * | chemist69_ quit (Ping timeout: 250 seconds) |
04:42:39 | * | kssreeram quit (Ping timeout: 265 seconds) |
04:43:10 | * | chemist69_ joined #nim |
04:48:39 | * | kssreeram joined #nim |
04:49:35 | * | zahary joined #nim |
04:50:40 | * | shodan45 quit (Quit: Konversation terminated!) |
04:53:41 | * | ftsf quit (Ping timeout: 250 seconds) |
04:54:18 | * | zahary quit (Ping timeout: 276 seconds) |
04:59:36 | * | ftsf joined #nim |
05:07:41 | * | zahary joined #nim |
05:09:30 | * | yglukhov joined #nim |
05:14:27 | * | yglukhov quit (Ping timeout: 276 seconds) |
05:21:46 | * | kingofoz quit (Ping timeout: 258 seconds) |
05:22:44 | * | kingofoz joined #nim |
05:35:17 | * | endragor quit (Remote host closed the connection) |
05:38:09 | * | brson joined #nim |
05:42:07 | * | endragor joined #nim |
05:42:17 | * | endragor quit (Remote host closed the connection) |
05:42:24 | * | endragor joined #nim |
05:43:48 | * | CARAM___ joined #nim |
05:48:39 | * | CARAM__ quit (Ping timeout: 250 seconds) |
05:48:39 | * | flyx quit (Ping timeout: 250 seconds) |
05:48:39 | * | Learath2 quit (Ping timeout: 250 seconds) |
05:48:39 | * | saml quit (Ping timeout: 250 seconds) |
05:48:48 | * | Lea2 joined #nim |
05:49:27 | * | flyx joined #nim |
05:49:51 | * | saml joined #nim |
05:50:51 | * | CARAM___ is now known as CARAM__ |
05:56:51 | * | endragor quit (Remote host closed the connection) |
06:10:38 | * | flyx quit (Quit: ZNC - http://znc.in) |
06:11:15 | * | flyx joined #nim |
06:24:36 | * | nairobi joined #nim |
06:29:15 | * | nairobi quit (Ping timeout: 264 seconds) |
06:47:46 | * | endragor joined #nim |
06:51:17 | * | endragor quit (Remote host closed the connection) |
06:52:37 | * | chrisheller quit (Ping timeout: 252 seconds) |
06:52:48 | * | chrisheller joined #nim |
07:01:25 | * | chrisheller quit (Ping timeout: 252 seconds) |
07:01:28 | * | chrishel_ joined #nim |
07:09:07 | * | chrishel_ quit (Ping timeout: 252 seconds) |
07:09:31 | * | chrisheller joined #nim |
07:11:31 | * | yglukhov joined #nim |
07:16:39 | * | yglukhov quit (Ping timeout: 276 seconds) |
07:16:49 | * | chrisheller quit (Ping timeout: 252 seconds) |
07:18:57 | * | nairobi joined #nim |
07:20:56 | * | Trustable joined #nim |
07:22:29 | * | nairobi_ joined #nim |
07:22:34 | * | brson quit (Ping timeout: 258 seconds) |
07:23:48 | * | nairobi quit (Ping timeout: 276 seconds) |
07:28:07 | * | allan0 quit (Ping timeout: 244 seconds) |
07:33:37 | * | allan0 joined #nim |
07:37:59 | * | nairobi_ quit (Read error: Connection timed out) |
07:39:07 | * | nairobi joined #nim |
07:41:26 | * | endragor joined #nim |
07:41:27 | * | zahary quit (Read error: Connection reset by peer) |
07:41:40 | * | zahary joined #nim |
07:44:00 | * | brechtm joined #nim |
07:44:36 | * | Parashurama joined #nim |
07:48:27 | * | allan0 quit (Ping timeout: 264 seconds) |
07:54:45 | * | allan0 joined #nim |
07:55:14 | * | nairobi quit (Read error: Connection timed out) |
07:56:35 | * | nairobi joined #nim |
08:02:28 | * | ftsf quit (Quit: :q!) |
08:03:53 | * | Arrrr joined #nim |
08:03:53 | * | Arrrr quit (Changing host) |
08:03:53 | * | Arrrr joined #nim |
08:04:48 | * | allan0 quit (Ping timeout: 244 seconds) |
08:06:51 | * | miere joined #nim |
08:10:41 | * | allan0 joined #nim |
08:10:41 | * | brechtm_ joined #nim |
08:14:15 | * | brechtm quit (Ping timeout: 258 seconds) |
08:23:22 | * | chemist69_ quit (Quit: WeeChat 1.5) |
08:28:34 | * | yglukhov joined #nim |
08:29:47 | * | chemist69 joined #nim |
08:44:03 | * | hendi__ joined #nim |
08:48:17 | Araq | pdv: looks like you're close to fixing it :-) |
08:48:48 | Araq | I've grown to dislike condition variables because they are so prone to deadlocks |
08:53:10 | pdv | Not so much to fixing it, rather to implementing a temporary workaround. Regrettably, I just don't have the time for the permanent solution right now. |
08:53:30 | * | hendi__ quit (Ping timeout: 265 seconds) |
08:56:17 | Araq | I planned to replace the cond vars with timed cond vars everywhere |
08:56:52 | cheatfate | Araq, when closure environment going to be freed? |
08:57:27 | Araq | but posix makes this so messy. with the Win API it's just one additional argument |
08:57:45 | Araq | cheatfate: it's GC'ed |
08:58:24 | cheatfate | Araq, yeah i know but in what condition GC will free it? |
08:59:18 | * | gokr joined #nim |
09:01:37 | cheatfate | it will be freed when all objects inside of environment are refed to zero? |
09:02:01 | Araq | that makes no sense |
09:14:20 | * | endragor quit (Remote host closed the connection) |
09:15:35 | * | zahary quit (Ping timeout: 244 seconds) |
09:16:40 | Arrrr | Do converters harm compilation times too much? I never use them. |
09:17:09 | * | endragor joined #nim |
09:17:17 | * | zahary joined #nim |
09:17:35 | Araq | yes, the are currently not handled with intelligence |
09:26:59 | * | Parashurama quit (Quit: ChatZilla 0.9.92 [Firefox 48.0/20160728203720]) |
09:28:50 | * | nairobi quit (Remote host closed the connection) |
09:29:27 | * | nairobi joined #nim |
09:29:37 | * | nairobi quit (Read error: Connection reset by peer) |
09:30:05 | * | nairobi joined #nim |
09:31:34 | * | nairobi_ joined #nim |
09:32:18 | * | nairobi__ joined #nim |
09:34:35 | * | nairobi quit (Ping timeout: 265 seconds) |
09:36:10 | * | elrood joined #nim |
09:36:24 | * | nairobi_ quit (Ping timeout: 276 seconds) |
09:37:03 | * | nairobi__ quit (Ping timeout: 264 seconds) |
09:37:37 | * | rusua joined #nim |
09:37:43 | Arrrr | Heh, i bet they are not included in v2. |
09:50:31 | * | nairobi joined #nim |
09:53:36 | * | kssreeram quit (Ping timeout: 258 seconds) |
09:55:30 | * | TheLemonMan joined #nim |
10:00:41 | * | kssreeram joined #nim |
10:06:19 | gokr | Something confuses me with nimble... |
10:10:45 | gokr | Aha, I think I understand... so... "nimble install" seems to first build properly for release, and put binaries into bin BUT... |
10:11:06 | gokr | ...it then looks for the binaries to install first in srcDir and then in binDir... |
10:11:30 | gokr | ...which means that if there is a binary in srcDir (like say I had one in there built manually) - it will get installed instead! |
10:11:48 | gokr | That has been confusing me like hell for a long time. |
10:12:20 | gokr | I run nimble install, it compiles and all - and then when I run it's still an old binary. Not good. |
10:12:40 | gokr | dom96: So am I right, this is a bug? |
10:17:05 | * | Demon_Fox quit (Quit: Leaving) |
10:17:22 | * | euantor joined #nim |
10:22:54 | * | kssreeram quit (Read error: Connection reset by peer) |
10:25:05 | * | rusua quit (Quit: Textual IRC Client: www.textualapp.com) |
10:30:43 | * | kssreeram joined #nim |
10:35:08 | * | namnguyen quit (Ping timeout: 250 seconds) |
10:47:18 | * | namnguyen joined #nim |
11:01:27 | * | Arrrr quit (Ping timeout: 258 seconds) |
11:17:13 | * | pdv quit (Remote host closed the connection) |
11:18:03 | * | Arrrr joined #nim |
11:18:03 | * | Arrrr quit (Changing host) |
11:18:03 | * | Arrrr joined #nim |
11:24:01 | * | fredrik92 joined #nim |
11:38:03 | * | kssreeram quit (Ping timeout: 240 seconds) |
11:41:07 | * | euantor quit (Quit: Leaving) |
11:46:49 | * | hendi__ joined #nim |
11:46:53 | * | michael_campbell joined #nim |
11:46:54 | * | miere quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) |
11:47:11 | * | miere joined #nim |
11:53:23 | * | miere43 joined #nim |
11:56:10 | * | miere quit (Ping timeout: 250 seconds) |
11:56:33 | * | michael_campbell quit (Quit: Textual IRC Client: www.textualapp.com) |
12:03:57 | * | zahary quit (Ping timeout: 276 seconds) |
12:06:24 | * | zahary joined #nim |
12:09:15 | * | zahary1 joined #nim |
12:09:16 | * | zahary quit (Read error: Connection reset by peer) |
12:11:54 | * | desophos quit (Read error: Connection reset by peer) |
12:15:11 | * | michael_campbell joined #nim |
12:18:41 | * | Arrrr_ joined #nim |
12:20:23 | * | ftsf joined #nim |
12:21:34 | * | Arrrr quit (Ping timeout: 258 seconds) |
12:25:49 | * | Arrrr_ quit (Read error: Connection reset by peer) |
12:28:56 | * | nsf quit (Quit: WeeChat 1.5) |
12:36:25 | * | miere43 quit (Read error: Connection reset by peer) |
12:41:12 | literal | beginner here...is there a way to pretty-print any datastructure? |
12:45:36 | flyx | literal: most basic way: echo foo.repr |
12:45:48 | flyx | literal: nicer way: use the marshal module |
12:48:10 | flyx | i.e. import marshal; echo $$foo |
12:52:34 | * | coffeepot joined #nim |
12:56:44 | literal | nice, thanks |
12:57:27 | * | brechtm joined #nim |
13:01:03 | * | brechtm_ quit (Ping timeout: 264 seconds) |
13:01:10 | * | nairobi quit (Remote host closed the connection) |
13:07:17 | * | emery joined #nim |
13:10:16 | * | kssreeram joined #nim |
13:10:18 | * | zahary1 quit (Read error: Connection reset by peer) |
13:14:01 | * | nairobi joined #nim |
13:14:38 | * | zahary joined #nim |
13:16:45 | * | Eyes quit (Ping timeout: 276 seconds) |
13:18:04 | literal | so, I got spawn() working, but I'm trying to use it inside a parallel block and I get an error from the disjoint checker: https://gist.github.com/hinrik/379b7e125b3471b41333f31f86994851 |
13:18:32 | literal | what am I doing wrong there? |
13:18:42 | * | nairobi quit (Ping timeout: 276 seconds) |
13:18:57 | * | nairobi joined #nim |
13:21:16 | * | SunDwarf joined #nim |
13:21:22 | * | emery quit (Ping timeout: 258 seconds) |
13:22:08 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
13:22:41 | * | coffeepot joined #nim |
13:23:41 | * | nairobi quit (Ping timeout: 265 seconds) |
13:24:48 | * | brechtm quit (Remote host closed the connection) |
13:26:10 | * | coffeepot quit (Client Quit) |
13:26:19 | * | coffeepot joined #nim |
13:26:54 | * | brechtm joined #nim |
13:32:07 | flyx | literal: not sure why, but parallel has to be inside a proc |
13:32:47 | flyx | literal: I guess this is because of the immutability check. if res is declared inside a proc, it is not a global and that may help the compiler prove that it is immutable |
13:34:15 | literal | yeah, works now that I put it into a proc |
13:34:50 | * | nairobi joined #nim |
13:34:58 | * | euantor joined #nim |
13:35:16 | * | xet7_ joined #nim |
13:43:45 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
13:43:57 | * | coffeepot joined #nim |
13:50:34 | * | nairobi quit (Read error: Connection timed out) |
13:51:21 | * | nairobi joined #nim |
13:54:27 | * | PMunch joined #nim |
13:59:52 | literal | unfortunate that db_sqlite doesn't support SQLite's prepared statements |
14:02:39 | ftsf | literal, could add it? =) |
14:06:01 | * | Gonzih quit (Quit: WeeChat 1.5) |
14:06:47 | * | Gonzih joined #nim |
14:08:33 | * | nairobi quit (Read error: Connection timed out) |
14:09:53 | * | nairobi joined #nim |
14:10:23 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
14:11:20 | Araq | dom96: what is wrong here? https://travis-ci.org/nim-lang/nimble/builds/151501241 |
14:11:40 | Araq | I only modified readme.markdown :P |
14:11:41 | literal | ftsf: don't know C, or even Nim, seems like a bit too much work for me atm :P |
14:13:14 | literal | I'd need an interface for SQLite's backup interface too... |
14:14:21 | * | nairobi quit (Ping timeout: 265 seconds) |
14:14:42 | * | zahary quit (Ping timeout: 250 seconds) |
14:15:26 | * | nairobi joined #nim |
14:17:53 | * | endragor quit (Remote host closed the connection) |
14:23:31 | * | chrisheller joined #nim |
14:34:43 | * | zahary joined #nim |
14:36:29 | * | jjido joined #nim |
14:36:48 | * | jjido left #nim (#nim) |
14:47:59 | * | brson joined #nim |
15:06:28 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
15:09:57 | * | pregressive joined #nim |
15:14:07 | * | cheatfate_ joined #nim |
15:14:27 | * | coffeepot joined #nim |
15:17:00 | * | cheatfate quit (Ping timeout: 276 seconds) |
15:23:54 | * | brson quit (Quit: leaving) |
15:25:25 | * | brson joined #nim |
15:31:01 | coffeepot | if I have an object I want to use in a thread, what's the best way to copy it and satisfy the compiler? |
15:32:39 | * | brson quit (Quit: leaving) |
15:33:01 | * | brson joined #nim |
15:34:33 | Araq | just pass it as an arg to the spawn'ed proc? |
15:34:41 | Araq | the compiler injects a deepcopy for you then |
15:35:09 | Araq | if you don't want a copy pass it via 'ptr' and be careful |
15:37:29 | * | fredrik92 quit (Quit: Shutting down...) |
15:38:27 | coffeepot | okay, but what about things like jester, I wanted to pass around an object containing db params. Will deepCopy work if I call it in a thread (as opposed to the compiler injecting it)? |
15:39:37 | coffeepot | I mean, assuming jester is threaded. Which I'm not sure it is or not tbh |
15:39:53 | euantor | Anybody seen this? It's an interesting look at async Futures elsewhere: http://aturon.github.io/blog/2016/08/11/futures/ |
15:45:14 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
15:45:27 | * | coffeepot joined #nim |
15:46:47 | * | zahary1 joined #nim |
15:46:47 | * | zahary quit (Read error: Connection reset by peer) |
15:55:07 | * | Jesin quit (Quit: Leaving) |
15:59:46 | * | euantor quit (Quit: Leaving) |
16:00:52 | * | yglukhov quit (Ping timeout: 250 seconds) |
16:01:48 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
16:04:25 | * | coffeepot joined #nim |
16:08:15 | * | zahary1 quit (Ping timeout: 264 seconds) |
16:11:58 | cheatfate_ | rust is so ugly |
16:12:11 | namnguyen | panic! |
16:12:40 | ftsf | is it good though? |
16:13:15 | namnguyen | i think it's pretty interesting. |
16:13:16 | namnguyen | good? yeah. C is good too. |
16:13:28 | cheatfate_ | i just tried to read issue about async Futures by rust ^^^. and i can't understand code |
16:14:17 | cheatfate_ | and even this simple tcp echo server looks ugly https://github.com/alexcrichton/futures-rs/blob/master/futures-mio/src/bin/echo.rs |
16:14:33 | * | zahary joined #nim |
16:14:43 | namnguyen | the idea of moving more checks to compile time is a great one. moreover, the checks are provably correct. that alone deserves attention. |
16:15:00 | namnguyen | but the language syntax is really off putting |
16:15:48 | ftsf | yeah readability is pretty important |
16:16:15 | cheatfate_ | async state machine of course will be faster but you need very curved head to accomplish more complex task, then tcp echo server |
16:16:56 | * | space-wizard joined #nim |
16:17:13 | namnguyen | ftsf, which is also why i'm still on the fence with Nim, due to its camelCase naming convention, and the use of * to export symbols. |
16:17:29 | * | miere joined #nim |
16:17:32 | * | pregressive quit () |
16:17:37 | namnguyen | i can get used to the *, but camelCase is a bigger hurdle for me. |
16:17:58 | ftsf | namnguyen, you don't have to use camel_case |
16:18:11 | dom96 | namnguyen: the language is style insensitive for a reason, use whatever style you like |
16:18:14 | ftsf | but I agree the case thing is weird, as is the * for readability |
16:18:15 | namnguyen | i don't. but the stdlib and other libs do. |
16:18:27 | ftsf | namnguyen, but you can use whatever you want for the stdlib |
16:18:54 | ftsf | I was skeptical of it at first |
16:19:00 | dom96 | cheatfate_: yay, our async is better :) |
16:19:01 | namnguyen | ftsf, i'm intrigued. what are you saying? |
16:19:02 | ftsf | but I've been developing for a while now and it's never been an issue |
16:19:06 | namnguyen | like, if the function is named "abcDef", i can call it "abc_def"? |
16:19:09 | ftsf | fooBar is the same as foo_bar |
16:19:14 | ftsf | yep |
16:19:20 | ftsf | or foobar |
16:19:21 | namnguyen | oh, wow. i didn't know that. |
16:19:27 | ftsf | or fOOBaR if you really want |
16:19:31 | * | pregressive joined #nim |
16:19:35 | ftsf | only the first character's case is important |
16:19:43 | ftsf | and _s are ignored |
16:19:55 | ftsf | although you can't have variables starting with _ |
16:20:05 | ftsf | which i sometimes find irritating |
16:20:14 | ftsf | but it's not a big deal |
16:20:21 | namnguyen | ftsf, put it... behind then? abc_? |
16:20:22 | dom96 | yep, that is what I was referring to by saying "style insensitive" |
16:20:32 | dom96 | namnguyen: That's disallowed too |
16:21:04 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
16:23:13 | dom96 | It's amazing how many people are put off by this |
16:23:24 | ftsf | weird things put people off =p |
16:23:29 | dom96 | I'm working in Python now and getting annoyed by the underscores |
16:23:32 | ftsf | change is hard |
16:23:50 | dom96 | although I keep changing my mind about style insensitivity |
16:23:59 | ftsf | lack of static typing makes it hard for me to go back to python |
16:24:07 | namnguyen | i do like that abc is the same as aBc or whatever. |
16:24:22 | namnguyen | because to the human, you don't want to remember small a, cap B, small c |
16:24:28 | namnguyen | you only want to call it abc |
16:24:32 | dom96 | the project I'm working on is using type annotations and I am encouraged to use them too |
16:24:47 | dom96 | becomes so much like Nim it's unbelievable |
16:24:52 | namnguyen | however, the disadvantage is coming up with new names for new functions |
16:24:54 | ftsf | yeah, i was looking at those yesterday |
16:25:03 | ftsf | they look useful, what do you use for enforcing the types? |
16:25:24 | namnguyen | pytype is pretty good. there was a presentation about it in this year pycon. |
16:25:35 | dom96 | PyCharm gives some nice soft warnings |
16:26:00 | ftsf | cool, might have a look at it for my work project |
16:26:17 | ftsf | type checking would have saved a lot of time |
16:26:36 | dom96 | I'm planning on creating a suite of macros to allow Nim to become very much like Python |
16:26:39 | * | euantor joined #nim |
16:26:42 | dom96 | in particular class definitions |
16:33:10 | ftsf | I haven't really been missing much about python |
16:33:42 | ftsf | most difficult thing about switching to nim is the compiler error messages |
16:38:14 | * | euantor quit (Remote host closed the connection) |
16:45:17 | gokr | dom96: Did you see what I wrote about nimble earlier today? |
16:45:33 | dom96 | gokr: nope, what time? |
16:46:19 | gokr | 12.06 ehrm... 6h40min ago |
16:47:43 | dom96 | gokr: sure, sounds like a bug. |
16:48:01 | dom96 | If I understand correctly, you defined a ``binDir`` in your .nimble file as well as a ``srcDir`` right? |
16:48:02 | gokr | It really confused me for a long time ;) |
16:48:07 | gokr | yeah |
16:48:13 | dom96 | yeah, most definitely a bug |
16:48:15 | dom96 | please report |
16:48:22 | gokr | https://github.com/gokr/spry/blob/master/spry.nimble |
16:48:33 | gokr | Okidoki |
16:49:18 | * | zahary quit (Quit: Leaving.) |
16:49:57 | dom96 | Araq: lol, not cool regarding Travis |
16:50:06 | dom96 | and you editing my installation instructions |
16:50:14 | dom96 | But I give up |
16:50:49 | dom96 | I don't know how people that installed Nim via apt-get or other package managers will install Nimble now though |
16:51:32 | gokr | dom96: I made https://github.com/nim-lang/nimble/issues/247 |
16:51:32 | * | endragor joined #nim |
16:52:00 | dom96 | thx |
16:53:50 | * | rok joined #nim |
16:54:05 | Araq | we discussed this for hours and you agreed |
16:55:58 | * | endragor quit (Ping timeout: 258 seconds) |
16:56:14 | federico3 | dom96: are you talking about the unholy bundling? https://github.com/nim-lang/nimble/issues/234 |
16:56:56 | Araq | the answer to this question is A) |
16:57:01 | dom96 | Araq: if so then it must have been months ago that we discussed it |
16:57:16 | Araq | next time I'll keep the logs |
16:57:32 | dom96 | sure, Nimble can be bundled with Nim but no to "They are released with the same version." |
16:57:49 | dom96 | Araq: I believe you, just would be nice for you to quickly ask once again. |
16:59:23 | * | dyce_ quit (Read error: Connection reset by peer) |
16:59:48 | * | AnonymousCoward joined #nim |
17:01:32 | dom96 | I guess in reality my answer to that question is B) |
17:01:51 | * | dyce_ joined #nim |
17:03:43 | * | euantor joined #nim |
17:04:48 | federico3 | dom96: so you are going to remove the need of a git clone of Nim to build? |
17:05:29 | dom96 | No, I can't. |
17:05:34 | * | chemist69 quit (Ping timeout: 260 seconds) |
17:05:44 | federico3 | then it's not B, it's something else |
17:06:16 | dom96 | federico3: What do you think I should do? |
17:07:49 | dom96 | I think the best solution is: provide Nimble binaries. |
17:08:06 | dom96 | There are many applications/libraries which I wouldn't dream of building myself without spending days |
17:08:07 | federico3 | either go for A or B for real, otherwise C: keep a permanent copy of the few Nim sources you need inside the Nimble repo. Or D: move the needed stuff out of Nim into a new "nim-base" :( |
17:08:31 | dom96 | So why should we expect every single person wanting to use Nimble to build it themselves? |
17:09:02 | dom96 | AFAIK B is impossible. Unless I am misunderstanding. |
17:09:09 | federico3 | why "every"? |
17:09:27 | federico3 | why is it impossible? |
17:09:35 | dom96 | Because Nimble depends on the compiler sources |
17:10:03 | dom96 | The only way to do is to remove Nimscript support |
17:10:06 | dom96 | *to do it |
17:10:14 | Araq | it's really simple: nim+nimsuggest+nimble all reside in $nim/bin and use the same lookup rules to figure how where the heck the stdlib is |
17:10:15 | dom96 | I'm not sure what you mean by "Why 'every'?" |
17:10:17 | federico3 | I get that, but why does it has to depend on the sources? both C and D would remove the dependency |
17:10:36 | Araq | if 'nim' can find it, then so can 'nimble' |
17:10:47 | dom96 | Okay |
17:10:50 | dom96 | so there are actually two issues here |
17:10:58 | Araq | packagers need to do the same with nimble.exe with nim.exe |
17:11:01 | cheatfate_ | what is A,B,C,D? |
17:11:08 | dom96 | 1) Building Nimble isn't easy because there is a dependency on the Nim sources |
17:11:29 | federico3 | of course Nimble can access the usual Nim installed libraries. It might be the case that some Nim sorces are not being installed ? |
17:11:39 | dom96 | 2) Using Nimble isn't easy because it needs to find the standard library, but people love to put it in strange places. |
17:11:42 | Araq | and the source based installation has a "nim finish installation" script or whatever that builds nimsuggest and nimble after boostrapping |
17:11:51 | federico3 | cheatfate_: A and B are listed on the bug report, option C and D are listed above |
17:12:15 | dom96 | Araq insists that the way to solve 2) is to keep Nimble.exe together with Nim.exe |
17:12:45 | dom96 | But I think that 2) is mostly solved, with the exception of a few strange bugs. |
17:12:48 | Araq | everything else is more complex than it needs to be and we let the unix beards come up with all the accidentical complexity |
17:13:14 | Araq | it's the "source based" installation |
17:13:23 | Araq | use your package manager if you want something else. |
17:13:32 | federico3 | that sounds like A: the binary tarballs contains both Nim and Nimble, also the source tarball contains both sources |
17:15:20 | euantor | Nim/Nimble are pretty closely linked, IMO it would make sense for them to be distributed together |
17:15:55 | federico3 | (and the binary package, ideally, should build cleanly from the source package) |
17:16:21 | dom96 | Okay. So I thought A) meant that the Nimble and Nim repos should merge. |
17:16:48 | dom96 | But if you just want Nim source tarballs to contain Nimble as well then that's fine with me. |
17:16:55 | Araq | no, nobody wants to merge the repos. |
17:17:04 | dom96 | But these tarballs should contain the latest Nimble version |
17:17:11 | Araq | it's always been about the installation instructions and tarballs |
17:17:21 | federico3 | no need to merge the git repos - the Nim repo could contain a git submodule *OR* the Nimble repo could be pulled just before building the source package |
17:17:36 | euantor | Yeah, I far prefer there being separate repositories |
17:17:44 | Araq | that's what install_nimble.nims does ... |
17:17:47 | euantor | If nothing else, it makes it clear where issues are |
17:17:53 | dom96 | Is there a reason why Nimble's versions should match Nim's? |
17:18:08 | Araq | no, nim ships with the latest stable nimble release |
17:18:14 | dom96 | Okay, good. |
17:18:23 | Araq | the koch script already supports this |
17:18:43 | Araq | and install_nimble should do so too. |
17:18:45 | federico3 | release, not the HEAD, right? :) |
17:19:02 | Araq | federico3: yeah that git tag thingie that gives us boners |
17:19:27 | federico3 | and with that, nimble -v would let the user know exactly what version is running |
17:19:52 | dom96 | sure |
17:20:01 | Araq | though personally I prefer git HEAD, nimble is stable. |
17:20:06 | dom96 | And yes, we were already going to do that but IIRC we ran into problems |
17:20:20 | dom96 | (in the last release) |
17:20:36 | dom96 | Only problem I can foresee is if latest Nimble release cannot be compiled by latest Nim |
17:20:49 | dom96 | s/latest Nim/devel nim that's just about to be released/ |
17:20:54 | federico3 | that would block the release, which would be the right thing to do |
17:21:02 | dom96 | That's what I thought too |
17:21:03 | * | libman joined #nim |
17:21:22 | dom96 | Anybody wanna write this up as the Nim release procedure in the wiki or somewhere? :) |
17:21:53 | federico3 | me, gladly, but I need to know the other steps you are doing right now |
17:21:56 | dom96 | Actually we already have this: https://github.com/nim-lang/Nim/wiki/Creating-a-release |
17:22:03 | Araq | it's automated as far as I'm concerned |
17:22:05 | dom96 | so just add it there |
17:22:12 | dom96 | federico3: that would be brilliant, thanks! |
17:22:27 | dom96 | Araq: it is? |
17:22:30 | Araq | we spent days on this thing the last time. |
17:22:40 | dom96 | Araq: where is the automation? |
17:22:44 | Araq | in koch. |
17:23:12 | dom96 | Still, the procedure should be documented |
17:23:23 | federico3 | yep |
17:23:24 | dom96 | even if it is "Run `koch genRelease`" or whatever it is |
17:23:31 | dom96 | but I doubt it's that simple |
17:23:42 | dom96 | Araq: So please, tell us more about this automation |
17:24:13 | * | chemist69 joined #nim |
17:24:31 | * | endragor joined #nim |
17:24:42 | dom96 | I don't see anything in the help |
17:24:48 | Araq | koch tests the source based installation. |
17:25:08 | * | yglukhov joined #nim |
17:26:13 | Araq | koch csources -d:release && koch xz && koch testinstall |
17:26:43 | dom96 | okay cool |
17:26:55 | Araq | you can create an alias aka 'koch genInstall' for that but it's completely futile since you know release building is not so easy |
17:27:14 | dom96 | So, does 'koch xz' pull nimble into the .xz archive? |
17:27:18 | dom96 | Precisely |
17:27:26 | dom96 | That's why we need to document the release process |
17:27:58 | Araq | I build the windows installers on windows and the unix installers on Plan 9 |
17:28:19 | dom96 | hah, I don't believe that you use Plan 9 |
17:28:34 | dom96 | We should think about buying a windows server to make builds on |
17:28:43 | dom96 | and to automate it as much as possible |
17:28:44 | * | nairobi quit (Read error: Connection reset by peer) |
17:28:50 | * | endragor quit (Ping timeout: 250 seconds) |
17:28:53 | dom96 | I'm sure there is something that allows installers to be tested automatically |
17:29:03 | Araq | we keep saying this for years now. |
17:29:03 | * | kingofoz quit (Ping timeout: 240 seconds) |
17:29:18 | * | nairobi joined #nim |
17:29:19 | Araq | and the wiki page is kept up to date fyi |
17:29:30 | Araq | I always read it when building a release :-) |
17:29:43 | * | yglukhov quit (Ping timeout: 258 seconds) |
17:29:46 | dom96 | yes, well, no offence to everyone here, but nobody is stepping up to help us with this. |
17:30:20 | dom96 | But perhaps we're making it too difficult |
17:30:52 | Araq | how so? |
17:31:12 | * | kingofoz joined #nim |
17:31:18 | dom96 | These types of infrastructure projects should be pretty fun |
17:31:23 | dom96 | So I don't get it |
17:31:28 | dom96 | I had a lot of fun working on NimBuild |
17:32:41 | Araq | I used to be able to build everything on Windows. and then people complained about missing +X bits on the files |
17:32:56 | Araq | and Nim was about to die because of this |
17:33:04 | Araq | and now I build it on Unix. |
17:34:15 | dom96 | I think if we can get the release process automated enough, we might be able to release once a month regularly. |
17:34:36 | * | dom96 adds this to his to do list |
17:34:59 | euantor | @dom96: about the WIndows server, http://buyvm.net/kvm-dedicated-server-slices is pretty cheap |
17:35:00 | dom96 | Maybe it would encourage people to work on this if I documented exactly what we want? |
17:35:11 | dom96 | I don't know, can anybody give their perspective? |
17:35:44 | dom96 | euantor: nice |
17:35:57 | euantor | Windows server 2003 64 bit is free on all plans too, including the ~3/mo plan |
17:36:10 | euantor | I'd be happy to stump up a year upfront if it would help at all |
17:36:19 | euantor | I personally don't use WIndows, but my work does |
17:36:25 | dom96 | I think I would rather go for something more popular though to get better reliability. |
17:36:52 | euantor | BuyVM are pretty well known |
17:36:52 | * | nairobi quit (Read error: Connection reset by peer) |
17:37:03 | euantor | Mostly for VPS servers and their DDOS protection |
17:37:12 | euantor | They've been around for a heck of a long time |
17:37:24 | dom96 | Hrm. |
17:37:31 | euantor | OVH do WIndows servers too if I remember correctly |
17:37:35 | dom96 | Okay, will remember them |
17:37:45 | dom96 | I was thinking Amazon or maybe even Azure |
17:38:01 | euantor | Again, if it's going to help, I'm happy to throw some money into the ring |
17:38:14 | euantor | I've only used Azure's notification hubs through work |
17:38:15 | dom96 | I think that thanks to our BountySource we should be able to cover our server costs. |
17:38:32 | euantor | We looked at their VMs and decided against them, preferring Linode |
17:38:36 | dom96 | And it will be easier to have control over every server. |
17:38:37 | * | nsf joined #nim |
17:38:40 | federico3 | there are services that allow building (like circleci) without having to setup and maintain the buildbot |
17:39:03 | dom96 | But if you really want to donate a server I won't say no :) |
17:39:07 | euantor | We use Circle CI at an open source project I'm involved in |
17:39:30 | dom96 | federico3: yeah, that could work too |
17:39:52 | euantor | If it helps, I'm happy to do so :) |
17:40:10 | federico3 | dom96 But perhaps we're making it too difficult -> yep, every time I poke around we seem to only inch forward... |
17:40:33 | elrood | what was the reasoning for needing a windows server again? why not make use of nim's superiour features and cross-compile release versions on a unix server? |
17:40:41 | cheatfate_ | federico3, could you please point me to bug report? |
17:40:46 | dom96 | elrood: to build the installers |
17:40:47 | federico3 | euantor: there's already a circleci setup that builds on every commit |
17:40:52 | * | nairobi joined #nim |
17:41:05 | dom96 | federico3: how can we make it less difficult? :) |
17:41:15 | federico3 | cheatfate_: https://github.com/nim-lang/nimble/issues/234 |
17:41:32 | elrood | dom96, still don't get why that'd need a windows server, but as long as you're sure.. |
17:41:33 | euantor | federico3 : Yep, I've seen it in action |
17:42:06 | dom96 | elrood: AFAIK NSIS doesn't work on Linux |
17:44:36 | * | yglukhov joined #nim |
17:46:08 | * | gokr quit (Ping timeout: 265 seconds) |
17:46:14 | elrood | dom96, afair, it does. do you want to google yourself, or shall i..? |
17:47:46 | dom96 | elrood: Even if it does I bet it's not easy, found this and it suggests the need to compile NSIS on Linux: https://blog.alejandrocelaya.com/2014/02/01/compile-nsis-scripts-in-linux/ |
17:48:48 | * | gokr joined #nim |
17:49:32 | * | GustavoLapasta joined #nim |
17:50:26 | Araq | we can also try to compile everything via Wine |
17:50:37 | Araq | should work too. |
17:51:30 | cheatfate_ | why not bundle nimble inside of nim? |
17:51:38 | * | cheatfate_ is now known as cheatfate |
17:51:59 | cheatfate | i mean full integration |
17:52:17 | elrood | dom96, at least fedora and ubuntu seem to provide binaries, so i'd bet there are easy solutions for other distros as well |
17:52:52 | * | AnonymousCoward quit (Read error: Connection reset by peer) |
17:52:55 | elrood | not trying to convince you to do anything you don't want, just saying you don't strictly *have* to get a windows server for that |
17:52:56 | * | nairobi quit (Remote host closed the connection) |
17:53:14 | dom96 | elrood: Sure. It's nice to know that it's possible. |
17:54:07 | * | euantor quit (Remote host closed the connection) |
17:54:24 | * | euantor joined #nim |
17:55:30 | * | nairobi joined #nim |
17:58:59 | * | brson quit (Ping timeout: 244 seconds) |
18:00:26 | * | nairobi quit (Remote host closed the connection) |
18:02:27 | * | nairobi joined #nim |
18:06:34 | * | tommy_ joined #nim |
18:06:37 | * | endragor joined #nim |
18:06:44 | tommy_ | hi there! how come is so hard to create a simple list in Nim? |
18:07:00 | tommy_ | this is a golang code: |
18:07:03 | tommy_ | var versionStrings = []intName{ {0, "EV_NONE"}, {1, "EV_CURRENT"}, } |
18:07:16 | tommy_ | how can i translate that to Nim-lang? anyone could help me? |
18:07:40 | dom96 | var versionStrings = @[(0, "EV_NONE"), (1, "EV_CURRENT")] |
18:07:41 | Araq | hello. are you our troll? |
18:07:43 | dom96 | What's hard about this? |
18:07:43 | elrood | this channel needs an irc-trollometer |
18:07:57 | * | hendi__ quit (Ping timeout: 276 seconds) |
18:08:06 | dom96 | elrood: feel free to add that functionality to NimBot :) |
18:09:02 | * | pafmaf joined #nim |
18:10:06 | cheatfate | Araq, looks like no |
18:10:45 | Araq | just wait and see ... |
18:10:54 | dom96 | tommy_: you still there? |
18:11:06 | * | endragor quit (Ping timeout: 258 seconds) |
18:11:21 | tommy_ | hi |
18:11:27 | tommy_ | im not a troll |
18:11:33 | tommy_ | maybe im being dumb only, sorry |
18:11:51 | dom96 | tommy_: don't worry, we were all new once |
18:12:06 | tommy_ | hm dom96 that really is nice but i was digging the docs and couldnt find it |
18:12:10 | dom96 | but in fact, it's easier to create in Nim than in Go ;) |
18:12:15 | tommy_ | i was looking in lists and tables |
18:12:25 | dom96 | have you looked at the tutorial? |
18:13:10 | tommy_ | sequence |
18:13:12 | tommy_ | got it |
18:13:17 | tommy_ | i was checking for lists and tables |
18:13:32 | tommy_ | that was it |
18:13:43 | tommy_ | awesome |
18:14:03 | dom96 | ahh, we should alias "list" somewhere in our docs |
18:14:24 | tommy_ | yeah cause List module brings some crazy (in a good way) doublelinked stuff |
18:14:25 | tommy_ | :p |
18:17:02 | * | Jesin joined #nim |
18:18:45 | * | tommy_ quit (Quit: Page closed) |
18:21:42 | * | endragor joined #nim |
18:26:10 | * | endragor quit (Ping timeout: 265 seconds) |
18:34:58 | * | chrisheller quit (Ping timeout: 252 seconds) |
18:46:46 | * | nairobi quit (Remote host closed the connection) |
18:48:23 | * | pie_ joined #nim |
18:48:47 | * | hendi__ joined #nim |
18:49:33 | * | euantor quit (Remote host closed the connection) |
18:50:07 | * | euantor joined #nim |
18:57:40 | * | hendi__ quit (Ping timeout: 265 seconds) |
18:59:57 | * | gokr quit (Ping timeout: 276 seconds) |
19:02:43 | * | endragor joined #nim |
19:07:11 | * | endragor quit (Ping timeout: 244 seconds) |
19:07:19 | * | euantor quit () |
19:21:26 | * | endragor joined #nim |
19:21:44 | * | brechtm_ joined #nim |
19:25:34 | * | brechtm quit (Ping timeout: 260 seconds) |
19:26:06 | * | endragor quit (Ping timeout: 265 seconds) |
19:26:20 | * | brechtm_ quit (Remote host closed the connection) |
19:28:45 | * | yglukhov quit (Remote host closed the connection) |
19:28:58 | * | brechtm joined #nim |
19:34:36 | * | Jesin quit (Quit: Leaving) |
19:39:15 | * | Jesin joined #nim |
19:41:39 | federico3 | Araq: you are saying the Creating-a-release page is up to date? How about we put in the exact commands to be run for each and every step so that I can just put everything in a script and test the release process as well on ci.nim-lang? |
19:44:13 | Araq | well it's missing my .bat file for the Windows build |
19:44:25 | Araq | but apart from that it's up to date, I just updated it |
19:47:45 | * | nairobi joined #nim |
19:47:53 | federico3 | what about the second question? |
19:47:59 | * | gokr joined #nim |
19:49:13 | Araq | I've always wanted to have that. |
19:49:47 | Araq | I'm adding my .bat file, maybe it's useful with Wine too |
19:50:58 | Araq | done |
19:51:13 | * | brechtm quit (Read error: Connection reset by peer) |
19:51:37 | Araq | you can convert the bat to NimScript :-) |
19:51:37 | federico3 | this stuff could be split in 2 chunks at least: pre-flight checks aka "can Nim be released?" and the permanent changes (git commits, merge, push) |
19:51:53 | Araq | well it's a wiki. |
19:51:54 | * | brechtm joined #nim |
19:52:01 | Araq | everybody is allowed to improve it. |
19:52:36 | * | nairobi quit (Ping timeout: 276 seconds) |
19:53:06 | federico3 | the bat is not doing git stuff - do you run it before or after the manual steps? |
19:53:39 | Araq | consider it an expansion of the 'koch nsis' step |
19:54:54 | * | yglukhov joined #nim |
19:55:21 | * | nairobi joined #nim |
19:56:34 | * | nairobi quit (Remote host closed the connection) |
19:56:41 | Araq | how do you plan on tackling the Windows problem? |
19:59:22 | * | yglukhov quit (Ping timeout: 244 seconds) |
20:04:41 | * | nairobi joined #nim |
20:12:59 | cheatfate | Araq, do you want to translate your bat files to nimscript? |
20:13:15 | * | libman wishes there were statistics on OS usage among programmers of various programming languages. I wonder if Nim would be more tilted towards Windows than its competitors. |
20:13:23 | Araq | I don't care. |
20:13:34 | Araq | I don't have "bat files" |
20:13:38 | Araq | I have a single bat file. |
20:13:44 | Araq | everything else is in Nim. |
20:14:24 | * | brson joined #nim |
20:16:11 | cheatfate | build.bat? |
20:16:15 | cheatfate | build64.bat? |
20:16:19 | Araq | that's generated. |
20:16:30 | Araq | doesn't affect my life. |
20:18:03 | * | brechtm quit (Remote host closed the connection) |
20:23:04 | * | brechtm joined #nim |
20:33:38 | * | irrequietus joined #nim |
20:34:07 | * | zahary joined #nim |
20:38:45 | * | Sentreen quit (Ping timeout: 276 seconds) |
20:39:48 | federico3 | would a bash script be ok for the unix side? |
20:42:50 | elrood | please make that a generic shell script and don't get entangled in bashisms |
20:44:12 | * | libman recommends using standard shell (or korn shell, ex mksh) rather than making bash a dependency. |
20:44:13 | * | nairobi quit (Ping timeout: 252 seconds) |
20:47:01 | federico3 | yep, I usually use sh (dash) |
20:48:13 | * | nairobi joined #nim |
20:48:27 | Araq | elrood, libman the scripts that we generate for the installation process are Posix shell scripts, not bash scripts. |
20:51:01 | * | Sentreen joined #nim |
20:54:43 | federico3 | I volunteer dom96 to write a backend for dash |
20:56:40 | * | brechtm_ joined #nim |
20:57:11 | * | yglukhov joined #nim |
20:59:51 | * | brechtm quit (Ping timeout: 264 seconds) |
21:01:44 | * | yglukhov quit (Ping timeout: 250 seconds) |
21:01:51 | * | TheLemonMan quit (Quit: "It's now safe to turn off your computer.") |
21:03:17 | federico3 | can we remove NimVersion*: string = $NimMajor & "." & $NimMinor & "." & $NimPatch from system.nim? They've been deprecated for a while |
21:03:53 | Araq | hmm? they are not deprecated at all, are they? |
21:04:04 | federico3 | hm, the Minor/Major/Patch ore not deprecated, only the Nimrod* stuff |
21:04:12 | Araq | ah yeah |
21:04:38 | * | nairobi quit (Read error: Connection timed out) |
21:07:47 | * | chrisheller joined #nim |
21:09:59 | * | miere quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) |
21:10:16 | * | nairobi joined #nim |
21:14:46 | cheatfate | federico3, but you need to remember https://github.com/nim-lang/Nim/issues/3989 |
21:18:19 | * | chrisheller quit (Ping timeout: 252 seconds) |
21:18:44 | Araq | cheatfate: er ... your last remark there makes no sense |
21:18:52 | Araq | replied to the wrong issue? |
21:18:54 | cheatfate | yep |
21:19:11 | cheatfate | already deleted, i though you will not see it :) |
21:19:20 | Araq | I still don't really see the problem though. |
21:19:33 | Araq | who aliases 'uname' to something else? |
21:19:50 | Araq | or 'tr' for that matter. |
21:19:57 | cheatfate | Araq, `tr` was already aliased |
21:20:10 | cheatfate | that issue was made because user aliased `tr` |
21:20:38 | Araq | yes. so? it's like saying "my gcc is an alias for ls and Nim doesn't work" |
21:21:00 | * | pafmaf quit (Ping timeout: 276 seconds) |
21:21:05 | vktec | XD |
21:21:34 | cheatfate | Araq, but people comes to channel for help, and it was hard to understand installation error |
21:23:04 | michael_campbell | someone aliased `tr`? huh. |
21:23:10 | Araq | well fix it if you can fix it within Posix, otherwise let's just leave it as it is. Nim also requires a CPU and the installation process can get confusing without one. |
21:23:56 | cheatfate | i'm not so good in shell scripting as i said, i just make a proposal, maybe somebody can make it properly |
21:26:29 | * | nairobi quit (Read error: Connection timed out) |
21:28:08 | * | nairobi joined #nim |
21:31:09 | * | Sentreen quit (Read error: Connection reset by peer) |
21:31:55 | * | Sentreen joined #nim |
21:38:37 | * | pregressive quit (Remote host closed the connection) |
21:42:39 | cheatfate | this var constants makes me crazy |
21:43:11 | * | endragor joined #nim |
21:43:22 | cheatfate | could somebody help me cast[proc (x: cint) {.noconv.}](0) |
21:43:31 | cheatfate | how to do it properly? |
21:44:24 | * | Trustable quit (Remote host closed the connection) |
21:45:22 | * | nairobi quit (Read error: Connection timed out) |
21:46:19 | * | GustavoLapasta quit (Quit: Leaving) |
21:46:58 | * | nairobi joined #nim |
21:47:20 | * | endragor quit (Ping timeout: 244 seconds) |
21:48:06 | Araq | use 'nil'? |
21:48:29 | Araq | your cast looks ok too, what's wrong with it? |
21:52:12 | * | nairobi quit (Ping timeout: 240 seconds) |
21:53:48 | * | PMunch quit (Quit: leaving) |
21:55:45 | * | nairobi joined #nim |
21:57:33 | cheatfate | i need 2 constants SIG_DFL and SIG_IGN, SIG_DFL = 0, SIG_IGN = 1 |
21:59:08 | cheatfate | some errors when i have tried to repr this values |
21:59:12 | cheatfate | in codegen |
22:00:12 | Araq | fix teh codegen then please |
22:00:33 | cheatfate | :) |
22:00:35 | cheatfate | https://gist.github.com/cheatfate/c5f49caad9fb6c12b0fc01b5d7672e90 |
22:01:56 | * | PMunch joined #nim |
22:03:30 | * | saml quit (Quit: Leaving) |
22:04:49 | * | nairobi quit (Remote host closed the connection) |
22:09:58 | * | brechtm_ quit (Remote host closed the connection) |
22:11:36 | * | brechtm joined #nim |
22:12:08 | * | Mat4 joined #nim |
22:17:40 | * | Mat4 left #nim (#nim) |
22:20:33 | cheatfate | Araq, if posix.nim has `var SIG_IGN = xxxx' and i declare it as `const SIG_IGN = yyyy` in my module which has `import posix`, what will be used? constant or variable? |
22:24:30 | Araq | your module is preferred |
22:32:23 | cheatfate | thank you |
22:32:35 | * | rok quit (Quit: rok) |
22:41:47 | * | irrequietus quit () |
22:44:15 | * | Demon_Fox joined #nim |
22:44:28 | cheatfate | casted consts dont help me avoid gcsafe warnings |
22:48:18 | * | nairobi joined #nim |
22:52:34 | cheatfate | could somebody explain me what is here gc-unsafe |
22:52:54 | cheatfate | var sig = cint(param), posix.signal(sig, cast[proc(x: cint) {.noconv.}](0)) |
22:52:58 | * | nairobi quit (Ping timeout: 265 seconds) |
22:53:53 | cheatfate | is not GC-safe as it performs an indirect call here |
22:54:25 | * | PMunch quit (Quit: leaving) |
22:55:59 | * | zahary quit (Ping timeout: 258 seconds) |
22:57:42 | * | zahary joined #nim |
22:59:11 | * | yglukhov joined #nim |
23:03:41 | * | yglukhov quit (Ping timeout: 265 seconds) |
23:06:36 | * | nairobi joined #nim |
23:17:01 | * | gokr quit (Ping timeout: 258 seconds) |
23:22:49 | * | nairobi quit (Read error: Connection timed out) |
23:23:54 | * | nairobi joined #nim |
23:25:16 | * | endragor joined #nim |
23:29:30 | * | endragor quit (Ping timeout: 250 seconds) |
23:31:23 | Araq | cheatfate: the compiler only knows that 'nil' is not a real indirect call ... |
23:31:43 | Araq | but since you cast, why not cast to .noconv, gcsafe ? |
23:38:57 | * | nairobi quit (Remote host closed the connection) |
23:49:03 | * | zahary quit (Ping timeout: 240 seconds) |
23:52:29 | * | desophos joined #nim |
23:57:35 | * | endragor joined #nim |