00:00:52 | * | yglukhov quit (Remote host closed the connection) |
00:00:55 | * | endragor joined #nim |
00:04:14 | * | PMunch quit (Quit: leaving) |
00:05:01 | * | def-pri-pub quit (Quit: Leaving.) |
00:05:31 | * | endragor quit (Ping timeout: 240 seconds) |
00:25:29 | * | def-pri-pub joined #nim |
00:45:04 | * | vivus quit (Quit: Leaving) |
00:45:13 | * | vlad1777d quit (Ping timeout: 255 seconds) |
01:01:22 | * | yglukhov joined #nim |
01:04:58 | * | Trioxin quit (Remote host closed the connection) |
01:05:33 | * | chemist69 quit (Ping timeout: 246 seconds) |
01:05:41 | * | yglukhov quit (Ping timeout: 240 seconds) |
01:10:54 | * | francisl joined #nim |
01:20:13 | * | chemist69 joined #nim |
01:22:31 | * | def-pri-pub quit (Quit: Leaving.) |
01:37:25 | * | Ven`` quit (Ping timeout: 255 seconds) |
01:40:10 | * | Ven`` joined #nim |
01:44:31 | * | Ven`` quit (Ping timeout: 248 seconds) |
01:46:30 | * | def-pri-pub joined #nim |
01:47:44 | * | Ven`` joined #nim |
01:58:43 | * | skrylar joined #nim |
02:02:37 | * | chemist69 quit (Ping timeout: 255 seconds) |
02:16:26 | * | chemist69 joined #nim |
02:17:29 | skrylar | zacharycarter: so the patents on S3C texture compression are expiring \o/ |
02:20:12 | * | def-pri-pub quit (Quit: Leaving.) |
02:26:30 | * | Ven`` quit (Ping timeout: 258 seconds) |
02:39:27 | * | dddddd quit (Remote host closed the connection) |
02:47:18 | * | skrylar quit (Remote host closed the connection) |
03:04:04 | * | yglukhov joined #nim |
03:05:39 | * | endragor joined #nim |
03:08:21 | * | yglukhov quit (Ping timeout: 240 seconds) |
03:18:59 | * | def-pri-pub joined #nim |
03:37:09 | * | endragor quit (Remote host closed the connection) |
03:37:44 | * | endragor joined #nim |
03:40:03 | * | libman quit (Quit: Connection closed for inactivity) |
03:42:01 | * | endragor quit (Ping timeout: 240 seconds) |
03:51:30 | * | endragor joined #nim |
03:56:53 | * | francisl quit (Quit: francisl) |
04:00:53 | * | endragor quit (Remote host closed the connection) |
04:01:25 | * | endragor joined #nim |
04:05:35 | * | endragor quit (Ping timeout: 240 seconds) |
05:06:02 | * | yglukhov joined #nim |
05:06:19 | FromGitter | <mratsim> @dom96 If you only need mean/median over axis Arraymancer (and neo) do it. Though there is no way to convert to/from Nim data or CSV at the moment |
05:09:04 | * | def-pri-pub left #nim (#nim) |
05:10:34 | * | yglukhov quit (Ping timeout: 258 seconds) |
05:11:05 | * | miran joined #nim |
05:45:57 | * | azur_kind joined #nim |
05:49:35 | * | claudiuinberlin joined #nim |
05:52:20 | * | solitudesf joined #nim |
05:54:27 | * | solitudesf quit (Remote host closed the connection) |
06:09:30 | * | endragor joined #nim |
06:27:28 | FromGitter | <qqtop> @dom96 https://github.com/qqtop/nimdataframe |
07:08:04 | * | yglukhov joined #nim |
07:12:28 | * | yglukhov quit (Ping timeout: 258 seconds) |
07:20:30 | * | endragor_ joined #nim |
07:23:09 | * | yglukhov joined #nim |
07:23:28 | * | endragor quit (Ping timeout: 255 seconds) |
07:24:30 | * | endragor joined #nim |
07:27:26 | * | endrago__ joined #nim |
07:28:01 | * | endragor_ quit (Ping timeout: 248 seconds) |
07:28:59 | * | JappleAck joined #nim |
07:30:52 | * | endragor quit (Ping timeout: 258 seconds) |
08:00:19 | * | salewski joined #nim |
08:01:50 | salewski | Araq, I have still some headache with wrapping functions like cairo_surface_create_similar () |
08:01:53 | salewski | https://www.cairographics.org/manual-1.0.2/cairo-cairo-surface-t.html#cairo-surface-create-similar |
08:02:08 | salewski | as these allocate very much memory. |
08:02:49 | salewski | When I use the ordinary aproach with finalizers and proxy objects allocated on the heap, then |
08:03:18 | salewski | the freeing of the memory may be very much delayed I guess? |
08:04:17 | salewski | cairo_surface_create_similar() for example may be called for each frame, so 60 times a second allocating a few MB |
08:04:57 | salewski | for each call. May it be better to use destructors than finalizer for such proxy objects? |
08:06:29 | salewski | I think you told me that destructors are still experimental, but in https://forum.nim-lang.org/t/3211 |
08:07:04 | salewski | wizzardx wrote that hi is using destructors for his sdl wrapper. |
08:07:08 | salewski | Done. |
08:31:13 | * | Arrrr joined #nim |
08:31:38 | FromGitter | <mratsim> Would be interested to know this as well. I may have to allocate/free memory on GPU several times a second (I guess I really should look into memory pools) |
08:37:03 | * | endrago__ quit (Remote host closed the connection) |
08:37:35 | * | Arrrr quit (Ping timeout: 240 seconds) |
08:45:44 | Araq | they are highly experimental. |
08:45:58 | Araq | I'm working day and night on a solution. |
08:49:24 | salewski | So for now we should manually release the memory in heavy cases as for the cairo_surface_create_similar() example? |
08:50:58 | salewski | (For Ruby the situation was similar some years ago, without manually freeing the memory crashes resulted.) |
08:51:04 | * | yglukhov quit (Remote host closed the connection) |
09:01:07 | * | Vladar joined #nim |
09:05:59 | Araq | salewski: yes |
09:10:06 | salewski | OK, bye. |
09:10:17 | * | salewski quit (Quit: WeeChat 1.9.1) |
09:15:30 | * | couven92 joined #nim |
09:19:01 | * | miran quit (Ping timeout: 240 seconds) |
09:40:59 | * | endragor joined #nim |
09:45:02 | * | couven92 quit (Quit: Client disconnecting) |
09:50:12 | * | claudiuinberlin quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
09:51:33 | * | yglukhov joined #nim |
09:52:49 | * | endragor quit (Remote host closed the connection) |
09:53:46 | * | azur_kind quit (Remote host closed the connection) |
09:55:35 | * | yglukhov quit (Ping timeout: 240 seconds) |
09:56:49 | * | azur_kind joined #nim |
09:57:41 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
10:03:56 | user0__ | Hi. If Nim can compile to C++, wouldn't it be really easy to inter-operate with imported C++ data structures? For example classes like std::string? If so, is there any guide or example on how to "embed" mini programs into a large C++ project? |
10:08:51 | FromGitter | <mratsim> @user0__ https://nim-lang.org/docs/backends.html#backend-code-calling-nim-nim-invocation-example-from-c |
10:16:36 | * | couven92 joined #nim |
10:18:20 | * | PMunch joined #nim |
10:42:52 | * | ipjk joined #nim |
10:53:21 | * | endragor joined #nim |
10:59:01 | * | endragor quit (Ping timeout: 255 seconds) |
11:15:30 | * | Sentreen quit (Ping timeout: 258 seconds) |
11:16:38 | * | dddddd joined #nim |
11:18:30 | FromGitter | <zacharycarter> skrylar: sweeeet |
11:23:10 | FromGitter | <mratsim> @dom96 I’ve reproduced the nim-glm showstopper C++ bug with a small test case https://github.com/nim-lang/Nim/issues/6455. It seems more like a core diffrence between what is allowed in C and C++ though so I’m not sure where to start fixing it. (cc @Araq) |
11:28:31 | * | Sentreen joined #nim |
11:30:54 | * | Trustable joined #nim |
11:42:58 | * | Snircle joined #nim |
11:51:22 | FromGitter | <BigEpsilon> @user0__ , yes you can easly use cpp data structure with nim. I use vectors coupled with std::move when I need maximum performance |
11:53:05 | * | dom96 is considering getting a Nim stand at FOSDEM |
11:53:39 | * | yglukhov joined #nim |
11:58:12 | * | yglukhov quit (Ping timeout: 260 seconds) |
12:08:02 | dom96 | mratsim: nice, thanks for looking into it! |
12:10:54 | FromGitter | <mratsim> no problem, it completely broke Cuda for me since yesterday I replaced closures by map templates (increasing speed by x4) and Cuda needs C++ :/ |
12:16:33 | dom96 | D: |
12:22:38 | FromGitter | <zacharycarter> krux02: you around? |
12:33:33 | * | user0__ quit (Remote host closed the connection) |
12:42:09 | Araq | mratsim: isn't that just the "mitems does not work for C++" bug? |
12:42:27 | FromGitter | <mratsim> Ah, there is a bug like this? |
12:43:23 | FromGitter | <mratsim> It worked for me before while i used closures |
12:43:42 | FromGitter | <mratsim> but when using {.inject.} it doesn't |
12:44:51 | * | ShalokShalom_ joined #nim |
12:44:51 | Araq | https://github.com/nim-lang/Nim/issues/4910 |
12:48:00 | * | ShalokShalom quit (Ping timeout: 248 seconds) |
12:56:26 | FromGitter | <mratsim> Argh, yeah probably. |
13:08:16 | * | francisl joined #nim |
13:21:17 | * | francisl quit (Quit: francisl) |
13:21:42 | * | francisl joined #nim |
13:22:04 | * | francisl quit (Client Quit) |
13:22:38 | * | francisl joined #nim |
13:22:50 | federico3 | any way to iterate an openArray getting keys and values from the for? |
13:22:52 | * | francisl quit (Client Quit) |
13:23:43 | Araq | federico3: pairs? |
13:27:15 | FromGitter | <Yardanico> well for some reason you can't use tuple unpacking in for loops with openarrays :) |
13:27:32 | federico3 | hm, this syntax is confusing: if I create an openarray with {"a": 10, ... } the array can't be unpacked in tuples |
13:27:59 | FromGitter | <Yardanico> yeah, it can't, you would unpack key and val in for loop body |
13:28:04 | FromGitter | <Yardanico> or just use data[0] and data[1] |
13:28:14 | federico3 | also the syntax has nothing to do with tables or other associative maps and does not guarantee unicity of the "keys" |
13:28:23 | FromGitter | <Yardanico> yeah |
13:28:29 | FromGitter | <Bennyelg> Jester Nim + VueJS what a lovley combination I created |
13:28:46 | FromGitter | <Yardanico> why not use karax instead? :) |
13:28:55 | FromGitter | <Yardanico> so you would have almost pure nim |
13:29:05 | FromGitter | <Bennyelg> Because hard for me understand without having guidelines |
13:29:28 | FromGitter | <Bennyelg> Im sure going to leave for karax sometime soon |
13:30:32 | * | vlad1777d joined #nim |
13:31:29 | dom96 | Bennyelg: awesome, how are you finding Jester? :) |
13:31:33 | FromGitter | <zacharycarter> Araq: https://imgur.com/a/aj766 |
13:32:10 | FromGitter | <Bennyelg> @dom96 I found it great framework just keep the hard work |
13:32:15 | * | vlad1777d quit (Remote host closed the connection) |
13:32:42 | FromGitter | <zacharycarter> jester + karax + https://github.com/pragmagic/redux.nim = ultimate nim stack |
13:33:12 | dom96 | might do another live stream today, maybe working on Jester. |
13:34:24 | FromGitter | <Bennyelg> @zacharycarter Nice! |
13:34:40 | dom96 | I ended up creating a static for loop using a macro for my assignment. Should this be in the stdlib? |
13:35:07 | FromGitter | <zacharycarter> @Bennyelg : not sure what the Nice was to but thanks regardless :P |
13:36:11 | FromGitter | <Bennyelg> the jester + karax, just starting to get my hands into that stack, If I will own a startup one day I'm sure Nim will be top to button most of the cases |
13:37:14 | FromGitter | <zacharycarter> oh :/ I'm more excited about my RTS screenshot :P |
13:37:23 | FromGitter | <zacharycarter> although I still don't think I'm doing this whole stencil buffer thing correctly |
13:37:59 | dom96 | zacharycarter: that's awesome. Are you planning on using your engine to make some games in the long run or are you just having fun implementing this graphics algorithms? |
13:38:42 | FromGitter | <zacharycarter> dom96: I'd definitely like to turn this little rts experiment into something |
13:38:51 | FromGitter | <zacharycarter> and thank you! |
13:39:59 | FromGitter | <zacharycarter> I need an opengl guru |
13:40:04 | federico3 | zacharycarter how are you creating terrains? shameless plug: https://github.com/FedericoCeratto/wave_function_collapse |
13:41:12 | FromGitter | <zacharycarter> these aren't procedurally generated I'm rendering TMX tilemaps in json format |
13:41:18 | FromGitter | <zacharycarter> but procgen needs to be looked into |
13:41:26 | * | libman joined #nim |
13:41:29 | * | claudiuinberlin joined #nim |
13:43:08 | FromGitter | <zacharycarter> federico3 that looks awesome btw |
13:43:41 | federico3 | thanks! (but I only ported the algo, not invented it) |
13:43:49 | FromGitter | <zacharycarter> I was waiting for someone to port that |
13:43:58 | FromGitter | <zacharycarter> I'm familiar with the original |
13:45:48 | FromGitter | <Yardanico> what theme do you use for vscode guys? |
13:46:05 | FromGitter | <zacharycarter> default? |
13:53:49 | FromGitter | <edubart> dark molokai |
13:54:46 | * | endragor joined #nim |
13:55:40 | * | yglukhov joined #nim |
13:58:57 | * | endragor quit (Ping timeout: 248 seconds) |
13:59:59 | FromGitter | <mratsim> Dark+ |
14:00:05 | * | yglukhov quit (Ping timeout: 240 seconds) |
14:15:42 | FromGitter | <Yardanico> LOL https://spacechan.xyz/lynx/res/153.html |
14:21:04 | FromGitter | <Yardanico> someone got so upset by being banned by Araq so he shared this chat log on pastebin and this website (some board) |
14:23:39 | FromGitter | <Yardanico> also you can now easily search my nickname in google :P |
14:23:57 | FromGitter | <Yardanico> it's entirely unique |
14:31:28 | * | TjYoco joined #nim |
14:33:42 | * | PMunch quit (Quit: leaving) |
14:34:47 | * | PMunch joined #nim |
14:53:20 | * | miran joined #nim |
15:01:21 | FromGitter | <Yardanico> what can I do if I get ⏎ gc.nim(279) asgnRefNoCycle ⏎ SIGSEGV: Illegal storage access. (Attempt to read from nil?) ? |
15:06:34 | PMunch | Try to read from somewhere else? |
15:29:59 | onionhammer | Araq have you looked into immix gc ? |
15:30:48 | FromGitter | <Yardanico> link for this immix gc (in case someone wants to read about it): http://www.cs.utexas.edu/users/speedway/DaCapo/papers/immix-pldi-2008.pdf |
15:35:48 | * | smt joined #nim |
15:45:50 | FromGitter | <Yardanico> PMunch: what do you mean by "read" ? |
15:49:01 | * | JappleAck quit (Quit: Leaving) |
15:49:59 | Araq | onionhammer: of course. what about it? |
15:50:49 | Araq | vardanico: think my ban was inappropriate? |
15:51:42 | FromGitter | <Yardanico> nah, just was surprised that this man posted these logs online :P |
15:54:16 | onionhammer | @araq was just curious if you'd evaluated it in nim |
15:54:21 | onionhammer | impressions etc |
16:01:07 | * | TjYoco quit (Quit: Leaving) |
16:05:49 | Araq | onionhammer: requires the ability to move things around. that pretty much means it's unusable for Nim. |
16:10:34 | PMunch | Yardanico, I was just joking. The error was that you were attempting to read from null, so I suggested trying to read from somewhere else :P |
16:11:23 | couven92 | PMunch, sound advice, but not really helpful! :P |
16:11:56 | PMunch | Araq, he was being a bit annoying. Not sure if a ban was entirely necessary though. I'm thinking of writing a small article on compiling, transpiling, and Nim as this question keeps popping up. That way we can easily reference them to that and be done with it |
16:13:14 | Araq | I didn't ban him, I silenced him |
16:14:24 | PMunch | potato tomato |
16:16:06 | Araq | lol |
16:19:16 | * | Jesin joined #nim |
16:20:07 | FromGitter | <zacharycarter> hrm how should I do unit selection in this rts? |
16:20:17 | FromGitter | <zacharycarter> I right now have a glow effect working |
16:21:06 | PMunch | You mean how you should highlight which units are selected? |
16:21:29 | FromGitter | <zacharycarter> basically how should I convey this visually |
16:21:37 | FromGitter | <zacharycarter> that a unit is selected |
16:25:04 | Araq | zacharycarter: show its health bar |
16:26:34 | miran | is there in nim some plotting library? (something like matplotlib, but it can be much less powerful, just for some basic plots) |
16:28:00 | * | yglukhov joined #nim |
16:28:42 | * | JappleAck joined #nim |
16:29:47 | FromGitter | <zacharycarter> Araq: yeah but I mean like from a rendering / technical perspective |
16:30:12 | FromGitter | <zacharycarter> it's difficult when you have to take into account perspective |
16:31:13 | * | JappleAck quit (Client Quit) |
16:31:25 | * | JappleAck joined #nim |
16:31:31 | FromGitter | <zacharycarter> I'd like to render a circle around the unit along with a health bar |
16:31:52 | * | JappleAck quit (Client Quit) |
16:32:07 | * | JappleAck joined #nim |
16:32:12 | FromGitter | <zacharycarter> then you run into this whole problem - https://gamedev.stackexchange.com/questions/81686/how-to-make-unit-selection-circles-merge |
16:32:28 | * | yglukhov quit (Ping timeout: 255 seconds) |
16:32:55 | PMunch | circle around the base is a tried and true method |
16:33:04 | PMunch | It really depends on your game however |
16:33:15 | * | yglukhov joined #nim |
16:33:28 | * | JappleAck quit (Client Quit) |
16:33:43 | * | JappleAck joined #nim |
16:38:12 | * | endragor joined #nim |
16:42:41 | * | endragor quit (Ping timeout: 248 seconds) |
16:49:28 | FromGitter | <stisa> miran I wrote (the beginning of) a toy one some time ago, no idea if it still works https://github.com/stisa/graph |
16:50:31 | miran | stisa: great, i'll take a look |
16:51:30 | * | Sentreen quit (Ping timeout: 240 seconds) |
17:01:11 | * | libman quit (Quit: Connection closed for inactivity) |
17:04:47 | * | Sentreen joined #nim |
17:05:34 | * | endragor joined #nim |
17:12:21 | * | PMunch quit (Remote host closed the connection) |
17:16:27 | * | zachk joined #nim |
17:23:07 | * | Sentreen quit (Ping timeout: 260 seconds) |
17:35:51 | * | Sentreen joined #nim |
17:36:49 | FromGitter | <D-K-E> Hi people, i am very interested in contributing to nim. I am not sure where to start though. I have very little experience in c++ and c, and a relatively large experience in python. I wrote small programs nim to get familiar with the syntax. I have also checked out some of the packages listed in the github repo, but they seem pretty advanced to start contributing. I am doing a phd which mostly deals with computer vision, |
17:36:49 | FromGitter | ... and natural language processing applied to ancient languages, like ancient egyptian, ancient greek, etc. The goal for me is to have sufficient amount of experience to in nim, in order to start a project on those areas. Any suggestions or pointers to a well documented code base that is seeking a contributor and th ... [https://gitter.im/nim-lang/Nim?at=59d910b101110b72318a7100] |
17:39:10 | FromGitter | <zacharycarter> if you're at all interested in graphics programming / game development - I have a project I'm always seeking contributors for - but it sounds like maybe you should talk to @mratsim |
17:39:31 | FromGitter | <zacharycarter> just based on what you described as far as your interests |
17:40:10 | FromGitter | <Varriount> @D-K-E @mratsim has a tensor array library |
17:40:56 | FromGitter | <mratsim> yep, with a computer vision focus |
17:41:24 | * | endragor quit (Remote host closed the connection) |
17:41:29 | FromGitter | <mratsim> You can also check @edubart vision repo here https://github.com/edubart/arraymancer-vision |
17:43:03 | FromGitter | <mratsim> My future plans are there if you want to know where you’re stepping in: https://forum.nim-lang.org/t/3214 |
17:43:53 | * | bonk`` joined #nim |
17:45:06 | * | bonk`` left #nim (#nim) |
18:01:33 | FromGitter | <Varriount> @zacharycarter I wish I could recall how Star Trek Armada did unit selection |
18:04:08 | * | Sentreen quit (Ping timeout: 258 seconds) |
18:08:20 | FromGitter | <BigEpsilon> @D-K-E , I work professionally in computer vision and machine learning. For now I'm trying to enhance c2nim to the point that I'm able to wrap Opencv library. Once I finish I plan to do a bridge between opencv and @mratsim arraymancer. I think Nim can become a good alternative to c++ and python in the field of computer vision, as it syntax is close to python and its performance comparable to C++. In think |
18:08:20 | FromGitter | ... contributing to Arraymancer could be a great thing for you. |
18:10:28 | FromGitter | <mratsim> nice to hear @BigEpsilon :) |
18:11:42 | FromGitter | <BigEpsilon> En tout cas bon courage pour ta lib :) |
18:12:30 | FromGitter | <BigEpsilon> J'aimerait bien conttribuer mais mon temps libre est très limité malheureusement |
18:12:56 | FromGitter | <BigEpsilon> your french @mratsim right ? |
18:13:13 | FromGitter | <mratsim> yes I am |
18:13:34 | FromGitter | <edubart> @BigEpsilon I also think the same, and joined forces with @mratsim in helping arraymancer envolve some weeks ago, one more contributor to the ecosystem would be great |
18:14:05 | FromGitter | <mratsim> It’s fine :). c2nim autogenerating OpenCV bindings would already be awesome |
18:14:54 | FromGitter | <BigEpsilon> well great I hope we can do good things :) |
18:14:57 | FromGitter | <edubart> there is an opencv binding in nim already, but I think its outdated https://github.com/dom96/nim-opencv |
18:15:28 | FromGitter | <BigEpsilon> yes and it is based on the C API |
18:15:59 | dom96 | PRs welcome :) |
18:16:10 | FromGitter | <BigEpsilon> I'm working on the C++ API |
18:16:14 | FromGitter | <mratsim> Also Python doesn’t get OpenCV on Cuda, that would be killer |
18:16:17 | * | azur_kind quit (Quit: Leaving) |
18:16:21 | FromGitter | <BigEpsilon> same as for python |
18:16:42 | FromGitter | <BigEpsilon> Yes I think we can do that |
18:17:07 | * | Sentreen joined #nim |
18:18:27 | FromGitter | <BigEpsilon> I'm trying to write an automatic wrapper generator like the python and Java ones |
18:18:48 | * | ldlework quit (Quit: co'o ro pendo be mi) |
18:18:50 | FromGitter | <BigEpsilon> so it stays up to date with Opencv |
18:19:27 | * | ldlework joined #nim |
18:19:31 | * | ldlework quit (Remote host closed the connection) |
18:20:17 | * | ldlework joined #nim |
18:20:18 | dom96 | awesome |
18:22:13 | FromGitter | <edubart> c2nim does a pretty good job binding, I did bindings for MKLDNN and NNPack C libraries in a few minutes with just few hand fixes, then to make easier to use you can make a nim interface on top of it |
18:24:09 | * | ldlework quit (Client Quit) |
18:25:03 | FromGitter | <mratsim> and @andrea was trying to get automatic bindings to Cuda & co |
18:27:46 | FromGitter | <BigEpsilon> its has some rough edges for C++, but that natural as C++ is so huge. I Think we should not hesitate to enhance c2nim when we encounter something that it fails to parse or translate. c2nim is one of the strengths of nim ecosystem. |
18:28:38 | FromGitter | <superfunc> q: is c2nim a custom parser? |
18:31:17 | FromGitter | <BigEpsilon> I'm not sure what you mean by custom parser, but I think it is. |
18:31:25 | FromGitter | <BigEpsilon> It is writen in nim |
18:31:31 | FromGitter | <edubart> @BigEpsilon what advantages OpenCV C++ bindings has on C bindings? |
18:31:52 | FromGitter | <BigEpsilon> the C api is outdated |
18:31:57 | FromGitter | <Yardanico> @superfunc yes, it's completely written in Nim |
18:32:03 | FromGitter | <superfunc> @BigEpsilon sorry that was unclear, I meant is it built on something like libclang |
18:32:15 | FromGitter | <Yardanico> no |
18:32:22 | FromGitter | <superfunc> Thanks @Yardanico |
18:32:53 | FromGitter | <BigEpsilon> The opencv mainteners wanted to remove the C api few years ago |
18:33:13 | FromGitter | <BigEpsilon> it it cover a small part of the api |
18:33:22 | FromGitter | <BigEpsilon> and it is not uptodate |
18:33:56 | FromGitter | <edubart> hmm got it |
18:34:05 | FromGitter | <BigEpsilon> I don't know if they have plans to remove now or make it on par with python api |
18:34:36 | FromGitter | <BigEpsilon> It is strange but python binding is better than the C ones :| |
18:36:31 | FromGitter | <mratsim> I’m sure some university has a Cray supercomputer hidden somewhere that rely on the C API :P |
18:41:54 | * | endragor joined #nim |
18:46:30 | * | endragor quit (Ping timeout: 240 seconds) |
19:02:19 | * | TjYoco joined #nim |
19:04:33 | * | Jesin quit (Quit: Leaving) |
19:05:21 | * | JappleAck quit (Ping timeout: 240 seconds) |
19:07:46 | * | adamchainz quit (Ping timeout: 258 seconds) |
19:08:37 | * | adamchainz joined #nim |
19:15:42 | federico3 | mratsim have you had different outcomes with https://github.com/nim-lang/Nim/issues/6430 ? |
19:18:30 | * | JappleAck joined #nim |
19:18:41 | * | couven92 quit (Quit: Disconnecting) |
19:27:44 | FromGitter | <mratsim> commented @federico3. It might be related to SVG images |
19:28:24 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
19:29:38 | federico3 | mratsim FWIW if you inject the SVG straight in the output HTML instead of linking it as an image it works |
19:34:14 | * | libman joined #nim |
19:36:05 | * | dhalinar joined #nim |
19:40:43 | * | ofelas joined #nim |
19:41:13 | FromGitter | <D-K-E> Thank you peaople. @BigEpsilon All right, I'll start with arraymancer, but I am also interested in your opencv bridge. @mratsim all right I forked the repo, maybe it would be better if I started with some refactoring to get the hang of it. I will make an issue about it. @edubart same thing goes for the arraymancer-vision. |
19:41:22 | * | nsf joined #nim |
19:47:06 | FromGitter | <mratsim> @D-K-E Don’t refactor for the weekend, I’m changing hundreds of lines: https://github.com/mratsim/Arraymancer/compare/metadataArray_v2. Also join our gitter chat https://gitter.im/Arraymancer/Lobby |
19:48:41 | FromGitter | <Yardanico> btw, I found first gist written in Nim: https://gist.github.com/miikka/770114 |
19:48:47 | FromGitter | <Yardanico> it was easy to find :) |
19:50:47 | FromGitter | <Yardanico> also https://gist.github.com/Araq/835959 :) |
19:51:42 | FromGitter | <mratsim> or at least wait for 1 hour, I have one bug to fix with the current refactor that should take much longer @D-K-E |
19:52:05 | FromGitter | <Yardanico> and first nim gist by dom96! https://gist.github.com/dom96/866121 |
19:52:57 | * | PMunch joined #nim |
19:53:08 | FromGitter | <Yardanico> native bigints for nim in stdlib! https://gist.github.com/Araq/877043 |
19:54:18 | FromGitter | <Yardanico> ah, no, not native it seems |
19:57:05 | miran | mratsim, on the forum you said that "lapack, like solving equations" is not a focus. does that mean we'll not see stuff for solving Ax = B, or something else? |
19:58:14 | FromGitter | <mratsim> I accept PRs or I will do it if it’s blocking someone to implement a ML algo. |
19:58:37 | FromGitter | <mratsim> It’s not a WONTFIX if that’s what you’re asking ;) |
19:59:19 | miran | ok, so something like: it might be there one day, but it is not a priority for you |
19:59:56 | FromGitter | <mratsim> to be honest it’s probably a 30 min/1 hour PR, you can just steal the code from linalg/neo convert it to use Arraymancer data format and add tests |
20:00:48 | miran | hehe, ok, i might do it, but i'm just a beginner in nim, so it might take me 10x more time than you think :) |
20:02:24 | FromGitter | <mratsim> If you can join the gitter, that would be great so you can ask away if you have any question |
20:03:50 | miran | ok, when i start working on it, i'll try to join the gitter. currently i have some python projects that need my attention, probably until the next weekend |
20:03:55 | * | Demos joined #nim |
20:05:37 | * | Vladar quit (Quit: Leaving) |
20:10:39 | Demos | dom96: are there any best practices for packaging nimble packages as debs and rpms? |
20:12:10 | dom96 | nope |
20:12:37 | dom96 | In fact, I'm not sure it's possible right now. |
20:12:47 | dom96 | There is no global Linux nimble package path supported by the Nim compiler |
20:12:57 | Demos | yeah there does not seem to be many options for avoiding nimble's dependency resolution either |
20:13:15 | Demos | huh? can't you still use nim's --libs option |
20:13:37 | Demos | sorry the --path option |
20:13:40 | dom96 | you can |
20:13:45 | * | TjYoco quit (Quit: Leaving) |
20:13:49 | dom96 | but that would be annoying :) |
20:14:15 | Demos | well right, but the compiler seems to search relative to itself |
20:17:02 | Demos | my current approach is gunna be to parse the nimble dump output |
20:17:07 | Demos | this is a bit of an issue tbh |
20:25:17 | miran | dom96: i have nim 0.17.0 installed from the main site, but i've seen recommendations to use choosenim - is it safe to install it and then use it to upgrade nim? |
20:25:44 | miran | or would it be better to uninstall current version and start clean with choosenim? |
20:26:20 | dom96 | it's safer to uninstall the current version, but things should be okay if you use choosenim now |
20:26:27 | dom96 | Just make sure to update the PATH correctly |
20:28:18 | dom96 | Demos: we need to decide where the global install path for Nimble packages should be on Linux |
20:28:27 | dom96 | and then add it to Nim's config file by default |
20:28:33 | miran | ok, i'll try to install it without uninstalling, hoping everything will be ok :) |
20:28:36 | dom96 | and Nimble needs to be made aware of this too |
20:29:18 | Demos | that's not all though. Nimble will need ways to install into an arbitrary prefix and to not manage dependencies |
20:30:06 | dom96 | yes |
20:30:18 | dom96 | Nimble can already install to an arbitrary prefix |
20:30:25 | Demos | ah I see it now |
20:30:33 | dom96 | But it needs to support multiple prefixes at the same time |
20:33:30 | miran | dom96: i think i've made it :) it was easier than i thought |
20:33:44 | dom96 | Awesome :D |
20:35:53 | miran | thank you for the meaningful and helpful warnings and hints during installation! |
20:36:18 | dom96 | Glad you're finding them useful :) |
20:44:28 | * | miran quit (Ping timeout: 255 seconds) |
21:02:55 | * | ofelas quit (Quit: shutdown -h now) |
21:09:31 | FromGitter | <BigEpsilon> If any one is interested at calling opencCV now for some specific task, it is not hard even without using a wrapper. ⏎ here a gist that may be helpful: https://gist.github.com/BigEpsilon/d8bb95f4442ed325aaaa17b0d69ad2fe |
21:21:50 | * | claudiuinberlin quit (Quit: Textual IRC Client: www.textualapp.com) |
21:25:55 | * | nsf quit (Quit: WeeChat 1.9) |
21:32:44 | * | Trustable quit (Remote host closed the connection) |
21:43:18 | * | endragor joined #nim |
21:47:21 | * | endragor quit (Ping timeout: 240 seconds) |
21:52:33 | * | dhalinar quit (Ping timeout: 248 seconds) |
22:07:28 | FromGitter | <genotrance> can you write procs with templates? |
22:07:49 | FromGitter | <genotrance> or is that macro domain |
22:08:02 | Araq | easily done with templates |
22:11:10 | FromGitter | <genotrance> can you name the proc based on the input to the template? |
22:13:21 | Araq | sure |
22:17:57 | FromGitter | <genotrance> @araq - how do I do that? ⏎ ⏎ ```template toHash(procname: string) = ⏎ proc procname() = ⏎ echo "test"``` ⏎ ⏎ doesn't work obviously [https://gitter.im/nim-lang/Nim?at=59d95294e44c43700a06c69c] |
22:18:46 | Araq | procname: untyped |
22:19:08 | FromGitter | <zacharycarter> @Varriount I wish you could too :P |
22:22:39 | * | beatmox quit (Remote host closed the connection) |
22:23:09 | * | beatmox joined #nim |
22:26:44 | FromGitter | <genotrance> @araq - cool that works, but I have to pass procname as is, I cannot prepend/append stuff to the value sent to the template - what is typed in the code is what I can send in |
22:27:15 | Araq | proc `prefix name suffix`() |
22:27:48 | Araq | but I'm not sure I ever implemented it this way. in the worst case, you really have to use a macro instead |
22:29:01 | FromGitter | <genotrance> it doesn't like spaces in the name |
22:30:05 | FromGitter | <genotrance> This works: ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ but I cannot prepend/append anything to that SHA256 without hardcoding it in the code [https://gitter.im/nim-lang/Nim?at=59d9556cbbbf9f1a3834472a] |
22:36:20 | * | Snircle joined #nim |
22:42:26 | * | ipjk quit (Read error: Connection reset by peer) |
22:42:41 | * | ipjk joined #nim |
22:43:34 | FromGitter | <genotrance> > https://tio.run/##PYo7CsAgEAX7PcVipZArpM8B0onFRiQuxA8qyfGNQkj15g0TOfTOIafSsNFxuQoANxUkXDG6Z59O11Y4ngvmkqxURiqAieNzbBtLNWJnfULhWQCQnmuG/IJfSdX7Cw ⏎ @Yardanico - I tried this and it only works if the proc() signature is consistent - you cannot put different functions in together in the table |
22:59:08 | * | derlafff quit (Ping timeout: 240 seconds) |
23:01:13 | JappleAck | hey guys, how do i parse command-line arguments? i mean as bare array of arguments? |
23:01:38 | JappleAck | i'm actually can't search an answer by bunch of different requests |
23:01:53 | JappleAck | i think tutorial should point on it clearly |
23:04:52 | JappleAck | oh, i just cracked this mistery, command-line argument just called 'param' in 'os' module |
23:13:44 | FromGitter | <genotrance> use paramCount() and paramStr() |
23:13:56 | JappleAck | yep, get it, thanks anyway |
23:25:05 | * | yglukhov quit (Remote host closed the connection) |
23:27:13 | * | nsf joined #nim |
23:27:46 | * | zachk quit (Quit: more to do when nothing is done...) |
23:47:33 | * | ipjk quit (Read error: Connection reset by peer) |
23:59:23 | * | nsf quit (Quit: WeeChat 1.9) |
23:59:45 | * | Demos quit (Quit: Demos) |