« first day (2089 days earlier)      last day (1382 days later) » 

10:47 AM
user image
3
 
11:25 AM
@Stargateur If I could, I would give this 100 stars
@Stargateur I don't get this one though
 
acr
To be fair, I'm fairly certain you need a wheel for JSON in Python :P
 
@acr umm.. how's so?
 
acr
well, it's not included in the standard library, is it
oh wait, it is
dang it's been a while since I wrote Python
 
@acr It's been part of the "standard" for the last decade :see_no_evil:
(At least that was the first time I used it..)
 
acr
Speaking of which - there's a project called CARLA that I'm using for autonomous driving research for my group. It's written in C++ and has Python bindings available. I heard that generating Rust bindings for C++ was troublesome, do you think it might be easier to generate Rust bindings from their Python bindings instead?
 
11:34 AM
I haven't touched anything that is C++ for quite a while. So not sure if the binding generation is that painful for Rust... I know that it is mindblowingly easy to wrap Rust stuff in Python and use it, I did that before, so much nicer than the "native" CPython API.. but to generate Rust bindings from the Python bindings instead? I don't think that's possible
 
acr
I read about this a few days ago: github.com/PyO3/pyo3.
"This includes running and interacting with Python code from a Rust binary"
 
@acr Yup, that's the one I used before. A joy to work with, I must say.
 
acr
Looks like it should be possible to generate bindings from Python API to use in Rust based on that, albeit a bit hairy.
 
@acr I thought you meant something different. You want the flow to be Rust calls into Python calls into C++ then.. WHY???
That sounds like a very bad idea to me.
 
acr
11:48 AM
I don't want that. I really want to access the C++ bindings in Rust.
But last time I tried (a month ago?) getting C++ to work in Rust was hard. I tried dlib, which admittedly is a template-heavy library.
I tried using rust-bindgen at that time. Should I have used something else?
Since that was such a pain, I brought up the idea of wrapping the Python API instead ;)
 
As I said, I haven't tried doing anything with C++ for ages, let alone wrap it in Rust, however, if it is as painful as you say it is, I would wrap the C++ in C first and generate the bindings for Rust on top of that
 
acr
Yeah that's kind of the last resort I guess. Would rather like to avoid that though. Ehh, let's see. I don't need dlib bindings immediately, maybe I'll try again next month or so.
 
12:05 PM
@PeterVaro i'm not 00M sure but I think it for trolling the evangelism strike force
 
@PeterVaro I did just that in faiss-rs
 
@E_net4ofthedownvotebrigade This approach makes perfect sense to me: one can do it gradually, and there's no external dependency (i.e. tooling) involved in the process
 
12:20 PM
It's expensive, but in the end it provides the best integration.
 
 
1 hour later…
1:35 PM
@E_net4ofthedownvotebrigade Can you please tell what more should my question have except the code which I 'm no longer having? stackoverflow.com/questions/61108611/…
 
@VisheshMangla That is not a Rust question, so I will not be discussing it here. Haven't you already visited SOCVR on that subject?
 
SOCVR?
 
SO Close Vote Reviewers. You visited the chatroom last Monday.
 
oh yes I had actually.
I told them I don't have the code. They said you need to tell why do you want to do this?
Even where there is code there also I haven't got answers
 
Again, there are better venues for this. I have nothing special to add over the recommendations already given at SOCVR.
 
1:43 PM
hmm ok
 
@VisheshMangla For what it's worth, receiving answers is never guaranteed, even when the question is on-topic and suitable for the site.
 
I didn't know that
Thanks for the info
 
@VisheshMangla Well, this ain't anyone's job now, is it? Everyone's here for their own enjoyment (and willingness to help)
So I suppose, it is not surprising after all, is it?
 
no, it's not . It 's just that it didn't come to my mind.
but that ultimately leads to ban
 
 
2 hours later…
3:44 PM
@Shepmaster Thanks for stackoverflow.com/a/51026699/493729 - a surprise 2 years later!
 
4:12 PM
@PeterHall np. I remember being surprised by that when you answered, and I was still surprised when I ran into something similar recently.
 
@Shepmaster Unstable nightly features can be surprising.
I'm actually surprised that no progress has been made on specialization in 2 years...
It's maybe not a very useful Q&A long-term though. I imagine these things would have to be ironed out before specialization could be stablised
e.g. it could error in the way that Lukas expected. Would be less flexible but more predictable
 
4:30 PM
@PeterHall have you heard of min_specialization
 
@Shepmaster I have not!
2 years ago I was following various unstable features pretty closely. But I have barely even used a nightly build since then
 
> I have barely even used a nightly build since then


Same here. I used to use nightly a lot, now I wouldn't consider it.
That's a good sign
Dammit, why is that quote spanning the entire message SO? Why?
 
@mcarton It's also correlated with doing Rust full time as my job...
 
min_specialization is a tiny subset, only allowing specializing on a concrete type
which I think allows avoiding the primary unsoundness
 
In the end, you get used to doing the things that you can do in stable, and make your design choices around that.
@Shepmaster min_specialization seems pretty active. Optimism restored!
 
 
1 hour later…
6:00 PM
> warning: unnested or-patterns
> error[E0658]: or-patterns syntax is experimental
thx clippy
 
 
3 hours later…
9:09 PM
any one know a way to have a graph for dependencie structure ?
like lib.rs/crates/cargo-modules but for structure
 
9:48 PM
@Shepmaster oof so long ago hah
 
@Stargateur can Cargo tree do it?
 
@Shepmaster no at all
I wonder why I found nothing
 
@Shepmaster that for dependancies
I want something like that for structure
 
Those aren’t rust terms
 
9:54 PM
I realize I very tired xd
so let me do it clean, I search a way to generate a graph of my rust data structure.
 
The link you sent, Cargo modules, makes a graph of the `mod’s in one crate. Cargo deps does it for dependencies.
Are you saying you want the combination of the two?
 
yeah I open a issue on modules one cause what I want is very related github.com/regexident/cargo-modules/issues/57
@Shepmaster not at all
let me paint it
 
Ah, you want a graph of Single type.
 
yes
 
But yes, you should create an example picture for example code.
 
9:58 PM
cargo doc generate a textual doc of my code but I would like something visual I think doxygen do it for C
 
Then people will get what you’re talking about very easily
 
@Shepmaster yes let me do it
 
10:23 PM
@Shepmaster done
 
10:42 PM
Yeah, way easier to get
 

« first day (2089 days earlier)      last day (1382 days later) »