00:01:55 | * | nsf quit (Quit: WeeChat 1.9.1) |
00:04:47 | jhorwitz | I would love to help get Nim to 1.0 |
00:09:07 | * | SenasOzys quit (Ping timeout: 260 seconds) |
00:21:51 | * | jhorwitz quit (Ping timeout: 248 seconds) |
00:36:16 | * | jjido quit (Remote host closed the connection) |
00:48:02 | * | jhorwitz joined #nim |
00:49:46 | * | rauss quit (Quit: WeeChat 1.9.1) |
00:52:05 | * | rauss joined #nim |
00:53:27 | * | Calinou quit (Ping timeout: 240 seconds) |
00:54:42 | * | Calinou joined #nim |
00:55:12 | * | rauss quit (Client Quit) |
00:56:13 | * | rauss joined #nim |
00:57:50 | * | rauss quit (Client Quit) |
01:06:02 | * | rauss joined #nim |
01:15:28 | * | Calinou quit (Remote host closed the connection) |
01:28:39 | * | dddddd joined #nim |
01:35:00 | jhorwitz | How's everyone doing |
01:43:43 | * | Miguelngel[m] joined #nim |
01:44:44 | * | kalkin--- joined #nim |
01:48:17 | * | kalkin-- quit (Ping timeout: 248 seconds) |
01:57:36 | FromGitter | <Varriount> jhorwitz: Currently reading papers on lock free structures |
01:59:46 | * | yglukhov quit (Remote host closed the connection) |
02:03:15 | FromGitter | <Varriount> jhorwitz: If you need help with the GraphQL stuff, don't be afraid to ask |
02:11:21 | * | vlad1777d quit (Ping timeout: 240 seconds) |
02:13:57 | * | enthus1ast- quit (Quit: Lost terminal) |
02:25:03 | * | vlad1777d joined #nim |
02:25:39 | * | smt` joined #nim |
02:25:49 | * | Calinou joined #nim |
02:25:54 | Miguelngel[m] | Hello, is there any rule or kind of mental heuristic to decide when to using the main identifier of a new type to define `object `or `ref object`? I feel that I'm spending too much time about thinking about using ref or not for new types, for function parameters, for return values, and reading around doesn't help a lot, I cannot find any pattern to it... |
02:28:53 | * | smt quit (Ping timeout: 250 seconds) |
02:30:16 | * | yglukhov joined #nim |
02:30:43 | * | JappleAck quit (Quit: Leaving) |
02:34:39 | * | yglukhov quit (Ping timeout: 248 seconds) |
02:38:28 | * | chemist69 quit (Ping timeout: 240 seconds) |
02:40:02 | * | jsgrant quit (Remote host closed the connection) |
02:43:13 | * | vlad1777d quit (Ping timeout: 248 seconds) |
02:47:52 | * | vlad1777d joined #nim |
02:52:17 | * | jhorwitz quit (Ping timeout: 248 seconds) |
02:52:26 | * | chemist69 joined #nim |
02:53:20 | * | PMunch joined #nim |
02:59:40 | * | m0o joined #nim |
03:04:42 | * | m0o quit (Quit: Leaving) |
03:09:17 | * | jhorwitz joined #nim |
03:27:31 | * | jhorwitz quit (Quit: Lost terminal) |
03:28:23 | * | m0o joined #nim |
03:32:57 | * | yglukhov joined #nim |
03:37:04 | * | vivus quit (Quit: Leaving) |
03:37:37 | * | yglukhov quit (Ping timeout: 248 seconds) |
03:42:35 | * | vlad1777d quit (Ping timeout: 240 seconds) |
03:49:09 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
03:55:22 | * | jhorwitz joined #nim |
03:59:57 | * | m0o left #nim ("Leaving") |
04:00:49 | * | jhorwitz quit (Ping timeout: 268 seconds) |
04:06:57 | * | Calinou quit (Ping timeout: 248 seconds) |
04:10:37 | * | Calinou joined #nim |
04:18:50 | * | Calinou quit (Remote host closed the connection) |
04:19:58 | * | Calinou joined #nim |
04:21:35 | * | PMunch quit (Quit: leaving) |
04:29:52 | * | Calinou quit (Ping timeout: 260 seconds) |
04:30:39 | * | Calinou joined #nim |
04:43:28 | GitDisc | <treeform> gangstacat, websocket module appear to have a bug with sending large amounts of data. |
04:44:23 | gangstacat | treeform, I didn't encounter that but report it if not already done? |
04:44:39 | GitDisc | <treeform> yeah going to report it now |
04:44:43 | GitDisc | <treeform> i should have done it before |
04:44:47 | GitDisc | <treeform> i have a patch as well |
04:44:52 | gangstacat | nice |
04:45:38 | * | jhorwitz joined #nim |
04:46:45 | GitDisc | <treeform> hmm i changed too much grr |
04:46:52 | GitDisc | <treeform> I don't think it will get merged |
04:47:05 | GitDisc | <treeform> I'll file it as a bug for now I guess |
04:49:57 | * | jhorwitz quit (Ping timeout: 240 seconds) |
04:50:56 | GitDisc | <treeform> https://github.com/niv/websocket.nim/issues/18 |
04:54:08 | * | yglukhov joined #nim |
04:55:05 | * | Calinou quit (Ping timeout: 268 seconds) |
04:56:00 | GitDisc | <treeform> gangsacat, if your run into issues when sending big chunks of data, grab mine from here: https://github.com/treeform/websocket.nim |
04:57:27 | GitDisc | <treeform> I don't like it use of exceptions so I am remodeing some of the API, which might not be desirable for you though. |
04:58:11 | * | yglukhov quit (Ping timeout: 240 seconds) |
05:07:59 | * | tyler569 joined #nim |
05:15:22 | * | joshbaptiste quit (Ping timeout: 260 seconds) |
05:16:41 | * | joshbaptiste joined #nim |
05:26:56 | * | jhorwitz joined #nim |
05:27:15 | gangstacat | thank you treeform |
05:31:11 | * | jhorwitz quit (Ping timeout: 248 seconds) |
05:38:07 | * | rauss quit (Read error: Connection reset by peer) |
05:39:38 | * | rauss joined #nim |
05:46:52 | * | rauss quit (Read error: Connection reset by peer) |
05:47:59 | * | jhorwitz joined #nim |
05:48:34 | * | rauss joined #nim |
05:52:26 | * | jhorwitz quit (Ping timeout: 268 seconds) |
06:20:07 | * | yglukhov joined #nim |
06:23:55 | shashlick | I don't see my post on the forum if I'm logged out - status = moderated? |
06:26:41 | * | yglukhov quit (Ping timeout: 248 seconds) |
06:28:49 | * | jhorwitz joined #nim |
06:33:45 | * | jhorwitz quit (Ping timeout: 268 seconds) |
06:56:47 | * | jhorwitz joined #nim |
07:00:51 | * | jhorwitz quit (Ping timeout: 240 seconds) |
07:09:18 | * | miran joined #nim |
07:25:59 | * | gokr joined #nim |
07:27:58 | * | nsf joined #nim |
08:00:16 | * | yglukhov joined #nim |
08:04:35 | * | yglukhov quit (Ping timeout: 240 seconds) |
08:10:53 | * | Arrrr joined #nim |
08:10:53 | * | Arrrr quit (Changing host) |
08:10:53 | * | Arrrr joined #nim |
08:23:10 | FromGitter | <dandevelo> Has anyone tried both Nim and Haxe? What was your experience like? |
08:43:53 | * | SenasOzys joined #nim |
08:44:39 | * | yglukhov joined #nim |
08:48:41 | * | yglukhov quit (Ping timeout: 240 seconds) |
08:55:51 | * | gokr quit (Ping timeout: 250 seconds) |
08:57:14 | * | Calinou joined #nim |
09:15:49 | * | xkapastel quit (Quit: Connection closed for inactivity) |
09:23:00 | * | endragor joined #nim |
09:41:29 | FromGitter | <mratsim> @MigueIngel[m] the question is how do you want your object to behave on assignment, copy or taking a reference? Also are copies expensive? |
09:42:05 | * | claudiuinberlin joined #nim |
09:44:37 | FromGitter | <mratsim> Also just think about your base types, everything else depends on that. You don't need to pass a value type by reference explicitly to modify it (use var) unless if it's to interface with C. |
09:48:48 | * | yglukhov joined #nim |
09:52:57 | * | yglukhov quit (Ping timeout: 240 seconds) |
10:01:30 | * | rauss quit (Read error: Connection reset by peer) |
10:03:12 | * | rauss joined #nim |
10:05:11 | * | jjido joined #nim |
10:11:23 | * | jhorwitz joined #nim |
10:11:27 | * | craigger quit (Ping timeout: 246 seconds) |
10:14:10 | * | craigger joined #nim |
10:15:28 | * | jhorwitz quit (Ping timeout: 240 seconds) |
10:21:31 | * | yglukhov joined #nim |
10:23:10 | * | nsf quit (Quit: WeeChat 1.9.1) |
10:23:43 | * | ShalokShalom_ joined #nim |
10:26:11 | * | ShalokShalom quit (Ping timeout: 240 seconds) |
10:29:02 | * | couven92 joined #nim |
10:29:41 | couven92 | GitDisc is the bridge between Discord and Gitter? |
10:29:56 | FromGitter | <Yardanico> yes |
10:29:58 | FromGitter | <Yardanico> no |
10:30:09 | FromGitter | <Yardanico> it was supposed to be a Gitter - IRC - Discord bridge |
10:30:19 | FromGitter | <Yardanico> but people decided to keep FromGitter bot running :) |
10:30:25 | FromGitter | <Yardanico> so it's only an IRC - Discord bridge |
10:30:30 | couven92 | Ah, so where's our Discord server? |
10:30:53 | FromGitter | <Yardanico> https://discordapp.com/invite/ezDFDw2 |
10:30:58 | couven92 | possible to join that? should it maybe be posted on nim-lang.org? |
10:31:40 | FromGitter | <Yardanico> maybe |
10:32:03 | couven92 | maybe afraid of trolls? :P |
10:32:18 | FromGitter | <Yardanico> well I can't post it on nim-lang.org, so :) |
10:32:24 | couven92 | :) |
10:34:04 | couven92 | I have been a **real** idiot, BTW! I managed to loose both my 2FA and my backup codes for Discord... So now, I am stuck with waiting for Discord to delete my account, and in the meantime I have to use my uni-email with a different nick :( |
10:34:41 | GitDisc | <fra006> So... up on Discord @fra006 is couven92 (for the next month or so...) |
10:49:59 | * | yglukhov quit (Remote host closed the connection) |
10:53:21 | * | jjido quit (Read error: Connection reset by peer) |
11:00:47 | * | yglukhov joined #nim |
11:16:01 | * | yglukhov quit (Remote host closed the connection) |
11:17:42 | * | Arrrr quit (Quit: Leaving.) |
11:21:00 | * | dddddd quit (Remote host closed the connection) |
11:21:02 | * | jhorwitz joined #nim |
11:25:01 | * | jhorwitz quit (Ping timeout: 240 seconds) |
11:37:26 | * | miran quit (Quit: Konversation terminated!) |
11:43:47 | * | vlad1777d joined #nim |
11:46:31 | * | yglukhov joined #nim |
11:50:55 | * | yglukhov quit (Ping timeout: 248 seconds) |
11:53:10 | dom96 | Yardanico: You can create a PR... |
11:55:41 | * | chemist69 quit (Ping timeout: 250 seconds) |
12:09:30 | * | chemist69 joined #nim |
12:27:12 | * | aziz_ joined #nim |
12:28:40 | * | aziz_ is now known as aziz |
12:31:11 | * | Snircle joined #nim |
12:44:17 | * | yglukhov joined #nim |
12:48:41 | * | yglukhov quit (Ping timeout: 268 seconds) |
12:55:18 | * | jhorwitz joined #nim |
12:59:45 | * | jhorwitz quit (Ping timeout: 248 seconds) |
13:13:36 | * | nsf joined #nim |
13:15:31 | * | gokr joined #nim |
13:17:14 | * | endragor quit (Remote host closed the connection) |
13:19:15 | * | endragor_ joined #nim |
13:23:43 | * | endragor_ quit (Ping timeout: 248 seconds) |
13:31:01 | * | endragor joined #nim |
13:35:27 | * | endragor quit (Ping timeout: 240 seconds) |
13:49:47 | * | jhorwitz joined #nim |
13:50:47 | * | PMunch joined #nim |
13:54:01 | * | jhorwitz quit (Ping timeout: 240 seconds) |
13:59:01 | * | jhorwitz joined #nim |
14:06:18 | * | yglukhov joined #nim |
14:10:53 | * | yglukhov quit (Ping timeout: 250 seconds) |
14:13:47 | * | jhorwitz quit (Ping timeout: 268 seconds) |
14:19:11 | * | gokr quit (Ping timeout: 240 seconds) |
14:25:51 | * | JappleAck joined #nim |
14:40:01 | * | arnetheduck quit (Ping timeout: 248 seconds) |
14:40:02 | * | elrood joined #nim |
15:05:42 | * | joshbaptiste quit (Ping timeout: 260 seconds) |
15:11:03 | * | Vladar joined #nim |
15:12:53 | * | marenz__ joined #nim |
15:29:04 | * | joshbaptiste joined #nim |
15:39:30 | * | jhorwitz joined #nim |
15:42:47 | * | smt` quit (Quit: Leaving) |
15:43:18 | * | nsf quit (Quit: WeeChat 1.9.1) |
15:43:41 | * | jhorwitz quit (Ping timeout: 240 seconds) |
15:49:26 | * | yglukhov joined #nim |
15:51:41 | * | rauss quit (Quit: WeeChat 1.9.1) |
15:51:55 | * | dddddd joined #nim |
15:52:35 | * | rauss joined #nim |
15:54:07 | * | yglukhov quit (Ping timeout: 248 seconds) |
15:55:08 | shashlick | Can someone help with my forum post? |
15:55:08 | shashlick | https://forum.nim-lang.org/t/3323 |
15:55:24 | GitDisc | <treeform> i am getting 404 Not Found |
15:57:22 | shashlick | For some reason, it's inaccessible and not listed unless I'm logged in. Is it because my account is in a moderated status? |
15:57:41 | GitDisc | <treeform> maybe you have a new account and it needs to be approved? |
16:05:17 | federico3 | probably |
16:07:17 | shashlick | I created it a while back, guess I never posted so it's still in limbo. Any forum moderators here? |
16:18:42 | * | vivus joined #nim |
16:26:05 | * | JappleAck quit (Quit: Leaving) |
16:30:23 | * | JappleAck joined #nim |
16:33:13 | * | PMunch quit (Quit: leaving) |
16:36:21 | dom96 | All new users are in a "moderated" state on the forum |
16:36:33 | dom96 | I fixed it |
16:37:54 | GitDisc | <treeform> i looked at and it I have no clue |
16:39:37 | dom96 | I think you need to use importc not importcpp |
16:45:13 | FromGitter | <xomachine> Hello! I've just encountered following compilation error with the code (https://gist.github.com/xomachine/75f9ef4205119db113d132b9885179d6) ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5a087a98505b630c05d36c76] |
16:48:01 | dom96 | That's a nim bug |
16:48:10 | dom96 | All internal errors are |
16:48:14 | dom96 | You should report it on GitHub |
16:48:16 | dom96 | as an issue |
16:48:29 | dom96 | My guess as to the cause: your enums have the same name as your module |
16:50:34 | * | yglukhov joined #nim |
16:51:55 | GitDisc | <treeform> what is the best way to format integer with leading zeros, for some reason its nowhere in the docs? |
16:53:21 | GitDisc | <treeform> i guess I will use align? |
16:54:35 | * | yglukhov quit (Ping timeout: 240 seconds) |
16:57:17 | FromGitter | <xomachine> Hm, indeed, it is a module naming issue. Should I obtain a stack trace or something before reporting? If so, please, tell me how. |
17:01:19 | dom96 | xomachine: shouldn't be necessary, just make sure to provide your code and explain how to reproduce it |
17:12:52 | * | arecaceae quit (Remote host closed the connection) |
17:13:11 | * | arecaceae joined #nim |
17:18:47 | * | Sembei quit (Ping timeout: 268 seconds) |
17:43:22 | * | jsgrant joined #nim |
18:03:51 | * | jhorwitz joined #nim |
18:08:31 | * | jhorwitz quit (Ping timeout: 248 seconds) |
18:24:36 | * | yglukhov joined #nim |
18:26:18 | * | jhorwitz joined #nim |
18:33:05 | * | Trustable joined #nim |
18:42:09 | crem | I have a function FFF that returns ref string. raise FFF() doesn't compile with "only a "ref object" can be raise... ah! string must be not an object. |
18:43:44 | crem | indeed |
18:45:00 | crem | There's still no nim formatter, is there? I remember Araq picking a name for it. |
18:48:31 | * | joshbaptiste quit (Ping timeout: 248 seconds) |
18:48:48 | * | jjido joined #nim |
18:50:53 | * | vlad1777d_ joined #nim |
18:51:11 | * | vlad1777d quit (Ping timeout: 248 seconds) |
18:51:12 | tyler569 | Is there any documentation on what functions nim does not provide in standalone mode and what their signatures should be? I am getting an error that the system module needs a 'nimIntToStr'. |
19:00:39 | dom96 | Don't think so. But see nimkernel, it uses standalone mode. |
19:02:15 | tyler569 | Right - and I am toying around with th idea of going further with that idea, but when I try to convert an in to string with '$' and write that out, it tell me I need the function I mentionned. |
19:02:32 | tyler569 | I am fine with having to provide that, I just need to how what to provide and where |
19:02:44 | tyler569 | need to know** |
19:03:03 | dom96 | search for it in the system module and see its definition |
19:03:15 | dom96 | that should hopefully be enough info |
19:03:44 | tyler569 | It doesn't appear to be in the stdlib at all, I've searched on the main page and in the system module |
19:05:56 | dom96 | https://github.com/nim-lang/Nim/search?utf8=%E2%9C%93&q=nimIntToStr&type= |
19:07:05 | tyler569 | That's the one! thanks much |
19:10:15 | jhorwitz | Is there a Nim formatter in the same vein as RustFMT or GoFMT |
19:11:17 | GitDisc | <treeform> I need advice on how to structure my calendar/timestamp/timezone nimble package. Ideally one should just use the `import timestamps` and that should be enough for most people, but some time you need complex time stuff so you would emport `import calendars` to get all of the more complex functions, and yet still if you need timezones you should `import timezones` but that will add 6mb to your bina <message clipped> |
19:12:06 | * | Jesin joined #nim |
19:19:03 | federico3 | jhorwitz: https://github.com/FedericoCeratto/nimfmt |
19:19:08 | * | joshbaptiste joined #nim |
19:22:19 | dom96 | treeform: import timezones/calendar |
19:22:40 | GitDisc | <treeform> i think it would be more like |
19:22:41 | * | jhorwitz quit (Ping timeout: 248 seconds) |
19:22:48 | GitDisc | <treeform> import calendars/timezones |
19:22:48 | dom96 | or import myawesometimepackagename/[calendar,timestamp,timezone] |
19:23:36 | GitDisc | <treeform> could i come up with a fancier name? |
19:23:51 | dom96 | no, you have to use 'myawesometimepackagename' |
19:24:05 | GitDisc | <treeform> well right now i used calendars |
19:24:08 | GitDisc | <treeform> as its the base module |
19:24:14 | * | dom96 hopes the joke is obvious |
19:24:21 | dom96 | Of course you can pick your own name |
19:24:33 | dom96 | just make sure all your modules are in a 'yourpkgname' directory |
19:24:47 | GitDisc | <treeform> what name would you suggest? |
19:24:48 | dom96 | and that your .nimble file is outside that directory |
19:25:18 | * | dom96 isn't good with names |
19:25:37 | GitDisc | <treeform> you and me both |
19:27:54 | dom96 | That said, it's much easier with Nim because there aren't that many packages out there :) |
19:28:14 | GitDisc | <treeform> this is what I have so far: https://github.com/treeform/calendars |
19:28:36 | dom96 | ok, cool |
19:28:50 | GitDisc | <treeform> i mostly spent time writing tests https://github.com/treeform/calendars/blob/master/tests/test_timezones.nim |
19:30:06 | elrood | aren't there like about 40 timezones in the world? how does one manage to blow that up to 6MB? |
19:30:23 | GitDisc | <treeform> DST changes |
19:30:39 | GitDisc | <treeform> and there is 424 timezones |
19:30:50 | GitDisc | <treeform> with stupid rules going back to 1800s |
19:31:10 | GitDisc | <treeform> and there are 424 timezones |
19:31:43 | GitDisc | <treeform> Marocco/Iran/Syria likes to change their timezones randmly through the year... |
19:32:09 | GitDisc | <treeform> some times 4 DST changes per year |
19:32:43 | GitDisc | <treeform> I though about depending on a compression lib, and compressing and decompressing timezones dst tables on the fly. |
19:33:01 | federico3 | and timezones can even change with little warning |
19:33:43 | GitDisc | <treeform> My lib stores 167372 DST changes |
19:34:59 | GitDisc | <treeform> Here is my DST strcut: https://github.com/treeform/calendars/blob/master/calendars/timezones.nim#L10 |
19:35:06 | GitDisc | <treeform> Ideas on how to pack it further? |
19:40:24 | GitDisc | <treeform> Hmm I think I will rename my lib to chrono short for Chronology. |
19:40:24 | * | xkapastel joined #nim |
19:41:34 | federico3 | treeform: packing to save space on disk or something else? |
19:41:51 | GitDisc | <treeform> save space in binary |
19:41:57 | FromGitter | <superfunc> nim on the weekends makes me so happy, programming doesn't have to be terrible all the time :) |
19:42:53 | federico3 | treeform why are you injecting tz data in the binary? |
19:44:36 | GitDisc | <treeform> because I don't like shipping it as random files next to the binary. |
19:45:15 | federico3 | treeform that makes it very difficult to update timezone files. Most OSes already provide tz files |
19:45:29 | GitDisc | <treeform> yeah but all of them provide it differently |
19:45:42 | GitDisc | <treeform> And js does not at all. |
19:45:58 | GitDisc | <treeform> So lowest common dinominator is to provide the files. |
19:46:16 | GitDisc | <treeform> but in the future I could see making it use the OS tz stuff. |
19:46:40 | federico3 | they could be used as a fallback mechanism - perhaps - and if there's a way to check for updates |
19:48:43 | GitDisc | <treeform> yeah it would be cool to have a compile switch to use os or ship your own |
19:48:55 | GitDisc | <treeform> if OS tz info is good, it should default to using it |
19:49:27 | FromGitter | <Varriount> Windows doesn't have timezone files |
19:49:40 | GitDisc | <treeform> i think it has a timezone api |
19:49:48 | GitDisc | <treeform> but not like linux |
19:49:53 | FromGitter | <Varriount> Yes |
19:50:15 | GitDisc | <treeform> https://msdn.microsoft.com/en-us/library/windows/desktop/ms724421(v=vs.85).aspx |
19:50:21 | GitDisc | <treeform> This does not look fun to use! |
19:50:44 | GitDisc | <treeform> But it is part of Kernel32.lib, which means you don't have to go far. |
20:00:10 | * | jhorwitz joined #nim |
20:00:44 | dom96 | treeform: chrono is a cool name |
20:01:06 | GitDisc | <treeform> cool. I am glad another persons approves. |
20:01:27 | GitDisc | <treeform> Now I have to write docs and examples. |
20:04:05 | GitDisc | <treeform> I just leanred that there is no year 0, I need to account for that now. |
20:04:27 | GitDisc | <treeform> it was ... 2BC 1BC 1AD 2AD ... |
20:05:16 | GitDisc | <treeform> I am just thankfull 1AD does not have daylight savings time transitions. |
20:05:21 | * | jhorwitz quit (Ping timeout: 240 seconds) |
20:06:05 | * | jjido quit (Read error: No route to host) |
20:08:17 | GitDisc | <treeform> Another confusing thing is that 24h time has 00:00 hour but 12h am/pm does not. Saying 00:00am is not correct and it should say 12:00am |
20:08:33 | GitDisc | <treeform> I found that strange. |
20:08:38 | FromGitter | <GULPF> @treeform: most datetime libs ignore that and use astronomical year numbering |
20:08:40 | FromGitter | <GULPF> https://en.wikipedia.org/wiki/Astronomical_year_numbering |
20:09:31 | GitDisc | <treeform> Oh really? |
20:09:39 | GitDisc | <treeform> But what would peope perfer? |
20:11:18 | GitDisc | <treeform> If Cleopatra died on August 12, 30 BC, thye would not be happy library said she died in August 12, 29 BCE... |
20:12:39 | FromGitter | <GULPF> well that can be handled by formatting, so that year 0 is displayed as year 1 BC |
20:13:09 | GitDisc | <treeform> yeah I was going to keep year 0 internally |
20:13:17 | FromGitter | <GULPF> not having a year 0 makes reasoning about time a lot harder imo. suddenly counting the year diff is no longer abs(year1 - year2) |
20:13:26 | GitDisc | <treeform> but I don't do so for days or months? |
20:13:29 | GitDisc | <treeform> maybe I should |
20:14:05 | GitDisc | <treeform> I do this odd dec before month computations and inc after |
20:14:11 | GitDisc | <treeform> I am not happy about |
20:14:37 | GitDisc | <treeform> I could do that for years too |
20:14:47 | GitDisc | <treeform> I don't know if I should keep the 0 or not keep it |
20:15:46 | * | jsgrant quit (Ping timeout: 268 seconds) |
20:17:42 | FromGitter | <GULPF> why are you implementing your own datetime type instead of using the one in the stdlib anyway? it would be very useful if your timezone definitions could be used with the stdlib |
20:18:33 | FromGitter | <GULPF> I've been working on a PR for supporting timezone definitions in the times module: https://github.com/nim-lang/Nim/pull/6552 |
20:20:35 | FromGitter | <GULPF> after that PR is merged, the only thing missing is for someone to use the tz database to generate timezone definitions in Nim, which is what your library does right? |
20:20:43 | GitDisc | <treeform> Yes. |
20:20:58 | GitDisc | <treeform> Well I don't use the OS tz database |
20:21:07 | GitDisc | <treeform> I ship my own 6mb tz database |
20:21:19 | GitDisc | <treeform> If you import the timezone module |
20:21:28 | GitDisc | <treeform> i pack it into the binary |
20:22:41 | * | gokr joined #nim |
20:23:20 | GitDisc | <treeform> At first I was going to use the times module, but then I decided not to. |
20:23:36 | GitDisc | <treeform> not sure if the desitions to not use the times module was rational though. |
20:23:57 | * | Calinou quit (Ping timeout: 240 seconds) |
20:24:09 | * | jna joined #nim |
20:24:15 | * | Calinou joined #nim |
20:24:24 | FromGitter | <GULPF> well the times module was kind of a mess, that's why I've been trying to improve it :P |
20:25:10 | GitDisc | <treeform> I would love to work togehter to improve it. |
20:25:21 | GitDisc | <treeform> but I am a rewrite kind of a guy... so I rewrite it. |
20:25:48 | GitDisc | <treeform> `The function defaults information not provided in the format string from the running program (timezone, month, year, etc). ` this part really made me confused. |
20:26:24 | GitDisc | <treeform> Also it uses the systems time stuff which I am not a fund of. |
20:26:30 | * | martinium joined #nim |
20:27:48 | FromGitter | <GULPF> most of the reliance on C headers is removed in my PR |
20:27:57 | GitDisc | <treeform> oh nice |
20:28:10 | GitDisc | <treeform> TimeInfo has not place for fractional seconds for example |
20:28:38 | * | scriptum joined #nim |
20:28:44 | GitDisc | <treeform> timezone, is an int minutes, but what do you do if its in seconds? |
20:28:54 | GitDisc | <treeform> some other issues i saw |
20:29:18 | GitDisc | <treeform> I am als |
20:29:39 | GitDisc | <treeform> I am also not a fan of the TimeInterval model. I don't think complex intervals like that are easy to use. |
20:29:44 | FromGitter | <GULPF> have you checked my PR? most (I hope all) of the tz issues are solved. `DateTime` is still limited to seconds though |
20:30:11 | GitDisc | <treeform> I was not aware of your PR untill about 1 day ago. |
20:30:26 | GitDisc | <treeform> I have not looked at it closly |
20:33:34 | FromGitter | <mratsim> Maybe ask @qqtop for input as well, he is using nim for Finance/Trading and we do need very high resolution DateTime types there. |
20:33:35 | GitDisc | <treeform> I still have not solved all TZ issues. |
20:34:06 | GitDisc | <treeform> For example if you have a calendar, and add 75 hours to it. |
20:34:14 | GitDisc | <treeform> And it had a dst transition in the middle |
20:34:19 | GitDisc | <treeform> how should I count it? |
20:34:31 | GitDisc | <treeform> for hours I probably should just add timestamps... |
20:34:39 | GitDisc | <treeform> hmm for days Just add days... maybe it works. |
20:34:45 | GitDisc | <treeform> I have not thought about that case. |
20:35:18 | * | nsf joined #nim |
20:35:21 | FromGitter | <GULPF> some libs define a day as exactly 24 hours. that can lead to confusing behavior though |
20:36:11 | * | aziz quit (Quit: Ex-Chat) |
20:36:17 | GitDisc | <treeform> Yeah my philosophy is that timestamp is king. Not the calendar/datetime object. |
20:36:58 | GitDisc | <treeform> The way I perfer to use time is always convert it to a timestamp. Store it as a timestamp, and only display/parse it. |
20:37:06 | GitDisc | <treeform> With the complex calendar object. |
20:37:42 | GitDisc | <treeform> That is not how times module is setup though. |
20:39:45 | GitDisc | <treeform> My days should be any number of hours, event negative for when Alaska switched from being -8 (russian time) to +8 (american time). |
20:39:55 | GitDisc | <treeform> I should write tests for that. |
20:40:13 | GitDisc | <treeform> Could be good test for extram timezone switch |
20:40:56 | GitDisc | <treeform> because they are just a display of timestamp + timezone it should work. |
20:41:05 | * | JappleAck quit (Ping timeout: 248 seconds) |
20:45:30 | * | rauss quit (Read error: Connection reset by peer) |
20:46:04 | * | BitPuffin|osx joined #nim |
20:46:59 | elrood | treeform: is there a particular reason your timeZones.bin stores every entry twice? |
20:47:13 | * | rauss joined #nim |
20:47:24 | GitDisc | <treeform> bug? |
20:49:57 | * | Vladar quit (Quit: Leaving) |
20:51:48 | GitDisc | <treeform> you right it does. I will figure this out. |
20:54:12 | * | JappleAck joined #nim |
20:59:38 | * | jsgrant joined #nim |
21:01:58 | * | endragor joined #nim |
21:06:18 | * | endragor quit (Ping timeout: 258 seconds) |
21:16:06 | * | martinium quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
21:16:43 | * | jsgrant quit (Ping timeout: 252 seconds) |
21:17:11 | * | PMunch joined #nim |
21:24:45 | * | Trustable quit (Remote host closed the connection) |
21:25:51 | * | qwertfisch is now known as __________ |
21:26:39 | * | __________ is now known as qwertfisch |
21:46:48 | FromGitter | <Varriount> @GULPF Why wouldn't a day be more than 24 hours? |
21:46:57 | FromGitter | <Varriount> Or rather, why wouldn't a day be exactly 24 hours |
21:50:55 | * | joshuahorwitz joined #nim |
21:51:56 | * | jhorwitz joined #nim |
21:54:56 | shashlick | dom96: thanks for giving my forum account |
21:54:59 | shashlick | Fixing |
21:56:54 | * | craigger quit (Ping timeout: 268 seconds) |
21:57:13 | * | craigger joined #nim |
21:58:37 | jna | Hi all, I just tried to install "aporia" using Nimble as per the instructions at https://github.com/nim-lang/Aporia, the install log says it was successful but on executing aporia, this error occurs: |
21:58:49 | jna | could not load: libgtksourceview-2.0.so(|.0) |
21:58:49 | jna | compile with -d:nimDebugDlOpen for more information |
21:59:30 | FromGitter | <GULPF> @Varriount: https://github.com/nim-lang/Nim/issues/6465 |
21:59:57 | jna | Varriount: Ta |
22:00:54 | jna | Ah not for me then 8-) |
22:09:46 | * | joshuahorwitz quit (Quit: WeeChat 1.9.1) |
22:12:56 | dom96 | jna: you need to install gtksourceview |
22:13:51 | jna | I have, I followed the requirements for dependencies, using the system package manager |
22:14:59 | dom96 | are you sure? |
22:15:14 | dom96 | does libgtksourceview-2.0.so exist on your system? |
22:15:17 | jna | Quite, but checks anyway |
22:15:44 | * | joshuahorwitz joined #nim |
22:16:18 | joshuahorwitz | Just getting into Charpet 8 - Advanced Nim in Nim in Action |
22:16:37 | jna | Charpet .... you cook animals, that's just sick |
22:16:42 | joshuahorwitz | lol |
22:16:46 | jna | 8-) |
22:18:06 | jna | Ah ffs! The system install libgtksourceview-3.0-1:amd64 even though I am sure I was pulling in ver 2, in fact, it has pulled in GTK3.0 not 2.0 also. I guess this is the issue? |
22:19:53 | dom96 | yep |
22:20:21 | jna | Sigh |
22:20:38 | * | jna removes stuff |
22:22:28 | * | joshuahorwitz quit (Quit: WeeChat 1.9.1) |
22:22:40 | * | jhorwitz quit (Quit: leaving) |
22:23:18 | * | jdhorwitz joined #nim |
22:25:09 | * | martinium joined #nim |
22:27:53 | jdhorwitz | /script install buffers.pl buffer_autoclose.py iset.pl go.py colorize_nicks.py |
22:28:07 | jdhorwitz | oops, sorry |
22:29:35 | jna | dom96: Sorted, libgtksourceview2.0-common & friends in, Aporia works, sweet! |
22:29:53 | * | jna pees pants in excitement 8-) |
22:29:54 | * | jdhorwitz quit (Quit: WeeChat 1.9.1) |
22:30:38 | * | jdhorwitz joined #nim |
22:30:48 | jdhorwitz | Sorry for all the drops/joins, should be done now |
22:31:00 | jna | Yeah you better be sorry |
22:31:17 | jna | 8-) ... about the only action going in here anyway |
22:42:08 | * | nsf quit (Quit: WeeChat 1.9.1) |
22:47:51 | * | PMunch quit (Quit: leaving) |
23:01:06 | jdhorwitz | lol |
23:01:17 | jdhorwitz | I know! Hoping to contribute and get this place popping |
23:03:40 | jna | Likewise |
23:05:45 | * | jsgrant joined #nim |
23:20:46 | * | marenz__ quit (Ping timeout: 268 seconds) |
23:22:51 | * | elrood quit (Quit: Leaving) |
23:23:09 | * | claudiuinberlin quit (Quit: Textual IRC Client: www.textualapp.com) |
23:23:45 | * | jdhorwitz quit (Ping timeout: 248 seconds) |
23:30:00 | dom96 | Glad you guys want to contribute :) |
23:30:05 | dom96 | Let me know if you need any help |
23:32:47 | * | gokr quit (Ping timeout: 248 seconds) |
23:41:06 | * | jinshil joined #nim |
23:46:00 | * | yglukhov quit (Remote host closed the connection) |
23:46:04 | * | bkerin joined #nim |