00:16:45 | * | arnetheduck_ joined #nim |
00:16:45 | * | arnetheduck quit (Read error: Connection reset by peer) |
00:25:02 | * | xkapastel quit (Quit: Connection closed for inactivity) |
00:31:18 | * | aguspiza quit (Ping timeout: 256 seconds) |
01:07:54 | * | S1t1Schu joined #nim |
01:11:27 | * | S1tiSchu quit (Ping timeout: 240 seconds) |
02:31:12 | * | arnetheduck_ quit (Remote host closed the connection) |
02:33:16 | * | arnetheduck joined #nim |
02:39:09 | * | Snircle joined #nim |
02:52:19 | * | athenot quit (Remote host closed the connection) |
02:52:35 | libman_ | re "COBOL backend" joke - as much as I hate Java, it would be the most logical backend to add, because Android. But I think Nim should focus on doing fewer things better. |
02:52:58 | * | athenot joined #nim |
03:00:44 | * | ldlework quit (Ping timeout: 276 seconds) |
03:05:44 | * | ldlework joined #nim |
03:41:25 | * | dddddd quit (Remote host closed the connection) |
03:51:44 | * | Lord_Nightmare2 joined #nim |
03:52:42 | * | Lord_Nightmare quit (Ping timeout: 260 seconds) |
03:52:45 | * | Lord_Nightmare2 is now known as Lord_Nightmare |
04:08:44 | * | S1tiSchu joined #nim |
04:12:03 | * | S1t1Schu quit (Ping timeout: 260 seconds) |
04:21:07 | * | SitiSchu joined #nim |
04:21:57 | * | S1tiSchu quit (Ping timeout: 264 seconds) |
04:36:57 | * | arnetheduck quit (Ping timeout: 240 seconds) |
04:41:49 | * | arnetheduck joined #nim |
05:16:12 | * | vlad1777d joined #nim |
05:29:07 | * | yglukhov joined #nim |
05:33:43 | * | yglukhov quit (Ping timeout: 265 seconds) |
05:33:57 | * | vlad1777d quit (Ping timeout: 240 seconds) |
05:58:44 | * | ldlework quit (Changing host) |
05:58:44 | * | ldlework joined #nim |
06:35:01 | * | nsf joined #nim |
06:36:56 | * | r3d9u11 joined #nim |
07:06:38 | * | rokups joined #nim |
07:09:50 | * | max3 quit (Quit: Connection closed for inactivity) |
07:12:48 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
07:36:29 | * | miran joined #nim |
07:38:29 | * | madmalik joined #nim |
07:48:48 | Araq | https://www.joelonsoftware.com/2000/08/09/the-joel-test-12-steps-to-better-code/ |
07:49:03 | Araq | "Do you fix bugs before writing new code?" |
07:56:04 | arnetheduck | is it considered a bug when async generates bogus / dead code? https://pastebin.com/fNricQcw - note the extra call to complete after `goto beforeret` |
07:57:32 | arnetheduck | this is from compiling https://github.com/nim-lang/Nim/blob/72d9485e8e0b839c3832ecb3b949e116fe9ed062/tests/async/tasync_traceback.nim.. |
08:03:03 | * | gmpreussner quit (Ping timeout: 260 seconds) |
08:03:26 | * | athenot quit (Ping timeout: 255 seconds) |
08:05:26 | * | gmpreussner joined #nim |
08:17:41 | FromGitter | <data-man> @Araq: Do you have scripts or parameters to convert sqlite by c2nim? |
08:21:55 | * | r3d9u11 quit (Ping timeout: 265 seconds) |
08:26:23 | * | xet7 joined #nim |
08:31:01 | arnetheduck | also, afaict it seems that the snippet `(*(*colonenvP_).colonup_).retFuture1` is generated from the same node in the ast - ie the same node instance is reference in two places in the generated AST (leading to it having the same id - or two parents) - is this / should this be allowed in macros |
08:31:05 | arnetheduck | ? |
08:33:32 | * | xet7 quit (Remote host closed the connection) |
08:35:13 | * | xet7 joined #nim |
08:37:48 | FromGitter | <alehander42> so, one of my side project ideas is a smaller nim linter |
08:38:19 | FromGitter | <alehander42> I already have some simple checks working, but I'd like some opinions on e.g. what would be the most useful checks to implement |
08:41:00 | * | aguspiza joined #nim |
08:42:03 | FromGitter | <nathandaly> Hey, I want to change the foreground colour of terminal echo, there is a setForgroundColor in the terminal module but it expects file as the first param |
08:42:23 | FromGitter | <k0pernicus> Checked the issues, and wondered if the `easy` tag is for newbies? |
08:42:51 | FromGitter | <nathandaly> In bash it's a hex/escii code wrapped around the string |
08:43:37 | FromGitter | <data-man> @nathandaly: Use styledEcho |
08:44:13 | FromGitter | <mratsim> @k0pernicus in the stdlib I would say yes, in the compiler I would say it’s a good first issue for someone experimented otherwise but wants to do a first dive in the compiler |
08:44:50 | FromGitter | <alehander42> I think stdout is the file, but yeah styledEcho should be ok |
08:45:02 | FromGitter | <data-man> @alehander42: About #7508 ⏎ The current mangling schema does not allow to reconstruct the original name. Your PR also does not improve the situation. ⏎ I've some ideas for a new schema that will allow a demangling. |
08:45:08 | FromGitter | <nathandaly> Ah ok thanks for the tip |
08:45:34 | FromGitter | <Vindaar> @nathandaly @alehander42 yeah, in general if the `terminal` procs expect a file and you just want to print to the terminal, `stdout` is correct |
08:45:59 | FromGitter | <nathandaly> Ah ok ty |
08:46:04 | FromGitter | <alehander42> @data-man when is a variable *not* represented as `original_hash` ? |
08:46:16 | FromGitter | <alehander42> `original_name & hash` * |
08:46:29 | FromGitter | <data-man> Without hashing |
08:48:33 | FromGitter | <alehander42> I mean, isn't the original name almost always `mangled.rsplit('_', 1)[0]` |
08:48:42 | FromGitter | <alehander42> currently ? |
08:49:07 | FromGitter | <alehander42> (the part between the last `_`) |
08:49:11 | FromGitter | <alehander42> before* |
08:51:47 | FromGitter | <k0pernicus> Thanks @mratsim ;-) |
08:52:44 | FromGitter | <data-man> @alehander42: We need something like this: https://github.com/dlang/dmd/blob/master/src/dmd/dmangle.d |
08:53:44 | FromGitter | <alehander42> @data-man still, can you give me one example when the original variable name is not == `mangled.rsplit('_', 1)[0]` |
08:54:37 | FromGitter | <alehander42> I've used that for a long time for functions/variables , even with a mapping with name => operator and it always seemed enough |
08:57:09 | FromGitter | <alehander42> afaik Araq had some reasons why he wanted different mangling scheme than D |
08:57:58 | FromGitter | <data-man> Hashing is slow and increase binary file |
08:58:23 | FromGitter | <alehander42> but maybe it was for the older D scheme |
08:59:34 | FromGitter | <alehander42> @data-man that seems true ⏎ but still I disagree that one can reconstruct the original name, in my PR that part should be working fine in most(all?) cases (I have to just fix the split a bit) |
08:59:48 | * | bauk joined #nim |
09:00:50 | FromGitter | <alehander42> now, if you're talking about deconstructing arg types for functions from the mangled name, that's something I've wondered about |
09:01:35 | FromGitter | <alehander42> which leads me to another question related to my nim-linter idea, is it possible to get some type info for a module currently using the compiler API |
09:01:45 | FromGitter | <data-man> https://github.com/dlang/druntime/blob/master/src/core/demangle.d |
09:03:56 | * | bauk left #nim (#nim) |
09:05:07 | FromGitter | <alehander42> (tagging @Araq on this question too) what I did in past was passing a source through parse and sem and then analyzing somehow modules / methods in ModuleGraph, but I remember they didn't have sufficient type info in them |
09:05:52 | FromGitter | <alehander42> I think @zah told me before one needs to add something to the compiler if I want to somehow "export" types for outside analysis |
09:07:42 | FromGitter | <k0pernicus> I am trying to understand the behaviour of `spawn` and `parallel`. ⏎ If I understood the manual, the `spawn` behavior (without `parallel`) is to pass the task to the thread pool. ⏎ Or, using `parallel` and `spawn`, the task will be processed using another core, right? |
09:08:13 | FromGitter | <data-man> @alehander42: I want to add more info for -d:debugSigHashes |
09:10:50 | FromGitter | <alehander42> how does `debugSigHashes` work? I cant find docs |
09:11:10 | FromGitter | <data-man> Undocumented :-D |
09:11:33 | FromGitter | <alehander42> :D but what is the difference with normal sighashes |
09:12:23 | FromGitter | <data-man> Sighashes stored to db |
09:12:44 | FromGitter | <data-man> Very slow |
09:13:16 | FromGitter | <alehander42> in a db? does the db include other info corresponding to them? |
09:13:59 | FromGitter | <data-man> For types only |
09:15:27 | FromGitter | <k0pernicus> Also, can we pass anonymous as argument for `spawn`? ⏎ Instead of `spawn my_func(x)`, just write `spawn proc (x: uint32) = …` ? |
09:16:27 | FromGitter | <data-man> If store for any sym, then this db can be used for autocompletion, e.g. |
09:18:01 | FromGitter | <alehander42> @data-man sounds interesting, i'll test it later |
09:18:09 | FromGitter | <alehander42> so i just need to pass this option |
09:18:19 | FromGitter | <alehander42> and it will create the db in the same dir ? or nimcache |
09:19:52 | FromGitter | <data-man> In compiler dir (for me) |
09:20:39 | FromGitter | <data-man> compiler sources |
09:37:44 | * | SenasOzys quit (Read error: Connection reset by peer) |
09:38:13 | * | SenasOzys joined #nim |
10:09:03 | FromGitter | <k0pernicus> For this code, ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ I have the following error: `expression [… ] is of type ‘FlowVar[…]’ and has to be discarded` [https://gitter.im/nim-lang/Nim?at=5ac898bf109bb0433298f8fb] |
10:10:14 | FromGitter | <dom96> Spawn returns a special value that can be used to tell if the thread finished executing |
10:10:19 | FromGitter | <k0pernicus> I don’t understand this error. ⏎ Does `spawn` returns anything? ⏎ Or do I need to return something in my anonymous procedure? |
10:11:10 | FromGitter | <dom96> You can assign the value that spawn returns to a variable, or discard it using the discard keyword |
10:11:19 | FromGitter | <k0pernicus> Thanks @dom96, but why I don’t have this error on the following code: ⏎ ⏎ ```proc print_parallel(r: uint32) = ⏎ for x in 0..r: ⏎ spawn my_proc(x)``` ⏎ ⏎ ? [https://gitter.im/nim-lang/Nim?at=5ac89947270d7d3708a0c21f] |
10:11:39 | FromGitter | <k0pernicus> with `proc my_proc(x: uint32) = echo x` |
10:12:10 | FromGitter | <dom96> Hrm. Maybe there is some issue passing an anonymous proc to spawn |
10:12:40 | FromGitter | <k0pernicus> Ok |
10:13:07 | FromGitter | <k0pernicus> I will create an issue about that - maybe there is something wrong in my code... |
10:13:10 | FromGitter | <k0pernicus> Thanks @dom96 ;-) |
10:14:31 | dom96 | maybe you could gist all your code? |
10:14:36 | dom96 | that might show the problem |
10:14:42 | FromGitter | <k0pernicus> Oh right, sorry |
10:17:13 | FromGitter | <k0pernicus> This is the gist: https://gist.github.com/k0pernicus/0870a3975091cbeac16b5ec9b27bc95d |
10:18:39 | FromGitter | <k0pernicus> (Forgot to import the `threadpool` module in the gist, sorry for that) |
10:20:52 | dom96 | No worries :) |
10:22:06 | dom96 | yeah, report it |
10:22:17 | dom96 | If I add a discard I get an internal compiler error :) |
10:22:26 | FromGitter | <k0pernicus> Same thing here, yep |
10:22:39 | FromGitter | <k0pernicus> Ok, I will create an issue about that |
10:24:11 | dom96 | thanks! |
10:27:59 | FromGitter | <k0pernicus> Reported here: https://github.com/nim-lang/Nim/issues/7535 |
10:30:33 | FromGitter | <gogolxdong> @shashlick Have you tried transforming webkit to nim? |
10:31:39 | dom96 | k0pernicus: nice, you can use Nim syntax highlighting on GitHub too :) |
10:32:23 | FromGitter | <k0pernicus> @dom96 Updated ;-) Thanks for the tip |
10:33:18 | dom96 | but yeah, I wouldn't be surprised if anon procs are disallowed in that context for simplicity :) |
10:34:24 | FromGitter | <k0pernicus> Ok… Or… Do I need to call the anonymous procedure? |
10:34:38 | FromGitter | <k0pernicus> like `(proc (x: uint32) = echo x)()` ? |
10:35:56 | dom96 | hm, perhaps |
10:36:11 | FromGitter | <k0pernicus> Oh yeah - I gave the procedure pointer, instead of calling it -_- |
10:36:14 | FromGitter | <k0pernicus> It works fine now |
10:36:18 | FromGitter | <k0pernicus> Sorry for that... |
10:36:34 | dom96 | error could be better :) |
10:36:40 | dom96 | and you did find a crash |
10:36:49 | FromGitter | <k0pernicus> Yep, it’s true... |
10:37:11 | FromGitter | <k0pernicus> I will update the issue |
10:40:22 | FromGitter | <k0pernicus> @dom96 Do you want me to change the title ? |
10:40:42 | dom96 | no, it's fine |
10:45:39 | * | Vladar joined #nim |
10:57:00 | * | SitiSchu quit (Read error: Connection reset by peer) |
11:06:47 | federico3 | is it just my nimble or https://github.com/watzon/github-api-nim cannot be imported after nimble install? |
11:12:09 | dom96 | what's your import line? |
11:17:31 | federico3 | urgh: const a = "foo"; assert a[0..^0][^1] == '\0' |
11:18:37 | federico3 | dom96: import github_api , as in the readme |
11:19:12 | dom96 | well, look at the source |
11:19:18 | dom96 | of the package |
11:19:19 | dom96 | that can't work |
11:20:30 | federico3 | the sources contain a github_api directory with various files in it - indeed it looks wrong but I was wondering why the author uses that |
11:24:16 | dom96 | Seems the author prefers crystal now :/ |
11:31:38 | FromGitter | <data-man> @dom96: Which sqlite3 version in dlls.zip? (the latest version is 3.23.0) |
11:31:56 | dom96 | no idea |
11:33:41 | * | sleepyqt joined #nim |
11:37:47 | FromGitter | <data-man> !eval import sqlite3; echo $libversion_number() |
11:37:50 | NimBot | 3011000 |
11:38:00 | * | djellemah joined #nim |
11:38:03 | FromGitter | <data-man> :( |
11:39:52 | Yardanico | This is not windows dll version though |
11:40:06 | Yardanico | @data-man this is sqlite3 version installed in docker container on nim playground |
11:40:18 | Yardanico | (NimBot uses nim playground for eval) |
11:40:32 | federico3 | any way to perform autovivification in JSON? e.g. create a tree with myjson["a"]["b"]["c"] = value |
11:40:55 | FromGitter | <data-man> I know. It's also bad. |
11:41:08 | Yardanico | @data-man: you can make a PR to nim playground :) |
11:43:45 | FromGitter | <data-man> I have not finished a new wrapper :) |
11:48:21 | federico3 | a{"a", "b", "c"} = newJInt(2) # works! |
12:01:59 | FromGitter | <zacharycarter> sorry |
12:02:03 | FromGitter | <zacharycarter> what's up with the playground? |
12:02:11 | FromGitter | <zacharycarter> I'm working on a new version of the project now so any feedback is welcome |
12:02:36 | * | xkapastel joined #nim |
12:02:46 | FromGitter | <data-man> @zacharycarter: Old sqlite3 |
12:03:38 | dom96 | data-man: why does that matter? |
12:14:44 | FromGitter | <data-man> @dom96: For the playground maybe it's not important. What matter in software updating? |
12:17:46 | FromGitter | <alehander42> @data-man so I used the flag |
12:18:02 | FromGitter | <alehander42> And I couldn't see a db file |
12:18:12 | FromGitter | <alehander42> What kind of name I am looking for |
12:18:53 | FromGitter | <alehander42> I can just look through the flag source actually |
12:19:17 | FromGitter | <data-man> sighashes.db |
12:21:25 | * | Trustable joined #nim |
12:21:41 | * | xet7 quit (Remote host closed the connection) |
12:22:47 | FromGitter | <data-man> But there's only the type name and hash :) |
12:23:31 | * | xet7 joined #nim |
12:27:11 | FromGitter | <zacharycarter> I can update the sqlite3 version on the sandbox image |
12:27:15 | FromGitter | <zacharycarter> shouldn't be an issue |
12:28:26 | FromGitter | <alehander42> huh |
12:28:33 | FromGitter | <alehander42> i got the nim forum email in my spam :( |
12:28:49 | FromGitter | <alehander42> finally a member tho |
12:30:43 | FromGitter | <alehander42> ahhhh |
12:30:50 | FromGitter | <alehander42> I have to compile the compiler itself with that flag |
12:30:52 | dom96 | hrm, turns out I was wrong about the cause of that memory leak |
12:30:53 | FromGitter | <alehander42> makes sense |
12:33:42 | FromGitter | <alehander42> ok, that's pretty useful |
12:33:47 | FromGitter | <alehander42> but very slow indeed |
12:34:38 | FromGitter | <alehander42> actually I am almost sure with non-db one-write at the end of compilation it can be nice |
12:36:29 | FromGitter | <alehander42> I've tried similar stuff with db patching the compiler and I've always found storing it in internal data and spewing it out in some reasonable format at the end seems much faster |
12:37:17 | * | madmalik quit (Quit: Connection closed for inactivity) |
12:39:55 | FromGitter | <data-man> @alehander42: I replaced sighashes.db to ```:memory:``` |
12:41:29 | FromGitter | <alehander42> how much seconds does it take for a small file? |
12:41:36 | FromGitter | <alehander42> we can benchmark, I am replcaing it with a table |
12:45:18 | * | vegax87 quit (Changing host) |
12:45:18 | * | vegax87 joined #nim |
12:45:18 | * | vegax87 quit (Changing host) |
12:45:18 | * | vegax87 joined #nim |
12:45:23 | FromGitter | <alehander42> why does addQuitProc not accept ` <proc (){.locks: 0.}>` |
12:46:09 | FromGitter | <data-man> `````` |
12:47:16 | FromGitter | <alehander42> bravo |
12:47:19 | FromGitter | <alehander42> wow, indeed |
12:52:06 | FromGitter | <alehander42> @data-man can you access a memory-db after the compilation finished |
12:53:19 | FromGitter | <alehander42> it takes a min 30 for me with file db |
12:53:55 | FromGitter | <alehander42> no, 1 minute |
12:54:13 | FromGitter | <alehander42> and 1 second with table + text save |
12:54:23 | FromGitter | <alehander42> I guess csv to sqlite will take max 1-2 secs more |
12:55:37 | FromGitter | <data-man> @alehander42: That's why I want to use sqlite3_backup |
12:55:57 | FromGitter | <alehander42> but I just don't get why one needs sqlite3 for this |
12:56:18 | FromGitter | <alehander42> you need it to query the data after compilation has ended, yes |
12:56:30 | FromGitter | <alehander42> but it's overkill to insert it during compilation |
12:59:26 | FromGitter | <data-man> There is a check for hashes uniqueness |
13:00:31 | FromGitter | <alehander42> which you can do with tables :D |
13:01:24 | FromGitter | <data-man> for sqlite's db there is sqlitebrowser :) |
13:01:39 | FromGitter | <alehander42> but that's my point |
13:02:12 | FromGitter | <alehander42> you collect it, in the end you DO save your data in sqlite, but in only one try |
13:04:04 | FromGitter | <alehander42> maybe with memory sqlite + backup this would be the same speed, we have to compare |
13:06:49 | FromGitter | <alehander42> that can fix some of my typing info needs, that's why I am excited about it :D |
13:09:17 | FromGitter | <zacharycarter> not sure if this is relevant or not to your guys's discussion but |
13:09:25 | FromGitter | <zacharycarter> https://github.com/bluenote10/NimData |
13:10:42 | FromGitter | <alehander42> wow interesting |
13:12:53 | FromGitter | <alehander42> @data-man it seems it will all work in <2-3 secs |
13:12:58 | FromGitter | <alehander42> for a small program on my machine |
13:13:23 | FromGitter | <alehander42> collect info => dump to sqlite currently with temp csv, index by hash |
13:13:57 | FromGitter | <alehander42> but I have to benchmark on compiling bigger programs |
13:14:03 | FromGitter | <data-man> @alehander42: NimData is great library. But the compiler can't depend on it. |
13:14:42 | FromGitter | <alehander42> @data-man I don't use nimdata |
13:16:58 | FromGitter | <alehander42> I'll post a commit in a minute |
13:17:15 | FromGitter | <data-man> @alehander42: I thought that your 'wow interesting' was about this lib :) |
13:17:29 | FromGitter | <alehander42> :D it is interesting in itself , not for this case |
13:19:20 | FromGitter | <narimiran> @zacharycarter @bluenote10 said he is also working on more traditional (column based) lib: https://github.com/bluenote10/kadro |
13:20:13 | FromGitter | <data-man> @alehander42: How about zero_like_db? ;) |
13:20:15 | * | SenasOzys_ joined #nim |
13:22:37 | * | SenasOzys quit (Ping timeout: 260 seconds) |
13:25:50 | * | yglukhov joined #nim |
13:25:51 | FromGitter | <alehander42> if you're talking about zero_functional, these days @michael72 is mostly developing/maintaining it :D good thing your remind me |
13:26:10 | * | yglukhov quit (Remote host closed the connection) |
13:26:20 | FromGitter | <alehander42> yeah one can do a simple "data structures easily saveable as db-s" thing sounds nice |
13:26:47 | * | yglukhov joined #nim |
13:27:40 | FromGitter | <data-man> Of course, I'm a generator of ideas. :-D |
13:27:50 | FromGitter | <alehander42> :D idea-man |
13:28:46 | FromGitter | <data-man> It's too late to change the nickname. |
13:32:53 | dom96 | Anybody on Linux/Windows want to see if this is reproducible? https://github.com/nim-lang/Nim/issues/7532#issue-312147042 |
13:33:02 | dom96 | Note: It allocates memory quickly so be ready to kill it. |
13:33:22 | * | yglukhov quit (Ping timeout: 264 seconds) |
13:34:12 | FromGitter | <mratsim> cute names: retFuture255001 |
13:34:31 | dom96 | macro code :D |
13:34:39 | FromGitter | <mratsim> https://imgs.xkcd.com/comics/wisdom_of_the_ancients.png |
13:40:28 | Yardanico | dom96, I'll try now |
13:40:56 | dom96 | thx |
13:41:31 | Yardanico | dom96, yes, it allocates memory really fast |
13:41:43 | dom96 | Linux right? |
13:41:46 | Yardanico | yes |
13:42:33 | dom96 | great |
13:44:24 | FromGitter | <alehander42> @data-man https://github.com/alehander42/Nim/commit/abc969e755c261657e5dc9b82ef9a17d17ae00a8 |
13:44:31 | FromGitter | <alehander42> this seems to work quickly for me |
13:45:21 | FromGitter | <alehander42> there must be a way to directly dump a lot of rows into sqlite3 with the API but not sure how |
13:47:35 | * | JacobEdelman quit (Ping timeout: 256 seconds) |
13:47:54 | * | JacobEdelman joined #nim |
13:49:05 | dom96 | trying out this dumpNumberOfInstances feature |
13:49:06 | dom96 | [Heap] string: #56852; bytes: 9833659 |
13:49:23 | dom96 | I guess that means there are 56,852 strings allocated |
13:50:38 | FromGitter | <data-man> @alehander42: Nice! The general idea is to save more information from PSym. |
13:51:28 | FromGitter | <alehander42> yeah, for example it seems this doesn't save info for *all* hashes |
13:53:03 | * | miran quit (Ping timeout: 260 seconds) |
13:54:23 | FromGitter | <alehander42> do you know why? e.g. where should I add code if I want to save the type for function name hashes |
13:55:42 | FromGitter | <alehander42> the forum editor is nice , full markdown support, didn't expect it |
14:00:12 | FromGitter | <data-man> To hashTree proc |
14:01:36 | * | r3d9u11 joined #nim |
14:04:43 | FromGitter | <alehander42> why a custom syntax for links |
14:04:45 | FromGitter | <alehander42> why |
14:04:51 | FromGitter | <alehander42> nimforum |
14:05:15 | FromGitter | <alehander42> ah they're directly detected |
14:05:16 | FromGitter | <alehander42> weird |
14:05:22 | dom96 | "custom"? |
14:05:27 | dom96 | It's restructured text |
14:05:51 | dom96 | As for rst vs markdown, you can argue with Araq about that :) |
14:05:59 | FromGitter | <alehander42> ah right |
14:06:05 | FromGitter | <alehander42> I didn't even notice :D |
14:12:01 | * | xkapastel quit (Quit: Connection closed for inactivity) |
14:12:02 | * | arecaceae quit (Read error: Connection reset by peer) |
14:12:27 | * | arecaceae joined #nim |
14:20:25 | * | jaco60 joined #nim |
14:46:46 | shashlick | gogolxdong: I haven't actually looked at webkit - what exactly are you trying to do? |
14:47:12 | FromGitter | <gogolxdong> I am trying to build a nimkit :) |
14:49:53 | FromGitter | <gogolxdong> wrote a .cfg file ,doesn't work. in chrome source code WebKit/Source/ |
14:50:15 | FromGitter | <gogolxdong> D:\third_party\src\github.com\chromium\chromium\third_party\WebKit\Source |
14:51:52 | FromGitter | <gogolxdong> native nim dom node manuplation. |
14:52:00 | shashlick | can you share your cfg |
14:53:37 | FromGitter | <gogolxdong> D:\third_party\src\github.com\chromium\chromium\third_party\WebKit\Source\core\dom |
14:53:52 | FromGitter | <gogolxdong> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5ac8db80080a38505308eb4f] |
14:53:53 | * | r3d9u11 quit (Ping timeout: 256 seconds) |
14:54:21 | FromGitter | <gogolxdong> probably non-sense. |
14:54:47 | shashlick | well, which header file are you trying to wrap? |
14:55:10 | FromGitter | <gogolxdong> all under dom/ |
14:57:10 | shashlick | okay and do you end up with a dom.dll or something when webkit is built? |
14:58:04 | FromGitter | <gogolxdong> didn't build wekit, just cloned the source codes |
14:59:14 | FromGitter | <gogolxdong> there is an empty nimkit directory. |
14:59:20 | * | nsf quit (Quit: WeeChat 2.0.1) |
14:59:40 | shashlick | well, you need to tell nimgen which header files to work on |
15:00:08 | shashlick | there's a variety in this dom directory - which one do you include? which functions are useful for you? |
15:01:37 | FromGitter | <gogolxdong> I am trying to migrate the whole dom part to nim. |
15:04:18 | FromGitter | <gogolxdong> I remembered you gave me a libvirt transformation cfg file. |
15:05:57 | shashlick | ya but you were going to use libvirt with the DLL files, here you want to convert to Nim which is completely different |
15:06:45 | FromGitter | <gogolxdong> you mean unfeasible through nimgen? |
15:08:01 | shashlick | well, I don't know if c2nim can convert C++ code 100% so you'd need to run through each file and hand translate things c2nim couldn't do |
15:08:08 | shashlick | nimgen just automates c2nim |
15:09:29 | shashlick | I also looked at my Chrome install, I don't see any webkit.dll or dom.dll or anything - it's a 50MB chrome.dll and 75MB chrome_child.dll - probably everything compiled in |
15:09:31 | FromGitter | <gogolxdong> How about show me an example of Node.h? |
15:10:13 | FromGitter | <gogolxdong> I pulled the whole source code of chrome. |
15:11:06 | FromGitter | <gogolxdong> and yes ,c2nim cannot convert 100% |
15:11:30 | shashlick | let me get something started and share with you |
15:15:16 | * | dddddd joined #nim |
15:18:08 | shashlick | gogolxdong: are you saying you want to wrap the c++ code and use procs in Nim or convert the c++ code into Nim? |
15:22:40 | FromGitter | <gogolxdong> convert |
15:23:44 | FromGitter | <gogolxdong> leave me message ,have to go to bed , thanks in advance. |
15:24:51 | shashlick | okay will share what I come up with for Node.h |
15:25:46 | * | hal joined #nim |
15:32:03 | hal | Hello. I want to add a new proc toFILETIME(unix: int64, ns: int): FILETIME to the winlean module. How do I identify the correct place in winlean.nim to put that proc? |
15:36:11 | Yardanico | dom96, btw, did you try different GC's? |
15:36:16 | Yardanico | mark&sweep, gc-v2, boehm? |
15:36:19 | dom96 | no |
15:47:12 | hal | dom96: winlean has proc rdFileTime*(f: FILETIME): int64, would that be a good place to add toFILETIME? It is the reverse operation. |
15:47:46 | hal | looking at rdFileTime should the name of the new proc be toFileTime (instead of toFILETIME)? |
15:47:47 | dom96 | hal: You can just put it anywhere in winlean |
15:47:50 | dom96 | it doesn't matter much |
15:48:07 | dom96 | usually new things are added to the bottom |
16:05:48 | * | littleli quit (Remote host closed the connection) |
16:16:38 | shashlick | gogolxdong: suddenly a bunch of stuff is missing from github.com - the WebKit/Source directory disappeared |
16:19:13 | shashlick | weechat is working super nicely - have irc, gitter and matrix all flowing in, and in #nim, messages from gitter and discord are being automatically fixed to show up from the nickname instead of FromGitter or FromDiscord |
16:22:36 | * | xkapastel joined #nim |
16:40:43 | * | leorize quit (Ping timeout: 265 seconds) |
16:42:19 | * | leorize joined #nim |
16:48:13 | hal | dom96: GULPF: may I ask you to have a look at my current toFILETIME https://github.com/hendrikgit/Nim/commit/de8bb136aa9063ec6b46cc603ae898fe5e58765d |
17:09:02 | * | max3 joined #nim |
17:11:04 | hal | Nevermind, it needs a lot of changes I think. Don't look at it yet. |
17:11:54 | FromGitter | <samdmarshall> Hey, so i'm having a weird problem with the `httpclient` class; i'm trying to write a small webpage validator to lint my website by traversing links on the page. one of the links ends up being a redirect, that gets redirected a couple of times. I know the maxredirect of the client class is 5, but so far it just seems to hang indefinitely?? |
17:12:02 | FromGitter | <samdmarshall> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5ac8fbe26d7e07082bcc4b7d] |
17:13:38 | dom96 | interesting |
17:14:43 | dom96 | ahh yes |
17:14:47 | dom96 | I thought I fixed this :( |
17:15:06 | FromGitter | <Yardanico> @samdmarshall just FYI: httpclient is a module, not a class :) and HttpClient is an object |
17:16:22 | dom96 | samdmarshall: I pushed a fix |
17:16:38 | dom96 | https://github.com/nim-lang/Nim/commit/992300b30057e2b3b489b90fb0e7011607e3e8cf |
17:17:42 | FromGitter | <samdmarshall> oh sweet, let me build dev and give it a go |
17:18:32 | dom96 | well, I made it stop going into an infinite loop |
17:18:38 | dom96 | There might still be some other problem :) |
17:20:20 | FromGitter | <samdmarshall> that's fine, if it doesn't go into that infinite loop then I can start debugging the rest |
17:21:50 | FromGitter | <samdmarshall> but in this case, that was actually all my code was doing, performing a head request then looking at the response code. but since it was trying to handle the redirect automatically, I couldn't look at that first response code I got |
17:40:40 | FromGitter | <samdmarshall> @dom96 thanks! that worked perfectly. |
17:41:07 | dom96 | great :) |
17:48:19 | * | SenasOzys_ quit (Quit: Leaving) |
17:48:39 | * | SenasOzys joined #nim |
17:50:05 | * | rockcavera joined #nim |
17:55:07 | * | SenasOzys quit (Read error: Connection reset by peer) |
17:55:30 | * | SenasOzys joined #nim |
18:03:56 | * | SenasOzys quit (Quit: Leaving) |
18:04:20 | * | SenasOzys joined #nim |
18:07:22 | * | SenasOzys quit (Client Quit) |
18:07:40 | * | SenasOzys joined #nim |
18:12:22 | * | sleepyqt quit (Ping timeout: 264 seconds) |
18:19:18 | * | miran joined #nim |
18:28:13 | hal | What style of calling procs, I mean dot or bracket like t.toUnix or toUnix(t), is preferred for the standard library? |
18:30:03 | dom96 | the former |
18:31:37 | * | r3d9u11 joined #nim |
18:34:30 | * | r3d9u11 quit (Remote host closed the connection) |
18:46:16 | hal | dom96: I found out that the handle returned by findFirstFile is not valid for SetFileTime, I get error 6 invalid handle. I'll have to use CreateFile to get the handle after all |
18:46:42 | dom96 | that's weird, are you sure you're passing it correctly? |
18:53:26 | hal | I'm doing that the same way as in getLastModificationTime, so I would think so yes. Windows api documentation says FindFirstFile returns a search handle and some file info, that is what is used for getLastModificationTime. CreateFile returns a handle that can also be used to modify. |
18:57:07 | hal | I need to do something else now but I'll try to make it work with CreateFile and get back to you. By the end of this I might actually know how to use the win api :) |
19:10:43 | dom96 | ahh cool |
19:10:50 | dom96 | Best way to learn about the inner workings of Windows :) |
19:24:17 | * | dddddd quit (Ping timeout: 260 seconds) |
19:28:53 | * | sleepyqt joined #nim |
19:31:04 | * | shashlick quit (Read error: Connection reset by peer) |
19:31:36 | * | shashlick joined #nim |
19:34:51 | * | rokups quit (Quit: Connection closed for inactivity) |
19:43:06 | * | dabbb joined #nim |
19:51:43 | * | dddddd joined #nim |
20:06:11 | * | sleepyqt quit (Quit: Leaving) |
20:15:37 | * | dabbb quit (Quit: Page closed) |
20:23:57 | * | aguspiza quit (Ping timeout: 245 seconds) |
20:26:08 | Yardanico | Araq, what is your opinion about syntax skins? will you remove them? |
20:41:16 | * | SenasOzys quit (Remote host closed the connection) |
20:41:34 | * | aguspiza joined #nim |
20:41:40 | * | SenasOzys joined #nim |
21:20:46 | * | craigger quit (Ping timeout: 264 seconds) |
21:21:43 | * | craigger joined #nim |
21:23:29 | * | jaco60 quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
21:28:16 | * | miran quit (Quit: Konversation terminated!) |
21:30:09 | * | Vladar quit (Quit: Leaving) |
21:32:21 | * | nsf joined #nim |
21:51:44 | * | dddddd quit (Remote host closed the connection) |
22:33:47 | * | nsf quit (Quit: WeeChat 2.0.1) |
22:41:33 | * | aguspiza quit (Ping timeout: 260 seconds) |
22:43:30 | * | rockcavera quit (Remote host closed the connection) |
22:44:25 | * | xet7 quit (Quit: Leaving) |
22:58:03 | FromGitter | <Varriount> hal: Ugh, getLastModificationTime needs to be reimplemented. FindFirstFile is not meant to be used like that. |
23:02:59 | FromGitter | <Varriount> Besides, getFileInfo is better |
23:08:26 | dom96 | Make a PR ;) |
23:23:25 | FromGitter | <diegogub> hello, Is it possible to cross-compile from OSX to Linux? |
23:28:37 | FromGitter | <gogolxdong> @shashlick , I have the code ,how do I give you? |
23:30:20 | shashlick | Official code is at https://chromium.googlesource.com/chromium |
23:30:31 | * | SenasOzys quit (Remote host closed the connection) |
23:30:33 | shashlick | But I don't see the same directory structure there |
23:30:54 | * | SenasOzys joined #nim |
23:34:19 | FromGitter | <gogolxdong> Is that a coincidence?WebKit/Source was removed couple of hours ago. |
23:36:16 | FromGitter | <gogolxdong> (https://files.gitter.im/nim-lang/Nim/VCqk/image.png) |
23:45:50 | FromGitter | <gogolxdong> https://gist.github.com/gogolxdong/0bbd3bc8a7369b3d3c5d01257f9a2977#file-gistfile1-txt Node.h |
23:47:49 | FromGitter | <gogolxdong> Node.cpp https://gist.github.com/gogolxdong/03624d33f7094f10fcc0e74a55c04e14 |
23:56:40 | shashlick | I know, I was working on the files and it suddenly disappeared |
23:58:46 | shashlick | Is it any different from the main webkit source? |
23:59:07 | shashlick | https://github.com/WebKit/webkit/tree/master/Source/WebCore/dom |
23:59:10 | FromGitter | <gogolxdong> not sure, I can make a git repository. |